/* jeremylasne.com/wellness: the styles of /wellness and /wellness/details.
   The shell is the landing's (site.css): a 900px column with hairline sides
   over the ocean, the same nav and the same one-line foot, Figtree and Geist Mono. */

/* ── tokens: the landing's ink, blue and ice, plus one colour per sport ── */
:root {
  --ink: #050b16;
  --ink-2: #0b1526;
  --blue: #5fa8d3;
  --ice: #eaf4fb;
  --ice-70: rgba(234, 244, 251, .72);
  --ice-45: rgba(234, 244, 251, .5);
  --ice-20: rgba(234, 244, 251, .2);
  --ice-10: rgba(234, 244, 251, .1);
  --ice-08: rgba(234, 244, 251, .08);
  --good: #6ee7b7;
  --bad: #fb7185;
  --run: #fbbf24;
  --swim: #38bdf8;
  --lift: #f472b6;
  --other: #a78bfa;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* the landing's column and the air inside it */
  --pad: clamp(20px, 6vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body {
  margin: 0; background: var(--ink); color: var(--ice);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--blue); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: riseIn .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }

/* ── the ocean of jeremylasne.com behind everything (/ocean.js): sharks and
   narwhals in characters, faded under the sections ── */
#ocean { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero, main, .page-head, footer { position: relative; z-index: 2; }

/* ── the top of the page ── */
.hero { max-width: 1000px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 20px 0; }
.top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.top a { color: var(--ice-70); text-decoration: none; transition: color .2s; }
@media (hover: hover) { .top a:hover { color: var(--blue); } }
.logbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--ice); color: var(--ink); font: 600 14px/1 var(--sans); letter-spacing: -.01em;
  box-shadow: 0 12px 30px -10px rgba(5, 11, 22, .7); transition: background .2s, transform .25s var(--ease);
}
.logbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) { .logbtn:hover { background: var(--blue); transform: translateY(-1px); } }
.logbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hero-text { padding: clamp(20px, 5vh, 44px) 0 0; }
.phase { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 12px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(110, 231, 183, .6); animation: ping 2s infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 6px rgba(110, 231, 183, 0); } }
h1 { margin: 12px 0 0; font: 600 clamp(40px, 7vw, 60px)/1.02 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.lede { margin: 16px 0 0; max-width: 34em; color: var(--ice-70); font-size: 17px; line-height: 1.5; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ice-70); }
.counts li { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--ice-10); }
.counts b { font-weight: 600; color: var(--ice); font-size: 16px; font-variant-numeric: tabular-nums; }

/* ── page sections: no panels, straight on the ridge ── */
main { max-width: 1000px; margin: 0 auto; padding: 8px 20px 48px; }
.sec { margin-top: 48px; }
/* night and sport side by side once the page is wide enough */
.duo { display: grid; gap: 0 48px; }
@media (min-width: 860px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .duo .sec { margin-top: 32px; } }
.kick { margin: 0; font: 600 12px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
h2 { margin: 8px 0 0; font: 600 clamp(26px, 3.6vw, 32px)/1.15 var(--sans); letter-spacing: -.025em; }
h2 .soft { color: var(--ice-45); }
.note { margin: 12px 0 0; max-width: 40em; color: var(--ice-45); font-size: 14px; line-height: 1.55; }

/* ── last night: big numbers, each against my normal ── */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin-top: 26px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile .k { margin: 0; font-size: 13px; color: var(--ice-45); }
.tile .big { margin: 4px 0 0; font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile .big small { margin-left: 4px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ice-45); }
.tile .vs { margin: 6px 0 0; font-size: 14px; line-height: 1.3; color: var(--ice-45); }
.vs.good { color: var(--good); }
.vs.bad { color: var(--bad); }
.meter { display: grid; grid-template-columns: repeat(32, 1fr); margin-top: 12px; height: 6px; border-radius: 999px; background: var(--ice-10); }
.meter i { min-width: 0; }
.meter i.band { background: rgba(95, 168, 211, .4); }
.meter i.band:first-child, .meter i:not(.band) + i.band { border-radius: 999px 0 0 999px; }
.meter i.band:has(+ i:not(.band)), .meter i.band:last-child { border-radius: 0 999px 999px 0; }
.meter i.me { position: relative; }
.meter i.me::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 3px var(--ink), 0 0 14px rgba(234, 244, 251, .5); }
.night-line { margin: 26px 0 0; font-size: 16px; line-height: 1.4; color: var(--ice-70); }
.night-line b { color: var(--ice); font-weight: 600; }

