/* ============================================================
   VISIO — Lattice style system
   Botanical field journal on warm parchment.
   ============================================================ */

:root {
  /* Colors */
  --color-parchment: #f7f6f2;
  --color-paper-white: #ffffff;
  --color-forest-ink: #001f1f;
  --color-lichen-gray: #5c7070;
  --color-stone: #6a7878;
  --color-slate: #455252;
  --color-mist: #889494;
  --color-meadow: #cdface;
  /* Visio brand teal, taken from the logo. Too light to carry white text
     (2.5:1), so primary actions use the deeper action shade below. */
  --color-brand: #21b79f;
  --color-brand-action: #157a69;      /* button fill — 5.2:1 with white */
  --color-brand-action-deep: #0f6555; /* hover — 7.0:1 with white */
  --color-deep-forest: #2a4e1c;
  --color-deep-teal: #003d3d;
  --color-olive: #515c0b;
  --color-plum: #7a2251;
  --color-saffron: #a36a14;
  --color-iris: #652ea3;
  --color-mint-surface: #e4f7f9;
  --color-lime-surface: #f8fbe7;
  --color-lavender-surface: #e1e1fa;
  --color-blush-surface: #fcf2fe;
  --color-buttercream: #fff3c2;
  --color-sage-glow: #eff5ce;
  --color-petal: #fde5ff;
  --color-lilac-stroke: #dcc2eb;
  --gradient-halo: radial-gradient(circle, rgb(191, 241, 245) 32%, rgb(169, 235, 169) 64%, rgb(103, 226, 235));
  /* Section closer reuses the halo palette instead of the reference system's
     violet-to-blue banner, which read as off-brand beside the teal logo.
     Spread as a wide ellipse so it works across a full-width card. */
  --gradient-closer: radial-gradient(120% 165% at 50% 28%, rgb(191, 241, 245) 18%, rgb(169, 235, 169) 58%, rgb(103, 226, 235) 100%);

  /* Type */
  /* Google Sans is proprietary and not served for third-party web use, so it
     leads the stack (honoured wherever it is installed) and Outfit — the
     closest freely licensed geometric sans — is the webfont actually loaded. */
  --font-sans: 'Google Sans', 'Google Sans Text', 'Product Sans', 'Outfit', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-caption: 11px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-subheading: 19px;
  --text-heading-sm: 22px;
  --text-heading: 47px;
  --text-display: 72px;
  --font-weight-regular: 400;
  --font-weight-medium: 500;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-20: 20px;
  --spacing-36: 36px;
  --spacing-48: 48px;
  --spacing-72: 72px;
  --spacing-116: 116px;
  --spacing-188: 188px;

  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 72px;
  --card-padding: 28px;

  /* Radius */
  --radius-cards: 14px;
  --radius-badges: 22px;
  --radius-inputs: 12px;
  --radius-buttons: 29px;
  --radius-small: 7px;
  --radius-lg-card: 28.8768px;
  --radius-xl-card: 43.3152px;

  /* Elevation */
  --shadow-md:
    color(srgb 0 0.121569 0.121569 / 0.04) 0px 12px 12px -6px,
    color(srgb 0 0.121569 0.121569 / 0.04) 0px 6px 6px -3px,
    color(srgb 0 0.121569 0.121569 / 0.04) 0px 3px 3px -1.5px,
    color(srgb 0 0.121569 0.121569 / 0.08) 0px 1px 1px -0.5px,
    color(srgb 0 0.121569 0.121569 / 0.04) 0px 0px 0px 1px;
  --shadow-md-fallback:
    rgba(0, 31, 31, 0.04) 0px 12px 12px -6px,
    rgba(0, 31, 31, 0.04) 0px 6px 6px -3px,
    rgba(0, 31, 31, 0.04) 0px 3px 3px -1.5px,
    rgba(0, 31, 31, 0.08) 0px 1px 1px -0.5px,
    rgba(0, 31, 31, 0.04) 0px 0px 0px 1px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

/* Native smooth scrolling only when the JS scroller isn't driving. */
html:not(.js) { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-parchment);
  color: var(--color-forest-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* height:auto keeps the intrinsic ratio — the HTML height attribute would
   otherwise fight width:100% and stretch the SVG mockups. */
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--color-forest-ink);
  outline-offset: 3px;
  border-radius: var(--radius-small);
}

