/* IroPeak website. The dashboard's language (cool ground, white panels on hairlines, one orange accent) told as a story.
   Type: General Sans for display, Switzer for text and figures (both ITF, see /fonts/LICENSES.md). */

@font-face { font-family: "General Sans"; src: url("/fonts/GeneralSans-Variable.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/fonts/Switzer-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Fallbacks sized to the web fonts, so text does not jump when they arrive. */
@font-face { font-family: "General Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 100 900; size-adjust: 98.85%; ascent-override: 102.2%; descent-override: 24.3%; line-gap-override: 0%; }
@font-face { font-family: "Switzer Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 900; size-adjust: 100.2%; ascent-override: 97.8%; descent-override: 25%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --font-display: "General Sans", "General Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-text: "Switzer", "Switzer Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f9f9fb;
  --text: #1d1d1f;
  --text-2: #55555b;
  --text-3: #6e6e74;
  --text-4: #a1a1a6;
  --hairline: rgba(0, 0, 0, .08);
  --hairline-strong: rgba(0, 0, 0, .14);
  --fill: rgba(0, 0, 0, .05);
  --fill-strong: rgba(0, 0, 0, .09);
  --accent: #f2773c;
  --accent-ink: #a5471a;
  --accent-strong: #c4531c;
  --accent-tint: rgba(242, 119, 60, .13);
  --accent-button: #c4531c;
  --accent-button-hover: #a94716;
  --good-dot: #1d7a36;
  --tag-green: #30a46c;
  --glass: rgba(245, 245, 247, .74);
  --sh-panel: 0 0 0 1px var(--hairline), 0 4px 16px rgba(0, 0, 0, .035);
  --sh-card: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
  --sh-control: 0 1px 3px rgba(0, 0, 0, .12);
  --sh-window: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 6px rgba(0, 0, 0, .03), 0 40px 90px -30px rgba(18, 22, 40, .28);
  --r-panel: 22px;
  --r-window: 26px;
  --ease: cubic-bezier(.25, 1, .5, 1);
  --gutter: clamp(16px, 4.4vw, 56px);
  --page: 1200px;
  --wide: 1320px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c0e;
  --surface: #18181b;
  --surface-2: #1d1d21;
  --text: #f5f5f7;
  --text-2: #b4b4ba;
  --text-3: #9a9aa1;
  --text-4: #6a6a72;
  --hairline: rgba(255, 255, 255, .08);
  --hairline-strong: rgba(255, 255, 255, .14);
  --fill: rgba(255, 255, 255, .06);
  --fill-strong: rgba(255, 255, 255, .11);
  --accent-ink: #f58a55;
  --accent-strong: #f2773c;
  --accent-tint: rgba(242, 119, 60, .14);
  --good-dot: #30d158;
  --glass: rgba(12, 12, 14, .74);
  --sh-panel: 0 0 0 1px var(--hairline), 0 4px 16px rgba(0, 0, 0, .18);
  --sh-card: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px rgba(255, 255, 255, .05), 0 8px 24px rgba(0, 0, 0, .4);
  --sh-control: 0 1px 3px rgba(0, 0, 0, .3);
  --sh-window: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 100px -30px rgba(0, 0, 0, .8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0c0e;
    --surface: #18181b;
    --surface-2: #1d1d21;
    --text: #f5f5f7;
    --text-2: #b4b4ba;
    --text-3: #9a9aa1;
    --text-4: #6a6a72;
    --hairline: rgba(255, 255, 255, .08);
    --hairline-strong: rgba(255, 255, 255, .14);
    --fill: rgba(255, 255, 255, .06);
    --fill-strong: rgba(255, 255, 255, .11);
    --accent-ink: #f58a55;
    --accent-strong: #f2773c;
    --accent-tint: rgba(242, 119, 60, .14);
    --good-dot: #30d158;
    --glass: rgba(12, 12, 14, .74);
    --sh-panel: 0 0 0 1px var(--hairline), 0 4px 16px rgba(0, 0, 0, .18);
    --sh-card: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px rgba(255, 255, 255, .05), 0 8px 24px rgba(0, 0, 0, .4);
    --sh-control: 0 1px 3px rgba(0, 0, 0, .3);
    --sh-window: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 100px -30px rgba(0, 0, 0, .8);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font-text);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; hanging-punctuation: first; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 8px; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--surface); font-weight: 600; }
.skip:focus { top: 12px; box-shadow: var(--sh-card); }

.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wide { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Logos, photos and screenshots: one file per theme; the hidden one is never loaded. */
.for-dark { display: none; }
:root[data-theme="dark"] .for-light { display: none; }
:root[data-theme="dark"] .for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .for-light { display: none; }
  :root:not([data-theme="light"]) .for-dark { display: block; }
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 28px; width: auto; }

/* Buttons: one orange primary, quiet secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; font: 600 16px/1.2 var(--font-text); letter-spacing: -.005em; white-space: nowrap; transition: background-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--accent-button); color: #fff; box-shadow: 0 1px 2px rgba(120, 40, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--accent-button-hover); }
.btn-quiet { background: var(--fill); color: var(--text); }
.btn-quiet:hover { background: var(--fill-strong); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 500; font-size: 15px; color: var(--text); }
.text-link:hover { color: var(--accent-ink); }

/* Header: the one glass layer */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.header-in { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 32px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { color: var(--text-2); transition: color .15s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Shared story type */
.kicker { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; color: var(--text-2); font: 600 15px/1.3 var(--font-text); letter-spacing: .005em; }
.kicker-n { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.title { max-width: 15.5em; font-size: clamp(38px, 5.4vw, 78px); line-height: 1.01; letter-spacing: -.042em; }
.lead { max-width: 37em; margin-top: 26px; color: var(--text-2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.52; letter-spacing: -.006em; }
.bridge { max-width: 15em; padding-top: clamp(96px, 12vw, 168px); font: 500 clamp(32px, 4.3vw, 60px)/1.06 var(--font-display); letter-spacing: -.038em; text-wrap: balance; }
.bridge span { color: var(--text-3); }

/* Hero: the search bar in stone (light) or obsidian (dark), the headline in the calm space above it. */
.hero-scene { --scene: url("/media/scene/hero-light.webp"); min-height: max(calc(100svh - 64px), 760px); background: #e7e1d8 var(--scene) center bottom / cover no-repeat; }
:root[data-theme="dark"] .hero-scene { --scene: url("/media/scene/hero-dark.webp"); background-color: #0b0a09; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-scene { --scene: url("/media/scene/hero-dark.webp"); background-color: #0b0a09; } }
@media (max-width: 1280px) {
  .hero-scene { --scene: url("/media/scene/hero-light-1600.webp"); }
  :root[data-theme="dark"] .hero-scene { --scene: url("/media/scene/hero-dark-1600.webp"); }
}
@media (max-width: 1280px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-scene { --scene: url("/media/scene/hero-dark-1600.webp"); } }
/* Tall screens get the upright photo, with the sculpture in its lowest quarter. */
@media (max-aspect-ratio: 4/5) {
  .hero-scene { --scene: url("/media/scene/hero-light-m.webp"); background-position: center 78%; }
  .hero-film { object-position: center 78%; }
  :root[data-theme="dark"] .hero-scene { --scene: url("/media/scene/hero-dark-m.webp"); }
}
@media (max-aspect-ratio: 4/5) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-scene { --scene: url("/media/scene/hero-dark-m.webp"); } }
.hero-scene { position: relative; isolation: isolate; }
.hero-film { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; opacity: 0; transition: opacity .8s var(--ease); }
.hero-film.is-playing { opacity: 1; }
.hero-copy { display: grid; justify-items: center; padding-top: clamp(28px, 6svh, 80px); text-align: center; }
.hero-title { font-size: clamp(44px, min(7.6vw, 12.5svh), 112px); line-height: .92; letter-spacing: -.05em; font-weight: 600; }
.hero-title span { display: block; }
.hero-title .dot { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 46em; margin-top: clamp(18px, 2.4vw, 28px); color: var(--text-2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; letter-spacing: -.006em; }
.hero-copy .cta-row { justify-content: center; margin-top: clamp(22px, 2.6vw, 32px); }
.hero-copy .btn-quiet { background: color-mix(in srgb, var(--surface) 62%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero-copy .btn-quiet:hover { background: color-mix(in srgb, var(--surface) 82%, transparent); }
.cta-note { margin-top: 14px; color: var(--text-3); font-size: 14px; }
.hero-shot { position: relative; margin-top: calc(-1 * clamp(56px, 13svh, 150px)); }
.shot-caption { margin-top: 18px; color: var(--text-3); font-size: 13.5px; line-height: 1.5; max-width: 60em; }

.ui { color: var(--text); font: 400 13px/1.5 var(--font-text); font-variant-numeric: tabular-nums; letter-spacing: 0; text-align: left; }
.ui-panel { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-panel); }
.ui-example { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font: 600 11.5px/1 var(--font-text); letter-spacing: .01em; }
.ui-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 9px; border-radius: 999px; background: var(--fill); color: var(--text-2); font: 500 11.5px/1.3 var(--font-text); white-space: nowrap; }
.ui-badge::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--text-4); }
.ui-badge--good::before { background: var(--good-dot); }
.ui-badge--medium { background: var(--accent-tint); color: var(--accent-ink); }
.ui-badge--medium::before { background: var(--accent); }
.ui-score { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid color-mix(in srgb, var(--tone) 45%, var(--surface)); border-radius: 999px; background: color-mix(in srgb, var(--tone) 9%, var(--surface)); color: var(--text); font: 600 13px/1 var(--font-text); }
.ui-score--green { --tone: var(--tag-green); }
.ui-score--none { --tone: var(--text-4); color: var(--text-3); border-style: dashed; background: transparent; }

.theme-switch button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 500 12.5px/1 var(--font-text); transition: background-color .2s var(--ease), color .2s var(--ease); }
.theme-switch .i { width: 14px; height: 14px; }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--sh-control); }

/* How it works: four steps on one hairline */
.how { padding-top: clamp(112px, 14vw, 200px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: clamp(40px, 5vw, 64px); }
.steps li { display: grid; align-content: start; gap: 28px; }
.phone { overflow: hidden; aspect-ratio: 390 / 640; border-radius: 30px; background: var(--surface); box-shadow: var(--sh-window); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step-body { position: relative; padding-top: 26px; border-top: 1px solid var(--hairline-strong); }
.step-body::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--accent); }
.step-n { display: block; color: var(--accent-ink); font: 600 15px/1 var(--font-text); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 14px; font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.steps p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }

/* Photo plates between the acts: travertine in light, obsidian in dark. They settle as they arrive (transform only). */
.plate { position: relative; height: clamp(300px, 44vw, 660px); margin-top: clamp(112px, 14vw, 200px); overflow: hidden; background: var(--surface-2); }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--at); transform: scale(calc(1.08 - var(--p, 1) * .08)); will-change: transform; }

/* Acts */
.act { padding-top: clamp(112px, 14vw, 200px); }

/* Act 1: the flat line */
.flat { margin-top: clamp(48px, 6vw, 80px); padding: 26px clamp(18px, 2.4vw, 32px) 22px; border-radius: var(--r-window); background: var(--surface); box-shadow: var(--sh-panel); }
.flat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.flat-head b { font: 600 17px/1.2 var(--font-text); }
.flat-head > span:not(.ui-example) { color: var(--text-3); font-size: 13.5px; }
.flat-head .ui-example { margin-left: auto; align-self: center; }
.flat-plot { position: relative; margin-top: 18px; }
.flat-svg { width: 100%; height: auto; aspect-ratio: 1200 / 440; overflow: visible; }
.flat-grid line { stroke: var(--hairline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.flat-stop { stop-color: var(--text); stop-opacity: .07; }
.flat-stop--end { stop-opacity: 0; }
.flat-area { fill: url(#flat-fade); opacity: min(1, var(--p, 1) * 1.6); }
.flat-line { fill: none; stroke: var(--text-3); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - min(1, var(--p, 1) * 1.7)); }
/* Numbered dots on the line, each with a leader down to its note; the notes sit in two rows under the dates. */
.flat-dots, .flat-notes { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1200 / 440; pointer-events: none; }
.flat-dots i { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); height: calc((var(--row) - var(--y)) * 1%); width: 0; font-style: normal; --on: clamp(0, (var(--p, 1) - var(--at)) * 9, 1); }
.flat-dots i::before { content: ""; position: absolute; left: -.5px; top: 0; width: 1px; height: calc(var(--on) * 100%); background: var(--hairline-strong); }
.flat-dots b { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--accent-button); color: #fff; font: 600 12.5px/1 var(--font-text); font-style: normal; box-shadow: 0 0 0 4px var(--surface); opacity: var(--on); scale: calc(.5 + var(--on) * .5); }
.flat-notes { counter-reset: note; }
.flat-notes li { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--row) * 1%); width: max-content; max-width: 300px; transform: translateX(-50%); padding: 8px 13px; border-radius: 12px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--hairline); color: var(--text); font: 500 13.5px/1.35 var(--font-text); counter-increment: note; --on: clamp(0, (var(--p, 1) - var(--at) - .03) * 9, 1); opacity: var(--on); translate: 0 calc((1 - var(--on)) * 10px); }
.flat-axis { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1200 / 440; color: var(--text-3); font-size: 12.5px; pointer-events: none; }
.flat-axis span { position: absolute; top: 57%; left: calc(var(--x) * 1%); transform: translateX(-50%); white-space: nowrap; }
.flat-axis span:first-child { transform: none; }
.flat-axis span:last-child { transform: translateX(-100%); }

