/* =========================================================================
   Settle — marketing site shared styles
   Static CSS only. No build step, no framework. One small site.js enhances
   (nav shadow, reveal-on-scroll, pricing-carousel dots) — everything here
   works without it.

   Brand tokens mirror the app (src/index.css + tailwind.config.js):
     action green   #30671E   hsl(105 55% 26%)  — buttons, links, CTA
     brand lime     #8FBC45   hsl(83 47% 50%)   — accents (the logo lime)
     ink (text)     #14181F   hsl(220 20% 10%)
     muted text     #6A7181   hsl(220 10% 46%)
     background     #FAFAFA   hsl(0 0% 98%)
     pale green     #EFF8ED   hsl(105 45% 95%)
     border         #E4E7EC   hsl(220 13% 91%)
     radius         12px      (--radius 0.75rem)
   Fonts: DM Sans (display/headings) + Inter (body), same as the app.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Sans:opsz,wght@9..40,500;9..40,600;9..40,700;9..40,800&family=Instrument+Serif&display=swap');

:root {
  --green: #30671E;
  --green-dark: #244f16;      /* hover/active for the action green */
  --lime: #8FBC45;
  --ink: #14181F;
  --muted: #6A7181;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --accent-green: #EFF8ED;
  --border: #E4E7EC;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -4px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 48px -12px rgba(16, 24, 40, 0.16);

  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

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

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* No page may pan sideways. `clip` blocks horizontal overflow WITHOUT
     creating a scroll box (unlike `hidden`), preserving native scrolling. */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Headings use the display font with the app's tight tracking. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 700;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 72px; scroll-margin-top: 76px; /* anchor targets clear the floating pills */ }

/* First section on nav-only pages clears the floating pills */
main > .section:first-child { padding-top: 128px; }

/* Brand-tinted text selection instead of default blue */
::selection { background: var(--accent-green); color: var(--green-dark); }

/* Alternating pale-green band for section rhythm. Gradient edges so the
   band blends into the page while scrolling instead of hard-cutting. */
