/* ============================================================
   bodylog.org landing — app layer.
   Loads AFTER tokens.css + base.css. References var(--ds-*) only;
   a literal hex here is a bug (see STANDARDS.md). The only literals
   are dimensions/type-scale, which are not brand values.

   Marketing needs a display type scale and a wider column than the
   app's 960px dashboard cap; both are defined as --lp-* here so the
   canonical tokens stay untouched.
   ============================================================ */
:root {
  --lp-maxw: 1180px;
  --lp-gut: clamp(20px, 5vw, 64px);
  --lp-fs-hero: clamp(38px, 6.4vw, 68px);
  --lp-fs-h2: clamp(28px, 4vw, 42px);
  /* Inverse-of-page banner: flips with the theme because it is built
     from tokens that flip. High contrast in both. */
  --lp-banner-bg: var(--ds-ink);
  --lp-banner-fg: var(--ds-bg);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-size: 17px; }
img { max-width: 100%; display: block; }

/* The landing page owns its own column; undo base.css's app <main>. */
main { max-width: none; padding: 0; }
.wrap { max-width: var(--lp-maxw); margin: 0 auto; padding-inline: var(--lp-gut); }

.eyebrow {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-muted);
  margin: 0 0 14px;
}
h1, h2, h3 { color: var(--ds-ink); letter-spacing: -0.02em; margin: 0; }
h2 { font-size: var(--lp-fs-h2); line-height: var(--ds-lh-tight); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- beta bar ---------- */
.betabar {
  background: var(--lp-banner-bg);
  color: var(--lp-banner-fg);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  letter-spacing: 0.04em;
  padding: 9px var(--ds-space-4);
  text-align: center;
}
.betabar b { font-weight: var(--ds-fw-bold); }

/* ---------- header (base.css .app-header does bg/border/shadow) ---------- */
.site-head .bar {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--lp-maxw); margin: 0 auto;
  padding: 0 var(--lp-gut); height: 64px;
}
.site-head .wordmark { font-size: 21px; text-decoration: none; }
.site-nav { margin-left: auto; display: flex; gap: var(--ds-space-5); }
.site-nav a {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-muted);
  min-height: var(--ds-tap);
  display: inline-flex; align-items: center;
}
.site-nav a:hover { color: var(--ds-link); text-decoration: none; }
@media (max-width: 820px) { .site-nav { display: none; } }

/* ---------- buttons: base.css .btn/.btn--quiet; landing extras ---------- */
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.42; pointer-events: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero .grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: var(--lp-fs-hero); line-height: 0.99; letter-spacing: -0.035em;
  font-weight: var(--ds-fw-semibold); margin: 0 0 22px;
}
.hero h1 em { font-style: normal; color: var(--ds-copper); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ds-text); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--ds-space-3); margin-top: 30px; }
.hero-fine {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  color: var(--ds-muted);
  margin-top: 18px; line-height: 1.7;
}

/* ---------- signature: the day sheet (a card, per the system) ---------- */
.sheet {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-md);
  overflow: hidden;
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--ds-space-4) 20px;
  border-bottom: 1px solid var(--ds-border);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ds-muted);
}
.sheet-head b { color: var(--ds-ink); font-weight: var(--ds-fw-semibold); letter-spacing: 0.04em; }
.sheet-body { padding: 6px 20px 18px; }
.row { padding: 13px 0; border-bottom: 1px dashed var(--ds-border); }
.row:last-child { border-bottom: 0; }
.row-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--ds-font-mono);
  font-size: 12.5px; margin-bottom: var(--ds-space-2);
}
.row-top .name { letter-spacing: 0.09em; text-transform: uppercase; color: var(--ds-muted); }
.row-top .val { color: var(--ds-ink); font-weight: var(--ds-fw-medium); font-variant-numeric: tabular-nums; }
.row-top .val i { font-style: normal; color: var(--ds-muted); }
/* The track is the system's .progress at day-sheet scale. */
.track {
  position: relative; height: 8px;
  background: var(--ds-surface-alt);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
}
.fill {
  display: block; height: 100%;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-copper);
  width: 0; transition: width 1.1s cubic-bezier(0.22, 0.75, 0.3, 1);
}
.fill.hit { background: var(--ds-accent); }
.tick { position: absolute; top: -5px; bottom: -5px; width: 1.5px; background: var(--ds-ink); opacity: 0.55; }
.tick::after {
  content: "target";
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  font-family: var(--ds-font-mono);
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ds-muted);
}
.sheet-foot {
  padding: var(--ds-space-4) 20px;
  background: var(--ds-surface-alt);
  border-top: 1px solid var(--ds-border);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  color: var(--ds-muted); line-height: 1.65;
}
.sheet-foot b { color: var(--ds-link); font-weight: var(--ds-fw-semibold); }
@media (prefers-reduced-motion: reduce) { .fill { transition: none; } }

/* ---------- section frame ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--ds-border); }
.sec-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { color: var(--ds-text); margin-top: 14px; }

/* ---------- idea cards (border + shadow-sm together, house rule) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: var(--ds-space-4);
}
.cards .card { padding: 26px 22px; border-radius: var(--ds-radius-lg); }
.card .n {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  letter-spacing: 0.14em;
  color: var(--ds-link);
  text-transform: uppercase;
  margin-bottom: var(--ds-space-3);
}
.card h3 { margin-bottom: 9px; }
.card p { font-size: 15.5px; color: var(--ds-text); margin: 0; }

/* ---------- capability list ---------- */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px 40px; }
.cap h3 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.cap h3::before { content: ""; width: 16px; height: 1.5px; background: var(--ds-copper); flex: none; }
.cap ul { margin: 0; padding: 0; list-style: none; }
.cap li {
  font-family: var(--ds-font-mono);
  font-size: 12.5px; color: var(--ds-text);
  padding: 5px 0; border-bottom: 1px dotted var(--ds-border);
}
.cap li:last-child { border-bottom: 0; }

