/* ===========================================================
   Ferruna — waitlist landing
   Design tokens extracted from Claude Design "Ferruna Style Guide".
   Mobile-first: base = single column; enhance at 480 / 768 / 1024 / 1280.
   =========================================================== */
:root {
  --cream: #FFF8F4;
  --surface: #ffffff;
  --ink: #2A2320;
  --maroon: #3A1212;
  --muted: #6B5750;
  --muted-2: #8A7A72;
  --faint: #A8978E;
  --border: #F2E2D8;
  --border-2: #F7EBE3;
  --chip-bg: #FFEFE6;
  --chip-border: #FAD9C8;
  --red: #DB3838;
  --orange: #FF7A1A;
  --accent: #FFC93C;
  --green: #1E9A69; /* darkened from #2FBF87: white-vs-green icon contrast was 2.35:1, fails WCAG 1.4.11 (>=3:1 non-text); this passes at 3.57:1 */
  --mint-border: #BDEAD7;
  --placeholder: #B4A398;
  --grad: linear-gradient(135deg, #DB3838, #FF7A1A);
  /* Darker "action" gradient for white text/icons sitting on the gradient
     (buttons, final CTA headline). Worst (lightest) stop #BA4E08 vs white
     is 5.02:1 (>=4.5:1 AA normal text); other stop #C22A2A is 5.74:1.
     Keep --grad for decorative-only uses (glows, brand mark, bullets) where
     no text sits directly on it. */
  --grad-action: linear-gradient(135deg, #C22A2A, #BA4E08);

  --r-pill: 9999px;
  --r-card: 26px;
  --r-lg: 32px;

  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --maxw: 1200px;
  --pad: 20px;            /* section side padding — grows at breakpoints */
  --shadow-card: 0 8px 26px rgba(58,18,18,0.05);
  --shadow-grad: 0 8px 18px rgba(219,56,56,0.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;              /* belt-and-braces: never scroll sideways */
}
h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.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;
}
/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- shared typography ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--red); background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  padding: 8px 15px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  border: none; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.btn--grad { color: #fff; background: var(--grad-action); box-shadow: 0 12px 26px rgba(194,42,42,0.32); }
.btn--grad:hover { box-shadow: 0 16px 32px rgba(194,42,42,0.44); transform: translateY(-1px); }
.btn--sm { font-size: 14.5px; padding: 12px 24px; box-shadow: var(--shadow-grad); }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__img {
  width: 40px; height: 40px; border-radius: 10px; display: block;
  box-shadow: var(--shadow-grad);
}
.brand__img--sm { width: 32px; height: 32px; border-radius: 8px; box-shadow: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.brand__fe {
  font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--red);
  background: var(--chip-bg); border: 1px solid var(--chip-border);
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255,248,244,0.9);
  backdrop-filter: saturate(180%) blur(10px);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.nav__actions { display: flex; align-items: center; gap: 12px; }
/* Supplementary FAQ link is hidden on the tightest screens so the primary
   CTA stays on one line; still reachable via the FAQ section + footer. */
.nav__link { display: none; font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .15s ease; }
.nav__link:hover { color: var(--red); }
/* Tightest screens: compact the nav so wordmark + primary CTA fit with no
   horizontal scroll at 320px. The decorative "Fe" badge is aria-hidden. */
@media (max-width: 400px) {
  .nav__inner { padding-left: 16px; padding-right: 16px; }
  .brand__fe { display: none; }
  .nav .btn--sm { font-size: 13.5px; padding: 10px 18px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__glow--tr { top: -200px; right: -160px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255,122,26,0.18), rgba(255,122,26,0) 68%); }
.hero__glow--bl { bottom: -280px; left: -200px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(219,56,56,0.10), rgba(219,56,56,0) 70%); }
.hero__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: 44px var(--pad) 52px;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
.hero__copy { min-width: 0; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw + 0.5rem, 4rem); line-height: 1.03; letter-spacing: -0.03em;
  color: var(--maroon); margin-bottom: 18px;
}
.hero__lede {
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.2rem);
  line-height: 1.6; color: var(--muted); margin: 0 0 26px; max-width: 46ch;
}
.hero__micro { font-size: 14px; color: var(--muted-2); margin: 14px 0 0; padding-left: 6px; }

