/* Tuck: the app's own dark look (obsidian, one green glow, big readout numbers) laid out as a spec sheet: the MB ruler
   under the hero and a before/after table. Tokens and rules in site/DESIGN.md. */
:root {
  --bg: #060606;
  --panel: #0d100f;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f2f0ea;
  --ink2: rgba(242, 240, 234, 0.64);
  --ink3: rgba(242, 240, 234, 0.52);
  --mint: #7df5cf;
  --tint: rgba(29, 56, 44, 0.9);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }

/* The top: the app's green glow behind the nav and hero. */
.top { background: radial-gradient(820px 520px at 12% -6%, var(--tint), transparent 70%), radial-gradient(1300px 640px at 50% -18%, rgba(29, 56, 44, 0.45), transparent 72%); }
.nav { display: flex; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.nav .brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.nav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav .links { margin-left: auto; display: flex; gap: 28px; font-size: 14.5px; }
.nav .links a { color: var(--ink2); display: inline-flex; align-items: center; min-height: 44px; }
.nav .links a:hover { color: var(--ink); }

/* Hero: words left, the real ruler screen right, cut flat where the ruler band starts. */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; padding-top: 56px; }
.tag { margin: 0 0 20px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--mint); }
h1 { margin: 0; font-size: 84px; line-height: 0.96; font-weight: 750; letter-spacing: -0.048em; text-wrap: balance; }
h1 .limit { white-space: nowrap; }
h1 mark { background: none; color: inherit; box-shadow: inset 0 -0.14em 0 var(--mint); }
.sub { margin: 26px 0 0; max-width: 31em; font-size: 19px; line-height: 1.5; color: var(--ink2); text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; padding-bottom: 64px; }
.cta img { height: 48px; }
.hd-btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06); color: var(--ink); font-size: 15px; font-weight: 590;
}
.hd-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.11); }
.phone { border-radius: 46px; overflow: hidden; border: 7px solid #151817; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 110px rgba(125, 245, 207, 0.13); }
.phone img { width: 100%; }
.hero .phone { width: 320px; height: 492px; justify-self: center; border-bottom: 0; border-radius: 46px 46px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }

/* The ruler: Tuck's four presets on the app's log MB scale (1 to 100), Discord's 20 lit like the app's needle. */
.ruler { border-top: 1px solid rgba(255, 255, 255, 0.22); border-bottom: 1px solid var(--line); padding-top: 26px; padding-bottom: 30px; }
.scale { position: relative; height: 92px; }
.ticks { position: absolute; left: 0; right: 0; top: 0; height: 40px; }
.ticks span { position: absolute; top: 0; width: 1px; height: 24px; background: var(--ink); opacity: 0.3; transform: translateX(-50%); }
.ticks span.d { width: 1.5px; height: 40px; opacity: 0.5; }
.mark { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-family: var(--mono); font-size: 13px; color: var(--ink2); white-space: nowrap; }
.mark i { display: block; width: 2px; height: 52px; margin: 0 auto 8px; background: var(--ink); }
.mark b { display: block; font-family: -apple-system, sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); }
.mark.on i { width: 6px; border-radius: 3px; background: var(--mint); box-shadow: 0 0 14px rgba(125, 245, 207, 0.8); }
.mark.on b { color: var(--mint); }
.ruler p { margin: 18px 0 0; font-size: 15px; color: var(--ink2); }

section { margin-top: 110px; }
h2 { margin: 0; font-size: 56px; line-height: 1.02; font-weight: 720; letter-spacing: -0.04em; text-wrap: balance; }
.lede { margin: 16px 0 0; max-width: 34em; font-size: 18px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }

