/* styles.css — Sage landing/signup design system.
 *
 * Re-skinned to the AURA brand: warm, editorial, premium. Light *bone* canvas,
 * *sage* green as the one accent, Newsreader serif for voice + Hanken Grotesk
 * for UI. Mobile-first, accessible, no framework.
 * Brand contract: docs/product/style/global.md (AURA Connect).
 */

/* ---------- Design tokens ---------- */
:root {
  /* Palette — exact brand hex */
  --bone: #f3f1e9;          /* page background, the warm canvas */
  --bone-2: #ece9de;        /* secondary surface / subtle fills / ghost hover */
  --ink: #0e0d0b;           /* primary text + inverted band background */
  --ink-soft: #34332b;      /* strong-but-not-max text, nav links */
  --muted: #5d5c50;         /* secondary/supporting text, ledes, captions */
  --sage: #6b8060;          /* THE accent — ticks, dots, fills, focus rings */
  --sage-deep: #4c5e41;     /* eyebrows, hovered links, gradient end-stop */
  --sage-glow: #90a67d;     /* light accent on dark bands, glints */
  --accent: #4e6a3a;        /* emphasis text — green <em> inside serif headings */

  --line: rgba(21, 20, 15, 0.14);       /* standard hairline */
  --line-soft: rgba(21, 20, 15, 0.08);  /* faint divider / card border */

  --cta-text: #fbfdf6;      /* off-white text on the sage gradient pill */

  /* Card top-light gradient + atmosphere */
  --card-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18));
  --cta-grad: linear-gradient(135deg, #93aa76 0%, #5d7a49 48%, #384d2c 100%);

  --danger: #a23a2a;
  --danger-bg: #f6e7e2;
  --danger-line: #e0bcb2;

  /* Effects */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(21, 20, 15, 0.06);
  --shadow: 0 18px 44px -22px rgba(21, 20, 15, 0.32), 0 2px 8px rgba(21, 20, 15, 0.06);
  --shadow-card-hover: 0 22px 48px -26px rgba(21, 20, 15, 0.34);
  --shadow-cta: 0 10px 26px -10px rgba(50, 66, 42, 0.62),
    0 2px 6px -2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.32);

  --ring: 0 0 0 3px rgba(107, 128, 96, 0.32);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wordmark: "Saira", var(--sans);
  --font-sans: var(--sans);
  --font-serif: var(--serif);

  /* Layout */
  --maxw: 1200px;
  --pad: clamp(1.15rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 6rem);

  color-scheme: light;
}

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

* {
  margin: 0;
}

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

@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;
  }
}

body {
  font-family: var(--sans);
  background-color: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Warm radial atmosphere — soft top light + faint sage corner */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(80% 60% at 90% 110%, rgba(111, 128, 80, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bone), var(--bone) 60%);
  pointer-events: none;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--sage-deep);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--sage);
  color: var(--cta-text);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-optical-sizing: auto;
}

h1 {
  font-weight: 540;
}

/* Heading emphasis — the green <em>, upright (not italic) */
h1 .accent,
h1 em,
h2 em {
  font-style: normal;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--sage);
}