.section--tint {
  background: linear-gradient(180deg,
    rgba(239, 248, 237, 0) 0%,
    var(--accent-green) 64px,
    var(--accent-green) calc(100% - 64px),
    rgba(239, 248, 237, 0) 100%);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---- floating pill nav --------------------------------------------------
   No banner: each page lives in its own floating pill/circle, fixed at the
   top of the viewport. The logo gets its own circle; the current page's pill
   is filled action green (aria-current="page"). */
.pill-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, background-color 0.18s ease;
}
.pill:hover {
  text-decoration: none;
  transform: translateY(-2px);
  color: var(--green);
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}
.pill[aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.pill[aria-current="page"]:hover { color: #fff; }
/* Two-class selector on purpose: it must outrank the mobile `.pill`
   padding override below (equal single-class specificity, later in the
   file) which was squeezing the logo's content box to 14px and letting
   the global img { max-width: 100% } stretch-distort the mark. */
.pill.pill-logo { width: 44px; padding: 0; flex: none; }
.pill.pill-logo img {
  width: 26px;
  height: 26px;
  flex: none;
  max-width: none;      /* never clamped by the container again */
  object-fit: cover;    /* full-bleed mark: crop, never distort */
  border-radius: 8px;
}

@media (max-width: 400px) {
  .pill { padding: 0 14px; font-size: 0.85rem; }
}

/* Footer brand lockup (the logo + wordmark) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

img.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--green-dark); color: #fff; box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); box-shadow: var(--shadow); }

/* App Store badge-style button.
   NOTE: Apple's official "Download on the App Store" badge is the compliant
   asset — see https://developer.apple.com/app-store/marketing/guidelines/ .
   Swap this styled button for that badge when ready. */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid #000;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-appstore:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-appstore:active { transform: translateY(0); }
.btn-appstore svg { width: 26px; height: 26px; flex: none; }
.btn-appstore .as-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.btn-appstore .as-small { font-size: 0.65rem; letter-spacing: 0.02em; }
.btn-appstore .as-big {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: clip; /* contains the mascot's off-screen flight path */
  padding-block: 96px 64px; /* top clears the floating pill nav */
  background:
    radial-gradient(60% 55% at 70% 12%, var(--accent-green), transparent 70%);
}
.hero-inner {
  display: grid;
  gap: 28px;
  align-items: center;
  text-align: center;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-inline: auto;
}
.hero .subhead {
  color: var(--muted);
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  max-width: 46ch;
  margin: 20px auto 0;
}
.hero .btn-row { justify-content: center; margin-top: 32px; }
.hero .fine {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* The Settle superhero. Flies in from off-screen left, small and faint
   (far away), arcs up BEHIND the headline (z-index 0 vs copy's 1, so it
   passes "through" the words), lands close, and idles on a gentle float.

   Motion architecture — why TWO elements:
   - CSS timing functions apply PER KEYFRAME SEGMENT. A single animation
     with an intermediate transform keyframe decelerates to ~zero at that
     waypoint and re-launches: a visible mid-air stall (measured: dead
     stop at the old 60% frame). So the arc is now composed from two
     SINGLE-SEGMENT animations: the wrapper rises (vertical leg), the img
     glides (horizontal leg + scale + rotate). No intermediate transform
     keyframe exists, so velocity can never hit zero mid-flight.
   - Transform + opacity only; the drop shadow is STATIC (animating
     filters re-rasterizes every frame and stutters on phones).
   - site.js chains the idle float via animationend: .is-floating starts
     from the exact landing transform. Zero overlap, seamless hand-off.
   - will-change promotes the layers for the flight; site.js clears both
     after landing so the hint doesn't linger. */
.hero-mascot {
  position: relative;
  z-index: 0;
  display: block;
  width: 150px;
  margin-inline: auto;
  will-change: transform;
  animation: mascot-rise 1.6s cubic-bezier(0.3, 0.75, 0.35, 1) both;
}
.hero-mascot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(16, 24, 40, 0.22)); /* static, never animated */
  will-change: transform, opacity;
  animation: mascot-glide 1.6s var(--ease-out) both;
}
.hero-mascot.is-floating { animation: mascot-float 6s ease-in-out infinite; }

/* Vertical leg of the arc — ONE segment */
@keyframes mascot-rise {
  from { transform: translate3d(0, 22vh, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Horizontal leg + depth — ONE transform segment (12% touches opacity only) */
@keyframes mascot-glide {
  0%   { transform: translate3d(-70vw, 0, 0) scale(0.4) rotate(-8deg); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes mascot-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -10px, 0) rotate(1.5deg); }
}

@media (min-width: 1000px) {
  .hero { padding-block: 128px 96px; }
  /* Two-column hero only when the mascot image is actually present —
     if assets/mascot.png is missing it removes itself (onerror) and the
     hero falls back to the centered single-column layout. */
  .hero-inner:has(.hero-mascot) {
    grid-template-columns: 1.15fr 0.85fr;
    text-align: left;
    gap: 40px;
  }
  .hero-inner:has(.hero-mascot) .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-mascot {
    grid-column: 2;
    grid-row: 1;
    width: min(400px, 34vw);
    justify-self: center;
  }
  .hero-inner:has(.hero-mascot) h1,
  .hero-inner:has(.hero-mascot) .subhead { margin-inline: 0; }
  .hero-inner:has(.hero-mascot) .btn-row { justify-content: flex-start; }
}

/* ---- feature blurbs ----------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-green);
  color: var(--green);
  margin-bottom: 16px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }

.section-head { text-align: center; max-width: 44ch; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Workforce spotlight — the full-width feature card */
.spotlight {
  grid-column: 1 / -1;
  display: grid;
  gap: 28px;
  padding: 32px 24px;
}
.spotlight h3 { font-size: 1.5rem; }
.spotlight > .spotlight-copy > p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
.spotlight-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.spotlight-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  color: var(--ink);
}
.spotlight-list svg { width: 20px; height: 20px; color: var(--green); flex: none; }

@media (min-width: 560px) {
  .spotlight-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .spotlight {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 44px;
  }
}

/* Decorative "on-site crew" visual, built from tokens only */
.crew-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}
.crew-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 6px;
}
.crew-head strong { font: 700 0.9rem var(--font-display); letter-spacing: -0.01em; }
.crew-chip {
  background: var(--accent-green);
  color: var(--green);
  font: 600 0.72rem var(--font-display);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.crew-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.crew-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--accent-green);
  flex: none;
}
.crew-dot.off { background: var(--border); box-shadow: none; }
.crew-row strong { font: 600 0.85rem var(--font-display); display: block; }
.crew-row span { color: var(--muted); font-size: 0.75rem; display: block; }
.crew-row em {
  margin-left: auto;
  font: 600 0.8rem var(--font-display);
  font-style: normal;
  color: var(--green);
}