/* trust strip */
.trust { list-style: none; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0 0; padding: 0; }
.trust__item { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.trust__dot { width: 4px; height: 4px; border-radius: 50%; background: #E0C4B6; }

/* ---------- waitlist form ---------- */
.waitlist { max-width: 520px; }
.waitlist__form { display: flex; flex-direction: column; gap: 12px; }
.waitlist__input {
  flex: 1; min-width: 0; width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--maroon);
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-pill);
  padding: 15px 22px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.waitlist__input::placeholder { color: var(--placeholder); }
.waitlist__input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(219,56,56,0.12); }
.waitlist__submit { flex-shrink: 0; width: 100%; padding: 15px 30px; }
.waitlist__error { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--red); font-weight: 500; margin: 10px 0 0; padding-left: 6px; }
.waitlist__done {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1.5px solid var(--mint-border); border-radius: 20px; padding: 18px 22px;
  box-shadow: 0 10px 26px rgba(47,191,135,0.14);
}
.waitlist__check { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.waitlist__done-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--maroon); }
.waitlist__done-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- store CTA (hidden until launch; styled for when it shows) ---------- */
.store-cta { display: flex; justify-content: center; max-width: 520px; }
.store-cta__badge {
  display: inline-flex; line-height: 0; border-radius: 12px;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.store-cta__badge img { width: 180px; height: 60px; }
.store-cta__badge:hover { transform: translateY(-2px); opacity: 0.92; box-shadow: 0 12px 26px rgba(29,21,18,0.18); }
.store-cta--invert { margin: 0 auto; }

/* ---------- hero visual: real device frames ---------- */
.hero__visual { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }
.hero__visual-glow {
  position: absolute; inset: 0; margin: auto; z-index: 0;
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,26,0.20), rgba(255,122,26,0) 70%);
  pointer-events: none;
}

.device { margin: 0; line-height: 0; position: relative; z-index: 1; }
.device img { width: 100%; height: auto; display: block; }
.device--phone {
  max-width: 380px; border-radius: 44px; padding: 10px; background: #1D1512;
  box-shadow: 0 24px 60px -18px rgba(29, 21, 18, 0.45);
}
.device--phone img { border-radius: 36px; }
.device--watch {
  max-width: 128px; border-radius: 30px; padding: 7px; background: #1D1512;
  box-shadow: 0 14px 34px -12px rgba(29, 21, 18, 0.4);
  position: absolute; right: -8%; bottom: -6%; z-index: 2;
}
.device--watch img { border-radius: 24px; }
@media (max-width: 767px) {
  .device--watch { position: static; margin: -3rem auto 0; }
}

/* ---------- empathy ---------- */
.empathy { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.empathy__inner { max-width: 920px; margin: 0 auto; padding: 56px var(--pad); text-align: center; }
.empathy__lede { font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.2rem); line-height: 1.6; color: var(--muted); margin: 18px auto 30px; max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { font-size: 15px; font-weight: 600; color: var(--maroon); background: var(--chip-bg); border: 1px solid var(--chip-border); padding: 12px 20px; border-radius: var(--r-pill); }

/* ---------- features ---------- */
.features { max-width: var(--maxw); margin: 0 auto; padding: 56px var(--pad); }
.features__head { text-align: center; margin-bottom: 36px; }
.features__grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 14px 14px 4px; box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(58,18,18,0.10); }
.feature__media {
  margin: 0; border-radius: 18px; overflow: hidden; background: var(--cream);
  border: 1px solid var(--border-2);
}
.feature__shot {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block;
}
.feature__body { padding: 20px 16px 22px; }
.feature__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 0.6vw + 1.1rem, 1.45rem); color: var(--maroon); margin-bottom: 8px; }
.feature__text { font-size: 15.5px; line-height: 1.58; color: var(--muted); margin: 0; }

/* ---------- privacy ---------- */
.privacy { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.privacy__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px var(--pad);
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
}
.privacy__media { margin: 0; justify-self: center; max-width: 300px; }
.privacy__shot {
  width: 100%; border-radius: 32px; padding: 10px; background: #1D1512;
  box-shadow: 0 24px 60px -20px rgba(29,21,18,0.42);
}
.privacy__copy { min-width: 0; }
.privacy__points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.privacy__point { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
.privacy__point::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  border-radius: 4px; background: var(--grad);
}
.privacy__point-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--maroon); margin-bottom: 3px; }

/* ---------- FAQ teaser ---------- */
.faq-teaser { max-width: var(--maxw); margin: 0 auto; padding: 56px var(--pad); }
.faq-teaser__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.faq-teaser__list { margin: 32px 0 0; text-align: left; display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 4px 22px; box-shadow: var(--shadow-card); overflow: hidden;
}
.faq-item__q {
  position: relative; list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--maroon);
  padding: 20px 34px 20px 0; line-height: 1.35;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: ""; position: absolute; right: 2px; top: 24px;
  width: 9px; height: 9px; border-right: 2.2px solid var(--red); border-bottom: 2.2px solid var(--red);
  transform: rotate(45deg); transform-origin: center;
  transition: transform .22s ease;
}
.faq-item[open] .faq-item__q::after { transform: rotate(-135deg); }
.faq-item__a { font-size: 15.5px; line-height: 1.62; color: var(--muted); margin: 0 0 20px; max-width: 62ch; }
.faq-teaser__all {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-weight: 700; font-size: 15.5px; color: var(--red); text-decoration: none;
  transition: gap .18s ease, color .18s ease;
}
.faq-teaser__all:hover { gap: 12px; color: #B02525; }

/* ---------- final CTA ---------- */
.final { padding: 56px var(--pad); }
.final__card {
  position: relative; max-width: 880px; margin: 0 auto; background: var(--grad-action);
  border-radius: var(--r-lg); padding: 40px 24px; text-align: center;
  box-shadow: 0 30px 70px rgba(194,42,42,0.30); overflow: hidden;
}
.final__bubble { position: absolute; top: -80px; right: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.10); }
.final__content { position: relative; }
.final__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 3.2vw + 0.5rem, 2.625rem); letter-spacing: -0.02em; color: #fff; margin-bottom: 24px; line-height: 1.08; }
.final__micro { font-size: 14px; color: rgba(255,255,255,0.88); margin: 18px 0 0; }

