/* ═══════════════════════════════════════════════════════════════════════
   Lodestead — marketing site.

   Direction: "Signal". The product's job is that a due thing ends up in
   your eyeline, so the page is built the same way: a quiet warm paper,
   flat surfaces separated by hairlines, and exactly one colour that is
   allowed to shout. Nothing is decorated; the only recurring device is
   the week band, and it encodes the week rather than ornamenting it.

   Deliberately not here: backdrop blur, pastel gradient blooms, pill
   buttons, uniform drop shadows, and stroked 24px icons — the stack that
   makes every family-calendar site look like every other one.
   ══════════════════════════════════════════════════════════════════════ */

/* ── type ────────────────────────────────────────────────────────────── */
/* Self-hosted so the first paint owes nothing to a third-party origin —
   which also keeps the "no third-party anything" claim on /privacy true. */
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 75% 112%;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/hanken-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}

:root {
  --paper:     #F4F2ED;
  --paper-2:   #EAE7DF;
  --card:      #FCFBF8;
  --ink:       #17150F;
  --ink-2:     #58534A;
  --ink-3:     #6E6A5E;   /* darkened from #8B8578: the old tone was 3.1:1 on paper */
  --rule:      #D8D3C7;
  --rule-soft: #E6E2D8;
  --signal:    #D33F17;   /* tuned until white button text clears 4.5:1 */
  --signal-deep: #A32E0C;

  /* week-band inks — the four households colours, deepened to sit on paper */
  --w1: #C8503C; --w2: #2F6FA8; --w3: #3B8C68; --w4: #BE8226;

  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gap: clamp(20px, 4vw, 34px);
  --sec: clamp(64px, 9vw, 128px);
  --r: 4px;
}

