/* ==========================================================================
   Beacon — marketing site (mybeaconapp.io)
   Tokens mirror the app's design system (docs/STYLE_GUIDE.md → styles.css :root).
   Never hard-code a colour or radius here; add a token instead.
   ========================================================================== */

/* --- Poppins, self-hosted (privacy-first: no font CDN) -------------------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-latin-600-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  /* Surfaces & text */
  --bg: #0a1120;
  --panel: #101a2e;
  --panel-2: #17223a;
  --elev: #202d48;
  --border: #263353;
  --border-soft: #172236;
  --text: #eef2f9;
  --muted: #93a3bc;
  --faint: #5f6d84;

  /* Accent, brand & status */
  --accent: #2563eb;
  --accent-2: #60a5fa;
  --accent-soft: rgb(37 99 235 / 0.16);
  --brand-a: #1d4ed8;
  --brand-b: #60a5fa;
  --brand-grad: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  --glow: 0 0 24px rgb(37 99 235 / 0.45);
  --mint: #10b981;
  --mint-2: #34d399;
  --mint-soft: rgb(16 185 129 / 0.16);
  --ok: #34d399;
  --bad: #f0616b;
  --warn: #e6a343;

  /* States */
  --hover: rgb(238 242 249 / 0.06);
  --selected: var(--accent-soft);

  /* Theme channels — never write a raw white/black rgba */
  --hairline: 255 255 255;
  --shadow-rgb: 0 0 0;

  /* Radius ladder — everything rounds; nothing is square */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius: 12px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Spacing (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgb(var(--shadow-rgb) / 0.3);
  --shadow: 0 6px 20px rgb(var(--shadow-rgb) / 0.35);
  --shadow-pop: 0 18px 50px rgb(var(--shadow-rgb) / 0.5);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur-fast: 0.12s;
  --dur: 0.18s;

  --focus-ring: 0 0 0 2px rgb(37 99 235 / 0.45);

  /* Layout */
  --page: 1120px;
  --nav-h: 64px;
}

/* --- Base ---------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.grad-text {
  background: linear-gradient(120deg, var(--brand-b), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mint-text {
  color: var(--mint-2);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 100;
  background: var(--elev);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px var(--sp-5);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition:
    background var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn:hover {
  background: #2f6ef0;
  box-shadow: var(--glow);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost:hover {
  background: var(--hover);
  box-shadow: none;
  border-color: var(--elev);
}

.btn.sm {
  padding: 8px var(--sp-4);
  font-size: 14px;
}

/* --- Pills / chips ------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px var(--sp-3);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgb(37 99 235 / 0.28);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.pill.mint {
  background: var(--mint-soft);
  border-color: rgb(16 185 129 / 0.3);
  color: var(--mint-2);
}

.pill.plain {
  background: var(--panel-2);
  border-color: var(--border);
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* --- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgb(10 17 32 / 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--sp-20) 0 var(--sp-16);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -320px;
  left: 50%;
  translate: -50% 0;
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, rgb(37 99 235 / 0.22), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.9rem);
  max-width: 20ch;
  margin: var(--sp-5) auto var(--sp-5);
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 62ch;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.hero-meta {
  margin-top: var(--sp-4);
  color: var(--faint);
  font-size: 13px;
}

.tagline {
  margin-top: var(--sp-10);
  color: var(--faint);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- App window mockup --------------------------------------------------- */
.shot {
  position: relative;
  margin-top: var(--sp-10);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow:
    var(--shadow-pop),
    inset 0 1px 0 rgb(var(--hairline) / 0.06);
  overflow: hidden;
  text-align: left;
}

.shot-titlebar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 38px;
  padding: 0 var(--sp-4);
  background: var(--panel);
  border-bottom: 1px solid var(--border-soft);
}

.shot-title {
  font-size: 13px;
  font-weight: 500;
}

.shot-traffic {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.shot-traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--elev);
}

.shot-body {
  display: grid;
  grid-template-columns: 188px 288px 1fr;
  min-height: 420px;
}

.shot-side {
  border-right: 1px solid var(--border-soft);
  background: var(--panel);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--panel-2);
  border-radius: var(--radius-md);
}

.seg span {
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.seg span.wide {
  grid-column: 1 / -1;
}

.seg span.active {
  background: var(--selected);
  box-shadow: inset 0 0 0 1px rgb(37 99 235 / 0.24);
  color: var(--text);
}

.side-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 var(--sp-2);
}

.acct {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
}

.acct.on {
  background: var(--selected);
  box-shadow: inset 0 0 0 1px rgb(37 99 235 / 0.24);
  color: var(--text);
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex: none;
}