/* Facts under a vignette: plain columns, no cards */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin-top: clamp(40px, 5vw, 64px); }
.facts li { padding-top: 16px; border-top: 1px solid var(--hairline-strong); color: var(--text-2); font-size: 15px; line-height: 1.5; }
.facts b { color: var(--text); font-weight: 600; }

/* Screenshots of the real dashboard with an example account, with a view switcher */
.shot { margin-top: clamp(48px, 6vw, 80px); }
.screen { overflow: hidden; border-radius: var(--r-window); background: var(--surface); box-shadow: var(--sh-window); }
.screen img { width: 100%; height: auto; }
.js-ready .screen-view:not(.is-active) { display: none; }
.js-ready .screen-view.is-active { animation: view-in .45s var(--ease); }
@keyframes view-in { from { opacity: 0; } }
:root:not(.js-ready) .screen-view + .screen-view { border-top: 1px solid var(--hairline); }
.screen-view:focus-visible { outline-offset: -3px; }
.switcher { display: none; width: max-content; max-width: 100%; margin: 0 auto 22px; padding: 4px; gap: 2px; border-radius: 999px; background: var(--fill); overflow-x: auto; scrollbar-width: none; }
.switcher::-webkit-scrollbar { display: none; }
.js-ready .switcher { display: flex; }
.switcher button { flex: none; height: 38px; padding: 0 17px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 500 14.5px/1 var(--font-text); transition: background-color .2s var(--ease), color .2s var(--ease); }
.switcher button:hover { color: var(--text); }
.switcher button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--sh-control); }
.switcher button:focus-visible { outline-offset: -2px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pair .shot { margin-top: 24px; }


/* The closing scene: an example search where the example site climbs from eighth place to first. */
.climb { --p: 1; --c: 0; margin-top: clamp(112px, 14vw, 200px); }
.climb-track { position: relative; height: 280vh; }
.climb-stage { position: sticky; top: 0; display: grid; align-content: center; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.climb:not(.is-scrub) .climb-track { height: auto; }
.climb:not(.is-scrub) .climb-stage { position: relative; min-height: 0; padding-block: clamp(24px, 4vw, 56px); }
.climb-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 55% at 28% 42%, var(--accent-tint), transparent 72%); opacity: clamp(0, (var(--p) - .72) * 5, 1); pointer-events: none; }
.climb-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px clamp(40px, 6vw, 96px); align-items: center; }
.climb-serp { --row: clamp(46px, 6.6svh, 64px); padding: 14px 14px 10px; border-radius: var(--r-window); background: var(--surface); box-shadow: var(--sh-window); }
.climb-bar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px 0 18px; border-radius: 999px; background: var(--fill); font: 500 16px/1 var(--font-text); }
.climb-bar .i { width: 18px; height: 18px; color: var(--text-3); }
.climb-bar .ui-example { margin-left: auto; }
.climb-board { display: grid; grid-template-columns: 30px minmax(0, 1fr); margin-top: 8px; }
.climb-ranks li { display: grid; place-items: center; height: var(--row); color: var(--text-3); font: 600 13.5px/1 var(--font-text); font-variant-numeric: tabular-nums; }
.climb-list { position: relative; height: calc(8 * var(--row)); }
/* --c is the example site's place counted from 0; a result it passes moves down one place, like a ranking update. */
.climb-list li { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 12px; height: var(--row); padding: 0 12px; border-radius: 14px; translate: 0 calc((var(--i) + clamp(0, var(--i) + 1 - var(--c), 1)) * var(--row)); transition: translate .5s var(--ease); will-change: translate; }
.climb-list i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--tone) 16%, var(--surface)); color: color-mix(in srgb, var(--tone) 78%, var(--text)); font: 600 13px/1 var(--font-display); font-style: normal; }
.climb-list span { display: grid; min-width: 0; }
.climb-list b { overflow: hidden; font: 600 15px/1.3 var(--font-text); white-space: nowrap; text-overflow: ellipsis; }
.climb-list small { overflow: hidden; color: var(--text-3); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.climb-list .is-you { --tone: var(--accent); z-index: 1; translate: 0 calc(var(--c) * var(--row)); background: var(--surface); box-shadow: 0 0 0 1.5px var(--accent-strong), 0 14px 34px -14px rgba(196, 83, 28, .5); }
.climb-list .is-you b { color: var(--accent-ink); }
.climb-copy { display: grid; grid-template-areas: "copy"; align-items: center; }
.climb-copy > * { grid-area: copy; }
.climb-line { font: 600 clamp(40px, 5.4vw, 80px)/1 var(--font-display); letter-spacing: -.045em; text-wrap: balance; opacity: min(clamp(0, (var(--p) - var(--from)) * 18, 1), clamp(0, (var(--to) - var(--p)) * 18, 1)); translate: 0 calc((1 - clamp(0, (var(--p) - var(--from)) * 18, 1)) * 18px); will-change: opacity, translate; }
.climb-line:nth-child(2) { color: var(--text-2); }
.climb-line:nth-child(3) { color: var(--accent-ink); }
.climb-final { opacity: clamp(0, (var(--p) - .8) * 8, 1); translate: 0 calc((1 - clamp(0, (var(--p) - .8) * 8, 1)) * 22px); will-change: opacity, translate; }
.climb-final:focus-within { opacity: 1; translate: none; }
.climb-final h2 { font-size: clamp(48px, 7vw, 104px); line-height: .92; letter-spacing: -.05em; }
.climb-final p { max-width: 24em; margin-top: 18px; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); }
.climb-final .cta-row { margin-top: 28px; }