/* ── charts: one rounded bar per night ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips-k { align-self: center; margin-right: 4px; font-size: 13px; color: var(--ice-45); }
.chip {
  padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer; background: var(--ice-10); color: var(--ice-70);
  font: 500 14px/1 var(--sans); transition: background .2s, color .2s;
}
.chip[aria-pressed="true"] { background: var(--ice); color: var(--ink); }
@media (hover: hover) { .chip:hover:not([aria-pressed="true"]) { background: var(--ice-20); color: var(--ice); } }
.chip:focus-visible, .btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.readout { min-height: 24px; margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--ice-70); font-variant-numeric: tabular-nums; }
.readout b { color: var(--ice); font-weight: 600; }
.chart { position: relative; margin-top: 12px; }
.chart canvas { display: block; width: 100%; touch-action: pan-y; cursor: crosshair; }
.axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; line-height: 1; color: var(--ice-45); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ice-45); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }

/* ── sport ── */
.sports { display: grid; gap: 28px; margin-top: 30px; }
@media (min-width: 560px) { .sports { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .sports { grid-template-columns: repeat(4, 1fr); } }
.sport { position: relative; padding-top: 16px; }
.sport::before, .sess::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 999px; background: var(--c); }
.sport h3 { margin: 0; display: flex; align-items: baseline; justify-content: space-between; font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.sport h3 span { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ice-45); }
.sport dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 14px 0 0; font-size: 14px; }
.sport dt { color: var(--ice-45); }
.sport dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sport .empty { margin: 14px 0 0; font-size: 14px; color: var(--ice-45); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 280px; margin-top: 30px; }
.cal .dow { font-size: 11px; line-height: 1; color: var(--ice-45); text-align: center; padding-bottom: 4px; }
.cal i { aspect-ratio: 1; border-radius: 8px; background: var(--ice-08); position: relative; }
.cal i.off { background: none; }
.cal i.today { box-shadow: inset 0 0 0 2px var(--ice-70); }
.cal i.two::after { content: ""; position: absolute; right: 4px; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

.list { margin: 30px 0 0; padding: 0; list-style: none; }
.list li { display: grid; grid-template-columns: 74px 1fr auto; gap: 4px 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--ice-10); }
.list .when { font-size: 13px; line-height: 1.3; color: var(--ice-45); font-variant-numeric: tabular-nums; }
.list .what { font-size: 14px; color: var(--ice-70); }
.list .what b { font-weight: 600; font-size: 15px; color: var(--c); margin-right: 8px; }
.list .what em { font-style: normal; color: var(--ice-45); }
.list .form { font-size: 18px; font-weight: 600; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.max-t { margin: 30px 0 0; font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.max-t span { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ice-45); margin-left: 6px; }
.sports.maxes { margin: 16px 0 30px; }
.maxes dl { gap: 12px 14px; }
.maxes dt small, .maxes dd small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--ice-45); }
.list .form small { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; line-height: 1; color: var(--ice-45); }
.f-good { color: var(--good); }
.f-mid { color: var(--blue); }
.f-bad { color: var(--bad); }
.f-none { color: var(--ice-20); }

/* ── after sport, or not: two columns ── */
.vs2 { margin-top: 14px; max-width: 820px; }
.vs2-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(7, 84px); gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--ice-10); }
.vs2-row span:not(:first-child) { text-align: right; font-size: 17px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.vs2-row span:first-child { font-size: 14px; color: var(--ice-70); }
.vs2-row.head { border-top: 0; padding-bottom: 6px; }
.vs2-row.lead { padding: 12px 0; }
.vs2-row.lead span:first-child { font-size: 16px; font-weight: 600; color: var(--ice); }
.vs2-row.lead span:first-child small { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: var(--ice-45); }
.vs2-row.lead span:not(:first-child) { font-size: 21px; }
.vs2-row.lead + .vs2-row { border-top-color: var(--ice-45); }
.vs2-row.head span:not(:first-child) { font-size: 14px; line-height: 1.2; color: var(--ice); }
/* on a phone the six columns scroll sideways, the measure names stay readable */
@media (max-width: 520px) { .vs2 { overflow-x: auto; overscroll-behavior-x: contain; } .vs2-row { min-width: 544px; grid-template-columns: minmax(84px, 1fr) repeat(7, 60px); gap: 4px; } .vs2-row span:not(:first-child) { font-size: 13px; } .vs2-row.head span:not(:first-child) { font-size: 12px; } }
.vs2-row.head small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--ice-45); }

