/* Toa Health, landing page.
 *
 * Section rhythm follows the Eldercare Log pacing named in the brief:
 * hero, founder, three pillars, how it works, pricing, FAQ, closing CTA.
 * The layout mechanics underneath (12-column deck, card head/body/foot,
 * token-driven spacing) are the Savage Ops ones.
 *
 * Only shared primitives live in base.css. This file positions.
 */

/* -------------------------------------------------- pre-launch strip */

/* Sits above the sticky header, in normal flow, so it scrolls away once
   read rather than eating viewport for the whole visit. Deliberately not
   dismissible: it is a truth-in-advertising notice, not a cookie bar. */
.prelaunch {
  background: var(--watch-tint);
  border-bottom: 1px solid rgba(196, 136, 31, 0.35);
  color: var(--watch-ink);
}
.prelaunch-inner {
  display: flex; align-items: baseline; gap: var(--s3);
  padding-block: 10px;
}
.prelaunch-tag {
  flex: none;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(196, 136, 31, 0.18);
  font-size: 11.5px; font-weight: 620;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.prelaunch p {
  margin: 0; max-width: 80ch;
  font-size: 13.5px; line-height: 1.5;
}
.prelaunch a { color: var(--watch-ink); text-underline-offset: 2px; }
.prelaunch a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .prelaunch-inner { flex-direction: column; gap: 6px; }
}

/* -------------------------------------------------------- site head */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.site-head[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(46, 40, 35, 0.04);
}

.site-head-inner {
  display: flex; align-items: center; gap: var(--s5);
  padding-block: var(--s3);
}

.site-nav { display: flex; gap: var(--s5); margin-left: auto; }
.site-nav a {
  font-size: 14.5px; color: var(--ink-2); text-decoration: none;
  padding-block: 4px;
  border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.site-head-actions { display: flex; align-items: center; gap: var(--s2); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  padding: 11px 9px;
  background: transparent; border: 1px solid var(--border-2);
  border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.8px; background: var(--ink-2); border-radius: 2px;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4) var(--s5) var(--s5);
  border-top: 1px solid var(--border);
  background: var(--canvas);
}
.mobile-nav a {
  padding: 10px 0; color: var(--ink-2); text-decoration: none; font-size: 16px;
}
.mobile-nav a.btn { color: #fff; margin-top: var(--s2); }

@media (max-width: 900px) {
  .site-nav, .site-head-actions { display: none; }
  .nav-toggle { display: block; }
}

/* -------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
/* A single soft warm wash behind the hero. Replaces the Savage Ops
   scanline/sweep backdrop: same job, opposite temperature. */
.hero::before {
  content: "";
  position: absolute; inset: -30% -20% auto -20%; height: 140%;
  background:
    radial-gradient(48% 42% at 22% 18%, rgba(176, 86, 58, 0.09), transparent 70%),
    radial-gradient(40% 40% at 82% 30%, rgba(90, 110, 82, 0.08), transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 { margin-bottom: var(--s4); }
.hero-copy .lede { margin-bottom: var(--s6); }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s4); }
.hero-fine { max-width: 42ch; }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
}

/* ------------------------------------------------- hero preview card */

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-0.5deg);
}

.preview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.preview-day  { font-weight: 620; font-size: 15px; }
.preview-date { color: var(--ink-3); font-size: 14px; margin-left: 6px; }