::selection { background: var(--color-meadow); color: var(--color-forest-ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  background: var(--color-forest-ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-buttons);
  font-size: var(--text-body-sm);
}
.skip-link:focus { left: 16px; }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--spacing-116) 0; }
.section--tight { padding: var(--spacing-72) 0; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(42px, 7.2vw, var(--text-display));
  font-weight: var(--font-weight-medium);
  line-height: 0.9;
  letter-spacing: -0.024em;
}

.heading {
  font-size: clamp(32px, 4.6vw, var(--text-heading));
  font-weight: var(--font-weight-medium);
  line-height: 1;
  letter-spacing: -0.024em;
}

.heading-sm {
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.subheading {
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-regular);
  line-height: 1.45;
  color: var(--color-lichen-gray);
}

.body { font-size: var(--text-body); line-height: 1.55; color: var(--color-lichen-gray); }
.body-sm { font-size: var(--text-body-sm); line-height: 1.5; color: var(--color-stone); }

.caption {
  font-size: var(--text-caption);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
  color: var(--color-mist);
}

.ink { color: var(--color-forest-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-buttons);
  padding: 13px 22px;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease,
              color 0.25s ease, box-shadow 0.35s var(--ease-out);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Brand teal with white label and arrow, used for every primary action. */
.btn--filled {
  background: var(--color-brand-action);
  color: #fff;
  border-color: var(--color-brand-action);
  box-shadow: 0 1px 2px rgba(0, 31, 31, 0.14);
}
.btn--filled:hover {
  background: var(--color-brand-action-deep);
  border-color: var(--color-brand-action-deep);
  box-shadow: 0 10px 22px -10px rgba(21, 122, 105, 0.75);
}
/* The arrow inherits, but state it so no context can darken it. */
.btn--filled .arrow { color: #fff; }

.btn--outlined {
  background: transparent;
  color: var(--color-forest-ink);
  border-color: var(--color-forest-ink);
}
.btn--outlined:hover { background: rgba(0, 31, 31, 0.05); }

.btn--sm { padding: 10px 16px; }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--spacing-12); }

/* ---------- Pill badge ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-meadow);
  color: var(--color-forest-ink);
  border: 0;
  border-radius: var(--radius-badges);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Four-point sparkle lifted from the logo mark. Ordered first so it leads
   the label, without needing the icon to move in the markup. */
.pill__spark {
  order: -1;
  width: 11px;
  height: 11px;
  flex: none;
  fill: var(--color-brand-action);
  transition: transform 0.5s var(--ease-out);
}
a.pill:hover .pill__spark { transform: rotate(90deg) scale(1.12); }

.pill--quiet { background: var(--color-mint-surface); }
.pill--lime { background: var(--color-lime-surface); }

/* ---------- Section header ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--spacing-36) var(--spacing-48);
  align-items: end;
  margin-bottom: var(--spacing-48);
}
.sec-head__left { display: flex; flex-direction: column; gap: var(--spacing-20); align-items: flex-start; }
.sec-head__right { display: flex; flex-direction: column; gap: var(--spacing-20); align-items: flex-start; }
.sec-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.sec-head--center .sec-head__left,
.sec-head--center .sec-head__right { align-items: center; }

/* ---------- Link with arrow ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-forest-ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}
.link-arrow:hover { border-color: var(--color-forest-ink); }
.link-arrow span { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

/* ============================================================
   Announcement banner
   ============================================================ */
.announce {
  background: var(--color-mint-surface);
  color: var(--color-forest-ink);
  font-size: 13px;
  border-bottom: 1px solid rgba(0, 31, 31, 0.07);
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 24px;
  position: relative;
}
.announce__divider { width: 1px; height: 13px; background: rgba(0, 31, 31, 0.25); }
.announce__link {
  font-weight: var(--font-weight-medium);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 31, 31, 0.3);
}
.announce__close {
  position: absolute;
  right: 24px;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
  font-size: 15px;
  opacity: 0.55;
  padding: 4px;
}
.announce__close:hover { opacity: 1; }
.announce.is-hidden { display: none; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.nav.is-stuck { border-bottom-color: rgba(0, 31, 31, 0.09); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-20);
  height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: 9px; }