/* ── night score, above the four measures ── */
.ns { margin-top: 14px; max-width: 420px; }
.ns .k { margin: 0; font-size: 13px; color: var(--ice-45); }
.ns .big { margin: 4px 0 0; font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ns .big small { margin-left: 6px; font-size: 20px; font-weight: 500; letter-spacing: 0; color: var(--ice-45); }
.ns .vs { margin: 6px 0 0; font-size: 14px; line-height: 1.35; color: var(--ice-45); }
.ns .meter { height: 8px; }
.more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 16px; border-radius: 999px;
  background: var(--ice-10); color: var(--ice); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1;
  transition: color .2s, background .2s, transform .25s var(--ease);
}
@media (hover: hover) { .more:hover { color: var(--blue); background: rgba(234, 244, 251, .17); transform: translateY(-2px); } }
.more:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── the log ── */
.daynav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.daynav p { margin: 0; min-width: 9.5em; text-align: center; font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.step {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ice-10); color: var(--ice-70); transition: background .2s, color .2s;
}
.step:disabled { opacity: .3; cursor: default; }
.step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .step:not(:disabled):hover { background: rgba(234, 244, 251, .17); color: var(--blue); } }
.lock { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.lock form { display: flex; gap: 8px; }
.lock p { margin: 0; font-size: 14px; color: var(--ice-45); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; color: var(--ice-45); }
.in {
  width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--ice-08);
  box-shadow: inset 0 0 0 1px var(--ice-08); font-size: 16px; font-variant-numeric: tabular-nums; transition: box-shadow .2s, background .2s;
}
.in:focus { outline: none; background: var(--ice-10); box-shadow: inset 0 0 0 2px var(--blue); }
.in::placeholder { color: var(--ice-20); }
.in::-webkit-calendar-picker-indicator { filter: invert(.8); }
.btn {
  height: 42px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; background: var(--ice); color: var(--ink);
  font-size: 14px; font-weight: 600; transition: background .2s, color .2s;
}
.btn.ghost { background: var(--ice-10); color: var(--ice-70); }
@media (hover: hover) { .btn:hover { background: var(--blue); color: var(--ink); } }
fieldset { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
fieldset:disabled { opacity: .55; }
fieldset h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
fieldset h3 span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ice-45); margin-left: 6px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.sess { position: relative; margin-top: 20px; padding: 16px 0 0; }
.sess-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sess-head b { font-size: 17px; font-weight: 600; line-height: 1; color: var(--c); }
.sess-head button { flex-shrink: 0; border: 0; background: none; cursor: pointer; color: var(--ice-45); font-size: 13px; padding: 6px 0; }
@media (hover: hover) { .sess-head button:hover { color: var(--bad); } }
.sess-name { margin-top: 10px; }
.ex { margin-top: 16px; padding-left: 12px; border-left: 2px solid var(--ice-10); }
.grid.ex-grid { grid-template-columns: repeat(2, 1fr); }
.ex-k { font-size: 13px; color: var(--ice-45); }
.sess-calc { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--ice-70); min-height: 20px; font-variant-numeric: tabular-nums; }
.adds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.adds .chip { --c: var(--ice); }
.adds .chip::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--c); }
.status { min-height: 20px; margin: 18px 0 0; font-size: 14px; line-height: 1.3; color: var(--ice-45); }
.status.err { color: var(--bad); }

/* ── the log: a panel in the middle, over the dimmed page.
   On a phone it fills the screen but its edges, the title and the close
   button stay on top while the form scrolls under them ── */
