/* Setlist website.
   Follows the device's light or dark appearance (Apple: "Avoid offering an app-specific appearance setting").
   Headlines use the system font in a heavy weight with one serif italic word; body text stays in the system font.
   Bordeaux is kept for the main actions, a few highlights and the app's own screens. */

@font-face { font-family: "Setlist Serif"; src: url("fonts/dm-serif-display-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Setlist Serif"; src: url("fonts/dm-serif-display-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --soft: #f5f3f4;           /* panels */
  --soft-2: #ebe7e8;
  --ink: #140a0d;            /* 19.2:1 on --bg */
  --muted: #5e5458;          /* 7.0:1 on --bg, 6.4:1 on --soft */
  --line: #e4dee0;
  --accent: #6e1a2e;         /* buttons; white text on it 11.4:1 */
  --em: #82213a;             /* the serif word; 9.6:1 on --bg */
  --link: #6e1a2e;
  --ok: #24733f;             /* 5.7:1 on --bg */
  --err: #b3261e;            /* 6.5:1 on --bg */
  --hero-a: #f7e4e8;
  --hero-b: #fbf3f5;
  --glow: rgba(130, 33, 58, .18);
  --shadow: 0 1px 2px rgba(20, 10, 13, .05), 0 14px 34px rgba(20, 10, 13, .08);
  --panel-radius: clamp(28px, 3vw, 40px);
  --radius: 28px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Setlist Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  /* iPhone 17 Pro in Silver */
  --metal: linear-gradient(135deg, #f2f3f5 0%, #c4c8cd 14%, #fbfbfc 30%, #aeb2b8 50%, #eceef0 68%, #b7bbc1 84%, #e8eaed 100%);
  --metal-edge: #a3a7ad;
  --button: linear-gradient(90deg, #a3a7ad, #e6e8eb 55%, #b3b7bd);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0608;
    --soft: #171114;
    --soft-2: #221a1d;
    --ink: #f5eff0;          /* 17.6:1 on --bg */
    --muted: #b0a5a8;        /* 8.3:1 on --bg, 7.4:1 on --soft */
    --line: #2b2225;
    --accent: #8c2440;       /* white text on it 8.6:1 */
    --em: #ec9fae;           /* 9.4:1 on --bg */
    --link: #ec9fae;
    --ok: #74d394;
    --err: #ff8a80;
    --hero-a: #3a0c19;
    --hero-b: #170a0f;
    --glow: rgba(171, 52, 82, .34);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 44px rgba(0, 0, 0, .5);
    /* iPhone 17 Pro in Deep Blue */
    --metal: linear-gradient(135deg, #4b5b78 0%, #26324a 16%, #5d6d8b 32%, #1d2739 52%, #46556f 70%, #222c40 86%, #3e4c66 100%);
    --metal-edge: #1a2233;
    --button: linear-gradient(90deg, #223047, #55647f 55%, #263349);
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--accent); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }
section { padding: clamp(72px, 10vw, 128px) 0; }

/* ---------- Type ---------- */
.display, .h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; margin: 0; }
.display { font-size: clamp(48px, 7.4vw, 100px); line-height: .98; }
.h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; margin-bottom: 16px; }
.display em, .h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--em); font-size: 1.08em; }
.h3 { font: 600 clamp(22px, 2.1vw, 26px)/1.2 var(--display); letter-spacing: -.015em; margin: 0 0 8px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); margin: 0; max-width: 34em; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .lede { margin: 0 auto; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.site-head.scrolled { border-bottom-color: var(--line); }
@media (prefers-reduced-transparency: reduce) { .site-head { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 20px/1 var(--display); letter-spacing: -.02em; min-height: 44px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s ease, background .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover { background: var(--soft); }
.nav .button { margin-left: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .2s ease; }
.nav .button { min-height: 44px; padding: 0 18px; font-size: 15px; }
.nav .button:hover { background: var(--accent); }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 60%, transparent); filter: brightness(1.08); }
.button:active { transform: translateY(0) scale(.98); box-shadow: none; }
.button:disabled { opacity: .6; cursor: default; }

/* ---------- Hero ---------- */
.hero { padding: 12px 0 0; }
.hero-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--panel-radius); padding: clamp(56px, 8vw, 104px) var(--gutter) 0; text-align: center; background: radial-gradient(80% 60% at 50% 0%, var(--hero-a), transparent 70%), linear-gradient(180deg, var(--hero-b), var(--bg) 85%); }
.hero-panel::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 58%; width: 70%; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(20px); }
.status-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px; margin-bottom: 28px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.status-pill b { color: var(--ink); font-weight: 600; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.hero .display { max-width: 11em; margin: 0 auto; }
.hero .lede { margin: 22px auto 32px; }
.hero .signup { margin: 0 auto; }
.hero .signup-note { margin-left: auto; margin-right: auto; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; margin-top: 56px; height: clamp(360px, 44vw, 520px); }
.hero-phones .phone { flex: none; }
.hero-phones .side { margin-top: 70px; }
.hero-phones .side.left { margin-right: -46px; z-index: 0; }
.hero-phones .side.right { margin-left: -46px; z-index: 0; }
.hero-phones .center { z-index: 2; }

/* ---------- Waitlist form ---------- */
.signup { display: flex; gap: 10px; max-width: 470px; padding: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.signup input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 17px var(--sans); }
.signup input::placeholder { color: var(--muted); }
.signup input:focus { outline: none; }
.signup:focus-within { border-color: var(--em); box-shadow: 0 0 0 4px color-mix(in srgb, var(--em) 18%, transparent), var(--shadow); }
.signup-note { margin: 14px 0 0; font-size: 15px; color: var(--muted); min-height: 23px; max-width: 470px; }
.signup-note.ok { color: var(--ok); }
.signup-note.error { color: var(--err); }

/* ---------- iPhone 17 Pro ---------- */
/* Drawn to its proportions (71.9 x 150 mm): an aluminium band, a thin black border, the Dynamic Island,
   and the buttons where they sit: Action button and volume on the left, side button and Camera Control on
   the right. Silver in light appearance, Deep Blue in dark. */
.phone {
  position: relative; z-index: 1; width: var(--pw, 300px); aspect-ratio: 719 / 1500;
  border: calc(var(--pw, 300px) * .016) solid transparent;
  border-radius: calc(var(--pw, 300px) * .19);
  padding: calc(var(--pw, 300px) * .03);
  background: linear-gradient(#030303, #030303) padding-box, var(--metal) border-box;
  box-shadow: 0 0 0 1px var(--metal-edge), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 50px 90px -30px rgba(40, 6, 16, .42), 0 24px 40px -24px rgba(0, 0, 0, .45);
}
.phone::before, .phone::after { content: ""; position: absolute; width: calc(var(--pw, 300px) * .011); border-radius: 2px; background-image: var(--button); }
.phone::before { left: calc(var(--pw, 300px) * -.026); top: 17%; height: 22%;
  -webkit-mask: linear-gradient(180deg, #000 0 15%, transparent 15% 35%, #000 35% 63%, transparent 63% 72%, #000 72% 100%);
          mask: linear-gradient(180deg, #000 0 15%, transparent 15% 35%, #000 35% 63%, transparent 63% 72%, #000 72% 100%); }
.phone::after { right: calc(var(--pw, 300px) * -.026); top: 26%; height: 37%;
  -webkit-mask: linear-gradient(180deg, #000 0 23%, transparent 23% 80%, #000 80% 100%);
          mask: linear-gradient(180deg, #000 0 23%, transparent 23% 80%, #000 80% 100%); }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--pw, 300px) * .145); background: #050305; color: #f5eff0; font-family: var(--sans); font-size: calc(var(--pw, 300px) * .043); line-height: 1.3; }
.screen::before { content: ""; position: absolute; top: 1.9%; left: 50%; transform: translateX(-50%); width: 30%; height: 4.4%; border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px #111; z-index: 3; }
.status { display: flex; justify-content: space-between; padding: 5.4% 9% 0; font-weight: 600; font-size: .9em; }
.status i { width: 1.6em; height: .8em; border-radius: .25em; border: 1px solid rgba(255, 255, 255, .7); display: inline-block; position: relative; }
.status i::after { content: ""; position: absolute; inset: 1px; right: 2px; background: #fff; border-radius: .12em; }

/* App screens (always dark, like the app) */
.app { padding: 9% 6% 0; }
.app h4 { margin: 0 0 6%; font: 700 1.55em/1.1 var(--rounded); letter-spacing: -.01em; }
.app .label { font-size: .72em; text-transform: uppercase; letter-spacing: .06em; color: #a99ea1; font-weight: 600; }
.app-card { background: #1c1c1e; border-radius: 1.1em; padding: 6%; margin-bottom: 5%; }
.app-hero { background: linear-gradient(135deg, #82213a, #380a17); border-radius: 1.2em; padding: 7% 6%; margin-bottom: 5%; display: flex; align-items: center; justify-content: space-between; }
.app-hero b { display: block; font: 700 1.7em/1.1 var(--rounded); margin: 2% 0; }
.app-hero small { color: rgba(255, 255, 255, .75); font-size: .8em; }
.play { width: 2.6em; height: 2.6em; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.play::after { content: ""; border-left: .75em solid #641628; border-top: .45em solid transparent; border-bottom: .45em solid transparent; margin-left: .2em; }
.week { display: flex; justify-content: space-between; margin-top: 5%; }
.week span { display: grid; justify-items: center; gap: .35em; font-size: .72em; color: #a99ea1; }
.week span::after { content: ""; width: 1.9em; height: 1.9em; border-radius: 50%; background: #2c2c2e; }
.week span.on::after { background: #6e1a2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat; }
.week span.today { color: #e094a2; }
.week span.today::after { box-shadow: inset 0 0 0 2px #b8425b; background: transparent; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; }
.tiles .app-card { margin: 0; }
.tiles b { display: block; font: 700 1.05em/1.2 var(--rounded); margin-top: 6%; }
.ring { width: 3em; height: 3em; margin-top: 8%; }
.ring circle { fill: none; stroke-width: 4; }
.date-badge { width: 3em; margin-top: 8%; border-radius: .6em; background: #6e1a2e; text-align: center; padding: .25em 0; font: 700 1.1em/1 var(--rounded); }
.date-badge small { display: block; font-size: .5em; letter-spacing: .05em; margin-bottom: .15em; }
.routines { margin-top: 5%; }
.routines .label { display: block; margin-bottom: 3%; }
.routine { display: flex; justify-content: space-between; align-items: center; padding: 4.5% 5%; border-radius: .9em; background: #1c1c1e; margin-bottom: 3%; }
.routine b { display: block; font: 700 1em var(--rounded); }
.routine small { color: #a99ea1; font-size: .78em; }
.routine .play { width: 2em; height: 2em; background: #2c2c2e; }
.routine .play::after { border-left-color: #e094a2; border-left-width: .55em; border-top-width: .33em; border-bottom-width: .33em; }
.logger-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5%; }
.logger-top b { font: 700 1.1em var(--rounded); }
.logger-top .time { font-size: .8em; color: #a99ea1; font-variant-numeric: tabular-nums; }
.pill-btn { font-size: .78em; padding: .45em .9em; border-radius: 999px; background: #2c2c2e; color: #fff; font-weight: 600; }
.progress { height: .35em; border-radius: 999px; background: #2c2c2e; overflow: hidden; margin: 3% 0 6%; }
.progress i { display: block; height: 100%; width: var(--done, 0%); background: linear-gradient(90deg, #b8425b, #e094a2); border-radius: inherit; transition: width .5s ease; }
.ex-head { display: flex; align-items: center; gap: 4%; margin-bottom: 4%; }
.ex-icon { width: 2.4em; height: 2.4em; border-radius: .6em; background: #2c2c2e; display: grid; place-items: center; flex: none; }
.ex-icon svg { width: 60%; height: 60%; }
.ex-head b { display: block; font: 700 1.05em var(--rounded); }
.ex-head small { color: #a99ea1; font-size: .78em; }
.suggest { display: flex; gap: 4%; align-items: flex-start; padding: 5%; border-radius: .9em; background: rgba(184, 66, 91, .16); margin-bottom: 4%; font-size: .85em; }
.suggest .dot { width: 1.6em; height: 1.6em; border-radius: 50%; background: #b8425b; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .9em; }
.suggest b { display: block; color: #e094a2; font-size: .85em; }
.suggest strong { display: block; font-size: 1.05em; }
.suggest small { display: block; color: #c9bec1; font-size: .82em; margin-top: 2%; }
.sets { display: grid; gap: .45em; }
.set { display: grid; grid-template-columns: 1.4em 1fr 1fr 1.8em; gap: .5em; align-items: center; font-variant-numeric: tabular-nums; }
.set > span:first-child { color: #a99ea1; font-weight: 600; text-align: center; }
.set .field { background: #2c2c2e; border-radius: .55em; text-align: center; padding: .5em 0; font-weight: 700; font-family: var(--rounded); transition: background .4s ease; }
.set .field.changed { background: #5a1f2f; }
.check { width: 1.7em; height: 1.7em; border-radius: 50%; border: 2px solid #6b6266; justify-self: center; position: relative; transition: background .25s ease, border-color .25s ease; }
.check::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.set.done .check { background: #b8425b; border-color: #b8425b; }
.set.done .check::after { opacity: 1; transform: scale(1); }
.rest { margin-top: 6%; display: flex; align-items: center; justify-content: space-between; padding: 4% 5%; border-radius: .9em; background: #1c1c1e; font-size: .85em; opacity: 0; transform: translateY(.6em); transition: opacity .3s ease, transform .3s ease; }
.rest.show { opacity: 1; transform: none; }
.rest b { font: 700 1.3em var(--rounded); font-variant-numeric: tabular-nums; }
.mini-setlist { margin-top: 2%; border-radius: 1em; background: #100909; border: 1px solid #241a1d; padding: 7% 6%; margin-bottom: 5%; }
.mini-setlist .top { display: flex; justify-content: space-between; color: #9d9295; font-size: .7em; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.mini-setlist .big { font: 700 2.1em/1 var(--rounded); margin: 6% 0 2%; }
.mini-setlist .vs { color: #e07a8c; font-size: .75em; font-weight: 600; }
.mini-setlist ol { list-style: none; margin: 7% 0 0; padding: 6% 0 0; border-top: 1px solid #2a2124; display: grid; gap: .55em; counter-reset: s; font-size: .82em; }
.mini-setlist li { display: flex; justify-content: space-between; counter-increment: s; }
.mini-setlist li::before { content: counter(s, decimal-leading-zero); color: #6b6266; margin-right: .6em; }
.mini-setlist li span:first-child { flex: 1; }
.mini-setlist li span:last-child { color: #9d9295; }
.mini-setlist .pr { color: #d9ae52; }
.medal-mini { width: 2.6em; height: 2.6em; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 .95em var(--rounded); background: radial-gradient(circle at 35% 30%, #a83a55, #4a0d1d); border: 2px solid #e2b07a; }

/* ---------- How it works (the phone changes as the steps scroll by) ---------- */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how-phone { position: sticky; top: calc(50vh - 290px); display: flex; justify-content: center; }
.how-phone .phone { --pw: 280px; }
.how-phone .screen > .app { position: absolute; inset: 0; padding-top: 22%; opacity: 0; transform: scale(.98); transition: opacity .45s ease, transform .45s ease; }
.how-phone .screen > .app.active { opacity: 1; transform: none; }
.how-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.how-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; counter-increment: step; opacity: .4; transition: opacity .4s ease; }
.how-step.active { opacity: 1; }
.how-step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--ink); font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.how-step.active .num { background: var(--accent); color: #fff; }
.how-step .num::before { content: counter(step); }
.how-step p { color: var(--muted); margin: 0; max-width: 26em; }

/* ---------- Interactive demo ---------- */
.demo { border-radius: var(--panel-radius); background: radial-gradient(70% 60% at 70% 100%, var(--glow), transparent 70%), var(--soft); padding: clamp(48px, 7vw, 88px) var(--gutter); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1040px; margin: 0 auto; }
.demo .group { margin-top: 28px; }
.demo .group-label { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.segmented button:hover { border-color: var(--muted); }
.segmented button:active { transform: scale(.97); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.demo .reason { margin-top: 28px; padding: 18px 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.demo .reason small { display: block; color: var(--muted); font-size: 14px; }
.demo .reason strong { font-size: 19px; }
.demo-phone { display: flex; justify-content: center; }
.demo-phone .phone { --pw: 290px; }
.demo-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- Feature grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); padding: clamp(28px, 3.2vw, 40px); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; max-width: 28em; }
.card .visual { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; align-items: flex-end; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.card.tall { min-height: 520px; }
.card .phone { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .phone { transform: translateY(-6px); }
.phone.peek { margin-bottom: calc(-1 * clamp(28px, 3.2vw, 40px) - 30%); }
.setlist { width: 100%; max-width: 330px; border-radius: 22px; background: #100909; color: #f5eff0; padding: 24px; box-shadow: 0 30px 60px -24px rgba(40, 6, 16, .6); }
.setlist .top { display: flex; justify-content: space-between; color: #a69b9e; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.setlist .big { font: 700 44px/1 var(--rounded); margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.setlist .vs { color: #e88a9a; font-size: 14px; font-weight: 600; }
.setlist ol { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid #2a2124; display: grid; gap: 9px; counter-reset: s; }
.setlist li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; counter-increment: s; }
.setlist li::before { content: counter(s, decimal-leading-zero); color: #7d7377; font-variant-numeric: tabular-nums; margin-right: 10px; }
.setlist li span:first-child { flex: 1; }
.setlist li span:last-child { color: #a69b9e; font-variant-numeric: tabular-nums; }
.setlist .pr { color: #d9ae52; }
.medals { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.medal { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; position: relative; color: #fff; font: 700 24px/1 var(--rounded); box-shadow: 0 12px 24px -10px rgba(40, 6, 16, .5); }
.medal.gold { background: radial-gradient(circle at 35% 30%, #a83a55, #4a0d1d); border: 4px solid #e2b07a; }
.medal.blue { background: radial-gradient(circle at 35% 30%, #2f5f99, #14294a); border: 4px solid #e2b07a; }
.medal.open { background: var(--bg); color: var(--ink); font-size: 18px; }
.medal.open svg { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); }
.medal.open circle { fill: none; stroke-width: 5; }
.medal.open .track { stroke: var(--soft-2); }
.medal.open .fill { stroke: #b8425b; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); }
.in .medal.open .fill { stroke-dashoffset: var(--off, 120); }
.chart { width: 100%; max-width: 420px; border-radius: 20px; background: var(--bg); box-shadow: var(--shadow); padding: 20px 20px 14px; }
.chart .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart small { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.chart b { font: 700 34px/1.1 var(--rounded); font-variant-numeric: tabular-nums; }
.chart .up { color: var(--ok); font-weight: 600; font-size: 15px; white-space: nowrap; }
.chart svg { width: 100%; height: auto; margin-top: 10px; }
.chart .line { fill: none; stroke: #b8425b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.8s cubic-bezier(.3, .7, .2, 1); }
.chart .area { fill: url(#fade); opacity: 0; transition: opacity 1s ease .9s; }
.chart .dot { fill: #b8425b; opacity: 0; transition: opacity .3s ease 1.7s; }
.in .chart .line { stroke-dashoffset: 0; }
.in .chart .area, .in .chart .dot { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px 0 10px; border-radius: 14px; background: var(--bg); font-weight: 600; font-size: 15px; }
.chips .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.chips svg { width: 16px; height: 16px; }
.lock .screen { background: radial-gradient(120% 70% at 50% 0%, #5a1426, #0b0507 70%); }
.lock-time { text-align: center; padding-top: 18%; }
.lock-time small { display: block; font-size: .9em; font-weight: 600; opacity: .85; }
.lock-time b { display: block; font: 600 4.4em/1 var(--rounded); letter-spacing: -.02em; }
.live { margin: 30% 5% 0; padding: 6%; border-radius: 1.4em; background: rgba(30, 20, 24, .82); display: grid; grid-template-columns: 1fr auto; gap: 4%; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.live small { color: #c9bec1; font-size: .78em; }
.live b { display: block; font: 700 1.15em var(--rounded); margin-top: 2%; }
.live .timer { position: relative; width: 3.6em; height: 3.6em; display: grid; place-items: center; font: 700 .95em var(--rounded); font-variant-numeric: tabular-nums; }
.live .timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.live .timer circle { fill: none; stroke-width: 3.5; }
.live .timer .t { stroke: rgba(255, 255, 255, .15); }
.live .timer .f { stroke: #e094a2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--rest, 0); transition: stroke-dashoffset 1s linear; }
.live .acts { grid-column: 1 / -1; display: flex; gap: 4%; margin-top: 2%; }
.live .acts span { flex: 1; text-align: center; padding: 3% 0; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .78em; font-weight: 600; }

/* ---------- What's new ---------- */
.updates { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, calc((100% - 60px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 24px; scrollbar-width: none; }
.updates::-webkit-scrollbar { display: none; }
.update { scroll-snap-align: start; border-radius: 24px; background: var(--soft); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; transition: transform .3s ease, box-shadow .3s ease; }
.update:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.update .meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); font-weight: 600; }
.update .tag { color: var(--em); }
.update h3 { font: 600 22px/1.2 var(--display); letter-spacing: -.015em; margin: 8px 0 0; }
.update p { margin: 0; color: var(--muted); font-size: 16px; }
.updates-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .18s ease, background .2s ease; }
.round:hover { transform: translateY(-1px); background: var(--soft); }
.round:active { transform: scale(.95); }
.round svg { width: 18px; height: 18px; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { border-radius: var(--radius); padding: clamp(28px, 3.2vw, 40px); background: var(--soft); }
.plan.pro { background: linear-gradient(150deg, #82213a, #380a17); color: #fff; }
.plan.pro > p, .plan.pro li { color: rgba(255, 255, 255, .88); }
.plan > p { margin: 0 0 20px; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--em); }
.plan.pro li svg { color: #f3c3cd; }

/* ---------- Questions ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 40em; }

/* ---------- Final call ---------- */
.final .inner { border-radius: var(--panel-radius); padding: clamp(56px, 8vw, 96px) var(--gutter); text-align: center; background: radial-gradient(70% 70% at 50% 110%, var(--glow), transparent 70%), linear-gradient(180deg, var(--hero-b), var(--soft)); }
.final .lede { margin: 0 auto 32px; }
.final .signup, .final .signup-note { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-foot { padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-foot a:hover { color: var(--ink); }

/* ---------- Document pages ---------- */
.doc-page { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.doc { max-width: 720px; }
.doc h1 { font: 700 clamp(40px, 5.6vw, 64px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 16px; }
.doc h2 { font: 600 26px/1.2 var(--display); letter-spacing: -.015em; margin: 44px 0 10px; }
.doc h3 { font-size: 18px; margin: 28px 0 4px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--muted); }
.doc .lede { color: var(--ink); margin-bottom: 16px; }

/* ---------- Motion ---------- */
/* The hero enters once, as the page opens. Sections rise into view once as you reach them. */
[data-enter] > * { opacity: 0; transform: translateY(16px); animation: enter .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 100ms + 60ms); }
@keyframes enter { to { opacity: 1; transform: none; } }
.hero-phones .phone { animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.35s + var(--d, 0s)); }
@keyframes rise { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-enter] > *, .js [data-reveal], .hero-phones .phone { opacity: 1 !important; transform: none !important; }
  .medal.open .fill { stroke-dashoffset: var(--off, 120); }
  .chart .line { stroke-dashoffset: 0; }
  .chart .area, .chart .dot { opacity: 1; }
  .how-step { opacity: 1; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .how, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .how-phone { position: relative; top: 0; }
  .how-step { min-height: 0; padding: 28px 0; opacity: 1; }
  .span-4, .span-3, .span-2 { grid-column: span 6; }
  .card.tall { min-height: 0; }
  .plans { grid-template-columns: 1fr; }
  .demo-phone { order: -1; }
}
@media (max-width: 760px) {
  .nav a:not(.button) { display: none; }
  .hero-phones { height: auto; margin-top: 44px; }
  .hero-phones .side { display: none; }
  .phone { --pw: min(280px, 72vw) !important; }
  .phone.peek { --pw: min(290px, 74vw) !important; }
  .signup { flex-direction: column; border-radius: 26px; }
  .signup .button { width: 100%; }
  .signup input { min-height: 50px; text-align: center; }
  .medal { width: 78px; height: 78px; font-size: 20px; }
  .bento { gap: 14px; }
}

/* ---------- Real app screenshots inside the drawn iPhone 17 Pro ---------- */
.screen > img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.how-phone .screen > img.shot { opacity: 0; transform: scale(.985); transition: opacity .5s ease, transform .5s ease; }
.how-phone .screen > img.shot.active { opacity: 1; transform: none; }

/* ---------- Stronger every week: the line climbs with the scroll ---------- */
.climb { height: 240vh; padding: 0; }
.climb-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.climb-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.climb-chart { margin-top: 28px; border-radius: 24px; background: var(--soft); padding: 22px 22px 16px; max-width: 560px; }
.climb-chart .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.climb-chart small { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.climb-chart b { display: block; font: 700 clamp(40px, 5vw, 56px)/1.05 var(--rounded); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.climb-chart .up { color: var(--ok); font-weight: 600; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.climb-chart svg { width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.climb-chart .grid line { stroke: var(--line); stroke-width: 1; }
.climb-chart .line { fill: none; stroke: #b8425b; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.climb-chart .area { fill: url(#climb-fade); }
.climb-chart .dot { fill: #b8425b; stroke: var(--bg); stroke-width: 3; }
.climb-chart .axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 8px; }
.climb-phone { display: flex; justify-content: center; }
@media (max-width: 760px) {
  .climb { height: 200vh; }
  .climb-grid { grid-template-columns: 1fr; }
  .climb-phone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .climb { height: auto; padding: clamp(72px, 9vw, 120px) 0; }
  .climb-pin { position: static; height: auto; }
}
/* Links within the page glide where the script doesn't (touch screens, no script). The script's own
   scrolling asks for instant jumps, so the two never fight. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
