/* ============================================================
   NiceList — landing page styles
   Brand: Caregiver · "Gifts That Bring Us Closer"
   Palette pulled from nicelist-v2/lib/design-tokens/tokens.ts
   ============================================================ */

:root {
  /* Brand */
  --forest: #0D7C59;        /* primary green — CTAs, key actions */
  --forest-deep: #0A6349;   /* hover / pressed */
  --forest-soft: #E7F2EC;   /* tinted green wash */
  --mint: #D4E9E0;          /* accent mint — highlights/focus */
  --mint-deep: #C8E6C9;     /* darker mint */
  --blush: #F6D8DE;         /* celebration pink — joyful accents, sparingly */
  --coral: #E97A6B;         /* celebration accent — DECORATIVE only (fails text contrast) */
  --coral-soft: #FBEBE6;    /* soft coral wash */
  --peach: #F4A896;         /* soft secondary warm accent */
  --coral-text: #CE5540;    /* deeper coral — use when coral must carry TEXT (AA large) */
  --saddle: #8B4513;        /* warm brown — used very sparingly */

  /* Neutrals (warm) */
  --cream: #F6F5F1;         /* warm off-white background */
  --cream-soft: #FAFAF8;    /* subtle warm background */
  --white: #FFFFFF;
  --ink: #2D2926;           /* primary text */
  --ink-soft: #5B544E;      /* secondary text */
  --ink-faint: #6E665E;     /* tertiary text — WCAG AA on cream (5.17:1) */
  --border: #ECE9E3;        /* warm hairline */

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-script: 'Caveat', 'Segoe Script', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shape & depth */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(45, 41, 38, 0.05);
  --shadow-md: 0 12px 32px rgba(45, 41, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 124, 89, 0.12);

  --maxw: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-deep); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--ink); margin: 0; letter-spacing: -0.01em; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--forest); background: var(--forest-soft);
  padding: 7px 14px; border-radius: var(--r-pill);
  letter-spacing: 0.01em;
}

.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: var(--r-pill);
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--forest); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--forest-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--mint-deep); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(246, 245, 241, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
/* Interim logo mark — serif "N" on a forest tile (parked N-connection idea for later) */
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  background: var(--forest); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding-bottom: 1px; /* optical centering for the serif cap */
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--forest); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle at center, var(--mint) 0%, rgba(212,233,224,0) 68%);
  z-index: 0; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -200px; left: -160px; width: 480px; height: 480px;
  background: radial-gradient(circle at center, var(--coral) 0%, rgba(233,122,107,0) 70%);
  opacity: .16; z-index: 0; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 22px 0 0; }
/* Handwritten coral accent word (the v3 "personal touch") */
.hero h1 .accent {
  font-family: var(--font-script); color: var(--coral-text); font-weight: 700;
  font-style: normal; font-size: 1.24em; line-height: .9; position: relative; padding: 0 .04em;
}
.hero h1 .accent::after {
  content: ""; position: absolute; left: .02em; right: .02em; bottom: .02em;
  height: 4px; border-radius: 4px; background: var(--coral); opacity: .5;
}
.hero-sub { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-soft); margin: 22px 0 0; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { margin-top: 26px; font-size: 14px; color: var(--ink-faint); line-height: 1.5; }
.hero-trust a { color: var(--forest); font-weight: 600; }

/* ---------- Waitlist email capture ---------- */
.waitlist { display: flex; gap: 10px; margin-top: 30px; max-width: 460px; flex-wrap: wrap; }
.wl-input {
  flex: 1 1 220px; min-width: 0; height: 54px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: #fff; font-family: var(--font-body); font-size: 16px; color: var(--ink);
}
.wl-input::placeholder { color: var(--ink-faint); }
.wl-input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--mint); }
.waitlist .btn { flex: 0 0 auto; height: 54px; }
.wl-msg { margin: 12px 0 0; font-size: 14px; font-weight: 600; min-height: 18px; }
.wl-msg.ok { color: var(--forest); }
.wl-msg.err { color: #A32B1C; }
.wl-fine { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); }
.wl-fine a { color: var(--forest); font-weight: 600; }

/* ---------- Retailer trust band ---------- */
.retailers-band { padding: 38px 0; background: var(--cream-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rb-title { text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-soft); margin: 0 0 20px; }
.rb-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; }
.rb-logos span { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink-faint); letter-spacing: -.01em; }
.rb-logos .rb-more { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--forest); }

/* Hero visual — a little stack of gift "cards" */
.hero-art { position: relative; min-height: 380px; }
.gift-card {
  position: absolute; background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 20px;
}
.gc-1 { width: 220px; top: 30px; left: 2px; transform: rotate(-4deg); z-index: 4; }
.gc-2 { width: 236px; top: 166px; left: -18px; transform: rotate(3deg); z-index: 6; }
.gc-3 { width: 196px; bottom: 38px; left: 126px; transform: rotate(-2deg); z-index: 5; }
.gc-row { display: flex; align-items: center; gap: 12px; }
.gc-thumb { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.gc-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.gc-meta { font-size: 13px; color: var(--ink-faint); }
.gc-bar { height: 8px; border-radius: 999px; background: var(--cream); margin-top: 14px; overflow: hidden; }
.gc-bar > span { display: block; height: 100%; background: var(--forest); border-radius: 999px; }
.gc-avatars { display: flex; margin-top: 12px; }
.gc-avatars span { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--white); margin-left: -8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--white); }
.gc-avatars span:first-child { margin-left: 0; }