dialog.sheet {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; border-radius: 24px; color: inherit;
  width: min(560px, calc(100vw - 24px)); height: fit-content; max-width: none;
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
  background: var(--ink-2); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  box-shadow: 0 0 0 1px var(--ice-08), 0 40px 80px -24px rgba(0, 0, 0, .85);
}
@media (min-height: 760px) and (min-width: 560px) { dialog.sheet { max-height: min(820px, calc(100dvh - 48px)); } }
dialog.sheet[open] { animation: popIn .35s var(--ease); }
dialog.sheet::backdrop { background: rgba(5, 11, 22, .55); backdrop-filter: blur(3px); }
@keyframes popIn { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
html:has(dialog.sheet[open]) { overflow: hidden; }
.sheet-in { padding: 0 20px 28px; }
.sheet-head {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -20px; padding: 16px 20px 12px; background: var(--ink-2);
}
.sheet-head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: linear-gradient(var(--ink-2), transparent); pointer-events: none; }
.sheet-head h2 { margin: 0; font-size: 24px; }
.x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: var(--ice-10); color: var(--ice-70); transition: background .2s, color .2s; }
.x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (hover: hover) { .x:hover { background: rgba(234, 244, 251, .17); color: var(--blue); } }
.x:focus-visible, .step:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sheet .daynav { justify-content: center; margin-top: 8px; }
.sheet .daynav p { min-width: 0; flex: 1; max-width: 12em; }
.sheet .lock form { flex: 1 1 100%; max-width: 380px; }
.sheet .lock .in { flex: 1; }
.sheet .grid { align-items: end; }
.sheet .field span { line-height: 1.25; }
@media (max-width: 559px) {
  .sheet-in { padding: 0 16px 24px; }
  .sheet-head { margin: 0 -16px; padding: 14px 16px 10px; }
  .sheet .grid { gap: 12px; }
  .sheet .chips { gap: 6px; }
}
@media (pointer: coarse) {
  .sheet .chip { padding: 11px 16px; }
  .sheet .step, .sheet .x { width: 44px; height: 44px; }
}

/* ── details: every measure, and every night from bed to wake ── */
.measures { margin-top: 24px; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.measures th, .measures td { padding: 12px 0; border-top: 1px solid var(--ice-10); text-align: right; }
.measures th:first-child, .measures td:first-child { text-align: left; }
.measures thead th { border-top: 0; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ice-45); letter-spacing: .04em; text-transform: uppercase; }
.measures tbody th { font-size: 14px; font-weight: 400; line-height: 1.3; color: var(--ice-70); }
.measures td { font-size: 16px; font-weight: 600; line-height: 1; }
.measures td small { margin-left: 3px; font-size: 12px; font-weight: 400; color: var(--ice-45); }
.measures-wrap { overflow-x: auto; }
@media (max-width: 559px) { .measures .wide { display: none; } }
.back { color: var(--ice-70); text-decoration: none; font-size: 14px; transition: color .2s; }
@media (hover: hover) { .back:hover { color: var(--blue); } }
.page-head { max-width: 1000px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 20px 0; display: flex; justify-content: space-between; align-items: center; }