p {
  text-wrap: pretty;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 52ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.section-head h2 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 460;
  letter-spacing: -0.026em;
  margin-top: 0.9rem;
}
.section-head p {
  color: var(--muted);
  margin-top: 0.95rem;
  font-size: 1.075rem;
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  /* The premium marketing CTA — full-round sage gradient pill */
  background: var(--cta-grad);
  color: var(--cta-text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-cta);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
/* One-pass sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-2px) scale(1.04);
  color: var(--cta-text);
}
.btn:hover::after {
  transform: translateX(120%);
}
.btn:active {
  transform: translateY(0) scale(1);
}
.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.075rem;
}
.btn--full {
  width: 100%;
}
/* Ghost / secondary marketing button — hairline pill, transparent */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost::after {
  display: none;
}
.btn--ghost:hover {
  background: var(--bone-2);
  color: var(--ink);
  border-color: var(--sage);
  transform: translateY(-2px);
  box-shadow: none;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--wordmark);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand:hover {
  color: var(--ink);
}
.brand .mark {
  width: 28px;
  height: auto;
  flex: none;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.9rem;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-cta {
  display: inline-flex;
}
.nav-cta .btn {
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
}

@media (min-width: 760px) {
  .nav-links {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: var(--section-y);
  position: relative;
}
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card-fill);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(107, 128, 96, 0.16);
}
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 5.1rem);
  line-height: 1;
  letter-spacing: -0.024em;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 3.6vw, 1.28rem);
  color: var(--muted);
  max-width: 40ch;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-meta {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-meta svg {
  color: var(--sage);
  flex: none;
}

/* Phone mockup */
.phone {
  justify-self: center;
  width: min(330px, 82vw);
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(160deg, #2b3322, #161a11);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 7px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.phone-screen {
  border-radius: 28px;
  background: linear-gradient(180deg, #11150d, #161b12);
  padding: 1.4rem 1rem 1.25rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.phone-top {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(243, 241, 233, 0.5);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(243, 241, 233, 0.12);
  margin-bottom: 0.4rem;
}
.phone-top strong {
  display: block;
  color: var(--bone);
  font-size: 0.98rem;
  font-weight: 600;
}
.bubble {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.45;
  animation: rise 0.5s ease backwards;
}
.bubble.in {
  align-self: flex-end;
  background: linear-gradient(180deg, #5d7a49, #4c5e41);
  color: #fbfdf6;
  border-bottom-right-radius: 6px;
}
.bubble.out {
  align-self: flex-start;
  background: rgba(243, 241, 233, 0.08);
  color: var(--bone);
  border: 1px solid rgba(243, 241, 233, 0.12);
  border-bottom-left-radius: 6px;
}
.bubble.in:nth-child(2) { animation-delay: 0.1s; }
.bubble.out:nth-child(3) { animation-delay: 0.25s; }
.bubble.in:nth-child(4) { animation-delay: 0.45s; }
.bubble.out:nth-child(5) { animation-delay: 0.6s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ---------- Logo strip / trust ---------- */
.trust {
  border-block: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bone-2) 55%, transparent);
}
.trust .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.trust .container span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.trust svg {
  color: var(--sage);
  flex: none;
}

/* ---------- Value cards ---------- */
.cards {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--card-fill);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.85rem 1.7rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(107, 128, 96, 0.12);
  color: var(--sage-deep);
  margin-bottom: 1.1rem;
}
.card h3 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.985rem;
}

@media (min-width: 620px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 940px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card-fill);
}
.step .num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--sage-deep);
  background: rgba(107, 128, 96, 0.1);
  border: 1px solid var(--sage);
}
.step .num::before {
  content: counter(step);
}
.step h3 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.1rem;
}
.step p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.98rem;
}

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

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  gap: 1.1rem;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  background: var(--card-fill);
}
.plan--feature {
  border-color: var(--sage);
  box-shadow: var(--shadow);
  position: relative;
}
.plan-tag {
  position: absolute;
  top: -0.8rem;
  left: 1.8rem;
  background: var(--cta-grad);
  color: var(--cta-text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.34rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cta);
}
.plan h3 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--muted);
}
.plan .price {
  margin-top: 0.7rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.plan .price .amount {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.plan .price .per {
  color: var(--muted);
  font-size: 1rem;
}
.plan .lede {
  margin-top: 0.6rem;
  color: var(--muted);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.7rem;
  display: grid;
  gap: 0.75rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.feature-list svg {
  color: var(--sage);
  margin-top: 0.18rem;
  flex: none;
}
.plan-note {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 760px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}
.faq details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card-fill);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: var(--sage);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 1.03rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .chev {
  flex: none;
  transition: transform 0.22s ease;
  color: var(--sage);
}
.faq details[open] summary .chev {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- CTA band (inverted ink band for rhythm) ---------- */
.cta-band {
  text-align: center;
}
.cta-band .inner {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 7vw, 4.2rem) var(--pad);
  background:
    radial-gradient(90% 130% at 50% -20%, rgba(144, 166, 125, 0.18), transparent 60%),
    linear-gradient(180deg, #14130f, var(--ink));
  box-shadow: var(--shadow);
  color: var(--bone);
}
.cta-band .inner .eyebrow {
  color: var(--sage-glow);
}
.cta-band .inner .eyebrow::before {
  background: var(--sage-glow);
}
.cta-band h2 {
  font-size: clamp(1.95rem, 6vw, 3rem);
  font-weight: 460;
  letter-spacing: -0.026em;
  max-width: 18ch;
  margin-inline: auto;
  color: var(--bone);
}
.cta-band h2 em {
  color: var(--sage-glow);
}
.cta-band p {
  color: rgba(243, 241, 233, 0.78);
  margin: 1rem auto 0;
  max-width: 44ch;
}
.cta-band .hero-actions {
  justify-content: center;
}

/* ---------- Signup ---------- */
.signup-wrap {
  display: grid;
  gap: clamp(2rem, 6vw, 3.5rem);
  align-items: start;
}
.signup-aside h1 {
  font-size: clamp(2.1rem, 8vw, 3.3rem);
  line-height: 1.02;
}
.signup-aside .hero-sub {
  max-width: 40ch;
}
.signup-points {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.signup-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  color: var(--ink-soft);
}
.signup-points svg {
  color: var(--sage);
  margin-top: 0.2rem;
  flex: none;
}

.form-card {
  background: var(--card-fill);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2.25rem);
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.form-card > p.lede {
  color: var(--muted);
  margin-top: 0.4rem;
  font-size: 0.97rem;
}
.field {
  margin-top: 1.4rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.field .hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}
.input {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.input:focus {
  border-color: var(--sage);
  box-shadow: var(--ring);
  background: #fff;
  outline: none;
}
.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.consent {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.45);
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: 0.1rem;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.consent input[type="checkbox"]:checked {
  background: var(--sage);
  border-color: var(--sage);
}
.consent input[type="checkbox"]:checked::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--cta-text);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-1px);
}
.consent input[type="checkbox"]:focus-visible {
  box-shadow: var(--ring);
}
.consent label {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent label strong {
  color: var(--ink);
  font-weight: 600;
}
.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-actions {
  margin-top: 1.5rem;
}
.fine {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Status / alerts */
.alert {
  margin-top: 1.2rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  display: none;
}
.alert.show {
  display: block;
}
.alert--error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger);
}
.alert--success {
  background: rgba(107, 128, 96, 0.12);
  border: 1px solid var(--sage);
  color: var(--sage-deep);
}
.field-error {
  display: none;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--danger);
}
.field-error.show {
  display: block;
}

.btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(251, 253, 246, 0.4);
  border-top-color: var(--cta-text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .spinner {
  display: inline-block;
}
.btn.loading .label {
  opacity: 0.7;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success state takeover */
.success-panel {
  display: none;
  text-align: center;
}
.success-panel.show {
  display: block;
}
.success-panel .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: rgba(107, 128, 96, 0.14);
  border: 1px solid var(--sage);
  display: grid;
  place-items: center;
  color: var(--sage-deep);
}
.success-panel h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.success-panel p {
  color: var(--muted);
  margin-top: 0.7rem;
}
.success-panel .phone-echo {
  color: var(--accent);
  font-weight: 600;
}

@media (min-width: 860px) {
  .signup-wrap {
    grid-template-columns: 1fr 460px;
  }
}

/* ---------- Legal / prose pages ---------- */
.prose {
  max-width: 760px;
}
.prose .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}
.prose h1 {
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  margin-top: 0.6rem;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-top: 2.4rem;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.08rem;
  margin-top: 1.6rem;
}
.prose p,
.prose li {
  color: var(--ink-soft);
  margin-top: 0.85rem;
}
.prose ul,
.prose ol {
  margin-top: 0.6rem;
  padding-left: 1.3rem;
}
.prose li {
  margin-top: 0.5rem;
}
.prose strong {
  color: var(--ink);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(107, 128, 96, 0.5);
  text-underline-offset: 2px;
}
.prose a:hover {
  text-decoration-color: var(--sage-deep);
}
.prose .callout {
  margin-top: 1.4rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  background: rgba(107, 128, 96, 0.08);
}
.prose .callout p {
  margin-top: 0;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bone-2) 60%, transparent);
  padding-block: 2.5rem 2rem;
  margin-top: var(--section-y);
}
.footer-grid {
  display: grid;
  gap: 1.8rem;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.7rem;
  max-width: 34ch;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2rem;
}
.footer-links a {
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
  .footer-links {
    justify-content: flex-end;
  }
}

/* ---------- Utilities ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.center {
  text-align: center;
}
