/* =========================================================================
   Land & Herd — marketing site
   Farm-vibe palette shared with the app: parchment + barn red + hay gold +
   sage, soil-brown ink, wood-brown bands. Bitter (serif display) + Public Sans.
   ========================================================================= */

:root {
  --parchment: #f7f1e3;
  --parchment-deep: #efe6d0;
  --card: #fffdf7;
  --ink: #33261a;
  --ink-soft: #6f5f4c;
  --barn: #a13c2a;
  --barn-deep: #7f2d1f;
  --hay: #d9a441;
  --hay-soft: #f3e3bd;
  --sage: #7c8b5d;
  --sage-deep: #5a693f;
  --wood: #362a1e;
  --wood-light: #4a3a29;
  --fence: #e3d7bd;

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(54, 42, 30, .06), 0 2px 8px rgba(54, 42, 30, .05);
  --shadow-md: 0 10px 30px -12px rgba(54, 42, 30, .28), 0 4px 12px rgba(54, 42, 30, .08);
  --shadow-lg: 0 40px 80px -30px rgba(54, 42, 30, .40), 0 12px 28px -12px rgba(54, 42, 30, .22);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(1100px 520px at 80% -8%, rgba(217, 164, 65, .18), transparent 60%),
    radial-gradient(900px 480px at -5% 6%, rgba(124, 139, 93, .16), transparent 55%);
  background-repeat: no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
/* `height: auto` is load-bearing, not boilerplate. The width/height attributes
   on <img> are presentational hints that map to CSS width/height, so without
   this the `height="1000"` on a screenshot wins and, next to a `width: 100%`
   rule, stretches the picture vertically. The attributes still do their real
   job — reserving the right aspect ratio before the file loads. */
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* keep anchored section headings clear of the sticky header */
section[id] { scroll-margin-top: 88px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--hay); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--barn); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--barn-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--fence); }
.btn-ghost:hover { border-color: var(--hay); background: #fff; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-arrow { transition: transform .15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* -------------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 227, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(227, 215, 189, .7);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
/* Wordmark sits in soil brown so the ampersand — the brand's "all in one
   place" idea — is the only barn-red note in the lockup. */
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--ink); }
.brand .amp { color: var(--barn); }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .04em; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--ink-soft); font-size: .96rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-menu-link { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-signin { display: none; }
}

/* ---------------------------------------------------------------------- hero */
.hero { padding: 84px 0 40px; text-align: center; position: relative; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.3rem); letter-spacing: -.015em; margin: 22px auto 0; max-width: 15ch;
}
.hero h1 .accent { color: var(--barn); }
.hero-sub { margin: 22px auto 0; max-width: 44ch; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--ink-soft); }
.hero-note strong { color: var(--sage-deep); font-weight: 600; }

/* feature pills under hero */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px auto 0; max-width: 780px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--fence); border-radius: 999px;
  padding: 7px 15px; font-size: .9rem; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------- browser frame */