.acct .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--faint);
}

.shot-list {
  border-right: 1px solid var(--border-soft);
  background: var(--bg);
  /* Clip at the column edge. Belt-and-braces with the min-width:0 below: even if some
     future row overflows, it must never paint over the reading pane beside it. */
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--sp-2);
  padding: 10px var(--sp-3);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.row.unread {
  background: rgb(37 99 235 / 0.07);
}

.row.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--brand-grad);
}

.row.sel {
  background: var(--selected);
  box-shadow: inset 0 0 0 1px rgb(37 99 235 / 0.24);
}

/* The text column of a row. A grid child defaults to min-width:auto, which means the
   1fr track grows to its content's intrinsic width instead of shrinking — so the
   subject's text-overflow:ellipsis never engaged and long subjects spilled out of the
   list and across the reading pane. min-width:0 lets the track shrink, which is what
   lets the ellipsis do its job. */
.row > div {
  min-width: 0;
}

.row .from {
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  gap: var(--sp-2);
  align-items: baseline;
  /* Same reason, one level down: keeps a long sender name from pushing the timestamp out. */
  min-width: 0;
}

.row .when {
  margin-left: auto;
  color: var(--faint);
  font-size: 11px;
  font-weight: 400;
  /* Never squeezed or wrapped — a half-rendered timestamp reads as a bug. */
  flex: 0 0 auto;
}

.row .subj {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-read {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--bg);
}

.read-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.read-subj {
  font-size: 15px;
  font-weight: 600;
}

.read-meta {
  font-size: 12px;
  color: var(--faint);
}

.read-card {
  flex: 1;
  background: #fff;
  color: #1b2434;
  border-radius: var(--radius);
  padding: var(--sp-4);
  font-size: 13px;
  line-height: 1.7;
}

.read-card .bar {
  height: 8px;
  border-radius: 3px;
  background: #e6ebf3;
  margin-bottom: 10px;
}

.read-card .bar.w70 {
  width: 70%;
}
.read-card .bar.w90 {
  width: 90%;
}
.read-card .bar.w50 {
  width: 50%;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* --- Section scaffolding ------------------------------------------------- */
section {
  position: relative;
}

.band {
  padding: var(--sp-20) 0;
  border-top: 1px solid var(--border-soft);
}

.band.tight {
  padding: var(--sp-16) 0;
}

.sec-head {
  max-width: 64ch;
  margin-bottom: var(--sp-12);
}

.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

.sec-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin: var(--sp-4) 0 var(--sp-4);
}

.sec-head p {
  color: var(--muted);
  font-size: 17px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* --- Problem strip ------------------------------------------------------- */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.strip-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--sp-5);
}

.strip-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.strip-card p {
  color: var(--muted);
  font-size: 14px;
}

/* --- Feature rows ------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  padding: var(--sp-12) 0;
}

.feature + .feature {
  border-top: 1px solid var(--border-soft);
}

.feature.flip .feature-copy {
  order: 2;
}

.feature h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin: var(--sp-3) 0 var(--sp-4);
}

.feature-copy > p {
  color: var(--muted);
  font-size: 16.5px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.ticks svg {
  margin-top: 5px;
  color: var(--mint-2);
}

/* --- Mini mockups (feature visuals) ------------------------------------- */
.mini {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mini-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-4);
  border-bottom: 1px solid var(--border-soft);
  background: var(--panel-2);
  font-size: 12px;
  color: var(--muted);
}

.mini-head .grow {
  margin-left: auto;
}

.mini-body {
  padding: var(--sp-4);
}

/* calendar */
.cal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.cal .day {
  font-size: 10px;
  color: var(--faint);
  text-align: center;
  padding-bottom: 4px;
}