/* ---------- Hero: cutout person + floating friend pills + confetti (v3 photo hero) ---------- */
.hero-art { min-height: 470px; }
.hero-person {
  position: absolute; right: 0; bottom: 0; width: 300px; height: 420px;
  border-radius: 28px; background: #EAF3EE; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-person .silh { width: 250px; height: auto; opacity: .55; }
.hero-person .ph-label {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--forest); background: rgba(255,255,255,.9); padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.fpill {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 999px; padding: 8px 22px 8px 8px;
  box-shadow: 0 16px 36px rgba(45,41,38,.15);
}
.fp-ava { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px; display: flex; align-items: center; justify-content: center; }
.fp-name { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--ink); }
.fp-1 { top: 60px; left: 14px; }
.fp-2 { top: 172px; left: -14px; }
.fp-3 { bottom: 66px; left: 138px; }
.conf { position: absolute; z-index: 2; }
.conf-1 { top: 34px; left: 128px; }
.conf-2 { top: 250px; right: 6px; }
.conf-3 { top: 150px; left: 78px; width: 12px; height: 12px; background: var(--mint-deep); border-radius: 3px; transform: rotate(22deg); }
.conf-4 { bottom: 128px; left: 46px; width: 10px; height: 10px; border-radius: 50%; background: var(--peach); }
.conf-5 { bottom: 40px; left: 206px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--cream-soft); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head p { color: var(--ink-soft); font-size: 18px; margin-top: 16px; }

/* Feature cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature h3 { font-family: var(--font-body); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.feature p { color: var(--ink-soft); margin: 12px 0 0; font-size: 16px; }

/* How it works — steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px 28px 30px; box-shadow: var(--shadow-sm); }
.step-num {
  width: 44px; height: 44px; border-radius: 999px; background: var(--forest); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-family: var(--font-body); font-weight: 700; font-size: 19px; }
.step p { color: var(--ink-soft); margin: 10px 0 0; font-size: 15.5px; }

/* Story / mission */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.story-card {
  background: linear-gradient(150deg, var(--forest) 0%, var(--forest-deep) 100%);
  border-radius: var(--r-xl); padding: 44px; color: var(--white); box-shadow: var(--shadow-lg);
}
/* Explicit white — wins over the generic `.story p` color rule below, which
   would otherwise drag the quote/sig to dark muted text on the green card. */
.story-card .quote { font-family: var(--font-display); font-size: 26px; line-height: 1.35; font-weight: 500; color: var(--white); }
.story-card .sig { margin-top: 22px; font-size: 15px; color: var(--white); opacity: .88; }
.story h2 { font-size: clamp(28px, 4vw, 42px); }
.story p { color: var(--ink-soft); font-size: 17px; margin-top: 18px; }

/* CTA band */
.cta-band { padding: 80px 0; }
.cta-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: 56px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-card::before { content: ""; position: absolute; top: -120px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, var(--mint) 0%, rgba(212,233,224,0) 70%); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-card p { color: var(--ink-soft); font-size: 18px; margin: 16px auto 30px; max-width: 46ch; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D9D4CE; padding: 64px 0 36px; }
.footer a { color: #D9D4CE; }
.footer a:hover { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer .brand { color: var(--white); }
.footer-tag { margin-top: 16px; max-width: 32ch; color: #B7B1AA; font-size: 15px; }
/* Handwritten craft signature — the "sealed with care" personal touch */
.footer-seal { margin-top: 18px; font-family: var(--font-script); font-weight: 700; font-size: 22px; color: var(--peach); display: inline-flex; align-items: center; gap: 8px; }
.footer-seal svg { flex: 0 0 auto; }
.footer-col h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #9E978F; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: 13.5px; color: #9E978F; }
.footer-bottom a { color: #9E978F; }
.footer-bottom a:hover { color: var(--mint); }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); }
.legal .updated { color: var(--ink-faint); font-size: 14px; margin: 12px 0 40px; }
.legal h2 { font-family: var(--font-body); font-weight: 700; font-size: 21px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal a { font-weight: 600; }
.legal-note { background: var(--forest-soft); border: 1px solid var(--mint-deep); border-radius: var(--r-md); padding: 16px 20px; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 36px; }

/* ---------- Scroll reveal ---------- */
/* Gated on `.js` (set by an inline script) so content stays visible when
   JavaScript is disabled — never hide content behind a script that may not run. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Accessibility ---------- */
/* Visible keyboard focus on all interactive elements */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 8px;
}
.footer a:focus-visible { outline-color: var(--mint); }  /* legible ring on dark footer */

/* Skip-to-content link — visually hidden until focused */
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--forest); color: var(--white);
  padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; color: var(--white); outline: 3px solid var(--mint); outline-offset: 2px; }

/* In-body links carry an underline so they're not distinguished by color alone (WCAG 1.4.1) */
.legal p a, .legal li a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .story { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-card, .story-card { padding: 36px 24px; }
  .nav-cta .btn-ghost { display: none; }
}