footer { max-width: 1000px; margin: 0 auto; padding: 28px 20px max(36px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ice-45); border-top: 1px solid var(--ice-10); }
footer a { color: var(--ice-70); text-decoration: none; transition: color .2s; }
@media (hover: hover) { footer a:hover { color: var(--blue); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .phase::before { animation: none; }
  .logbtn, .more { transition: none; }
  dialog.sheet[open] { animation: none; }
}
.bed-axis { margin-left: 38px; }

/* ── details: the AI analysis on top ── */
.ai h1 { font-size: clamp(32px, 5.4vw, 46px); }
.ai h1 .up, .trend.up .d, .finds li.up b { color: var(--good); }
.ai h1 .down, .trend.down .d, .finds li.down b { color: var(--bad); }
.ai-run { margin-left: 8px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--ice-45); }
.ai-lede { margin: 14px 0 0; max-width: 40em; font-size: 16px; line-height: 1.5; color: var(--ice-70); }
.ai-lede b { color: var(--ice); font-weight: 600; }
.trends { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 20px; margin-top: 24px; }
@media (min-width: 560px) { .trends { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .trends { grid-template-columns: repeat(6, 1fr); } }
.trend .k { margin: 0; font-size: 13px; color: var(--ice-45); }
.trend .big { margin: 4px 0 0; font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.trend .big small { margin-left: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ice-45); }
.trend .d { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--blue); }
.wk { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 10px; }
.wk i { flex: 1; height: calc(var(--h) * 1%); border-radius: 3px; background: var(--ice-20); }
.wk i:last-child { background: var(--blue); }
.trend.up .wk i:last-child { background: var(--good); }
.trend.down .wk i:last-child { background: var(--bad); }
.wk-axis { margin: 8px 0 0; font-size: 12px; color: var(--ice-45); }
.finds { margin: 22px 0 0; padding: 0; list-style: none; }
.finds li { display: grid; grid-template-columns: 112px 1fr; gap: 4px 14px; align-items: baseline; padding: 10px 0 10px 14px; border-top: 1px solid var(--ice-10); position: relative; font-size: 14px; line-height: 1.5; color: var(--ice-70); }
.finds li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.finds li.up::before { background: var(--good); }
.finds li.down::before { background: var(--bad); }
.finds b { font-weight: 600; color: var(--blue); }
.finds em { font-style: normal; font-weight: 600; color: var(--ice); }
@media (max-width: 559px) { .finds li { grid-template-columns: 1fr; } }
.next-t { margin: 26px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.next { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--ice-70); }
.next li { padding: 3px 0; }
.next li::marker { color: var(--blue); font-weight: 600; }
.next b { color: var(--good); font-weight: 600; }
/* each link: its strength as a bar and r, then what it means */
.links { margin: 14px 0 0; padding: 0; list-style: none; }
.links li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ice-10); font-size: 14px; line-height: 1.5; color: var(--ice-70); }
.links .r { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; }
.links .r i { display: block; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--c) calc(var(--r) * 1%), var(--ice-10) 0); }
.links .r b { font-size: 18px; font-weight: 600; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.links li { --c: var(--blue); }
.links li.up { --c: var(--good); }
.links li.down { --c: var(--bad); }
.links .t > b { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 600; color: var(--ice); }
.links em { font-style: normal; font-weight: 600; color: var(--c); }
.links small { display: block; margin-top: 3px; font-size: 12px; color: var(--ice-45); }
.ai .finds { margin-top: 18px; }
@media (max-width: 559px) { .links li { grid-template-columns: 64px 1fr; gap: 12px; } }

/* ── the landing's shell: the column, the nav, the foot ── */
.wl-col {
  position: relative; z-index: 2; width: min(100%, 900px); min-height: 100svh; margin-inline: auto;
  background: rgba(5, 11, 22, .72); border-inline: 1px solid var(--ice-10);
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
@media (max-width: 899px) { .wl-col { border-inline: 0; } }
.wl-nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(18px + env(safe-area-inset-top)) var(--pad) 18px; transition: background .3s, box-shadow .3s;
}
.wl-nav.scrolled { background: rgba(5, 11, 22, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--ice-10); }
.wl-links { display: flex; gap: clamp(14px, 3vw, 22px); font-size: 14px; font-weight: 500; }
.wl-links a { color: var(--ice-70); text-decoration: none; white-space: nowrap; transition: color .15s; }
.wl-links a:hover, .wl-links a[aria-current] { color: var(--ice); }
.wl-links a[aria-current] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.wl-mark { font: 500 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; text-decoration: none; color: var(--ice); }
.wl-mark i { font-style: normal; color: var(--blue); margin: 0 .1em; }
@media (max-width: 600px) {
  .wl-nav { flex-wrap: wrap; row-gap: 12px; padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: 14px; }
  .wl-mark { order: -1; width: 100%; }
  .wl-links { gap: 18px; }
}
@media (max-width: 360px) { .wl-links { gap: 12px; font-size: 13px; } }

/* the page inside the column, at the landing's margins */
.hero, main, .page-head, .wl-foot { max-width: none; padding-left: var(--pad); padding-right: var(--pad); }
.hero { padding-top: clamp(20px, 5vw, 48px); }
.hero-text { padding-top: 0; }
.hero h1 { margin: 0; max-width: 18ch; font-size: clamp(32px, 6vw, 46px); line-height: 1.12; font-weight: 400; letter-spacing: -.02em; }
.hero h1 b { font-weight: 800; letter-spacing: -.03em; }
.hero .top { justify-content: flex-start; margin-top: 24px; }
.page-head { padding-top: 12px; }
h2 { font-weight: 700; }
.kick, .phase { font-family: var(--mono); font-weight: 500; letter-spacing: .14em; }
.wl-foot {
  display: flex; justify-content: space-between; align-items: center; margin: 0; padding-top: 32px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ice-10);
  font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ice-45);
}
.wl-foot a { color: var(--ice-45); text-decoration: none; transition: color .15s; }
.wl-foot a:hover { color: var(--ice); }