/* Sized by height with auto width, so a square mark and a wide lockup
   both drop in without touching the markup. */
.logo__mark {
  height: 26px;
  width: auto;
  transition: transform 0.6s var(--ease-out);
}
.logo:hover .logo__mark { transform: rotate(60deg); }
.logo__word {
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.03em;
  color: var(--color-deep-teal);
}

/* Add .logo--lockup to the anchor when the artwork already contains the
   wordmark: hides the text and drops the spin, which only suits a symbol. */
.logo--lockup { gap: 0; }
.logo--lockup .logo__word { display: none; }
.logo--lockup .logo__mark { height: 30px; }
.logo--lockup:hover .logo__mark { transform: none; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-slate);
  padding: 8px 12px;
  border-radius: var(--radius-small);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav__link:hover { color: var(--color-forest-ink); background: rgba(0, 31, 31, 0.045); }
.nav__link.is-active { color: var(--color-forest-ink); }

.nav__actions { display: flex; align-items: center; gap: var(--spacing-12); }
.nav__login {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-slate);
}
.nav__login:hover { color: var(--color-forest-ink); }
.nav__cta { border-radius: var(--radius-buttons); padding: 11px 18px; }

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-forest-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--color-forest-ink);
  cursor: pointer;
  padding: 0;
  place-items: center;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.nav__burger:hover { background: var(--color-forest-ink); color: #fff; }

/* Lucide "menu" and "x" (ISC licence), inlined rather than pulled from a CDN.
   Both icons share one grid cell and cross-fade with a quarter turn. */
.nav__burger-icon {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
.nav__burger-icon--close { opacity: 0; transform: rotate(-90deg) scale(0.7); }
.nav__burger.is-open .nav__burger-icon--menu { opacity: 0; transform: rotate(90deg) scale(0.7); }
.nav__burger.is-open .nav__burger-icon--close { opacity: 1; transform: none; }

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(0, 31, 31, 0.08);
  background: var(--color-parchment);
  padding: var(--spacing-20) 24px var(--spacing-36);
}
.mobile-menu.is-open { display: block; box-shadow: 0 18px 24px -18px rgba(0, 31, 31, 0.35); }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: var(--text-subheading);
  font-weight: var(--font-weight-medium);
  border-bottom: 1px solid rgba(0, 31, 31, 0.07);
}
/* Needs to out-specify `.mobile-menu a` above, which would otherwise force the
   CTA back to a block with no horizontal padding and left-aligned text. */
.mobile-menu a.btn {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--spacing-20);
  padding: 15px 22px;
  border-bottom: 0;
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: var(--spacing-72) 0 var(--spacing-48); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--spacing-48);
  align-items: end;
}
.hero__left { display: flex; flex-direction: column; gap: var(--spacing-36); align-items: flex-start; }
.hero__right { display: flex; flex-direction: column; gap: var(--spacing-20); padding-bottom: 6px; }

.hero__title .line { display: block; }
.hero__title em {
  font-style: normal;
  position: relative;
  /* Own stacking context so the highlight sweep sits behind the glyphs
     rather than behind the page canvas. */
  z-index: 0;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--color-meadow);
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: sweep 1.1s var(--ease-out) 0.5s forwards;
}
@keyframes sweep { to { transform: scaleX(1); } }

.hero__meta { display: flex; align-items: center; gap: var(--spacing-20); flex-wrap: wrap; }
.hero__meta-item { display: flex; align-items: center; gap: 8px; font-size: var(--text-body-sm); color: var(--color-stone); }
.hero__meta-item svg { flex: none; }

