/* The top pages (the LP spec, docs/superpowers/specs/2026-10-15-scoreglide-lp-design.md). The colours are the app's
   design system ("PDF Scroller"); the other pages keep style.css. It loads nothing: check-site.py looks for that. */
:root {
  color-scheme: light dark;
  --paper: #fdfcf8;
  --surface: #ffffff;
  --ground: #f2f3f6;
  --desk: #c9cdd4;
  --ink: #151922;
  --ink2: #4b5362;
  --line: #d8dbe2;
  --control: #8c94a3;
  --accent: #2b46c8;
  --accent-hover: #1f3399;
  --on-accent: #ffffff;
  --accent-soft: #e2e7fa;
  --marker: #ffd35c;
  --band: #151922;
  --band-ink: #fdfcf8;
  --band-ink2: #aab2c0;
  --frame: #16181d;
  --glass: rgba(255, 255, 255, 0.42);
  --glass-rim: rgba(255, 255, 255, 0.85);
  --glass-ink: #151922;
  --strip-dim: 1;
  --screen: #c9cdd4;
  --serif: ui-serif, "New York", "Hiragino Mincho ProN", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Helvetica Neue", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1216;
    --surface: #171b21;
    --ground: #1f242c;
    --desk: #2a2f38;
    --ink: #e8ebf1;
    --ink2: #aab2c0;
    --line: #2d333e;
    --control: #66707f;
    --accent: #8fa3ff;
    --accent-hover: #b4c1ff;
    --on-accent: #0d1120;
    --accent-soft: #232a47;
    --band: #e8ebf1;
    --band-ink: #151922;
    --band-ink2: #4b5362;
    --frame: #050608;
    --glass: rgba(28, 32, 40, 0.48);
    --glass-rim: rgba(255, 255, 255, 0.22);
    --glass-ink: #e8ebf1;
    --strip-dim: 0.92;
    --screen: #b9bdc3;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.75 var(--sans);
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.serif { font-family: var(--serif); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; min-height: 44px; gap: 12px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--ink2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent) !important; font-weight: 600; font-size: 16px; text-decoration: none; }
.cta:hover { background: var(--accent-hover); }

