/* MillionTabs website. Follows DESIGN.md ("The DIN Wayfinding Grid"):
   ink on paper / ink on graphite, one signal orange, hairline rules,
   heavy weight only for signs. System fonts only, no external requests. */

:root {
  --ground: #f4f4f2;
  --surface: #ffffff;
  --sunken: #ececea;
  --ink: #15171b;
  --ink-2: #454a53;
  --ink-3: #676c75;
  --rule: #e2e3e6;
  --rule-strong: #c9ccd2;
  --signal: #ea4a12;
  --signal-ink: #b93a0c;
  --signal-wash: #fde9e0;
  --on-ink: #f4f4f2;
  --on-signal: #ffffff;
  --h0: #2f64d8; --h1: #16875f; --h2: #7b55cf; --h3: #b98300; --h4: #cc3b6a;
  --chrome: #dcdde0;
  --chrome-tab: #eceef0;
  --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0f1113;
    --surface: #171a1d;
    --sunken: #0b0c0e;
    --ink: #eceef1;
    --ink-2: #b6bbc4;
    --ink-3: #8e949e;
    --rule: #25292e;
    --rule-strong: #353a41;
    --signal: #ff7a45;
    --signal-ink: #ff9a70;
    --signal-wash: #3a1d10;
    --on-ink: #0f1113;
    --on-signal: #0f1113;
    --h0: #6f9bff; --h1: #3ec495; --h2: #a98bff; --h3: #e7b640; --h4: #ff7aa6;
    --chrome: #24272b;
    --chrome-tab: #2e3237;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--signal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
kbd {
  font: 600 0.82em/1 var(--font);
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
}
code { font: 500 0.9em var(--font); background: var(--sunken); padding: 1px 5px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--radius);
  z-index: 10; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 26px; height: 26px; }
.wordmark { font: 800 21px/1 var(--font); letter-spacing: -0.03em; }
.wordmark span { color: var(--signal); }
.site-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav .lang { border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 3px 8px; font-weight: 600; font-size: 13px; color: var(--ink); }
.site-nav .lang:hover { border-color: var(--ink-2); text-decoration: none; }
@media (max-width: 720px) {
  .site-nav a:not(.lang) { display: none; }
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--on-ink);
  font: 650 17px/1 var(--font); letter-spacing: -0.01em;
  padding: 15px 22px; border-radius: var(--radius); text-decoration: none;
}
.button:hover { background: var(--signal-ink); color: var(--on-signal); }
.button svg { width: 20px; height: 20px; flex: none; }
.text-link { color: var(--ink); font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero-copy { max-width: 820px; }
@media (min-width: 1040px) {
  .hero-copy { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; }
  .hero-body .lede { margin-top: 0; }
  .hero-body .cta-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}
.hero h1 {
  font-size: clamp(42px, 8.4vw, 104px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero h1 .line { display: block; }
/* The one priority rule on the page: the same orange bar the product draws under the tab to look at first. */
.priority { display: block; width: min(38%, 320px); height: 4px; border-radius: 2px; background: var(--signal); margin-top: clamp(20px, 3vw, 32px); }
.lede { margin-top: 24px; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 40ch; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.cta-note { color: var(--ink-3); font-size: 15px; }

/* browser window around the hero shot */
.window {
  margin-top: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--chrome);
  border: 1px solid var(--rule-strong);
}
.tabstrip { display: flex; align-items: flex-end; gap: 3px; padding: 10px 14px 0; height: 42px; overflow: hidden; }
.dots { display: flex; gap: 6px; margin-right: 12px; align-self: center; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); display: block; }
.tg { width: 26px; height: 15px; border-radius: 4px; margin: 0 2px 8px; flex: none; }
.tab { flex: 0 1 96px; min-width: 20px; height: 30px; border-radius: 8px 8px 0 0; background: var(--chrome-tab); }
.tab.on { background: var(--surface); }
.g0 { background: var(--h1); } .g1 { background: var(--h0); } .g2 { background: var(--h2); } .g3 { background: var(--h3); }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.url { flex: 1; height: 26px; border-radius: 13px; background: var(--sunken); }
.toolbar img { width: 18px; height: 18px; }
.window picture, .window > img { display: block; background: var(--ground); }
@media (max-width: 560px) {
  .tabstrip .tab:nth-child(n+10) { display: none; }
}

/* ---------- sections and signs ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
/* A sign: hairline tick, heavy name, optional tabular count. Straight from the product's category header. */
.sign { display: flex; align-items: flex-start; gap: 14px; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.sign::before { content: ""; flex: none; width: 5px; height: 0.9em; margin-top: 0.08em; border-radius: 2px; background: var(--tick, var(--ink)); }
.sign .count { font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--ink-3); margin-top: 0.05em; }
.intro { margin-top: 18px; max-width: 60ch; color: var(--ink-2); font-size: 18px; }
.intro + .intro { margin-top: 12px; }

/* how it works: a real sequence, so it is numbered */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.steps li { padding: 22px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.step-n { display: block; font-size: 15px; font-weight: 700; color: var(--signal-ink); }
.steps h3 { margin-top: 6px; font-size: 23px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.steps p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 24px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); }
}

.shots { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.shot { margin: 0; }
.shot .frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule-strong); background: var(--surface); }
.shot.panel .frame { aspect-ratio: 400 / 620; }
.shot.panel img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); max-width: 52ch; }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; }
  .shot.panel { max-width: 380px; }
}