.cal .cell {
  height: 118px;
  border-radius: var(--radius-xs);
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cal .cell.today {
  background: rgb(37 99 235 / 0.12);
}

.ev {
  font-size: 9.5px;
  line-height: 1.35;
  padding: 3px 5px;
  border-radius: 3px;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* tasks */
.tasks {
  display: grid;
  gap: 4px;
}

.tgroup {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 11px;
  color: var(--muted);
  padding: var(--sp-2) 6px 6px;
}

.tgroup .n {
  color: var(--faint);
}

.trow {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  font-size: 12.5px;
}

.trow .ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
}

.trow.done .ring {
  border-color: var(--ok);
  background: var(--ok);
}

.trow.done span.t {
  color: var(--faint);
  text-decoration: line-through;
}

.trow .meta {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* search palette */
.sbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 9px 12px;
  margin-bottom: var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  font-size: 13px;
  color: var(--text);
}

.sbar .caret {
  width: 1.5px;
  height: 14px;
  background: var(--accent-2);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sbar .caret {
    animation: none;
  }
}

.trow .kind {
  color: var(--accent-2);
}

/* note editor */
.note-line {
  height: 9px;
  border-radius: 3px;
  background: var(--panel-2);
  margin-bottom: 9px;
}

.note-h {
  height: 14px;
  width: 46%;
  border-radius: 3px;
  background: var(--elev);
  margin-bottom: var(--sp-3);
}

.note-check {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.note-check i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1.5px solid var(--border);
  flex: none;
}

.note-check.on i {
  background: var(--accent);
  border-color: var(--accent);
}

.slash {
  margin-top: var(--sp-3);
  border: 1px solid var(--border);
  background: var(--elev);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  width: 60%;
}

.slash div {
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  color: var(--muted);
}

.slash div.on {
  background: var(--selected);
  color: var(--text);
}

/* momentum heatmap */
.heat {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
}

.heat i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--panel-2);
}

.heat i.l1 {
  background: rgb(16 185 129 / 0.25);
}
.heat i.l2 {
  background: rgb(16 185 129 / 0.5);
}
.heat i.l3 {
  background: rgb(16 185 129 / 0.8);
}

.streak {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.streak .num {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--mint-2);
}

.streak .lab {
  font-size: 12px;
  color: var(--muted);
}

/* home cards */
.homecards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.hcard {
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
}

.hcard h4 {
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
  font-weight: 600;
}

.hcard .line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 3px 0;
}

.hcard .time {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* --- Privacy grid ------------------------------------------------------- */
.privacy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}

.pcard {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--sp-6);
}

.pcard .ico {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  color: var(--mint-2);
  margin-bottom: var(--sp-4);
}

.pcard h3 {
  font-size: 16px;
  margin-bottom: var(--sp-2);
}

.pcard p {
  color: var(--muted);
  font-size: 14.5px;
}

/* --- FAQ ---------------------------------------------------------------- */
.faq {
  display: grid;
  gap: var(--sp-3);
  max-width: 800px;
}

details {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
}

details[open] {
  border-color: var(--border);
}

summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '';
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate var(--dur) var(--ease);
  flex: none;
}

details[open] summary::after {
  rotate: -135deg;
  translate: 0 2px;
}

details p {
  color: var(--muted);
  font-size: 15px;
  margin-top: var(--sp-3);
}

/* --- Final CTA ---------------------------------------------------------- */
.final {
  text-align: center;
  padding: var(--sp-20) 0;
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.final::before {
  content: '';
  position: absolute;
  bottom: -420px;
  left: 50%;
  translate: -50% 0;
  width: 820px;
  height: 620px;
  background: radial-gradient(closest-side, rgb(37 99 235 / 0.18), transparent 70%);
  pointer-events: none;
}

.final-inner {
  position: relative;
}

.final h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin: var(--sp-5) auto var(--sp-4);
  max-width: 24ch;
}

.final p {
  color: var(--muted);
  max-width: 54ch;
  margin-inline: auto;
}

/* --- Footer ------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--sp-8) 0;
  color: var(--faint);
  font-size: 13.5px;
}

.foot-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.foot-links {
  margin-left: auto;
  display: flex;
  gap: var(--sp-5);
}

footer a {
  color: var(--muted);
}

/* --- Reveal on scroll ---------------------------------------------------
   Opt-in: content is visible by default and only hidden once the script has
   confirmed it can reveal it again (`html.js-reveal`). No JS, no
   IntersectionObserver, or a script error → the page still reads normally. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.js-reveal .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 940px) {
  .feature {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .feature.flip .feature-copy {
    order: 0;
  }
  .shot-body {
    grid-template-columns: 150px 1fr;
    min-height: 0;
  }
  .shot-read {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --sp-20: 56px;
    --sp-16: 44px;
  }
  .nav-links a {
    display: none;
  }
  .nav-links .btn {
    display: inline-flex;
  }
  .shot-body {
    grid-template-columns: 1fr;
  }
  .shot-side {
    display: none;
  }
  .homecards,
  .cal {
    grid-template-columns: 1fr 1fr;
  }
  /* 5 day headers + 5 cells are children of .cal — keep the first four cells (2×2). */
  .cal .day,
  .cal .cell:nth-child(n + 10) {
    display: none;
  }
}

/* Review mockup: a completed row's tick reads mint, and the reflect prompt is a quiet
   full-width line rather than a task row. */
.trow .kind.ok {
  color: var(--ok);
}
.trow.prompt {
  grid-template-columns: 1fr;
  background: none;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-style: italic;
}