.frame {
  background: var(--card); border: 1px solid var(--fence); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: linear-gradient(180deg, #fffdf7, #f4ecdb);
  border-bottom: 1px solid var(--fence);
}
.frame-dots { display: flex; gap: 7px; }
.frame-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.frame-dots i:nth-child(1) { background: #d98b7d; }
.frame-dots i:nth-child(2) { background: #e6c56b; }
.frame-dots i:nth-child(3) { background: #a3b285; }
.frame-url {
  flex: 1; margin-left: 8px; max-width: 340px;
  background: var(--parchment); border: 1px solid var(--fence); border-radius: 8px;
  padding: 5px 12px; font-size: .8rem; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame img { width: 100%; display: block; }

/* No perspective tilt here on purpose. A rotateX on the hero frame skews the
   screenshot into a trapezoid and squashes it vertically — on a UI capture,
   where every edge is meant to read as straight, that just looks broken. */
.hero-shot { margin: 46px auto 0; max-width: 1000px; position: relative; }

/* ------------------------------------------------------------------- sections */
.section { padding: 74px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-top: 14px; letter-spacing: -.01em; }
.section-head p { margin-top: 16px; font-size: 1.12rem; color: var(--ink-soft); }

/* Feature rows: copy on top, screenshot full-bleed underneath.
   Deliberately NOT a 50/50 split — the app renders 14px type, and a half-width
   column shrank a 1280px capture by 3.2x, which put that type at ~4px. Across
   the full column it shrinks ~1.2x and stays readable. */
/* minmax(0, 1fr), not 1fr: a grid item's automatic minimum is its min-content
   width, so the 62ch copy block below would push the row past the viewport on a
   narrow phone. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.feature + .feature { margin-top: 96px; }
.feature-copy { max-width: min(62ch, 100%); }
.feature-copy .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--barn);
}
.feature-copy h3 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin-top: 14px; letter-spacing: -.01em; }
.feature-copy > p { margin-top: 16px; font-size: 1.08rem; color: var(--ink-soft); }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 1rem; }
.checks li svg { flex: none; margin-top: 3px; color: var(--sage-deep); }
.checks li b { font-weight: 600; }

.feature-media .frame { transition: transform .3s ease, box-shadow .3s ease; }
.feature-media .frame:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* The checks read as one line each at full width; two columns keeps the copy
   block from running wider than it is tall above a full-bleed screenshot. */
@media (min-width: 720px) {
  .checks { grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
}

@media (max-width: 880px) {
  .feature { gap: 24px; }
  .feature + .feature { margin-top: 64px; }
}

/* ------------------------------------------------------------- feature grid */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tiles + .modules-heading { margin-top: 54px; }
.tile {
  position: relative;
  background: var(--card); border: 1px solid var(--fence); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--hay); }
.tile-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--hay-soft); color: var(--barn-deep); margin-bottom: 16px; font-size: 1.5rem;
}
.tile h4 { font-size: 1.2rem; }
.tile p { margin-top: 8px; color: var(--ink-soft); font-size: .97rem; }
.tile p b { color: var(--ink); font-weight: 600; }
.tile-badge {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--sage-deep); background: rgba(124, 139, 93, .12);
  border: 1px solid rgba(124, 139, 93, .28); border-radius: 999px; padding: 3px 9px;
}
@media (max-width: 820px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tiles { grid-template-columns: 1fr; } }

/* group headings inside the modules section */
.modules-heading {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-size: 1.05rem; font-family: var(--font-body); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--barn);
  margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--fence);
}
.modules-heading-note {
  font-weight: 500; letter-spacing: .02em; text-transform: none;
  font-size: .92rem; color: var(--ink-soft);
}

/* screenshot gallery — 2-up so the app UI stays legible */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.gallery figure { margin: 0; }
.gallery .frame { transition: transform .2s ease, box-shadow .25s ease; }
.gallery .frame:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery figcaption { margin-top: 12px; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- band (wood) */
.band-wood { background: linear-gradient(180deg, var(--wood), var(--wood-light)); color: var(--parchment); position: relative; overflow: hidden; }
.band-wood::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 2px, transparent 2px 118px);
}
.band-wood .container { position: relative; }
.band-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 46px; align-items: center; }
.band-wood h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.band-wood p { margin-top: 16px; color: rgba(247,241,227,.82); font-size: 1.1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat { background: rgba(255,253,247,.06); border: 1px solid rgba(247,241,227,.14); border-radius: var(--radius); padding: 20px 22px; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--hay); }
.stat .l { margin-top: 4px; font-size: .92rem; color: rgba(247,241,227,.8); }
@media (max-width: 820px) { .band-inner { grid-template-columns: 1fr; gap: 30px; } }

/* --------------------------------------------------------- split (mobile) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.icon-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; }
.icon-list .dot { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sage); color: #fff; }
.icon-list h4 { font-size: 1.08rem; }
.icon-list p { color: var(--ink-soft); font-size: .96rem; margin-top: 2px; }
/* Two columns when the list sits above a full-width screenshot rather than
   beside one. */
