:root {
  color-scheme: light;
  --bg: #f3f7f5;
  --bg-deep: #e4efe9;
  --ink: #0f1c16;
  --muted: #4a5c54;
  --accent: #1f6b4a;
  --accent-hover: #17553a;
  --line: #c9d9d0;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Top bar —— */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0;
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand-mark img {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--ink);
}

/* —— Full-bleed hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 78% 42%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 55% at 20% 90%, rgba(31, 107, 74, 0.14), transparent 50%),
    linear-gradient(155deg, #eaf4ef 0%, #f7fbf8 42%, #dceee5 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M0 70h140M70 0v140' stroke='%231f6b4a' stroke-opacity='0.07' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(247, 251, 248, 0.92) 0%,
    rgba(247, 251, 248, 0.78) 36%,
    rgba(247, 251, 248, 0.15) 62%,
    transparent 78%
  );
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media .gauge-stage {
  position: absolute;
  right: max(-8%, 50% - 28rem);
  top: 50%;
  translate: 0 -48%;
  width: min(92vw, 38rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.gauge {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 28%;
  background: linear-gradient(160deg, rgba(238, 246, 241, 0.92), rgba(220, 238, 229, 0.85));
  box-shadow:
    0 40px 80px -36px rgba(15, 28, 22, 0.4),
    inset 0 0 0 1px rgba(31, 107, 74, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gauge img {
  width: 78%;
  position: relative;
  z-index: 1;
  animation: float-soft 7s var(--ease) infinite alternate;
}

.gauge-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(31, 107, 74, 0.28);
  animation: spin-slow 48s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6.5rem 0 3.5rem;
  max-width: 34rem;
}

.brand-hero {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 5.9rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 32ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

@keyframes float-soft {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Above-the-fold: animate in without waiting on IntersectionObserver */
.hero .reveal {
  animation: hero-in 0.85s var(--ease) forwards;
}

.hero-content .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero-content .reveal:nth-child(2) { animation-delay: 0.14s; }
.hero-content .reveal:nth-child(3) { animation-delay: 0.22s; }
.hero-content .reveal:nth-child(4) { animation-delay: 0.3s; }
.hero-content .reveal:nth-child(5) { animation-delay: 0.38s; }
.gauge.reveal { animation-delay: 0.18s; }

@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none !important;
  }
  .gauge img,
  .gauge-ring {
    animation: none;
  }
  html { scroll-behavior: auto; }
}

@media (max-width: 820px) {
  .hero-media .gauge-stage {
    right: -18%;
    top: 28%;
    translate: 0 0;
    width: min(88vw, 22rem);
    opacity: 0.55;
  }

  .hero-content {
    padding-top: 6.5rem;
  }
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
  background: var(--bg);
}

.section.alt {
  background: linear-gradient(180deg, #eef5f1 0%, var(--bg) 100%);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.steps {
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 780px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.steps li {
  position: relative;
  padding-top: 2.5rem;
}

.steps .num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .feature-list li {
    grid-template-columns: 14rem 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}

.feature-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature-list span {
  color: var(--muted);
}

.tiers {
  margin: 2.75rem 0 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 860px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    align-items: start;
  }

  .tiers--single {
    grid-template-columns: minmax(0, 28rem);
    justify-content: center;
  }
}

.tier h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.tier .price {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.tier .price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.tier p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.15rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.tier-pro .price {
  color: var(--accent);
}

.pricing-note {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 40rem;
}

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: #eaf2ed;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer .brand-mark {
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.page-hero {
  padding: 6.5rem 0 2rem;
  background: linear-gradient(165deg, #eaf4ef, var(--bg));
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.prose {
  padding-bottom: 4rem;
  max-width: 42rem;
}

.prose h2 {
  margin: 2.25rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose strong {
  color: var(--ink);
}

.page-shell .topbar {
  position: relative;
  padding-top: 1.25rem;
  background: transparent;
}