* { margin: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* Horizontal only, and in logical properties: `.wrap` and `section` have
   different specificities, so a shorthand here silently deleted every
   section's vertical padding the first time round. */
.wrap { max-width: 1140px; margin-inline: auto; padding-inline: var(--gap); }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1140px; margin: 0 auto; padding: 18px var(--gap);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 19px; font-weight: 700; font-stretch: 92%;
  letter-spacing: -.015em;
}
.brand svg { width: 24px; height: 24px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 12px; font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  transition: color .14s;
}
.nav-links a:hover { color: var(--ink); }
.nav-rule { border-bottom: 1px solid var(--rule); }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--r);
  font-size: 16px; font-weight: 600; letter-spacing: -.005em;
  cursor: pointer; transition: background .14s, color .14s, border-color .14s;
  border: 1px solid transparent;
}
.btn.primary { background: var(--signal); color: #fff; }
.btn.primary:hover { background: var(--signal-deep); }
.btn.ghost { border-color: var(--rule); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.lg { padding: 16px 30px; font-size: 17.5px; }
.btn.block { width: 100%; }
.btn.on-ink { background: var(--paper); color: var(--ink); }
.btn.on-ink:hover { background: #fff; }
@media (max-width: 700px) { .nav-links .hide-sm { display: none; } }
/* On a phone the nav CTA is three inches above the hero CTA, so it earns no
   room: it shrinks to a label that fits on one line. */
@media (max-width: 560px) {
  .nav { padding: 14px var(--gap); }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 9px 8px; font-size: 15px; }
  .nav-links .btn { padding: 10px 14px; font-size: 15px; white-space: nowrap; }
  .nav-links .btn .nav-cta-long { display: none; }
}

/* ── headings ────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; }
h1 {
  font-size: clamp(44px, 9.2vw, 104px);
  font-stretch: 86%;
  line-height: .95;
  text-wrap: balance;
}
h2 {
  font-size: clamp(29px, 5.4vw, 54px);
  font-stretch: 90%;
  line-height: 1.02;
  text-wrap: balance;
}
h3 { font-size: 20px; font-stretch: 96%; letter-spacing: -.02em; }
.lede { font-size: clamp(17.5px, 2.1vw, 21px); color: var(--ink-2); max-width: 54ch; }
.lede b, .lede strong { color: var(--ink); font-weight: 600; }

section { padding-block: var(--sec); }

/* ── tiles ─────────────────────────────────────────────────────────────
   One claim per screen, centred, with the photograph carrying the rest.
   The long-form sections this replaced said the same things in 500 words. */
.tile { text-align: center; padding-block: clamp(74px, 11vw, 148px); }
.tile.alt { background: #FFFDFA; }
.tile h1, .tile h2 { margin-inline: auto; max-width: 15ch; }
.tile h2 { font-size: clamp(38px, 7vw, 78px); font-stretch: 88%; line-height: .98; }
.tile-sub {
  margin: clamp(14px, 2vw, 22px) auto 0;
  max-width: 30ch;
  font-size: clamp(19px, 2.7vw, 28px);
  line-height: 1.28; letter-spacing: -.015em; color: var(--ink-2);
}

.links {
  display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center;
  margin-top: clamp(20px, 3vw, 30px);
}
.link {
  color: var(--signal-deep); font-size: clamp(17px, 2vw, 21px); font-weight: 500;
  cursor: pointer; background: none; border: 0; padding: 0;
  transition: opacity .14s;
}
.link span { display: inline-block; transition: transform .16s; margin-left: 2px; }
.link:hover span { transform: translateX(3px); }
.link.on-ink { color: #E8A88E; }

.fineprint { margin-top: 18px; font-size: 15px; color: var(--ink-3); }

.shot { margin-top: clamp(38px, 6vw, 72px); }
.shot img { width: 100%; border-radius: 10px; }
.shot.bleed { max-width: 1240px; margin-inline: auto; }
.tile.alt .shot img { border: 1px solid var(--rule); }

/* ── wall mode tile ──────────────────────────────────────────────────── */
.spotlight {
  color: var(--paper);
  background-color: var(--ink);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 62% center;
  background-image:
    linear-gradient(100deg, rgba(23, 21, 15, .93) 0%, rgba(23, 21, 15, .8) 46%, rgba(23, 21, 15, .5) 100%),
    url('/shots/wall-night.jpg');
  background-image:
    linear-gradient(100deg, rgba(23, 21, 15, .93) 0%, rgba(23, 21, 15, .8) 46%, rgba(23, 21, 15, .5) 100%),
    image-set(url('/shots/wall-night.avif') type('image/avif'), url('/shots/wall-night.jpg') type('image/jpeg'));
}
.spotlight .tile-sub { color: #B9B2A4; }
@media (max-width: 820px) {
  .spotlight {
    background-image:
      linear-gradient(180deg, rgba(23, 21, 15, .93) 0%, rgba(23, 21, 15, .86) 100%),
      url('/shots/wall-night.jpg');
    background-image:
      linear-gradient(180deg, rgba(23, 21, 15, .93) 0%, rgba(23, 21, 15, .86) 100%),
      image-set(url('/shots/wall-night.avif') type('image/avif'), url('/shots/wall-night.jpg') type('image/jpeg'));
  }
}

/* ── pricing ─────────────────────────────────────────────────────────── */
.price-lead { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .price-lead { grid-template-columns: 1fr; } }
.included { list-style: none; padding: 0; margin: 0; }
.included li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 0; border-top: 1px solid var(--rule-soft);
  font-size: 16.5px;
}
.included li:last-child { border-bottom: 1px solid var(--rule-soft); }
.included li svg { flex: none; width: 13px; height: 13px; margin-top: 7px; color: var(--signal); }
.price-box { border: 1px solid var(--ink); border-radius: var(--r); padding: clamp(26px, 3.4vw, 38px); background: var(--card); }
.price-box .plan {
  font-family: var(--display); font-size: 11px; font-weight: 700; font-stretch: 105%;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.price-box .amount {
  font-family: var(--display); font-weight: 700; font-stretch: 86%;
  font-size: clamp(56px, 9vw, 92px); line-height: .9; letter-spacing: -.045em;
  margin: 16px 0 6px;
}
.price-box .amount span { font-family: var(--body); font-size: 19px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.price-box .alt { font-size: 16px; color: var(--ink-2); }
.price-box .alt b { color: var(--ink); font-weight: 600; }
.price-box .btn { margin-top: 26px; }
.trial-note { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); text-align: center; }

/* ── faq ─────────────────────────────────────────────────────────────── */
/* Answers stay in the DOM and on screen: an answer engine cannot quote a
   paragraph that only exists after a click. */
.faq h2 { max-width: 18ch; }
.faq-list { margin-top: clamp(30px, 4vw, 52px); display: grid; gap: 0; }
.faq-item {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(20px, 4vw, 56px);
  padding: 30px 0; border-top: 1px solid var(--rule-soft);
}
.faq-item:last-child { border-bottom: 1px solid var(--rule-soft); }
.faq-item h3 { letter-spacing: -.022em; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.18; }
.faq-item p { color: var(--ink-2); font-size: 16.5px; }
@media (max-width: 800px) { .faq-item { grid-template-columns: 1fr; gap: 10px; } }

/* ── closing call ────────────────────────────────────────────────────── */

/* ── footer ──────────────────────────────────────────────────────────── */
footer { padding-block: 56px 48px; border-top: 1px solid var(--rule); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }
.foot-legal { margin-top: 24px; font-size: 13.5px; color: var(--ink-3); }

/* ── install sheet (js/install.js) ───────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(23, 21, 15, .5); z-index: 40; }
.sheet {
  position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(430px, calc(100vw - 32px)); max-height: 86vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--ink); border-radius: var(--r); padding: 28px;
}
.sheet h3 { font-size: 23px; }
.sheet ol { margin: 20px 0 0; padding-left: 0; list-style: none; display: grid; gap: 15px; counter-reset: s; }
.sheet li { display: flex; gap: 14px; font-size: 16px; counter-increment: s; }
.sheet li::before {
  content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 2px;
  background: var(--signal); color: #fff; font-family: var(--display);
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.sheet .close {
  position: absolute; top: 18px; right: 18px; width: 32px; height: 32px;
  border-radius: 2px; display: grid; place-items: center; border: 1px solid var(--rule);
}

/* ── legal + long-form pages ─────────────────────────────────────────── */
.doc { max-width: 720px; margin-inline: auto; padding: clamp(48px, 7vw, 80px) var(--gap) 20px; }
.doc h1 { font-size: clamp(34px, 6vw, 58px); margin-bottom: 10px; }
.doc .updated { color: var(--ink-3); font-size: 14.5px; margin-bottom: 36px; }
.doc h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 38px 0 10px; letter-spacing: -.022em; }
.doc h3 { margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; margin-bottom: 13px; }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .note { background: var(--paper-2); border-left: 2px solid var(--signal); padding: 18px 20px; }
.doc .note p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
.doc th { text-align: left; font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 8px 0; border-bottom: 1px solid var(--rule); }
.doc td { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); vertical-align: top; }
