/* Hallmark · shape: Stage then ruled rows · genre: modern-minimal · theme: custom · job: try · idea: "the page wears the notch it sells, and you can switch it" · vibe: "quiet, exact, Windows-native, a little playful"
 * paper: oklch(97.6% 0.003 90) · accent: oklch(64% 0.18 45) · display: Segoe UI Variable Display · body: Segoe UI Variable Text · hero: the live notch hangs from the top edge, centred head and two actions under it · nav: wordmark left, two links and one action right · footer: one hairline line, wordmark and domain · imagery: the product, built in HTML · signature: the real notch shapes morphing at the top of the page, switchable
 * axes: light/grotesk-sans/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R (no photographs), the product built in HTML carries hero and Mochi section instead */
/* waive 47b: .notch is the product itself (the Windows notch this page sells), built in HTML, not browser or OS chrome */
/* waive 79: the hero leaves air under the head on purpose, the notch above grows into that space when a state opens */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- chrome ---------- */
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); background: var(--color-button); color: var(--color-button-ink); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

.nav { position: relative; z-index: var(--z-raised); display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.nav nav { display: flex; align-items: center; gap: var(--space-lg); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.02em; text-decoration: none; color: var(--color-ink); display: inline-flex; align-items: center; min-height: 44px; }
.nav-link { color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); padding-block: var(--space-sm); }
@media (hover: hover) { .nav-link:hover { color: var(--color-ink); text-decoration: underline; } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule); background: transparent; color: var(--color-ink); font-weight: 600; font-size: var(--text-md); text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
@media (hover: hover) { .btn:hover { background: var(--color-paper-3); border-color: var(--color-muted); } }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--color-button); border-color: var(--color-button); color: var(--color-button-ink); }
@media (hover: hover) { .btn--primary:hover { background: var(--color-button-hover); border-color: var(--color-button-hover); } }
.btn--s { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.chip { min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
@media (hover: hover) { .chip:hover { color: var(--color-ink); border-color: var(--color-muted); } }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }

/* ---------- the notch (signature) ---------- */
.notch {
  --w: 168px; --h: 32px; --r: 16px;
  position: absolute; top: 0; left: 50%; z-index: var(--z-sticky); translate: -50% 0;
  width: min(400px, calc(100% - 24px)); height: 64px;
  background: var(--color-notch); color: var(--color-notch-ink);
  clip-path: inset(0 calc((100% - min(var(--w), 100%)) / 2) calc(100% - var(--h)) round 0 0 var(--r) var(--r));
  transition: clip-path var(--dur-long) var(--ease-out);
  font-size: var(--text-sm); line-height: 1.25;
}
.notch::before { content: ""; position: absolute; inset: 0; background: var(--color-tint); opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.notch-edge { position: absolute; inset: 0 0 auto; height: 72px; z-index: var(--z-sticky); pointer-events: none; filter: drop-shadow(0 0 0.5px var(--color-notch-ring)) drop-shadow(0 1px 0 var(--color-notch-ring)); }
.notch[data-state="music"] { --w: 400px; --h: 64px; --r: 26px; }
.notch[data-state="music"]::before { opacity: 0.55; }
.notch[data-state="timer"] { --w: 300px; --h: 48px; --r: 22px; }
.notch[data-state="device"] { --w: 320px; --h: 48px; --r: 22px; }
.notch[data-state="volume"] { --w: 240px; --h: 36px; --r: 18px; }

.state { position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(var(--sw), 100%); height: var(--sh); display: flex; align-items: center; gap: var(--space-sm); padding-inline: var(--space-md); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.state--idle { --sw: 168px; --sh: 32px; justify-content: center; }
.state--music { --sw: 400px; --sh: 64px; padding-inline: var(--space-sm) var(--space-lg); }
.state--timer { --sw: 300px; --sh: 48px; }
.state--device { --sw: 320px; --sh: 48px; }
.state--volume { --sw: 240px; --sh: 36px; }
.notch[data-state="idle"] .state--idle, .notch[data-state="music"] .state--music, .notch[data-state="timer"] .state--timer,
.notch[data-state="device"] .state--device, .notch[data-state="volume"] .state--volume { opacity: 1; transition-delay: 120ms; }

.lines { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lines b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lines span { color: var(--color-notch-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover { flex: none; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--color-accent), var(--color-tint)); }
.eq { display: flex; align-items: flex-end; gap: var(--space-2xs); height: 16px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--color-notch-ink); transform-origin: bottom; animation: eq 900ms var(--ease-in-out) infinite alternate; }
.eq i:nth-child(2) { animation-delay: -300ms; } .eq i:nth-child(3) { animation-delay: -600ms; } .eq i:nth-child(4) { animation-delay: -150ms; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

.ring { flex: none; width: 26px; height: 26px; rotate: -90deg; fill: none; stroke-width: 4; }
.ring circle:first-child { stroke: color-mix(in oklab, var(--color-notch-ink) 18%, transparent); }
.ring circle:last-child { stroke-linecap: round; stroke-dasharray: 100 100; }
.ring--timer circle:last-child { stroke: var(--color-notch-signal); }
.ring--battery circle:last-child { stroke: var(--color-battery); stroke-dasharray: 80 100; }
.clock { font-family: var(--font-outlier); font-size: var(--text-lg); font-variant-numeric: tabular-nums; color: var(--color-notch-signal); }
.glyph { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--color-notch-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bar { flex: 1; height: 6px; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-notch-ink) 18%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--color-notch-ink); transform-origin: left; transform: scaleX(0.6); }

.mochi { position: relative; display: inline-flex; align-items: center; justify-content: center; background: var(--color-mochi); border-radius: var(--radius-pill); }
.mochi i { display: block; background: var(--color-notch); border-radius: var(--radius-pill); animation: blink 5s var(--ease-in-out) infinite; }
.mochi--s { width: 38px; height: 14px; gap: var(--space-xs); }
.mochi--s i { width: 3px; height: 6px; }
.mochi--l { width: min(300px, 60%); aspect-ratio: 3 / 1.1; gap: 14%; }
.mochi--l i { width: 6%; height: 34%; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }

/* ---------- hero ---------- */
.hero { display: grid; justify-items: center; align-content: center; text-align: center; gap: var(--space-lg); padding-block: var(--space-4xl) var(--space-2xl); }
.hero h1 { font-size: var(--text-display); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.02; color: var(--color-ink); }
.lead { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.try { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); margin-top: var(--space-xl); }
.hint { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- sections ---------- */
.block { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.block h2 { font-size: var(--text-section); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--color-ink); max-width: 18ch; }

.rows { margin: var(--space-2xl) 0 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-columns); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.row dt { font-family: var(--font-display); font-size: var(--text-title); font-weight: 600; letter-spacing: -0.01em; }
.row dd { margin: 0; font-size: var(--text-lead); color: var(--color-ink-2); max-width: 46ch; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.split-text { display: grid; gap: var(--space-lg); }
.split-text p { font-size: var(--text-lead); color: var(--color-ink-2); }

.shelf { display: grid; align-content: center; min-height: 340px; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-notch); color: var(--color-notch-ink); }
.file { display: flex; align-items: center; gap: var(--space-md); font-size: var(--text-lg); font-weight: 600; }
.file-icon { display: grid; place-items: center; width: 56px; height: 64px; border-radius: 10px; background: color-mix(in oklab, var(--color-notch-ink) 12%, transparent); font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-notch-muted); }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); }
.fmt { display: grid; place-items: center; min-height: 44px; border-radius: 12px; background: color-mix(in oklab, var(--color-notch-ink) 10%, transparent); font-weight: 600; font-size: var(--text-sm); }
.fmt--on { background: var(--color-notch-signal); color: var(--color-accent-ink); }

.keys { width: 100%; margin-top: var(--space-2xl); border-collapse: collapse; }
.keys th, .keys td { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); text-align: left; font-weight: 400; vertical-align: middle; }
.keys th { width: 40%; white-space: nowrap; }
.keys td { font-size: var(--text-lead); color: var(--color-ink-2); }
kbd { display: inline-grid; place-items: center; min-width: 2.4em; height: 2em; padding-inline: 0.6em; margin-right: var(--space-2xs); border-radius: 8px; border: var(--rule-hair) solid var(--color-rule); border-bottom-width: 2px; background: var(--color-paper-2); font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink); }