@media (min-width: 820px) {
  .icon-list-cols { grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
}

/* ------------------------------------------------------- phone screenshot */
/* The mobile capture is portrait, so it gets its own narrow column rather
   than the 50/50 split the desktop shots use. */
.split-mobile { grid-template-columns: 1.35fr 1fr; }
@media (max-width: 880px) { .split-mobile { grid-template-columns: 1fr; } }
.phone-shot { display: flex; justify-content: center; }
.phone-frame {
  width: min(300px, 78vw);
  background: var(--wood);
  border: 1px solid var(--wood-light);
  border-radius: 40px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
}
.phone-frame img { width: 100%; border-radius: 30px; display: block; }

/* ------------------------------------------------------------------ CTA band */
.cta {
  text-align: center; background: var(--card); border: 1px solid var(--fence);
  border-radius: 28px; padding: 60px 32px; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background:
    radial-gradient(420px 200px at 15% 0%, rgba(217,164,65,.18), transparent 70%),
    radial-gradient(420px 200px at 85% 100%, rgba(124,139,93,.18), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
.cta p { margin: 16px auto 0; max-width: 42ch; color: var(--ink-soft); font-size: 1.12rem; }
.cta .hero-cta { margin-top: 30px; }

/* -------------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--fence); margin-top: 20px; padding: 46px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { max-width: 300px; }
.footer-brand .brand { font-size: 1.2rem; }
.footer-brand p { margin-top: 12px; color: var(--ink-soft); font-size: .92rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--ink); font-size: .95rem; padding: 5px 0; opacity: .85; }
.footer-col a:hover { opacity: 1; color: var(--barn); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--fence); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: .88rem; }

/* -------------------------------------------------------- fade-in on scroll */
/* Visible by default. Only when JS is present (html.js) do we hide-then-reveal,
   so the page is never blank if scripts are disabled or fail. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Multi-page additions
   Everything below arrived with the page split (pricing, feature pages, FAQ,
   about, privacy, terms). Same palette and type scale as above — these are new
   components, not overrides.
   ========================================================================= */

/* ---------------------------------------------------------------- a11y */
/* Visible only once focused, so keyboard users can jump the nav on 21 pages. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--card); color: var(--ink); border: 1px solid var(--fence);
  border-radius: 10px; padding: 10px 16px; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

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

/* ------------------------------------------------------------- nav state */
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--hay); margin-top: 4px;
}

/* Small-screen menu. A <details> disclosure, so it works with no JS at all;
   the script only closes it on outside-click. */
.nav-mobile { display: none; position: relative; }
.nav-mobile > summary {
  list-style: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--fence); background: var(--card);
  display: grid; place-items: center;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-burger, .nav-burger::before, .nav-burger::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
}
.nav-burger { position: relative; }
.nav-burger::before, .nav-burger::after { content: ""; position: absolute; left: 0; }
.nav-burger::before { top: -6px; }
.nav-burger::after { top: 6px; }
.nav-mobile[open] > summary { border-color: var(--hay); }
.nav-mobile-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  min-width: 208px; padding: 8px;
  background: var(--card); border: 1px solid var(--fence);
  border-radius: 14px; box-shadow: var(--shadow-md);
}
.nav-mobile-panel a {
  display: block; padding: 10px 12px; border-radius: 9px;
  font-size: .98rem; font-weight: 500; color: var(--ink);
}
.nav-mobile-panel a:hover { background: var(--parchment); }
.nav-mobile-panel a[aria-current="page"] { color: var(--barn); font-weight: 600; }
@media (max-width: 860px) { .nav-mobile { display: block; } }

/* ------------------------------------------------------------ breadcrumb */
.breadcrumb { border-bottom: 1px solid rgba(227, 215, 189, .55); }
.breadcrumb .container {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding-block: 12px; font-size: .86rem; color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--barn); }
.breadcrumb span[aria-hidden] { opacity: .45; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------- sub-page furniture */
/* Narrower than --maxw: long-form copy reads badly at 1120px. */
.container-narrow { max-width: 760px; }

.page-hero { padding: 60px 0 34px; }
.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.015em;
  margin-top: 18px; max-width: 20ch;
}
.page-lede { margin-top: 20px; max-width: 62ch; font-size: clamp(1.06rem, 2vw, 1.2rem); color: var(--ink-soft); }
.page-lede a { color: var(--barn); text-decoration: underline; text-underline-offset: 2px; }
.hero-cta-left { justify-content: flex-start; margin-top: 26px; }
.doc-date { margin-top: 18px; font-size: .88rem; color: var(--ink-soft); }
.nowrap { white-space: nowrap; }