/* Before and after: every number read off the app's screens. */
table { width: 100%; border-collapse: collapse; margin-top: 44px; }
th { text-align: left; font-size: 13px; font-weight: 500; color: var(--ink3); padding: 0 0 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 16px; color: var(--ink2); }
td.shot { width: 112px; }
td.shot .phone { width: 84px; border-width: 4px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
td strong { display: block; font-size: 19px; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; }
.n { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.n small { font-size: 17px; color: var(--ink3); font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.was { color: var(--ink3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pct { font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--mint); }

/* Free up space: the library before and after, side by side. */
.free { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pair { display: flex; gap: 22px; justify-content: center; align-items: flex-start; }
.pair .phone { width: 250px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pair .phone:last-child { margin-top: 60px; }

/* Guides: one line each. */
.guides { margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.guides a { display: flex; align-items: baseline; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.guides a span { margin-left: auto; font-size: 17px; font-weight: 500; color: var(--ink3); }
.guides a:hover span { color: var(--mint); }

.end { margin-top: 120px; padding: 96px 0 90px; text-align: center; background: radial-gradient(700px 380px at 50% 100%, var(--tint), transparent 72%); border-top: 1px solid var(--line); }
.end .lede { margin-left: auto; margin-right: auto; }
.end .cta { justify-content: center; padding-bottom: 0; }

footer.foot { margin-top: auto; border-top: 1px solid var(--line); }
footer.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; padding-top: 14px; padding-bottom: 14px; font-size: 13.5px; color: var(--ink3); }
footer.foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.foot a { color: var(--ink3); display: inline-flex; align-items: center; min-height: 44px; }
footer.foot a:hover { color: var(--ink); }

/* Support, privacy, guides and the comparison: one column of plain reading. */
main.doc { padding-top: 40px; padding-bottom: 96px; }
main.doc h1 { font-size: 56px; line-height: 1.02; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--ink3); }
.breadcrumbs a { color: var(--ink2); }
.lead { max-width: 40em; margin: 18px 0 34px; font-size: 19px; line-height: 1.5; color: var(--ink2); }
.art-sec { max-width: 46em; padding: 28px 0; border-top: 1px solid var(--line); }
.art-sec h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; }
.prose { max-width: 66ch; color: var(--ink2); }
.prose strong, .prose b { color: var(--ink); }
.art-sec ul, .art-sec ol { color: var(--ink2); padding-left: 1.2em; }
.art-sec li { margin: 6px 0; }
.art-sec .hd-btn { margin-top: 10px; }

@media (max-width: 760px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .nav .links { gap: 18px; font-size: 14px; }
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
  h1 { font-size: 52px; }
  .sub { font-size: 17px; }
  .cta { padding-bottom: 48px; }
  .hero .phone { width: 270px; height: 412px; }
  .mark { font-size: 11px; }
  .mark b { font-size: 12px; }
  .mark.gives { display: none; }
  section { margin-top: 80px; }
  h2 { font-size: 40px; }
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { display: grid; grid-template-columns: 96px auto auto 1fr; align-items: center; column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  td { padding: 0; border: 0; }
  td.shot { grid-row: 1 / span 2; width: auto; }
  td:nth-child(2) { grid-column: 2 / -1; align-self: end; margin-bottom: 10px; }
  td.shot .phone { width: 92px; }
  .n { font-size: 32px; }
  .free { grid-template-columns: 1fr; gap: 36px; }
  .pair .phone { width: 46%; }
  .guides a { font-size: 17px; }
  .end { padding: 72px 0 64px; }
  main.doc h1 { font-size: 40px; }
  footer.foot nav { margin-left: 0; }
}
.art-sec, section.art-sec { margin-top: 0; }

/* Editorial guide extensions (Phase 2 flagship guides) */
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.03em; margin-top: 12px; }
.doc .byline { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink3); }
.doc .byline b { color: var(--ink); font-weight: 600; }
.doc .tldr { margin: 22px 0 28px; padding: 20px 22px; border-radius: 14px; background: var(--panel); border: 1px solid rgba(125,245,207,.35); }
.doc .tldr-k { font-family: var(--mono); font-size: 11.5px; color: var(--mint); margin-bottom: 8px; }
.doc .tldr p { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.55; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.doc .toc span { color: var(--ink3); font-weight: 600; }
.doc .art-sec { margin-top: 40px; }
.doc .art-sec h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.18; letter-spacing: -0.025em; margin-bottom: 12px; }
.doc .art-sec h3 { font-size: 18px; margin: 22px 0 8px; color: var(--ink); }
.doc .prose { max-width: 68ch; color: var(--ink2); font-size: 16px; line-height: 1.65; margin: 10px 0 0; }
.doc ul.list, .doc ol.list { max-width: 68ch; color: var(--ink2); font-size: 16px; line-height: 1.65; margin: 12px 0 0; padding-left: 1.3em; }
.doc ul.list li + li, .doc ol.list li + li { margin-top: 8px; }
.doc b, .doc strong { color: var(--ink); }
.doc code { font-family: var(--mono); font-size: 0.88em; background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 5px; color: var(--mint); }
.doc pre.cmd { margin: 14px 0 0; padding: 16px 18px; border-radius: 12px; background: #0a0d0c; border: 1px solid var(--line); overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink); }
.doc .tbl-wrap { margin-top: 16px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.doc table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 540px; }
.doc table.spec th, .doc table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc table.spec tr:last-child td, .doc table.spec tr:last-child th { border-bottom: 0; }
.doc table.spec thead th { font-family: var(--mono); font-size: 12px; color: var(--ink3); background: rgba(255,255,255,.02); }
.doc table.spec td.hi { color: var(--mint); font-weight: 600; font-family: var(--mono); }
.doc .calc-box { margin-top: 24px; padding: 22px; border-radius: 14px; background: var(--panel); border: 1px solid rgba(125,245,207,.35); }
.doc .calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.doc .calc-field label { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink3); margin-bottom: 6px; }
.doc .calc-field input, .doc .calc-field select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #060606; color: var(--ink); font-family: var(--mono); font-size: 15px; }
.doc .calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.doc .calc-stat { padding: 12px 14px; border-radius: 10px; background: #060606; border: 1px solid var(--line); }
.doc .calc-stat small { display: block; font-size: 12px; color: var(--ink3); }
.doc .calc-stat strong { display: block; margin-top: 4px; font-family: var(--mono); font-size: 20px; color: var(--mint); }
.doc .verdict-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.doc .vcard { padding: 18px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.doc .vcard.hi { border-color: rgba(125,245,207,.4); }
.doc .vcard h3 { margin: 0 0 10px; font-size: 17px; }
.doc .vcard.hi h3 { color: var(--mint); }
.doc .faq-list { margin-top: 14px; display: grid; gap: 10px; }
.doc .faq-list details { border-radius: 10px; background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; }
.doc .faq-list summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.doc .faq-list details p { margin: 8px 0 0; font-size: 15px; color: var(--ink2); }
@media (max-width: 700px) {
  .doc .calc-grid, .doc .calc-out, .doc .verdict-2 { grid-template-columns: 1fr; }
}