/* Coming next: AEO and GEO */
.next { padding-top: clamp(112px, 14vw, 200px); }
.next-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px 72px; align-items: end; }
.next .title { max-width: 11em; }
.scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); padding: 28px 0; }
.score-col { display: grid; grid-row: span 4; grid-template-rows: subgrid; justify-items: center; align-items: start; padding: 0 14px; text-align: center; }
.score-col + .score-col { border-left: 1px solid var(--hairline); }
.score-col b { margin-top: 10px; font: 600 17px/1.2 var(--font-display); letter-spacing: -.01em; }
.score-col > span:not(.ui-badge):not(.ui-score) { margin-top: 2px; color: var(--text-3); font-size: 12.5px; line-height: 1.35; }
.score-col .ui-badge { margin-top: 12px; align-self: end; }
.ui-score--big { width: 64px; height: 64px; border-width: 3px; font: 600 22px/1 var(--font-display); letter-spacing: -.03em; }

/* Your data */
.data { padding-top: clamp(112px, 14vw, 200px); }
.sources { margin-top: clamp(36px, 4.4vw, 56px); overflow-x: auto; border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--sh-panel); }
.sources-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.sources-table th, .sources-table td { padding: 17px 24px; text-align: left; vertical-align: middle; }
.sources-table thead th { padding-block: 13px; background: var(--surface-2); color: var(--text-3); font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--hairline); }
.sources-table tbody tr + tr > * { border-top: 1px solid var(--hairline); }
.sources-table tbody th { font: 600 16px/1.3 var(--font-display); letter-spacing: -.012em; white-space: nowrap; }
.sources-table td { color: var(--text-2); }
.sources-table td:last-child { width: 1%; white-space: nowrap; }
.promise { max-width: 44em; margin-top: 24px; color: var(--text-2); font-size: 16px; }
.promise a, .legal-text a, .legal-head a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.promise a:hover, .legal-text a:hover, .legal-head a:hover { text-decoration-color: currentColor; }