/* Device frame + halo */
.stage {
  position: relative;
  margin-top: var(--spacing-72);
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 56px);
  border-radius: var(--radius-xl-card);
  overflow: hidden;
  isolation: isolate;
}
.stage__halo {
  position: absolute;
  inset: -30% -10%;
  background: var(--gradient-halo);
  opacity: 0.55;
  filter: blur(10px);
  z-index: -1;
  animation: haloDrift 18s ease-in-out infinite alternate;
}
@keyframes haloDrift {
  0%   { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.06); }
}
.device {
  background: var(--color-paper-white);
  border-radius: var(--radius-lg-card);
  padding: 10px;
  box-shadow: var(--shadow-md-fallback);
  box-shadow: var(--shadow-md);
}
.device img { border-radius: 20px; width: 100%; }

.stage__float {
  position: absolute;
  background: var(--color-paper-white);
  border-radius: var(--radius-cards);
  padding: 12px 16px;
  box-shadow: var(--shadow-md-fallback);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  animation: bob 6s ease-in-out infinite;
}
/* Sit in the halo band above and below the frame rather than over the device.
   Each page shows a different mockup, so anything overlapping the screen
   collided with real UI on at least one of them. */
.stage__float--a { left: 3%; top: 12px; }
.stage__float--b { right: 3%; bottom: 12px; animation-delay: -3s; }
.stage__float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-deep-forest); }
.stage__float .dot--teal { background: var(--color-deep-teal); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ============================================================
   Logo strip
   ============================================================ */
.strip { padding: var(--spacing-48) 0 var(--spacing-20); }
.strip__label { text-align: center; margin-bottom: var(--spacing-36); }
.strip__mask {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.strip__track {
  display: flex;
  align-items: center;
  gap: var(--spacing-72);
  width: max-content;
  animation: marquee 34s linear infinite;
}
.strip__mask:hover .strip__track { animation-play-state: paused; }
.strip__item {
  font-size: 19px;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.02em;
  color: var(--color-mist);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.strip__item:hover { color: var(--color-slate); }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--color-paper-white);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: var(--shadow-md-fallback);
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.card:hover { transform: translateY(-4px); }

.pastel {
  border-radius: var(--radius-lg-card);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-20);
  transition: transform 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.pastel:hover { transform: translateY(-5px); }
.pastel--mint { background: var(--color-mint-surface); }
.pastel--lime { background: var(--color-lime-surface); }
.pastel--lavender { background: var(--color-lavender-surface); }
.pastel--blush { background: var(--color-blush-surface); }
.pastel--butter { background: var(--color-buttercream); }
.pastel--sage { background: var(--color-sage-glow); }
.pastel--petal { background: var(--color-petal); }

.pastel__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 31, 31, 0.07);
  color: var(--color-forest-ink);
  flex: none;
}
.pastel__body { color: var(--color-lichen-gray); font-size: var(--text-body); line-height: 1.55; }
.pastel__shot {
  margin-top: auto;
  background: var(--color-paper-white);
  border-radius: var(--radius-cards);
  padding: 8px;
  box-shadow: var(--shadow-md-fallback);
  box-shadow: var(--shadow-md);
}
.pastel__shot img { border-radius: 8px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-20); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-20); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing-20); }