/* ---------- roadmap: subtle panel, badge-style tags (border+text, never filled) ---------- */
.roadmap-block {
  background: var(--ds-surface-alt);
  border-top: 1px solid var(--ds-border);
  border-bottom: 1px solid var(--ds-border);
}
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.stage { border-top: 1px solid var(--ds-border); padding-top: 20px; }
.stage .tag {
  display: inline-block;
  font-family: var(--ds-font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--ds-copper); color: var(--ds-link);
  border-radius: var(--ds-radius-sm);
  margin-bottom: 14px;
  background: transparent;
}
.stage .tag.now { border-color: var(--ds-accent); color: var(--ds-accent); }
.stage h3 { margin-bottom: 10px; font-size: 18px; }
.stage p { color: var(--ds-text); font-size: 15px; }
.fineprint {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--ds-border);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  color: var(--ds-muted); line-height: 1.75; max-width: 78ch;
}

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto;
  aspect-ratio: 9 / 19.5;
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  box-shadow: var(--ds-shadow-sm);
  background: var(--ds-surface);
}
.shot figcaption {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  color: var(--ds-muted);
  margin-top: 11px; letter-spacing: 0.03em;
}

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; margin-top: var(--ds-space-2); }
.plan {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-sm);
  padding: 26px 24px;
  display: flex; flex-direction: column;
}
.plan.feature { border-color: var(--ds-copper); box-shadow: 0 0 0 1px var(--ds-copper), var(--ds-shadow-sm); }
.plan .pname {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ds-link); margin-bottom: 14px;
}
.plan .price {
  font-size: var(--ds-fs-kpi); font-weight: var(--ds-fw-semibold);
  color: var(--ds-ink); letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 6px; font-variant-numeric: tabular-nums;
}
.plan .price small { font-size: 14px; font-weight: var(--ds-fw-regular); color: var(--ds-muted); letter-spacing: 0; }
.plan .note { font-size: 14.5px; color: var(--ds-text); margin-bottom: 20px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li { font-size: 14.5px; color: var(--ds-text); padding: 7px 0 7px 20px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 9px; height: 1.5px; background: var(--ds-copper);
}
.billing-note {
  margin-top: var(--ds-space-5);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-fs-xs);
  color: var(--ds-muted); line-height: 1.75; max-width: 76ch;
}

/* ---------- invite form (inputs come from base.css) ---------- */
.invite { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 820px) { .invite { grid-template-columns: 1fr; } }
.field { margin-bottom: var(--ds-space-4); }
.field label {
  font-family: var(--ds-font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ds-muted); margin-bottom: 7px;
}
.field textarea { min-height: 96px; resize: vertical; }
.consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 13.5px; color: var(--ds-text);
  margin: 6px 0 20px;
  font-family: var(--ds-font-body); font-weight: var(--ds-fw-regular);
}
.consent input { margin-top: 4px; flex: none; }
/* Honeypot: absent to humans, present in the DOM for bots. Never display:none
   — some bots skip hidden fields; off-screen still gets filled. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  font-family: var(--ds-font-mono);
  font-size: 12.5px; margin-top: 14px; min-height: 1.4em;
  color: var(--ds-success);
}
.form-status.err { color: var(--ds-warning); }

/* ---------- faq ---------- */
details { border-bottom: 1px solid var(--ds-border); padding: var(--ds-space-4) 0; }
details summary {
  cursor: pointer; font-weight: var(--ds-fw-semibold); font-size: 17.5px;
  color: var(--ds-ink); letter-spacing: -0.01em; list-style: none;
  display: flex; justify-content: space-between; gap: 20px;
  min-height: var(--ds-tap); align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--ds-link); font-family: var(--ds-font-mono); font-weight: var(--ds-fw-regular); }
details[open] summary::after { content: "\2013"; }
details p { margin-top: var(--ds-space-3); color: var(--ds-text); font-size: 15.5px; max-width: 70ch; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ds-surface-alt);
  border-top: 1px solid var(--ds-border);
  color: var(--ds-muted);
  padding: 48px 0 40px;
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.site-foot .wordmark { text-decoration: none; }
.site-foot a { color: var(--ds-link); }
.foot-links { display: flex; gap: var(--ds-space-5); flex-wrap: wrap; font-family: var(--ds-font-mono); font-size: var(--ds-fs-xs); }
.foot-links a { min-height: var(--ds-tap); display: inline-flex; align-items: center; }
.disclaimer {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--ds-border);
  font-family: var(--ds-font-mono);
  font-size: 11.5px; line-height: 1.8; max-width: 86ch;
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---- Wordmark rune -------------------------------------------------------
   ᛘ (U+16D8, long-branch Maðr — "man") drawn as strokes, not typed. The Runic
   block has patchy system-font coverage (Android often has none) and
   STANDARDS forbids remote fonts, so a typed glyph would render as a tofu box
   on the platform the app ships on. Inherits currentColor, so it themes for
   free and needs no dark-mode rule. */
.wordmark { display: inline-flex; align-items: center; gap: 0.06em; }
.wordmark__rune { width: 1em; height: 1em; flex: none; }
