/* ---------- Tokens ---------- */
:root {
  --bg: #FBFAF7;          /* warm off-white */
  --bg-tint: #F4F1EA;     /* sand */
  --ink: #1B2A3A;         /* deep navy ink */
  --ink-soft: #4A5A6B;
  --ink-mute: #7B8896;
  --line: #E5E0D5;
  --accent: #E07A4B;      /* warm terracotta */
  --accent-soft: #F2C8B0;
  --sky: #6FA3C7;         /* soft cosmic blue */
  --sky-soft: #DCE8F0;
  --dark: #1B2A3A;
  --white: #ffffff;

  --max: 1180px;
  --radius: 14px;
  --radius-sm: 8px;

  --t-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand-word {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s var(--t-ease);
}
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s var(--t-ease), color 0.2s var(--t-ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }
@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--t-ease), background 0.2s var(--t-ease), color 0.2s var(--t-ease), border-color 0.2s var(--t-ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #0f1b27; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-on-dark { background: var(--bg); color: var(--ink); }
.btn-on-dark:hover { background: var(--accent); color: var(--bg); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 122, 75, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(224, 122, 75, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(224, 122, 75, 0.06); }
}
.kicker {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
}
.kicker-light { color: rgba(255,255,255,0.65); }

.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.h2-wide { max-width: 22ch; }
.h2-light { color: var(--white); }
.h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0 0 32px;
}
.body { font-size: 16px; color: var(--ink-soft); margin: 0 0 18px; max-width: 60ch; }
.body-light { color: rgba(255,255,255,0.78); }
.micro { font-size: 13px; color: var(--ink-mute); margin: 16px 0 0; }
.micro a { color: var(--ink); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(111, 163, 199, 0.18), transparent 60%),
    radial-gradient(600px 300px at -5% 110%, rgba(224, 122, 75, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta { font-size: 14px; color: var(--ink-soft); margin: 0; }
.hero-meta strong { color: var(--ink); font-weight: 600; }

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(27,42,58,0.02), 0 24px 48px -24px rgba(27,42,58,0.12);
}
.js .hero-card { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--t-ease), transform 0.7s var(--t-ease); }
.js .hero-card.in { opacity: 1; transform: none; }
.card-eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 18px; }
.dose-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.dose-list li {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.dose-label { color: var(--ink-soft); }
.dose-bar {
  height: 6px;
  background: var(--bg-tint);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.dose-bar > span {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w);
  background: var(--sky);
  border-radius: 999px;
  transform: scaleX(0); transform-origin: left;
  animation: grow 1.1s var(--t-ease) 0.3s forwards;
}
.dose-list li.highlight .dose-bar > span { background: var(--accent); }
.dose-list li.highlight .dose-label,
.dose-list li.highlight .dose-value { color: var(--ink); font-weight: 600; }
.dose-value { font-variant-numeric: tabular-nums; font-size: 14px; }
.dose-value small { color: var(--ink-mute); font-weight: 400; }
.card-foot { font-size: 12px; color: var(--ink-mute); margin: 18px 0 0; }
@keyframes grow { to { transform: scaleX(1); } }

/* ---------- Strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 24px;
}
.strip-num {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.strip-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; max-width: 22ch; }
@media (max-width: 760px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); padding: 28px 24px; gap: 20px 16px; }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.js .section {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.8s var(--t-ease), transform 0.8s var(--t-ease);
}
.js .section.in { opacity: 1; transform: none; }
.section-tint { background: var(--bg-tint); }

.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 16px; }
}
.col-label .kicker { margin-top: 6px; }

.bullets { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; max-width: 60ch; }
.bullets li {
  position: relative; padding-left: 22px;
  font-size: 16px; color: var(--ink-soft);
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 1px; background: var(--accent);
}
.bullets li strong { color: var(--ink); font-weight: 600; }

/* Why grid */
.section-head { max-width: 800px; margin: 0 0 48px; }
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.why-num {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--accent);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.why-text { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
@media (max-width: 880px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--t-ease), box-shadow 0.3s var(--t-ease), border-color 0.3s var(--t-ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -28px rgba(27,42,58,0.18);
  border-color: #d8d2c4;
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--sky-soft);
  color: var(--ink);
  margin-bottom: 18px;
}
.card-body { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ---------- Compare ---------- */
.compare { margin-top: 64px; }
.compare-title { margin-bottom: 18px; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.compare-table th {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  background: var(--bg);
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .row-us { background: rgba(224, 122, 75, 0.06); }
.compare-table .row-us td { color: var(--ink); }
@media (max-width: 720px) {
  .compare-table th:nth-child(2), .compare-table td:nth-child(2) { display: none; }
}

/* ---------- IAC ---------- */
.iac {
  background: linear-gradient(180deg, #1B2A3A 0%, #0f1b27 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.iac::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 320px at 80% 20%, rgba(224, 122, 75, 0.18), transparent 60%),
    radial-gradient(500px 300px at 10% 80%, rgba(111, 163, 199, 0.12), transparent 60%);
  pointer-events: none;
}
.iac-grid {
  display: grid; grid-template-columns: 1.2fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  position: relative;
}
@media (max-width: 820px) { .iac-grid { grid-template-columns: 1fr; } }
.iac-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(6px);
}
.iac-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.iac-row:last-child { border-bottom: 0; }
.iac-row span { color: rgba(255,255,255,0.55); letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.iac-row strong { color: var(--white); font-weight: 500; font-family: 'Fraunces', serif; font-size: 17px; }

/* ---------- Research ---------- */
.research-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px;
}

/* ---------- Waitlist ---------- */
.waitlist { max-width: 760px; margin: 0 auto; text-align: center; }
.waitlist-head { margin-bottom: 32px; }
.waitlist .h2 { margin-left: auto; margin-right: auto; }
.waitlist .body { margin-left: auto; margin-right: auto; }
.waitlist-form {
  display: grid;
  grid-template-columns: 2fr 1.2fr auto;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 999px;
  max-width: 640px;
  margin: 0 auto;
}
.waitlist-form input,
.waitlist-form select {
  border: 0;
  background: transparent;
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.waitlist-form select { color: var(--ink-soft); appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4 L6 8 L10 4' stroke='%237B8896' stroke-width='1.5' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 32px; }
.waitlist-form .btn { padding: 12px 18px; }
@media (max-width: 720px) {
  .waitlist-form { grid-template-columns: 1fr; border-radius: var(--radius); padding: 10px; gap: 8px; }
  .waitlist-form input, .waitlist-form select { border: 1px solid var(--line); border-radius: 999px; }
  .waitlist-form .btn { width: 100%; }
}

/* Honeypot anti-spam field, never visible to humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.waitlist-status {
  min-height: 1.4em;
  margin: 18px auto 0;
  font-size: 14px;
  max-width: 540px;
  text-align: center;
  transition: color 0.2s var(--t-ease);
}
.waitlist-status.is-sending { color: var(--ink-mute); }
.waitlist-status.is-success { color: #2F7A4D; font-weight: 500; }
.waitlist-status.is-error { color: #B33B2A; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
}
.brand-footer { color: var(--ink); }
.footer-tag { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-nav a { font-size: 14px; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-fine { grid-column: 1 / -1; font-size: 12px; color: var(--ink-mute); margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