/* features: each one is a lane with its own tick, like a group in the product */
.lanes { margin-top: 40px; }
.lane { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; padding-block: 28px; border-top: 1px solid var(--rule); }
.lane:last-child { border-bottom: 1px solid var(--rule); }
.lane h3 { display: flex; gap: 12px; align-items: flex-start; font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; }
.lane h3::before { content: ""; flex: none; width: 4px; height: 0.95em; margin-top: 0.1em; border-radius: 1px; background: var(--tick); }
.lane p { color: var(--ink-2); max-width: 60ch; }
.lane p + p { margin-top: 10px; }
.t0 { --tick: var(--h0); } .t1 { --tick: var(--h1); } .t2 { --tick: var(--h2); } .t3 { --tick: var(--h3); } .t4 { --tick: var(--h4); }
.lane-shots { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px; }
@media (max-width: 760px) {
  .lane { grid-template-columns: 1fr; }
  .lane-shots { grid-template-columns: 1fr; }
  .lane-shots .shot { max-width: 380px; }
}

/* privacy in plain words */
.ledger { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.ledger > div { padding: 22px 28px 4px 0; }
.ledger > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.ledger h3 { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.ledger ul { margin: 12px 0 0; padding: 0 0 0 1.1em; color: var(--ink-2); }
.ledger li + li { margin-top: 8px; }
.ledger li::marker { color: var(--ink-3); }
.ledger .never h3 { color: var(--ink); }
.aside {
  margin-top: 36px; padding: 20px 22px; max-width: 72ch;
  background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--signal); border-radius: var(--radius);
}
.aside p + p { margin-top: 8px; }
.aside p { color: var(--ink-2); }
.aside strong { color: var(--ink); }
.more { margin-top: 24px; }
@media (max-width: 860px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger > div, .ledger > div + div { padding: 22px 0 20px; border-left: 0; }
  .ledger > div + div { border-top: 1px solid var(--rule); }
}

/* bring your own key */
.key { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; align-items: start; }
.key ol { margin: 0; padding: 0; list-style: none; counter-reset: k; border-top: 1px solid var(--rule-strong); }
.key ol li { counter-increment: k; display: grid; grid-template-columns: 34px 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.key ol li::before { content: counter(k); font-weight: 700; color: var(--signal-ink); }
.key ol strong { color: var(--ink); }
@media (max-width: 860px) { .key { grid-template-columns: 1fr; } }

/* faq */
.faq { margin-top: 40px; max-width: 820px; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-size: 19px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq summary:hover::after { border-color: var(--ink); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 66ch; }
.faq .answer p + p { margin-top: 10px; }

/* closing call to action */
.closing { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--rule); }
.closing h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; max-width: 20ch; }
.closing .cta-row { margin-top: 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule-strong); padding-block: 40px 48px; font-size: 15px; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--ink); }
.byline { margin-top: 12px; }
.byline a { color: var(--ink-2); }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.legal .wrap > * { max-width: 72ch; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.legal .meta { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.legal h2 { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 22px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; }
.legal h3 { margin-top: 24px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.legal p, .legal ul, .legal address { margin: 12px 0 0; color: var(--ink-2); }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); }
/* visible open points, to be resolved before launch */
.todo { background: var(--signal-wash); color: var(--ink); border-radius: 3px; padding: 0 4px; font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(64px, 12vw, 160px); }
.notfound h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.notfound p { margin-top: 18px; color: var(--ink-2); font-size: 19px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* the search and tidy shots end early; crop them tighter */
.lane-shots .shot.panel .frame { aspect-ratio: 1 / 1; }

/* smaller browser chrome on phones, so the screenshot keeps the room */
@media (max-width: 560px) {
  .window { border-radius: var(--radius); margin-top: 36px; }
  .tabstrip { height: 26px; padding: 6px 8px 0; gap: 2px; }
  .dots { display: none; }
  .tab { height: 20px; border-radius: 5px 5px 0 0; }
  .tg { width: 14px; height: 9px; margin-bottom: 6px; border-radius: 3px; }
  .toolbar { padding: 5px 8px; }
  .url { height: 14px; }
  .toolbar img { width: 12px; height: 12px; }
}
.lane h3 kbd { font-size: 0.72em; margin-left: 2px; vertical-align: 0.12em; }