/* Feature list card (What you get) */
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-12);
  height: 100%;
}
.feature__title { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   Steps
   ============================================================ */
.steps { display: grid; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--spacing-36);
  align-items: start;
  padding: var(--spacing-36) 0;
  border-top: 1px solid rgba(0, 31, 31, 0.11);
  transition: background-color 0.4s ease, padding-inline 0.4s var(--ease-out);
}
.step:last-child { border-bottom: 1px solid rgba(0, 31, 31, 0.11); }
.step:hover { background: rgba(205, 250, 206, 0.16); }
.step__num {
  font-size: var(--text-heading-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-forest-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.step__num .bar {
  width: 26px;
  height: 1.5px;
  background: var(--color-forest-ink);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.step:hover .step__num .bar { transform: scaleX(1.5); }
.step__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: var(--font-weight-medium); letter-spacing: -0.02em; line-height: 1.15; }
.step__tag {
  display: inline-flex;
  margin-top: 14px;
  padding: 5px 11px;
  border-radius: var(--radius-badges);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
}

/* ============================================================
   Stats
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing-20); }
.stat {
  padding: var(--spacing-36) var(--spacing-20);
  border-left: 1px solid rgba(0, 31, 31, 0.12);
  padding-left: var(--spacing-20);
}
.stat__num {
  font-size: var(--text-heading);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.024em;
  line-height: 1;
}
.stat__label { margin-top: var(--spacing-12); font-size: var(--text-body-sm); color: var(--color-lichen-gray); }

/* ============================================================
   Testimonials carousel
   ============================================================ */
.carousel { position: relative; }
.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track { display: flex; gap: var(--spacing-20); }
.carousel__track > * {
  flex: 0 0 calc((100% - var(--spacing-20) * 2) / 3);
  scroll-snap-align: start;
}

.quote {
  border-radius: var(--radius-lg-card);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-20);
  min-height: 100%;
}
.quote__head { display: flex; align-items: center; gap: var(--spacing-12); }
.quote__avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; }
.quote__name { font-size: var(--text-body); font-weight: var(--font-weight-medium); }
.quote__role { font-size: var(--text-body-sm); color: var(--color-lichen-gray); }
.quote__text { font-size: var(--text-body); line-height: 1.5; color: var(--color-forest-ink); }
.quote__stat {
  font-size: var(--text-heading);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.024em;
  line-height: 1;
  margin-top: auto;
}
.quote__stat-label { font-size: var(--text-body-sm); color: var(--color-lichen-gray); margin-top: 6px; }

.carousel__controls { display: flex; align-items: center; justify-content: space-between; margin-top: var(--spacing-36); }
.dots { display: flex; gap: 8px; }
.dot-btn {
  width: 8px; height: 8px; padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 31, 31, 0.2);
  cursor: pointer;
  transition: width 0.4s var(--ease-out), background-color 0.3s ease;
}
.dot-btn.is-active { width: 26px; border-radius: 5px; background: var(--color-forest-ink); }
.arrows { display: flex; gap: 8px; }
.arrow-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--color-forest-ink);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.arrow-btn:hover { background: var(--color-forest-ink); color: #fff; }
.arrow-btn[disabled] { opacity: 0.3; cursor: not-allowed; }
.arrow-btn[disabled]:hover { background: transparent; color: inherit; }

/* ============================================================
   Categories
   ============================================================ */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing-12); }
.cat {
  border-radius: var(--radius-cards);
  padding: var(--spacing-36) var(--spacing-20) var(--spacing-20);
  border: 1px solid rgba(0, 31, 31, 0.1);
  background: var(--color-paper-white);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-12);
  transition: transform 0.45s var(--ease-out), background-color 0.4s ease;
}
.cat:hover { transform: translateY(-4px); background: var(--color-sage-glow); }
.cat__k { font-size: var(--text-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mist); }
.cat__t { font-size: var(--text-subheading); font-weight: var(--font-weight-medium); letter-spacing: -0.01em; }
.cat__d { font-size: var(--text-body-sm); color: var(--color-lichen-gray); line-height: 1.5; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid rgba(0, 31, 31, 0.11); }
.faq__item { border-bottom: 1px solid rgba(0, 31, 31, 0.11); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-20);
  padding: var(--spacing-20) 4px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.faq__q:hover { color: var(--color-deep-teal); }
.faq__icon {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--color-forest-ink);
  display: grid;
  place-items: center;
  position: relative;
  transition: background-color 0.3s ease, transform 0.45s var(--ease-out);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--color-forest-ink);
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease;
}
.faq__icon::before { width: 11px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 11px; }
/* 180deg, not 90: the vertical stroke collapses and the horizontal one stays,
   so the open state reads as a minus rather than standing on end. */
.faq__item.is-open .faq__icon { background: var(--color-forest-ink); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); background: #fff; }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p {
  max-width: 68ch;
  padding: 0 4px var(--spacing-20);
  color: var(--color-lichen-gray);
  font-size: var(--text-body);
  line-height: 1.6;
}

/* ============================================================
   Gradient closer banner
   ============================================================ */