/* Inline "more about X" link under a feature block. */
.feature-more { margin-top: 22px; }
.feature-more a, .section-more a:not(.btn) {
  font-weight: 600; color: var(--barn);
  display: inline-flex; align-items: center; gap: 6px;
}
.feature-more a:hover .btn-arrow, .section-more a:hover .btn-arrow { transform: translateX(3px); }
.section-more { margin-top: 44px; text-align: center; color: var(--ink-soft); }

/* ------------------------------------------------------------ long-form */
.prose > h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem); letter-spacing: -.01em;
  margin-top: 44px;
}
.prose > h2:first-child { margin-top: 0; }
.prose > p { margin-top: 16px; font-size: 1.06rem; color: var(--ink-soft); }
.prose > p > b, .prose li b { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--barn); text-decoration: underline; text-underline-offset: 2px; }
.prose .checks { margin-top: 22px; }
.prose figcaption { margin-top: 12px; color: var(--ink-soft); font-size: .95rem; }

/* Policy pages: tighter headings, numbered sections carry the rhythm. */
.doc > h2 { margin-top: 40px; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.doc > p { font-size: 1.02rem; }

/* A one-column checks list — used where the items are sentences, not labels. */
.checks-plain { grid-template-columns: 1fr !important; }

.table-scroll { overflow-x: auto; margin-top: 22px; -webkit-overflow-scrolling: touch; }
.doc-table {
  width: 100%; min-width: 560px; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--fence); border-radius: var(--radius);
  overflow: hidden; font-size: .95rem;
}
.doc-table th, .doc-table td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--fence); }
.doc-table thead th {
  background: var(--parchment-deep); font-family: var(--font-body);
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft);
}
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table td { color: var(--ink-soft); }
.doc-table .muted { font-size: .86rem; opacity: .8; }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--fence); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details:hover { border-color: var(--hay); }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
/* The chevron is drawn from two borders rather than typed, so it can rotate
   between states instead of swapping glyphs. Rotation only — a translate here
   shifts the box off-centre as it turns and the open state lands crooked. */
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin: -4px 4px 0 0;
  border-right: 2px solid var(--barn); border-bottom: 2px solid var(--barn);
  transform: rotate(45deg); transform-origin: center;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin: 4px 4px 0 0; }
.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--ink-soft); font-size: 1rem; }
.faq-body a { color: var(--barn); text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------------------------------------- pricing */
.price-card {
  background: var(--card); border: 1px solid var(--fence); border-radius: 26px;
  box-shadow: var(--shadow-md); padding: 38px 34px; max-width: 720px; margin-inline: auto;
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background: radial-gradient(520px 220px at 12% 0%, rgba(217,164,65,.16), transparent 70%);
}
.price-card > * { position: relative; }
.price-head { text-align: center; padding-bottom: 26px; border-bottom: 1px solid var(--fence); }
.price-badge {
  display: inline-block; font-family: var(--font-body);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage-deep); background: rgba(124, 139, 93, .13);
  border: 1px solid rgba(124, 139, 93, .3); border-radius: 999px; padding: 5px 13px;
}
.price-figure { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 16px; }
.price-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 8vw, 4.2rem); line-height: 1; color: var(--ink); }
.price-per { font-size: 1rem; color: var(--ink-soft); }
.price-sub { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }
.price-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
/* Absolutely-positioned tick rather than a flex row. These items are a <b> lead-in
   followed by a bare text node; under `display: flex` those become two separate
   flex items and the label collapses into its own narrow column. */
