/* ==========================================================================
   Äpple: each variety launched like a flagship. Gallery white, near-black
   type, hairlines, and one accent taken from the fruit's own skin.
   ========================================================================== */

:root {
  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #62626a;          /* 5.6:1 on --bg-2 */
  --line: #d9d9de;
  --night: #000;
  --night-text: #f5f5f7;
  --night-2: #a8a8ae;         /* 8.4:1 on black */
  --ink: #9b1f25;             /* set per variety by JS */
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 3.5rem; scrollbar-color: #c4c4ca var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.5 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in srgb, var(--ink) 22%, white); color: var(--text); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
svg { display: block; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgb(251 251 253 / .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgb(0 0 0 / .06); }
.nav-in { width: min(100% - 2.5rem, 68rem); margin-inline: auto; height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mark { font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; text-decoration: none; }
.nav ul { display: flex; gap: clamp(.9rem, 3vw, 2rem); }
.nav ul a { font-size: .82rem; color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav ul a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(3.5rem, 9vw, 6.5rem) 1.25rem clamp(2.5rem, 6vw, 4rem); }
.hero h1 { font-size: clamp(2.75rem, 8vw, 5.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.lede { max-width: 36rem; margin: 1.1rem auto 0; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.4; color: var(--text-2); text-wrap: balance; }

.stage { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; justify-items: center; }
.stage-fruit { width: min(78vw, 25rem); aspect-ratio: 200 / 212; }
.stage-fruit svg { width: 100%; height: 100%; overflow: visible; }
.stage-name { margin-top: 1.25rem; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.stage-pitch { margin-top: .6rem; max-width: 30rem; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.4; text-wrap: balance; }
.stage-meta { margin-top: .5rem; color: var(--text-2); }
.more { margin-top: 1rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.more svg { width: .45rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: .2em; }
.more:hover svg { translate: 3px 0; }

.picker { margin: clamp(2.5rem, 6vw, 3.5rem) auto 0; display: flex; justify-content: center; gap: .25rem; overflow-x: auto; scrollbar-width: none; max-width: 68rem; padding: .25rem .5rem .5rem; }
.picker::-webkit-scrollbar { display: none; }
.picker button { flex: none; width: 5.6rem; display: grid; justify-items: center; gap: .35rem; padding: .4rem .2rem .5rem; border-radius: 12px; transition: background-color .2s; }
.picker button svg { width: 3rem; height: 3.2rem; transition: transform .4s var(--ease); }
.picker button span { font-size: .74rem; line-height: 1.2; color: var(--text-2); text-align: center; }
.picker button:hover svg { transform: translateY(-3px); }
.picker button[aria-pressed="true"] span { color: var(--text); font-weight: 600; }
.picker button[aria-pressed="true"]::after { content: ""; width: 1.25rem; height: 2px; border-radius: 2px; background: var(--ink); }
@media (max-width: 68rem) { .picker { justify-content: flex-start; } }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.section-title { font-size: clamp(2.3rem, 6vw, 4.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; }
.section-sub { margin-top: .9rem; max-width: 40rem; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.45; color: var(--text-2); }

/* Inside */
.inside { background: var(--bg-2); }
.inside-grid { margin-top: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: clamp(2rem, 5vw, 3rem); }
.cut { position: relative; width: min(100%, 62rem); margin-inline: auto; }
.cut svg { width: 100%; height: auto; }
.leaders path { stroke: #8e8e95; stroke-width: .8; }
.leaders circle { fill: var(--text); stroke: #fff; stroke-width: 1.2; }
.call { position: absolute; width: 26.8%; translate: 0 -50%; display: grid; gap: .1rem; font-size: .82rem; line-height: 1.3; }
.call b { font-weight: 600; font-size: .9rem; }
.call span { color: var(--text-2); }
.call-l { left: 0; text-align: right; padding-right: .5rem; }
.call-r { left: 73.2%; padding-left: .5rem; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3rem); }
.specs div { display: grid; gap: .3rem; padding: 1.1rem 0 1.3rem; border-top: 1px solid var(--line); }
.specs dt { color: var(--text-2); font-size: .95rem; }
.specs dd { font-weight: 500; }
@media (max-width: 56rem) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .cut { overflow: hidden; }
  .cut svg { width: 170%; margin-left: -35%; }
  .cut .leaders, .call { display: none; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs div { grid-template-columns: 7rem 1fr; padding: .9rem 0; }
}

.scale { display: inline-grid; grid-template-columns: auto minmax(5rem, 9rem) auto; align-items: center; gap: .6rem; font-size: .82rem; color: var(--text-2); font-weight: 400; }
.scale i { position: relative; height: 4px; border-radius: 4px; background: var(--line); }
.scale i::after { content: ""; position: absolute; top: 50%; left: calc(var(--p) * 100%); width: .8rem; height: .8rem; border-radius: 50%; background: var(--ink); translate: -50% -50%; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }

/* Lineup */
.filters { margin-top: 2rem; display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border-radius: 999px; background: var(--bg-2); }
.filters button { min-height: 2.4rem; padding: 0 1.05rem; border-radius: 999px; font-size: .92rem; color: var(--text-2); transition: background-color .25s, color .25s, box-shadow .25s; }
.filters button:hover { color: var(--text); }
.filters button[aria-checked="true"] { background: #fff; color: var(--text); font-weight: 500; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 3px 10px -4px rgb(0 0 0 / .12); }
.shelf { margin-top: clamp(2rem, 5vw, 3rem); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 2.5vw, 2rem); }
.shelf li { display: grid; align-content: start; gap: .7rem; transition: opacity .45s var(--ease), filter .45s var(--ease); }
.shelf li.dim { opacity: .22; filter: grayscale(.8); }
.pick { display: grid; gap: .35rem; text-align: left; }
.pick svg { width: 100%; max-width: 10rem; margin-inline: auto; aspect-ratio: 200 / 212; transition: transform .5s var(--ease); }
.pick:hover svg { transform: translateY(-5px); }
.pick .name { margin-top: .4rem; font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; }
.pick .pitch { font-size: .9rem; line-height: 1.4; color: var(--text-2); }
.bar { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; }
.bar i { height: 5px; border-radius: 2px; background: var(--bg-2); }
.bar i.h { background: var(--ink); }
.bar i.k { background: color-mix(in srgb, var(--ink) 28%, white); }
.uses { font-size: .8rem; color: var(--text-2); }
@media (max-width: 60rem) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Compare */
.compare { background: var(--bg-2); }
.cmp { margin-top: clamp(2rem, 5vw, 3rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 4vw, 3rem); }
.sel select { width: 100%; min-height: 2.9rem; padding: 0 2.4rem 0 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center / .75rem; appearance: none; font-weight: 500; }
.sel select:hover { border-color: #b8b8bf; }
.cmp-body { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.cmp-head { display: grid; justify-items: center; text-align: center; padding: 2.5rem 0 1.5rem; }
.cmp-head svg { width: min(100%, 15rem); aspect-ratio: 200 / 212; }
.cmp-name { margin-top: 1rem; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.03em; }
.cmp-pitch { margin-top: .4rem; max-width: 22rem; color: var(--text-2); text-wrap: balance; }
.cmp-k { grid-column: 1 / -1; padding-top: 1.6rem; margin-top: .4rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-2); text-align: center; }
.cmp-v { padding-top: .45rem; text-align: center; font-weight: 500; text-wrap: balance; }
.cmp-v .scale { justify-content: center; }
@media (max-width: 36rem) { .cmp-v .scale { grid-template-columns: minmax(3.5rem, 1fr); } .cmp-v .scale span { display: none; } .cmp-v { font-size: .95rem; } }

/* Season: the one black stage */
.season { background: var(--night); color: var(--night-text); }
.season .section-title span { color: #fff; }
.scrub { margin-top: clamp(2rem, 5vw, 3rem); }
.scrub input { width: 100%; height: 2.5rem; margin: 0; background: transparent; appearance: none; cursor: pointer; }
.scrub input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #f5f5f7 var(--fill, 25%), #3a3a3c var(--fill, 25%)); }
.scrub input::-moz-range-track { height: 4px; border-radius: 4px; background: #3a3a3c; }
.scrub input::-moz-range-progress { height: 4px; border-radius: 4px; background: #f5f5f7; }
.scrub input::-webkit-slider-thumb { appearance: none; width: 1.6rem; height: 1.6rem; margin-top: calc(2px - .8rem); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .5); }
.scrub input::-moz-range-thumb { width: 1.6rem; height: 1.6rem; border: 0; border-radius: 50%; background: #fff; }
.scrub input:focus-visible { outline-color: #fff; }
.ticks { display: grid; grid-template-columns: repeat(9, 1fr); margin: .4rem -.8rem 0; font-size: .78rem; color: var(--night-2); text-align: center; font-variant-numeric: tabular-nums; }
.ticks li.on { color: #fff; font-weight: 600; }
.now { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.now h3 { font-size: 1.05rem; font-weight: 500; color: var(--night-2); padding-bottom: .9rem; border-bottom: 1px solid #333336; }
.now-list { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; min-height: 8rem; }
.now-list button { display: grid; justify-items: center; gap: .4rem; width: 6.5rem; color: var(--night-text); }
.now-list button svg { width: 5rem; aspect-ratio: 200 / 212; transition: transform .4s var(--ease); }
.now-list button:hover svg { transform: translateY(-4px); }
.now-list button span { font-size: .85rem; text-align: center; line-height: 1.25; }
.now-list .none { color: var(--night-2); align-self: center; }
@media (max-width: 40rem) { .now { grid-template-columns: minmax(0, 1fr); } .ticks { font-size: .7rem; margin-inline: -.4rem; } }

/* Footer */
.foot { padding: 2.5rem 0 3.5rem; font-size: .8rem; line-height: 1.5; color: var(--text-2); background: var(--bg-2); }
.foot p { max-width: 70ch; }
.foot p + p { margin-top: .8rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