.waitlist--invert { margin: 0 auto; }
.waitlist--invert .waitlist__form { gap: 11px; }
.waitlist--invert .waitlist__input { border: none; width: 100%; }
.waitlist__submit--invert { color: var(--red); background: #fff; padding: 15px 28px; font-weight: 700; width: 100%; }
.waitlist__submit--invert:hover { background: #FFF1E9; }
.waitlist__error--invert { color: #fff; font-weight: 600; justify-content: center; padding-left: 0; }
.waitlist__done--invert { display: inline-flex; background: rgba(255,255,255,0.16); border: 1.5px solid rgba(255,255,255,0.4); border-radius: var(--r-pill); padding: 14px 26px; box-shadow: none; }
.waitlist__check--invert { width: 34px; height: 34px; background: #fff; }
.waitlist__done-title--invert { color: #fff; }

/* ---------- footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--border); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 30px var(--pad); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__name { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); }
.footer__copy { font-size: 13px; color: var(--muted-2); margin-left: 8px; }
.footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer__links a { font-size: 14px; color: var(--muted); font-weight: 500; text-decoration: none; }
.footer__links a:hover { color: var(--red); }
.footer__disclaimer { border-top: 1px solid var(--border-2); }
.footer__disclaimer-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad); font-size: 12.5px; color: var(--faint); }

/* ---------- reveal animation (only hides when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { animation: ferrFade .7s ease forwards; }
.reveal--delay.is-in { animation-delay: .08s; }
@keyframes ferrFade { to { opacity: 1; transform: none; } }

/* ===========================================================
   Responsive — mobile-first enhancements
   =========================================================== */

/* ≥480px — roomier padding, side-by-side waitlist form */
@media (min-width: 480px) {
  :root { --pad: 24px; }
  .nav__actions { gap: 14px; }
  .nav__link { display: inline-flex; }
  .waitlist__form { flex-direction: row; gap: 12px; align-items: stretch; }
  .waitlist__input { width: auto; }
  .waitlist__submit { width: auto; }
  .waitlist--invert .waitlist__form {
    background: rgba(255,255,255,0.16); padding: 8px; border-radius: var(--r-pill);
    border: 1px solid rgba(255,255,255,0.25);
  }
  .waitlist__submit--invert { width: auto; }
  .final__card { padding: 48px 40px; }
}

/* ≥768px — two-column hero, 2-up features, two-column privacy */
@media (min-width: 768px) {
  :root { --pad: 40px; }
  .nav__inner { padding-top: 16px; padding-bottom: 16px; }

  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 48px; padding: 72px var(--pad) 80px; }
  .hero__glow--tr { right: -120px; width: 620px; height: 620px; }
  .hero__glow--bl { left: -180px; width: 560px; height: 560px; }

  .empathy__inner { padding: 72px var(--pad); }
  .features { padding: 80px var(--pad); }
  .features__head { margin-bottom: 48px; }
  .features__grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .privacy__inner { grid-template-columns: 300px 1fr; gap: 56px; padding: 80px var(--pad); }
  .privacy__media { justify-self: start; }

  .faq-teaser { padding: 80px var(--pad); }
  .final { padding: 84px var(--pad); }
  .final__card { padding: 56px; }
  .footer__inner { padding: 34px var(--pad); }
}

/* ≥1024px — 4-up features */
@media (min-width: 1024px) {
  :root { --pad: 48px; }
  .features__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .feature__body { padding: 18px 14px 20px; }
  .privacy__inner { grid-template-columns: 340px 1fr; gap: 72px; }
}

/* ≥1280px — cap the container */
@media (min-width: 1280px) {
  :root { --pad: 48px; }
  .nav__inner, .hero__inner, .features, .privacy__inner,
  .faq-teaser, .footer__inner, .footer__disclaimer-inner { max-width: 1200px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .btn, .feature, .store-cta__badge, .faq-item__q::after, .faq-teaser__all { transition: none; }
}