/* ---- closing CTA band --------------------------------------------------- */
.cta-panel {
  background: var(--green);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 56px 24px;
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.cta-panel p { color: rgba(255, 255, 255, 0.85); margin-top: 12px; }
.cta-panel .btn-row { justify-content: center; margin-top: 28px; }
/* On the green panel the primary button inverts to white so it stays visible */
.cta-panel .btn-primary { background: #fff; color: var(--green); }
.cta-panel .btn-primary:hover { background: var(--accent-green); color: var(--green-dark); }

/* ---- pricing ------------------------------------------------------------ */
.pricing-carousel { position: relative; }

/* Monthly / Yearly billing toggle. Both price sets live in the HTML
   (SEO/accessibility); this only swaps which one is visible. Hidden when
   JS is off since it couldn't do anything. */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  margin: 0 auto 36px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.billing-toggle button {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.billing-toggle button.active { background: var(--green); color: #fff; }
.billing-toggle button:not(.active):hover { color: var(--green); }
html:not(.js) .billing-toggle { display: none; }

/* Price visibility swap; identical font metrics both ways = no layout jump */
.price-yearly { display: none; }
.show-yearly .price-monthly { display: none; }
.show-yearly .price-yearly { display: inline; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
  margin-inline: auto;
  scrollbar-width: none;
}
.pricing-grid::-webkit-scrollbar { display: none; }

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.featured {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--accent-green), var(--surface) 130px);
}
.plan .plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.plan .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  margin: 12px 0 4px;
  letter-spacing: -0.03em;
}
.plan .price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.plan ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.badge-featured {
  align-self: flex-start;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Mobile/tablet: swipeable snap carousel — one card at a time, edge peek.
   All four plans stay in the DOM; this is presentation only. */
@media (max-width: 899px) {
  .pricing-grid {
    display: flex;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 4px 20px 8px;
    margin-inline: -20px;
    scroll-padding-inline: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .plan {
    flex: 0 0 86%;
    scroll-snap-align: center;
    scroll-snap-stop: always; /* a fast flick can't skip past a plan */
  }
  .plan:hover { transform: none; } /* no lift mid-swipe */
}

/* Dot indicators (site.js populates; hidden on desktop grid) */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel-dots button.active { background: var(--green); transform: scale(1.3); }
.carousel-dots button:not(.active):hover { background: var(--muted); }

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; max-width: 960px; }
  .carousel-dots { display: none; }
}
@media (min-width: 1140px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); max-width: none; gap: 16px; }
  .plan { padding: 28px 22px; }
  .plan .price { font-size: 2.1rem; }
}

/* ---- legal / long-form pages ------------------------------------------- */
.doc {
  max-width: 760px;
  margin-inline: auto;
}
.doc-header { text-align: left; margin-bottom: 8px; }
.doc-header h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.doc .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.doc h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 44px;
  margin-bottom: 12px;
  scroll-margin-top: 90px;
}
.doc h3 { font-size: 1.1rem; font-weight: 600; margin-top: 24px; margin-bottom: 8px; }
.doc p, .doc li { color: #333a44; }
.doc p { margin-top: 12px; }
.doc ul, .doc ol { margin-top: 12px; padding-left: 22px; display: grid; gap: 8px; }

/* Support-specific: contact card */
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.support-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.support-card h3 { margin-bottom: 6px; }
.support-card p { color: var(--muted); }

/* FAQ (details/summary — native, no JS) */
.faq { display: grid; gap: 12px; margin-top: 8px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease-out);
}
.faq details:hover { box-shadow: var(--shadow-lg); }
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  float: right;
  color: var(--green);
  font-weight: 700;
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; }
/* Answers ease in instead of popping open */
.faq details[open] > p { animation: faq-reveal 0.25s var(--ease-out); }
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ---- footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 48px;
  margin-top: 24px;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
}
.footer-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--green); text-decoration: none; }
.footer-legal { color: var(--muted); font-size: 0.85rem; }

/* ---- reveal-on-scroll ---------------------------------------------------
   site.js adds html.js, then .is-visible as each [data-reveal] scrolls in.
   Scoped under html.js so no-JS visitors always see everything. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Gentle stagger for card grids */
html.js .features > :nth-child(2) { transition-delay: 0.06s; }
html.js .features > :nth-child(3) { transition-delay: 0.12s; }
html.js .features > :nth-child(4) { transition-delay: 0.18s; }

/* ---- responsive: tablet / desktop -------------------------------------- */
@media (min-width: 640px) {
  .container { padding-inline: 28px; }
  .section { padding-block: 88px; }
  .pricing-grid { margin-inline: -28px; scroll-padding-inline: 28px; }
}
@media (min-width: 900px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .pricing-grid { margin-inline: auto; }
  .section { padding-block: 112px; }
  .footer-grid { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---- reduced motion: no flight, no float, no reveals, no lifts ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  /* Mascot appears in its final resting state: no flight, no float */
  .hero-mascot, .hero-mascot img { opacity: 1; will-change: auto; }
}