/* First screen */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 32px; padding-bottom: 96px; }
.hero h1 { font-size: 58px; line-height: 1.2; font-weight: 700; margin: 0 0 20px; }
/* A heading breaks only between the phrases its spans mark (in Japanese, never inside a word). */
.hero h1 span, h2 span, h3 span, summary span, .answer-main span { display: inline-block; }
/* Headings share their words out over their lines, so that none ends with one word alone. */
.hero h1, .lead-strong, h2, h3, summary, .answer-main { text-wrap: balance; }
.lead-strong { font-size: 21px; font-weight: 600; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--ink2); margin: 0 0 32px; max-width: 30em; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink2); }
.desk { background: var(--desk); border-radius: 28px; padding: 36px 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.frame { background: var(--frame); border-radius: 34px; padding: 13px; box-shadow: 0 18px 40px rgba(15, 18, 22, 0.22); width: 100%; max-width: 440px; }
/* The screen shows the app in its light look, in a dark page too: the strip is a light picture, so the ground
   around it is the desk colour of the strip's own gap (dimmed with it), and the glass stays light. */
.screen { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 22px; background: var(--screen);
  --glass: rgba(255, 255, 255, 0.42); --glass-rim: rgba(255, 255, 255, 0.85); --glass-ink: #151922; }
/* The strip moves so that each system's top rests on the reading line, 25% down the screen; the stops are what
   scripts/lp-images.py prints. Each system stays 3 s and glides in 1.6 s, as in the app. */
.strip { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; filter: brightness(var(--strip-dim)); animation: glide 27.6s infinite cubic-bezier(0.65, 0, 0.35, 1); }
@keyframes glide {
  0% { transform: translateY(5.82%); }
  10.87% { transform: translateY(5.82%); }
  16.67% { transform: translateY(-9.65%); }
  27.54% { transform: translateY(-9.65%); }
  33.33% { transform: translateY(-25.13%); }
  44.2% { transform: translateY(-25.13%); }
  50% { transform: translateY(-41.94%); }
  60.87% { transform: translateY(-41.94%); }
  66.67% { transform: translateY(-57.41%); }
  77.54% { transform: translateY(-57.41%); }
  83.33% { transform: translateY(-72.89%); }
  94.2% { transform: translateY(-72.89%); }
  100% { transform: translateY(5.82%); }
}
.marker { position: absolute; left: 0; right: 0; top: 23.5%; height: 21.5%; background: var(--marker); opacity: 0.4; mix-blend-mode: multiply; pointer-events: none; }
.glass { position: absolute; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 1px 0 var(--glass-rim), 0 8px 24px rgba(15, 18, 22, 0.12); border-radius: 999px; color: var(--glass-ink); }
.title-pill { left: 4%; top: 3%; padding: 6px 16px; font-size: 13px; line-height: 1.35; }
.title-pill strong { display: block; font-size: 14px; }
.transport { left: 4%; bottom: 3.5%; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; }
.play { width: 38px; height: 38px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.bar { width: 92px; height: 4px; border-radius: 999px; background: var(--control); overflow: hidden; }
.bar i { display: block; width: 48%; height: 100%; background: var(--accent); }
.rate { font-size: 13px; font-weight: 600; }
.stop { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stop:checked ~ .frame .strip { animation-play-state: paused; }
.stop-label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-size: 14px; color: var(--ink); cursor: pointer; border-radius: 6px; }
.stop:focus-visible ~ .stop-label { outline: 2px solid var(--accent); outline-offset: 2px; }
.stop-label .on { display: none; }
.stop:checked ~ .stop-label .on { display: inline; }
.stop:checked ~ .stop-label .off { display: none; }
@media (prefers-reduced-motion: reduce) {
  .strip { animation: none; transform: translateY(-9.65%); }
  .stop, .stop-label { display: none; }
}

/* Sections */
.section { padding-top: 96px; padding-bottom: 16px; }
.rule { border-top: 1px solid var(--line); }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; margin: 0 0 8px; }
.h2 { font-size: 38px; line-height: 1.3; font-weight: 700; margin: 0 0 12px; }
.sub { font-size: 17px; color: var(--ink2); margin: 0 0 40px; max-width: 38em; }
.h3 { font-size: 19px; line-height: 1.45; font-weight: 700; margin: 0 0 8px; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pain { padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.pain p, .card-body p { margin: 0; color: var(--ink2); font-size: 16px; }
.answer { margin-top: 32px; background: var(--band); color: var(--band-ink); border-radius: 20px; padding: 32px 40px; }
.answer p { margin: 0; }
.answer-main { font-size: 24px; font-weight: 700; }
.answer-sub { font-size: 15px; color: var(--band-ink2); }

/* How it works */
.diagram { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 40px 28px; }
.track-label { font-size: 13px; font-weight: 600; color: var(--ink2); margin: 0 0 8px; }
.track { position: relative; height: 44px; border-radius: 10px; background: var(--ground); margin-bottom: 12px; }
.wave { position: absolute; left: 12px; right: 12px; top: 50%; height: 16px; margin-top: -8px; background: repeating-linear-gradient(to right, var(--control) 0, var(--control) 2px, transparent 2px, transparent 6px); opacity: 0.55; border-radius: 4px; }
.tap { position: absolute; top: -6px; width: 2px; height: 56px; background: var(--accent); }
.tap::after { content: ""; position: absolute; top: -8px; left: -6px; width: 14px; height: 14px; border-radius: 999px; background: var(--accent); }
.t1 { left: 6%; } .t2 { left: 31%; } .t3 { left: 52%; } .t4 { left: 81%; }
.systems { display: grid; grid-template-columns: 25fr 21fr 29fr 25fr; gap: 8px; }
.system { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink2); position: relative; overflow: hidden; }
.system::before { content: ""; position: absolute; left: 10px; right: 10px; top: 20px; height: 22px; background: repeating-linear-gradient(to bottom, var(--ink) 0, var(--ink) 1px, transparent 1px, transparent 5px); opacity: 0.3; }
.system span { position: relative; background: var(--paper); padding: 0 6px; border-radius: 4px; }
.system.now, .system.now span { background: #fff3cc; color: #4b5362; }
/* The marked system stays cream in dark mode too, so its staff lines keep the light look's ink. */
.system.now { --ink: #151922; }
.diagram figcaption { margin: 18px 0 0; font-size: 15px; color: var(--ink2); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 40px; }
.point { display: flex; gap: 16px; }
.point p { margin: 0; color: var(--ink2); font-size: 16px; }

/* How to use */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 12px; }
.num { font-size: 40px; line-height: 1; color: var(--accent); font-weight: 700; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); height: 260px; background: var(--ground); display: flex; align-items: center; justify-content: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot.right img { object-position: right top; }
.step p { margin: 0; font-size: 16px; color: var(--ink2); }
.figure-page { fill: var(--surface); stroke: var(--control); }
.figure-lines { stroke: var(--ink); opacity: 0.6; }
.figure-tab { fill: var(--ink); opacity: 0.7; font: 700 6px ui-monospace, Menlo, monospace; }
.figure-box { fill: none; stroke: var(--accent); }
.figure-box.now { fill: var(--accent-soft); }
.try { margin-top: 40px; background: var(--accent-soft); border-radius: 20px; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.try p { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }

/* Scenes */
.scene { overflow: hidden; display: flex; flex-direction: column; }
.crop { height: 220px; overflow: hidden; background: var(--desk); }
.crop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crop.a img { object-position: center 30%; }
.crop.b img { object-position: center 92%; }
.crop.c img { object-position: right bottom; }
.card-body { padding: 20px 24px 26px; }
.tag { font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 4px; }
.note { font-size: 13px; color: var(--ink2); margin: 14px 0 0; }

/* Features */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-bottom: 56px; }
.row-shot { background: var(--frame); border-radius: 30px; padding: 12px; max-width: 400px; justify-self: center; width: 100%; }
.row-shot img { display: block; width: 100%; border-radius: 20px; }
.row p { color: var(--ink2); margin: 0 0 12px; }
.badge-new { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; }
.list { margin: 0; padding-left: 1.2em; color: var(--ink2); }
.list li { margin-bottom: 8px; }
.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.mini { border-top: 2px solid var(--ink); padding-top: 16px; }
.mini h3 { font-size: 17px; margin: 0 0 6px; }
.mini p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.65; }

/* Peace of mind */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.trust-item { padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.trust-item h3 { font-size: 17px; margin: 0; }
.trust-item p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.65; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; }
.faq details p { margin: 0 0 18px; color: var(--ink2); }

/* Pricing */
.price { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); border: 1px solid var(--line); }
.price th, .price td { border-bottom: 1px solid var(--line); padding: 16px 18px; text-align: left; vertical-align: top; }
.price thead th { font-size: 15px; background: var(--ground); }
.price tbody th { font-weight: 600; color: var(--ink2); font-size: 15px; }
.price-note { font-size: 15px; color: var(--ink2); margin: 16px 0 0; }

/* Last call. Apple's badge: at least 40 px high, clear space of a quarter of its height around it. */
.final { background: var(--desk); margin-top: 96px; padding: 72px 40px; text-align: center; }
.final h2 { font-size: 38px; line-height: 1.3; margin: 0 0 28px; }
.final p { font-size: 14px; color: var(--ink); margin: 16px auto 0; max-width: 46em; }
.store { display: inline-block; padding: 14px; border-radius: 12px; }
.store img { display: block; width: auto; height: 54px; }

/* Footer */
.foot { padding-top: 32px; padding-bottom: 48px; font-size: 13px; color: var(--ink2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 12px; padding: 0; list-style: none; }
.foot-links a { color: var(--ink2); min-height: 44px; display: inline-flex; align-items: center; }
.foot p { margin: 0; }

/* An iPad upright, and narrower */
@media (max-width: 1100px) {
  .hero h1 { font-size: 46px; }
  .hero { gap: 40px; }
  .steps, .trust, .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A phone */
@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .nav .navlink, .nav .cta { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 8px; padding-bottom: 56px; }
  .hero h1 { font-size: 38px; }
  .lead-strong { font-size: 19px; }
  .lead { font-size: 17px; }
  .desk { padding: 20px 20px 8px; border-radius: 20px; }
  .section { padding-top: 64px; }
  .h2 { font-size: 28px; }
  .sub { margin-bottom: 28px; }
  .cards, .steps, .row, .points, .trust, .minis { grid-template-columns: minmax(0, 1fr); }
  .answer { padding: 24px; }
  .answer-main { font-size: 20px; }
  .diagram { padding: 24px 18px 20px; }
  .systems { gap: 4px; }
  .system { height: 52px; font-size: 11px; }
  .system span { padding: 0 3px; }
  /* One column, up to an upright iPad's width: the pictures grow with it and keep showing half the screen. */
  .shot, .crop { height: auto; aspect-ratio: 3 / 2; }
  .row { gap: 24px; margin-bottom: 40px; }
  .try { padding: 20px; }
  .price th, .price td { padding: 12px 10px; font-size: 14px; }
  .final { padding: 56px 20px; }
  .final h2 { font-size: 28px; }
}