.stage { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-card); background: var(--color-notch); }

.steps { list-style: none; padding: 0; margin: var(--space-2xl) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.steps li { display: grid; gap: var(--space-md); align-content: start; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.step-n { font-family: var(--font-display); font-size: var(--text-display-s); font-weight: 600; line-height: 1; color: var(--color-muted); }
.steps p { font-size: var(--text-lead); color: var(--color-ink-2); }
.note { margin-top: var(--space-xl); color: var(--color-muted); max-width: 60ch; }

.download { display: grid; justify-items: start; gap: var(--space-lg); }
.download .actions { justify-content: flex-start; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); width: 100%; margin: var(--space-xl) 0 0; }
.facts div { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.facts dd { margin: var(--space-2xs) 0 0; font-size: var(--text-lg); font-weight: 600; }
.download .note { margin-top: 0; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- small screens ---------- */
@media (max-width: 60rem) {
  .split, .steps, .facts { grid-template-columns: minmax(0, 1fr); }
  .split--mochi .stage { order: 2; }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .keys th { width: auto; }
}
@media (max-width: 40rem) {
  .nav { padding-top: var(--space-2xl); }
  .nav-link { display: none; }
  .hero { min-height: 0; padding-block: var(--space-2xl) var(--space-3xl); }
  .shelf { padding: var(--space-lg); }
  .keys th, .keys td { display: block; }
  .keys td { border-top: 0; padding-top: 0; }
}
