/* Content pages (comparison, articles). Same Ember tokens as the home page. */
:root {
  --night: #080404; --night-2: #110908; --ember: #f5523d; --dim-ember: rgba(245, 82, 61, .88);
  --begin: #963326; --begin-hover: #a83a2c;
  --text: #ffdbd1; --sub: rgba(255, 219, 209, .78); --muted: rgba(255, 219, 209, .6); --faint: rgba(255, 219, 209, .55);
  --card: rgba(255, 255, 255, .045); --edge: rgba(245, 82, 61, .16); --line: rgba(255, 219, 209, .1);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(ellipse 70% 420px at 70% 0, rgba(140, 20, 15, .22), transparent 70%) no-repeat, var(--night); color: var(--sub); font: 18px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration-color: rgba(245, 82, 61, .6); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
button, input { font: inherit; color: inherit; }

.top { width: min(720px, 100% - 32px); margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.top .join { font-size: 15px; color: var(--muted); text-decoration: none; }
.top .join:hover { color: var(--text); }
.crumbs { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

article { width: min(720px, 100% - 32px); margin: 0 auto; padding: 32px 0 64px; }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ember); margin: 0 0 14px; }
h1, h2, h3 { color: var(--text); margin: 0; }
h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 7vw, 52px); line-height: 1.1; letter-spacing: -.015em; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4.6vw, 32px); line-height: 1.2; margin: 56px 0 16px; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 40px 0 8px; }
p, ul, ol { margin: 0 0 22px; }
article > p, article > ul, article > ol { max-width: 66ch; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 8px; }
li::marker { color: var(--dim-ember); }
strong { color: var(--text); font-weight: 600; }
.dek { font-size: 20px; color: var(--sub); margin: 18px 0 0; }
.byline { margin: 22px 0 0; font-size: 14px; color: var(--faint); }

/* Quick answer box at the top of articles */
.answer { margin: 32px 0 8px; padding: 22px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--edge); }
.answer p:last-child, .answer ol:last-child, .answer ul:last-child { margin-bottom: 0; }
.answer .label, .toc-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ember); margin-bottom: 8px; }
.answer .beta { margin-top: 14px; font-size: 16px; color: var(--muted); }
.answer .diffs { list-style: none; padding: 0; margin: 4px 0 16px; }
.answer .diffs li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.answer .diffs li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px rgba(245, 82, 61, .6); }

/* For readers who are awake right now: the shortest useful thing, first. */

/* Citations: small, quiet, and easy to find when tapped. */
sup { font-size: .7em; line-height: 0; vertical-align: super; }
a sup, sup a { text-decoration: none; color: var(--ember); padding: 0 1px; }
a:has(> sup) { text-decoration: none; padding: 6px 3px; margin: -6px -1px; }
.sources li:target { background: rgba(245, 82, 61, .1); border-radius: 6px; }

.toc-label { margin: 36px 0 4px; }
.toc { margin: 0; padding: 0; list-style: none; font-size: 16px; }
.toc li { margin: 0; border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: block; padding: 10px 0; text-decoration: none; color: var(--sub); }
.toc a:hover { color: var(--text); }

/* Tables scroll sideways on narrow phones instead of squeezing. */
.table { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
/* On phones: keep the row labels in view, and fade the right edge so it's clear the table scrolls. */
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { padding: 13px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
tbody th { font-weight: 500; color: var(--muted); }
td { color: var(--sub); }
.us { color: var(--text); background: rgba(245, 82, 61, .07); }
thead small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); }
thead .us { color: var(--ember); }
.table-note { font-size: 13px; color: var(--faint); }

.verdict { padding: 18px 22px; border-left: 2px solid var(--ember); background: rgba(245, 82, 61, .05); border-radius: 0 14px 14px 0; }
.verdict p:last-child { margin: 0; }

.sources { font-size: 14px; color: var(--muted); }
.sources li { margin-bottom: 6px; scroll-margin-top: 24px; }