.price-list li { position: relative; padding-left: 32px; font-size: 1.02rem; color: var(--ink-soft); }
.price-list li b { color: var(--ink); font-weight: 600; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage) no-repeat center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
}
.price-cta { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.price-note { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 560px) { .price-card { padding: 30px 22px; } }

/* ---------------------------------------------------------- linked tiles */
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .tiles-3 { grid-template-columns: 1fr; } }
.tile h3 { font-size: 1.24rem; }
.tile-link { display: flex; flex-direction: column; }
.tile-link p { flex: 1; }
.tile-more {
  margin-top: 16px; font-family: var(--font-body); font-weight: 600; font-size: .93rem;
  color: var(--barn); display: inline-flex; align-items: center; gap: 6px;
}
.tile-link:hover .tile-more .btn-arrow { transform: translateX(3px); }

/* ------------------------------------------------------------- footer +  */
.footer-cols { gap: 44px; }
.footer-beta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px !important; font-size: .88rem; font-weight: 600; color: var(--sage-deep) !important;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex: none; }
@media (max-width: 620px) { .footer-cols { gap: 30px; } }

/* ------------------------------------------------------------- plan cards */
/* Four rungs. Two-up at tablet rather than three-up, so the ladder never
   breaks into a 3+1 orphan row. */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--fence); border-radius: var(--radius-lg);
  padding: 26px 22px 24px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--hay); }
.plan h3 { font-size: 1.3rem; }
/* Reserve exactly two lines (2 × the 1.6 body line-height) so a one-line tagline
   doesn't pull its card's price row up out of alignment with the others. */
.plan-for { margin-top: 6px; font-size: .92rem; color: var(--ink-soft); min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.plan-price .amt { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--ink); }
.plan-price .per { font-size: .92rem; color: var(--ink-soft); }
.plan-annual { margin-top: 6px; font-size: .86rem; color: var(--sage-deep); font-weight: 600; }
.plan-list {
  list-style: none; margin: 20px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--fence); display: grid; gap: 10px;
}
.plan-list li { position: relative; padding-left: 22px; font-size: .93rem; color: var(--ink-soft); }
.plan-list li b { color: var(--ink); font-weight: 600; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  background: no-repeat center / 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8b5d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
/* An exclusion ("No AI assistant") gets a dash, not a tick — a green check beside
   a thing you don't get reads as the opposite of what it says. */
.plan-list li.no { opacity: .62; }
.plan-list li.no::before {
  background-image: none; background: var(--ink-soft);
  height: 2px; top: 12px; border-radius: 2px;
}

/* The recommended rung. Barn-red border rather than a size change, so the row
   of cards keeps a single baseline. */
.plan-featured { border-color: var(--barn); box-shadow: var(--shadow-md); }
.plan-featured:hover { border-color: var(--barn); }
.plan-badge {
  position: absolute; top: -11px; left: 22px;
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: #fff;
  background: var(--barn); border-radius: 999px; padding: 4px 11px;
}

/* ------------------------------------------------------ comparison table */
.plan-table { min-width: 640px; }
.plan-table thead th:not(:first-child),
.plan-table tbody td:not(:first-child) { text-align: center; white-space: nowrap; }
.plan-table tbody td:first-child { color: var(--ink); }
.plan-table td.y { color: var(--sage-deep); font-weight: 600; }
.plan-table td.n { color: var(--ink-soft); opacity: .5; }
.plan-table tbody tr:nth-last-child(-n+2) td { background: rgba(217, 164, 65, .07); }
/* --------------------------------------------------------------------- legal */
/* Privacy policy, terms, deletion, and support — plain prose pages the app
   stores require us to host publicly. */
.legal { padding: 56px 0 20px; }
.legal-inner { max-width: 72ch; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.legal .updated { margin-top: 12px; color: var(--ink-soft); font-size: .9rem; }
.legal h2 { margin-top: 40px; font-size: 1.35rem; }
.legal h3 { margin-top: 26px; font-size: 1.05rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.legal p { margin-top: 14px; }
.legal ul, .legal ol { margin-top: 14px; padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal a { color: var(--barn); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); }
.legal .callout {
  margin-top: 24px; padding: 20px 22px; border: 2px solid var(--fence);
  border-radius: 14px; background: var(--card);
}
.legal .callout p:first-child { margin-top: 0; }
.legal table { margin-top: 18px; width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--fence); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 700; }
.legal td { color: var(--ink-soft); }