/* Pricing: one panel, three columns */
.pricing { padding-top: clamp(112px, 14vw, 200px); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 4.4vw, 56px); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--sh-panel); }
.plan { display: grid; justify-items: start; gap: 12px; padding: 30px clamp(20px, 2.4vw, 32px) 32px; }
.plan + .plan { border-left: 1px solid var(--hairline); }
.plan h3 { font-size: 30px; line-height: 1.05; letter-spacing: -.035em; }
.plan p { color: var(--text-3); font-size: 15px; }

/* Footer */
.site-footer { padding-block: 56px 32px; border-top: 1px solid var(--hairline); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 22em; color: var(--text-3); font-size: 14.5px; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-nav div { display: grid; align-content: start; gap: 2px; }
.footer-nav p { margin-bottom: 6px; color: var(--text); font-size: 13.5px; font-weight: 600; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 13.5px; }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fill); }
.theme-switch button { height: 34px; padding: 0 13px; font-size: 13px; }
.theme-switch--icons button { width: 34px; padding: 0; justify-content: center; }
:root:not(.js) .theme-switch { visibility: hidden; }

/* Legal pages */
.legal-head { padding-block: clamp(48px, 7vw, 104px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--hairline-strong); }
.legal-head h1 { margin-top: 4px; font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.05em; }
.legal-head .lead { margin-top: 22px; }
.legal-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 64px; padding-block: 40px; border-bottom: 1px solid var(--hairline); }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.legal-section h2 .mono { display: block; margin-bottom: 8px; color: var(--accent-ink); font: 600 14px/1 var(--font-text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.legal-text { max-width: 40em; color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.legal-text > * + * { margin-top: 14px; }
.legal-text ul { padding-left: 20px; list-style: disc; }
.legal-text li + li { margin-top: 8px; }
.legal-text li::marker { color: var(--accent); }
.legal-text strong { color: var(--text); font-weight: 600; }
.legal-text code { padding: 1px 6px; border-radius: 6px; background: var(--fill); font: 400 .86em var(--font-mono); }
.statement { padding: 14px 18px; border-radius: 14px; background: var(--accent-tint); color: var(--text); }
.legal-main { padding-bottom: clamp(64px, 8vw, 120px); }

/* Reveal on scroll, only once the script runs: what is already in view is shown at once. */
.js-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero-title span, .js .hero-lead, .js .hero-copy .cta-row, .js .cta-note, .js .hero-shot { animation: rise 1s var(--ease) both; }
.js .hero-title span + span { animation-delay: .08s; }
.js .hero-lead { animation-delay: .16s; }
.js .hero-copy .cta-row, .js .cta-note { animation-delay: .24s; }
.js .hero-shot { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Tablets */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .next-grid, .climb-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  /* The chart notes leave the plot and become a numbered list. */
  .flat-svg { margin-bottom: -14%; }
  .flat-dots i::before { display: none; }
  .flat-notes { position: static; aspect-ratio: auto; display: grid; gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--hairline); }
  .flat-notes li { position: relative; left: auto; top: auto; transform: none; max-width: none; width: auto; padding: 0 0 0 36px; background: none; box-shadow: none; font-size: 15px; }
  .flat-notes li::before { content: counter(note); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-button); color: #fff; font: 600 12px/1 var(--font-text); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .legal-section { grid-template-columns: minmax(0, 1fr); }
}
/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn { min-height: 48px; padding: 0 20px; font-size: 15.5px; }
  .header-in { height: 58px; gap: 12px; }
  .logo img { height: 24px; }
  .header-actions .text-link { font-size: 14.5px; }
  .theme-switch--icons { display: none; }
  .btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .cta-row { width: 100%; }
  .hero-copy .cta-row .btn { flex: 1 1 auto; }
  .screen { border-radius: 14px; }
  /* Each step sits beside its phone. */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps li { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; }
  .phone { border-radius: 18px; }
  .climb-serp { --row: clamp(40px, 5.4svh, 56px); padding: 10px 8px 6px; border-radius: 20px; }
  .climb-bar { height: 44px; font-size: 15px; }
  .climb-board { grid-template-columns: 22px minmax(0, 1fr); }
  .climb-list li { gap: 10px; padding: 0 8px; }
  .climb-list b { font-size: 14px; }
  .climb-list small { font-size: 11.5px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--hairline); }
  .plan { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 18px 20px; }
  .plan h3 { font-size: 24px; }
  .plan .ui-badge { grid-column: 2; grid-row: 1; }
  .plan p { grid-column: 1 / -1; font-size: 14px; }
  /* The three scores become rows: circle, name and pill side by side. */
  .scores { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 4px 0; }
  .score-col { grid-row: auto; grid-template-rows: none; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "score title badge" "score sub badge"; column-gap: 14px; justify-items: start; align-items: center; padding: 14px 18px; text-align: left; }
  .score-col + .score-col { border-left: 0; border-top: 1px solid var(--hairline); }
  .score-col .ui-score { grid-area: score; }
  .score-col b { grid-area: title; margin-top: 0; }
  .score-col > span:not(.ui-badge):not(.ui-score) { grid-area: sub; margin-top: 0; }
  .score-col .ui-badge { grid-area: badge; margin-top: 0; align-self: center; }
  .ui-score--big { width: 50px; height: 50px; font-size: 18px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sources { overflow: visible; }
  .sources-table { min-width: 0; }
  .sources-table thead { display: none; }
  .sources-table, .sources-table tbody, .sources-table tr, .sources-table th, .sources-table td { display: block; }
  .sources-table tr { padding: 16px 18px; }
  .sources-table tbody tr + tr { border-top: 1px solid var(--hairline); }
  .sources-table tbody tr + tr > * { border-top: 0; }
  .sources-table th, .sources-table td { padding: 0; }
  .sources-table td { margin-top: 4px; font-size: 14.5px; }
  .sources-table td:last-child { width: auto; margin-top: 10px; }
  .switcher { justify-content: flex-start; }
  .switcher button { height: 36px; padding: 0 11px; font-size: 13.5px; }
  .switcher:not(.at-end) { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .flat { padding: 20px 16px 18px; }
  .flat-axis { font-size: 11px; padding-inline: 0; }

}
@media (max-width: 480px) {
  .flat-svg, .flat-dots, .flat-axis { aspect-ratio: 1200 / 830; }
  .flat-svg { margin-bottom: -26%; }
  .flat-line { vector-effect: non-scaling-stroke; stroke-width: 2.5; stroke-dasharray: none; }
  .flat-dots b { width: 18px; height: 18px; margin: -9px 0 0 -9px; font-size: 10px; box-shadow: 0 0 0 2px var(--surface); }
}
@media (max-width: 340px) {
  .header-actions .text-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
}