.closer {
  border-radius: var(--radius-xl-card);
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 72px);
  background: var(--gradient-closer);
  color: var(--color-forest-ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-20);
  position: relative;
  overflow: hidden;
}
.closer::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5), transparent 64%);
  pointer-events: none;
}
.closer .pill { background: #fff; position: relative; z-index: 1; }
.closer__title {
  font-size: clamp(30px, 4.4vw, var(--text-heading));
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.024em;
  line-height: 1.03;
  max-width: 18ch;
  position: relative;
  z-index: 1;
}
.closer__sub { color: var(--color-slate); max-width: 56ch; position: relative; z-index: 1; }
.closer .btn-row { position: relative; z-index: 1; margin-top: var(--spacing-12); }
/* Same brand teal + white label as everywhere else — the primary action
   looks identical on the gradient as it does on parchment. */
.closer .btn--filled {
  background: var(--color-brand-action);
  color: #fff;
  border-color: var(--color-brand-action);
}
.closer .btn--filled:hover {
  background: var(--color-brand-action-deep);
  border-color: var(--color-brand-action-deep);
}
.closer .btn--outlined { border-color: var(--color-forest-ink); color: var(--color-forest-ink); }
.closer .btn--outlined:hover { background: rgba(0, 31, 31, 0.06); }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: var(--spacing-72) 0 var(--spacing-36); border-top: 1px solid rgba(0, 31, 31, 0.09); margin-top: var(--spacing-116); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--spacing-36);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--spacing-12); align-items: flex-start; max-width: 34ch; }
.footer__col h4 { font-size: var(--text-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mist); margin-bottom: var(--spacing-12); font-weight: var(--font-weight-medium); }
.footer__col a { display: block; padding: 6px 0; font-size: var(--text-body-sm); color: var(--color-slate); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--color-forest-ink); }
.footer__bottom {
  margin-top: var(--spacing-48);
  padding-top: var(--spacing-20);
  border-top: 1px solid rgba(0, 31, 31, 0.09);
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-20);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-mist);
}

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero { padding: var(--spacing-72) 0 var(--spacing-48); }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--spacing-48);
  align-items: end;
}
.page-hero__left { display: flex; flex-direction: column; gap: var(--spacing-20); align-items: flex-start; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.split__media {
  border-radius: var(--radius-lg-card);
  overflow: hidden;
  box-shadow: var(--shadow-md-fallback);
  box-shadow: var(--shadow-md);
  background: var(--color-paper-white);
}
.split__copy { display: flex; flex-direction: column; gap: var(--spacing-20); align-items: flex-start; }

.checklist { display: flex; flex-direction: column; gap: var(--spacing-12); }
.check { display: flex; gap: var(--spacing-12); align-items: flex-start; font-size: var(--text-body); }
.check__mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-meadow);
  border: 1px solid var(--color-forest-ink);
  display: grid; place-items: center; flex: none; margin-top: 2px;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
/* Content is visible by default; the hidden state only applies once JS is running,
   so a script failure can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* Scroll progress bar */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-meadow), var(--color-deep-teal));
  z-index: 90;
  pointer-events: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid, .page-hero__grid, .sec-head { grid-template-columns: 1fr; }
  .sec-head { align-items: start; }
  .hero__right { padding-bottom: 0; }
  .grid-4, .cats, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel__track > * { flex-basis: calc((100% - var(--spacing-20)) / 2); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: 60px minmax(0, 1fr); gap: var(--spacing-20); }
  .step__desc { grid-column: 2; }
}

@media (max-width: 860px) {
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: grid; }
  .nav__cta { display: none; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: -1; }
  .section { padding: var(--spacing-72) 0; }
  .stage__float { display: none; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .cats, .stats { grid-template-columns: 1fr; }
  .carousel__track > * { flex-basis: 86%; }
  .footer__grid { grid-template-columns: 1fr; }
  .announce__close { display: none; }
  /* Stack instead of sharing a row — at this width the flex row squeezed the
     link down to one word per line. */
  .announce__inner {
    flex-direction: column;
    gap: 5px;
    padding: 9px 16px;
    text-align: center;
  }
  .announce__divider { display: none; }
  .announce__link { white-space: nowrap; }
  .stat { border-left: 0; border-top: 1px solid rgba(0, 31, 31, 0.12); padding: var(--spacing-20) 0; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title em::after { transform: scaleX(1); }
}