.preview-log { padding: var(--s2) 0; }
.preview-log li {
  display: grid;
  grid-template-columns: 46px 22px 1fr auto;
  align-items: center;
  gap: var(--s2);
  padding: 11px var(--s5);
  font-size: 14px;
}
.preview-log li + li { border-top: 1px solid var(--surface-2); }
.pl-time { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pl-text { color: var(--ink-2); }

/* Entry kind is carried by a dot plus the label text beside it, so the
   color is never the only thing saying what kind of entry this is. */
.pl-icon { width: 9px; height: 9px; border-radius: 50%; }
.pl-icon[data-kind="glucose"]  { background: var(--accent); }
.pl-icon[data-kind="med"]      { background: var(--sage); }
.pl-icon[data-kind="dialysis"] { background: #7a6a92; }
.pl-icon[data-kind="note"]     { background: var(--series); }

.preview-foot {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px; color: var(--ink-3);
}
.preview-avatars { display: flex; }
.av {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 620; color: #fff;
  border: 2px solid var(--surface-2);
}
.av + .av { margin-left: -9px; }
.av-1 { background: #a4674c; }
.av-2 { background: #6d7f63; }
.av-3 { background: #8a7183; }

/* ----------------------------------------------------------- founder */

.founder { background: var(--surface-2); }

.founder-quote { margin: 0; }
.founder-quote blockquote {
  margin: 0 0 var(--s5);
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.58;
  color: var(--ink);
  letter-spacing: -0.008em;
}
.founder-quote blockquote p { max-width: none; }
.founder-quote blockquote p:first-child::before { content: "\201C"; }
.founder-quote blockquote p:last-child::after   { content: "\201D"; }
.founder-quote em { font-style: italic; }

.founder-quote figcaption { display: flex; align-items: baseline; gap: var(--s3); }
.fq-name { font-weight: 620; }
.fq-role { color: var(--ink-3); font-size: 14.5px; }
.fq-name::before {
  content: ""; display: inline-block;
  width: 26px; height: 1.5px; background: var(--accent);
  vertical-align: middle; margin-right: 12px;
}

/* ----------------------------------------------------------- pillars */

.pillar .card-body { padding: var(--s6) var(--s5); }
.pillar-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: var(--s4);
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  color: var(--accent);
}
.pillar h3 { margin-bottom: 6px; }
.pillar-stop {
  margin-bottom: var(--s3);
  font-weight: 560;
  color: var(--accent-dk);
  font-size: 15px;
}
.pillar p:last-child { color: var(--ink-2); font-size: 15px; }

/* ------------------------------------------------------ how it works */

.steps { list-style: none; margin: 0; padding: 0; }

.step {
  position: relative;
  padding: var(--s5) 0 0;
  border-top: 2px solid var(--border);
}
.step-num {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  margin-bottom: var(--s4);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px; font-weight: 620;
}
.step h3 { margin-bottom: var(--s2); }
.step p { color: var(--ink-2); font-size: 15px; margin-bottom: 0; }

.how-note {
  margin-top: var(--s6);
  padding-left: var(--s4);
  border-left: 2px solid var(--accent);
}

/* ----------------------------------------------------------- pricing */

.pricing { background: var(--surface-2); }

.pricing-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 880px) { .pricing-wrap { grid-template-columns: 1fr; } }

.price-card { box-shadow: var(--shadow); border-radius: var(--r-lg); }
.price-card .card-body { padding: var(--s6); }

.price-label { font-weight: 620; color: var(--ink-2); margin-bottom: var(--s2); }
.price { display: flex; align-items: baseline; gap: var(--s2); margin-bottom: 6px; }
.price-amount {
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 640; letter-spacing: -0.03em;
  color: var(--ink);
}
.price-period { color: var(--ink-3); font-size: 16px; }
.price-sub { color: var(--ink-3); font-size: 14.5px; margin-bottom: var(--s5); }

.price-list { margin-bottom: var(--s6); }
.price-list li { font-size: 15px; }

.price-fine { margin-top: var(--s3); text-align: center; }

.price-aside h3 { margin-bottom: var(--s2); }
.price-aside h3 + p { color: var(--ink-2); }
.price-aside h3 ~ h3 { margin-top: var(--s5); }

/* --------------------------------------------------------------- faq */

.faq-list { max-width: 820px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.8vw, 19px);
  font-weight: 560;
  letter-spacing: -0.012em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  /* Rotate about the centre only. Translating after a rotate moves the
     caret along the rotated axes, which throws the open state off. */
  transform: rotate(45deg);
  margin-top: -5px;
  transition: transform 200ms var(--ease), margin-top 200ms var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq-item summary:hover { color: var(--accent-dk); }

.faq-answer { padding-bottom: var(--s5); }
.faq-answer p { color: var(--ink-2); }

/* The not-medical-advice answer is the one the brief says never to
   soften, so it is also the one that does not get to look like filler. */
.faq-legal .faq-answer {
  padding: var(--s4) var(--s5) var(--s5);
  margin-bottom: var(--s5);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--accent-tint);
}
.faq-legal .faq-answer p { color: var(--ink); }

/* ---------------------------------------------------------- cta band */

.cta-band {
  padding-block: clamp(64px, 9vw, 112px);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(176, 86, 58, 0.10), transparent 70%),
    var(--canvas);
  border-top: 1px solid var(--border);
}
.cta-inner { text-align: center; }
.cta-inner h2 { margin-bottom: var(--s4); }
.cta-inner .lede { margin-inline: auto; margin-bottom: var(--s6); }
.cta-inner .fine { margin-top: var(--s4); }

/* -------------------------------------------------------- site foot */

.site-foot {
  padding-block: var(--s7) var(--s6);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.foot-top {
  display: flex; justify-content: space-between; gap: var(--s6);
  flex-wrap: wrap;
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--border-2);
}
.foot-brand .fine { margin-top: 6px; max-width: 44ch; }
.foot-links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover { color: var(--accent-dk); text-decoration: underline; }

.foot-legal { margin-top: var(--s5); max-width: 72ch; }
.foot-meta { margin-top: var(--s4); color: var(--ink-3); }