/* ── the AI analysis, one table: factor, what it impacts, change, signal strength ── */
.corr-tldr { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ice-10); font: 500 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--ice-70); vertical-align: 3px; }
.corr-wrap { margin-top: 14px; }
.corr { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.corr thead th { padding: 0 12px 8px 0; text-align: left; font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ice-45); border-bottom: 1px solid var(--ice-10); }
.corr tbody tr { --c: var(--blue); border-bottom: 1px solid var(--ice-10); }
.corr tbody tr.up { --c: var(--good); }
.corr tbody tr.down { --c: var(--bad); }
.corr tbody th, .corr td { padding: 12px 12px 12px 0; vertical-align: top; text-align: left; }
.corr tbody th { font-weight: 600; color: var(--ice); }
.corr-desc { display: block; margin-top: 2px; max-width: 300px; font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--ice-45); }
.corr-imp { color: var(--ice); white-space: nowrap; }
.corr-tl { color: var(--ice-70); }
.corr-tl em { font-style: normal; font-weight: 700; color: var(--c); }
.corr-n { padding-right: 0 !important; white-space: nowrap; font-size: 12px; color: var(--ice-45); }
.corr-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ice-20); font: 500 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ice-45); }
.corr-tag.is-strong { box-shadow: none; background: rgba(110, 231, 183, .14); color: var(--good); }
/* a phone: each row a short card, the link and r on top, the line under it */
@media (max-width: 640px) {
  .corr thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .corr, .corr tbody { display: block; }
  .corr tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; }
  .corr tbody th, .corr td { padding: 0; }
  .corr tbody th { white-space: normal; align-self: center; }
  .corr-imp { align-self: center; color: var(--ice-70); }
  .corr-tl, .corr-n { grid-column: 1 / -1; }
  .corr-n { margin-top: 2px; }
}

/* the perfect night, simulated under the AI table */
.pn { margin-top: 32px; padding: 20px; border-radius: 16px; background: var(--ice-10); }
.pn-h { margin: 0 0 14px; font: 600 18px/1.3 var(--sans); color: var(--ice); }
.pn-sub { display: block; margin-top: 2px; font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ice-45); }
.pn-steps { margin: 0; padding: 0; list-style: none; }
.pn-steps li { display: grid; grid-template-columns: 90px 1fr; gap: 2px 14px; padding: 10px 0; border-top: 1px solid var(--ice-10); }
.pn-t { grid-row: span 2; font: 600 13px/1.5 var(--mono); color: var(--blue); }
.pn-steps b { font-weight: 600; color: var(--ice); font-size: 14px; }
.pn-w { font-size: 12px; line-height: 1.4; color: var(--ice-45); }
.pn-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.pn-res div { display: flex; flex-direction: column; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ice-20); }
.pn-k { font: 500 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ice-45); }
.pn-res b { margin: 4px 0 2px; font: 700 22px/1.2 var(--sans); color: var(--good); }
.pn-v { font-size: 12px; color: var(--ice-45); }
.pn-real { margin: 14px 0 0; font-size: 13px; color: var(--ice-70); }
@media (max-width: 560px) {
  .pn { padding: 16px; }
  .pn-steps li { grid-template-columns: 64px 1fr; }
  .pn-res { gap: 8px; }
  .pn-res div { padding: 10px; }
  .pn-res b { font-size: 16px; white-space: nowrap; }
  .pn-k { letter-spacing: .06em; }
}

/* the nav icons: a mail for the newsletter, the open-source mark for Personal, money for CreatorMatch */
.links a, .wl-links a { display: inline-flex; align-items: center; gap: 6px; }
.nav-ic { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav-ic-fill { fill: currentColor; stroke: none; }
@media (max-width: 420px) { .links a, .wl-links a { gap: 4px; } .nav-ic { width: 13px; height: 13px; } }