/* Call to action card. One per page section, same action as the home page. */
.cta { margin: 48px 0; padding: 28px 26px; border-radius: 24px; background: radial-gradient(ellipse 80% 90% at 90% 0%, rgba(245, 82, 61, .2), transparent 70%), var(--night-2); border: 1px solid var(--edge); }
.cta h2 { margin: 0 0 8px; font-size: 26px; }
.cta p { margin: 0; }
.cta form { display: flex; gap: 10px; margin-top: 18px; }
.cta input[type=email] { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(255, 219, 209, .2); background: rgba(255, 255, 255, .06); font-size: 17px; }
.cta input::placeholder { color: var(--faint); }
.button { height: 56px; padding: 0 24px; border: 1px solid rgba(255, 219, 209, .14); border-radius: 99px; background: var(--begin); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: 0 0 28px rgba(245, 82, 61, .2); }
.button:hover { background: var(--begin-hover); }
.cta .terms { margin-top: 12px; font-size: 14px; color: var(--muted); }
.cta .terms b { color: var(--sub); font-weight: 600; }
.cta .done { display: none; margin-top: 14px; color: var(--text); }
.cta .error { margin-top: 10px; font-size: 15px; color: var(--text); }
.cta .error:empty, .cta.is-done .error { display: none; }
.cta.is-done form, .cta.is-done .terms { display: none; }
.cta.is-done .done { display: block; }

.disclaimer { margin-top: 40px; font-size: 14px; color: var(--faint); }

/* Crisis line: set apart so it can't be skimmed past. */
.help { padding: 16px 20px; border-radius: 16px; border: 1px solid var(--edge); background: rgba(245, 82, 61, .05); color: var(--text); }

.founder { margin: 48px 0; }
.founder p:first-child { text-indent: -.4em; }
.founder p { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--text); }
.founder .sig { margin-top: 14px; font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* A breathing glow at the app's rhythm: about 4 seconds in, 5 out. Starts paused. */
.breathe { position: relative; margin: 28px 0; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #0a0404; }
.breathe .orb { position: absolute; left: 50%; top: 44%; width: 70%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(245, 82, 61, .85) 0, rgba(184, 38, 26, .4) 30%, rgba(140, 20, 15, 0) 68%); scale: .55; opacity: .35; }
.breathe.on .orb { animation: breathe 9s infinite; }
@keyframes breathe { 0% { scale: .55; opacity: .35; animation-timing-function: ease-in-out; } 44.4% { scale: 1; opacity: .9; animation-timing-function: ease-in-out; } 100% { scale: .55; opacity: .35; } }
.breathe .word { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; font-family: var(--serif); font-size: 26px; color: var(--text); transition: opacity .8s; }
.breathe .start { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; height: 40px; padding: 0 20px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .1); color: var(--sub); font-size: 15px; cursor: pointer; }
.breathe .start:hover { background: rgba(255, 255, 255, .14); color: var(--text); }
.breathe figcaption { position: absolute; left: 16px; top: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* Dodow vs SlowLight: how each is used in bed. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 8px; }
.pair figure { margin: 0; }
.pair svg { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); background: #0a0404; }
.pair figcaption { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pair figcaption b { display: block; color: var(--text); font-weight: 600; }

.sticky { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: rgba(10, 5, 4, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--edge); transform: translateY(110%); transition: transform .25s; display: none; }
.sticky.show { transform: none; }
.sticky .button { width: 100%; height: 50px; }

footer { width: min(720px, 100% - 32px); margin: 0 auto; padding: 28px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .dek { font-size: 18px; }
  .cta { padding: 24px 20px; }
  .cta form { flex-direction: column; }
  .cta input[type=email] { flex: none; }
  .button { width: 100%; }
  .breathe { aspect-ratio: 1; }
  .pair { grid-template-columns: 1fr; }
  .founder p { font-size: 19px; }
  .sticky { display: block; }
  body:has(.sticky) footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .breathe.on .orb { animation: none; }
  .breathe .orb { scale: .8; opacity: .7; }
  .sticky { transition: none; }
}

/* Tables on phones: each row label becomes a heading across the row, the three products sit under it. */
@media (max-width: 600px) {
  .table table { min-width: 0; font-size: 14px; }
  .table thead tr, .table tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); }
  .table thead th:first-child { display: none; }
  .table tbody th { grid-column: 1 / -1; padding: 14px 6px 2px; border-bottom: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .table th, .table td { padding: 6px; }
  .table tbody td { padding-top: 6px; padding-bottom: 14px; }
}
