:root {
  --ink: #0e0a18;
  --surface: #16112a;
  --surface-2: #221b38;
  --line: #2e2745;
  --line-2: #3a3256;
  --text: #f3efe6;
  --muted: #b8b1c9;
  --faint: #8d86a3;
  --dim: #6f6888;
  --outline: #2a2340;
  --accent: #c8f25a;   /* keep */
  --reject: #ff7a3d;
  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1920px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }
.mono { font-family: var(--mono); }
.wide { font-stretch: 125%; }
.shot { filter: drop-shadow(0 40px 60px rgba(0,0,0,.7)); }

/* Header */
.site-header { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: -.02em; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.site-nav { display: flex; gap: clamp(12px, 2.5vw, 28px); font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 20px var(--gutter) 72px; display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3.5vw, 40px); gap: clamp(16px, min(3.5vw, 4svh), 40px); overflow: hidden; }
.hero-word { position: absolute; left: 50%; top: clamp(150px, 20vw, 240px); transform: translateX(-50%); font-size: clamp(120px, 27vw, 400px); font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--outline); white-space: nowrap; pointer-events: none; user-select: none; }
.tabs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(22,17,42,.85); border: 1px solid var(--line); }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; font: 600 14px var(--display); background: transparent; color: var(--muted); transition: background .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--text); color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The whole app window fits on the first screen: its width follows the screen height (the crops
   are 1626 x 1292), never wider than 1200px and never narrower than 380px, about 300px tall. */
.showcase { position: relative; margin: 0; width: 100%; max-width: 1200px; max-width: min(1200px, max(380px, (100svh - 190px) * 1.2585)); }
.showcase-glow { position: absolute; left: 8%; right: 8%; bottom: -6%; height: 40%; background: var(--accent); opacity: .16; filter: blur(80px); border-radius: 50%; }
.showcase-stage { position: relative; display: grid; }
/* A true crossfade: the outgoing image keeps its visibility until its fade has finished. */
.showcase-stage img { grid-area: 1 / 1; transition: opacity .45s ease, visibility 0s; }
.showcase-stage img[hidden] { display: block; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.showcase:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 12px; }
.showcase-caption { position: relative; margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 14px; text-align: center; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent); }
.caption { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 560px; }
.hero-copy { position: relative; width: 100%; max-width: 900px; margin-top: 16px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-copy > div:first-child { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; container-type: inline-size; }
h1 { margin: 0; font-weight: 900; font-stretch: 125%; font-size: clamp(34px, 5.4vw, 60px); line-height: .95; letter-spacing: -.035em; }
/* Each line of the hero headline stays on one row: "Keep what hits." is 9.52em wide, so it is sized to its column. */
.hero-copy h1 { white-space: nowrap; font-size: clamp(26px, 10.4cqi, 60px); }
.accent { color: var(--accent); }
.lede { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 460px; }
.cta-col { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--text); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.btn--dark { background: var(--ink); color: var(--text); }
.req { font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* Hero layout. Phones stack the app first and the copy under it; from 960px the copy sits on the
   left and the app on the right. The headline comes first in the markup either way. */
.hero-main { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: clamp(16px, min(3.5vw, 4svh), 40px); }
.hero-media { order: -1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: clamp(16px, min(3.5vw, 4svh), 40px); }
@media (min-width: 960px) {
  .hero-main { max-width: var(--max); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 4vw, 64px); }
  .hero-media { order: 0; }
  .hero-copy { margin-top: 0; max-width: none; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 28px; }
  .hero-copy > div:first-child { flex: none; align-self: stretch; }
}

/* Ticker */
.ticker { border-block: 1px solid #241d38; padding: 14px 0; overflow: hidden; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--faint); }
/* Each half holds the phrase four times (about 3,800px), so the loop never shows an end, even on an ultrawide screen. */
.ticker-track { display: flex; width: max-content; animation: tick 160s linear infinite; }
.ticker-track span { white-space: pre; }
.ticker b { color: var(--accent); font-weight: 400; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.section--tight-top { padding-top: 0; }
h2 { margin: 0; font-weight: 900; font-stretch: 125%; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.03em; line-height: 1; }
h2 .dim { color: var(--dim); }
.keys { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.key-card { flex: 1 1 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.keycap { width: 72px; height: 72px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 5px 0 #0a0712; display: grid; place-items: center; font-size: 30px; }
.keycap--wide { width: 112px; font-family: var(--mono); font-size: 24px; }
.key-title { font-weight: 800; font-stretch: 125%; font-size: 24px; }
.key-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.is-reject { color: var(--reject); }
.is-keep { color: var(--accent); }
.split { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 64px); }
.split > div { display: flex; flex-direction: column; gap: 16px; container-type: inline-size; }
/* Phones show the window first, then the copy. */
.split > img { order: -1; width: 100%; min-width: 0; filter: drop-shadow(0 30px 50px rgba(0,0,0,.65)); }
/* Each line stays on one row: "All your music," is 8.87em wide, so the heading is sized to its column. */
.split h2 { white-space: nowrap; font-size: clamp(26px, 11.1cqi, 52px); }

/* Trust */
.trust { background: var(--accent); color: var(--ink); }
.trust .wrap { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.trust-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; container-type: inline-size; }
/* "gets deleted." is 7.96em wide; the heading is sized to its column so neither line wraps. */
.trust h2 { flex: 1 1 480px; white-space: nowrap; font-size: clamp(26px, 12.4cqi, 60px); letter-spacing: -.04em; line-height: .92; }
.trust-copy { flex: 0 1 380px; display: flex; flex-direction: column; gap: 18px; }
.trust-copy p { margin: 0; font-size: 18px; line-height: 1.5; }
.trust-copy .btn { align-self: flex-start; }
.trust img { order: -1; width: 100%; max-width: 900px; margin: 0 auto; filter: drop-shadow(0 40px 60px rgba(14,10,24,.45)); }
/* From 960px the trust section matches the hero: copy on the left, the window on the right. */
/* From 960px the hero, "All your music" and the trust section share one grid: copy in the left
   5/12, the window filling the right 7/12, so all three windows are the same width. */
@media (min-width: 960px) {
  .split, .trust .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 4vw, 64px); }
  .trust img { order: 0; max-width: none; }
  /* "All your music" mirrors the others: the window on the left, the copy on the right. */
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .trust-head { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 24px; }
  .trust h2, .trust-copy { flex: none; }
}

/* Footer */
.site-footer { padding: 28px var(--gutter); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--faint); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Support and Privacy: the same ground, header and footer, with a readable text column. */
.page-top { padding: 20px var(--gutter) 0; }
.page { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(64px, 9vw, 120px); font-size: 17px; line-height: 1.6; }
.page h1 { font-size: clamp(34px, 5.4vw, 60px); }
.page .updated { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--faint); }
.page h2 { margin-top: 48px; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 22px; }
.page li + li { margin-top: 6px; }
.page a { color: var(--accent); }
.contact { margin-top: 28px; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.contact p { margin: 0; color: var(--text); }
.contact a { font-weight: 700; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { margin-top: 20px; border-top: 1px solid var(--line); }
summary { min-height: 28px; cursor: pointer; font-weight: 700; color: var(--text); list-style-position: inside; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
details p, details ul { margin: 12px 0 0; }
kbd { font: 600 13px/1 var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 2px 0 #0a0712; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .showcase-stage img, .showcase-stage img[hidden] { transition: none; }
}
