/* Verismo — shared styles (extracted from VerismoStyle.swift tokens) */
/* ---------- Tokens — transcribed from VerismoStyle.swift ---------- */
:root {
  --ink:        #18261c;
  --ink-soft:   rgba(24, 38, 28, .64);
  --ink-mute:   rgba(24, 38, 28, .45);
  --paper:      #fafcf7;
  --card:       #ffffff;
  --hair:       rgba(24, 38, 28, .10);
  --hair-soft:  rgba(24, 38, 28, .07);

  /* Brand (logo-derived, v0.8 "fresh & glossy") */
  --leaf:       #5eca5c;
  --leaf-deep:  #3da357;
  --lime:       #99e06b;
  --banana:     #ffcf3b;

  /* Semantic accents — never used outside their role */
  --record:     #ed3b48;
  --zoom:       #fa9e29;   /* auto-zoom lane */
  --music:      #996beb;   /* music lane */
  --ai:         #8c61e6;   /* Settings ▸ AI indigo */
  --azure:      #3380f2;   /* Library */
  --sky:        #2e9ef5;
  --party:      #c22333;   /* Friday Night decorations — the wine-glass crimson */

  /* Radius ladder: chip 7 · lane 8 · pill 10 · card 14 · panel 16 */
  --r-chip: 7px; --r-lane: 8px; --r-pill: 10px; --r-card: 14px; --r-panel: 16px;

  --display: "Archivo", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;

  --w: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }

html[data-theme="friday-night"] body {
  --ink:        #fff7f3;
  --ink-soft:   rgba(255, 247, 243, .76);
  --ink-mute:   rgba(255, 247, 243, .52);
  --paper:      #120205;
  --card:       #241014;
  --hair:       rgba(255, 230, 224, .18);
  --hair-soft:  rgba(255, 230, 224, .10);
  --leaf:       #ff6f79;
  --leaf-deep:  #ff4653;
  --lime:       #ff9aa2;
  --banana:     #ffd166;
  --party:      #ff4653;
  --music:      #cda7ff;
  --azure:      #81beff;
  --record:     #ff3f4c;
  --zoom:       #ffb15c;
  background:
    radial-gradient(60% 75% at 76% -4%, rgba(255,70,83,.30), transparent 64%),
    radial-gradient(54% 72% at 18% 6%, rgba(205,167,255,.18), transparent 58%),
    radial-gradient(72% 84% at 52% 118%, rgba(255,177,92,.12), transparent 62%),
    linear-gradient(180deg, #1a0307 0%, #120205 46%, #080102 100%);
}
html[data-theme="friday-night"] .bar {
  background: rgba(16, 2, 5, .78);
  border-color: rgba(255, 230, 224, .14);
  box-shadow: 0 12px 36px rgba(0,0,0,.30), inset 0 -1px 0 rgba(255,255,255,.04);
}
html[data-theme="friday-night"] .bar .mark,
html[data-theme="friday-night"] .bar nav a,
html[data-theme="friday-night"] .bar .ver { color: var(--ink-soft); }
html[data-theme="friday-night"] .bar nav a:hover,
html[data-theme="friday-night"] .bar nav a.active,
html[data-theme="friday-night"] .bar .mark span { color: var(--ink); }
html[data-theme="friday-night"] .bar nav a.active {
  background: rgba(255,70,83,.18);
}
html[data-theme="friday-night"] .bar .ver,
html[data-theme="friday-night"] .theme-switch {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,230,224,.16);
}
html[data-theme="friday-night"] .hero h1 em { color: #ff8b91; }
html[data-theme="friday-night"] .hero h1 em::after { background: rgba(205,167,255,.68); }
html[data-theme="friday-night"] .stage {
  background:
    radial-gradient(52% 80% at 84% 0%, rgba(255,70,83,.42), transparent 62%),
    radial-gradient(70% 90% at 10% 100%, rgba(205,167,255,.20), transparent 58%),
    linear-gradient(155deg, #4e0b13, #210408 62%, #0d0103);
  box-shadow: 0 26px 86px rgba(255,70,83,.20), 0 2px 0 rgba(255,255,255,.06) inset;
}
html[data-theme="friday-night"] .stage::before {
  background-image: radial-gradient(rgba(255,255,255,.16) 1.3px, transparent 1.4px);
}
html[data-theme="friday-night"] .stage .ruler,
html[data-theme="friday-night"] .stage .rec {
  background: rgba(22,3,6,.72);
  color: var(--ink);
}
html[data-theme="friday-night"] .mas {
  background: linear-gradient(180deg, #ff6b74, #c22333);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 32px rgba(194,35,51,.30);
}
html[data-theme="friday-night"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 18deg at 50% 8%, transparent 0 20deg, rgba(255,255,255,.10) 21deg 23deg, transparent 24deg 58deg, rgba(255,70,83,.16) 59deg 62deg, transparent 63deg 116deg, rgba(205,167,255,.12) 117deg 120deg, transparent 121deg 360deg),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255,255,255,.025) 71px 72px, transparent 73px 140px);
  mix-blend-mode: screen;
  opacity: .82;
  animation: friday-lasers 12s linear infinite;
}
html[data-theme="friday-night"] body > *:not(.bar) {
  position: relative;
  z-index: 1;
}
@keyframes friday-lasers {
  to { filter: hue-rotate(24deg); transform: rotate(.001deg); background-position: 120px 0, 80px 0; }
}

/* ---------- Type voices ---------- */
.display {
  font-family: var(--display);
  font-stretch: 112%;               /* a gently expanded cut — wide, not heavy */
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.06;
}
.eyebrow {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lime), var(--leaf));
}
.readout { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Nav: the window's own toolbar ---------- */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 252, 247, .82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hair);
}
.bar-inner {
  /* Wider than the content column so the wordmark→nav auto-margin never
     collapses when the version chip is visible — toolbars span the window. */
  max-width: calc(var(--w) + 100px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 24px;
}
.traffic { display: flex; gap: 7px; flex-shrink: 0; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; }
.traffic i:nth-child(1) { background: #ec6a5e; }
.traffic i:nth-child(2) { background: #f4bf4f; }
.traffic i:nth-child(3) { background: #61c454; }
.bar .mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.bar .mark img { width: 27px; height: 27px; border-radius: 7px; }
.bar .mark span { font-family: var(--display); font-stretch: 112%; font-weight: 720; font-size: 17px; letter-spacing: .01em; }
.bar nav { display: flex; gap: 2px; margin-left: auto; }
.bar nav a {
  font-weight: 700; font-size: 14px;
  color: var(--ink-soft); text-decoration: none;
  padding: 7px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.bar nav a:hover { background: rgba(24,38,28,.06); color: var(--ink); }
.bar nav a.active { color: var(--leaf-deep); background: rgba(94,202,92,.14); }
.bar .ver {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  color: var(--ink-mute);
  padding: 3px 8px; border: 1px solid var(--hair); border-radius: var(--r-chip);
  background: rgba(24,38,28,.03);
}
.theme-switch {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(24,38,28,.04);
  color: var(--ink-soft);
  padding: 4px 7px 4px 10px;
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.theme-switch-track {
  width: 34px; height: 20px; border-radius: 999px;
  background: rgba(24,38,28,.18);
  position: relative;
  transition: background .18s ease;
}
.theme-switch-track::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.24);
  transition: left .18s ease;
}
.theme-switch[aria-pressed="true"] {
  color: var(--ink);
  background: rgba(255,69,77,.14);
  border-color: rgba(255,69,77,.36);
}
.theme-switch[aria-pressed="true"] .theme-switch-track {
  background: var(--party);
}
.theme-switch[aria-pressed="true"] .theme-switch-track::after {
  left: 17px;
}
.lang-select {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-soft);
  background: rgba(24,38,28,.04);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.lang-select:hover { color: var(--ink); background: rgba(24,38,28,.08); }
html[data-theme="friday-night"] .lang-select {
  color: var(--ink-soft);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,230,224,.16);
}
html[data-theme="friday-night"] .lang-select:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: 15.5px;
  padding: 12px 22px; border-radius: var(--r-pill);
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.4,.64,1), box-shadow .18s ease;
}
.btn:hover { transform: scale(1.015); }   /* VerismoStyle.hoverScale */
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--lime), var(--leaf) 52%, var(--leaf-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 18px rgba(61,163,87,.35);
  text-shadow: 0 1px 2px rgba(24,64,28,.25);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 24px rgba(61,163,87,.45); }
.btn-quiet {
  color: var(--ink);
  background: rgba(24,38,28,.05);
  border: 1px solid var(--hair);
}
.btn-quiet:hover { background: rgba(24,38,28,.09); }
.bar .btn { padding: 8px 16px; font-size: 14px; }
.mas {
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: 15.5px;
  color: #fff; background: #101613;
  padding: 12px 24px; border-radius: 12px;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 18px rgba(24,38,28,.22);
  transition: transform .18s cubic-bezier(.34,1.4,.64,1), box-shadow .18s ease;
}
.mas:hover { transform: scale(1.015); }

/* ---------- Sections ---------- */
.section { max-width: var(--w); margin: 0 auto; padding: 108px 24px 0; }
.section > h1, .section > h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 16px; text-wrap: balance; }
.section > .lede { max-width: 600px; font-size: 18px; color: var(--ink-soft); margin: 0 0 46px; }

/* ---------- Hero ---------- */
.hero { max-width: var(--w); margin: 0 auto; padding: 138px 24px 0; text-align: center; }
.hero h1 {
  font-size: clamp(40px, 7vw, 78px);
  margin: 0 auto 20px;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--leaf-deep); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .04em; height: .18em;
  background: var(--banana); border-radius: 99px; z-index: -1; opacity: .85;
}
.hero .lede { max-width: 56ch; margin: 0 auto 30px; font-size: 19px; color: var(--ink-soft); }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.hero .fineprint { font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute); margin: 0 0 52px; }

/* ---------- The stage: a live Verismo export ---------- */
.stage {
  position: relative;
  border-radius: var(--r-panel);
  border: 1px solid var(--hair);
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(255,207,59,.22), transparent 60%),
    radial-gradient(70% 100% at 10% 100%, rgba(153,224,107,.30), transparent 60%),
    linear-gradient(155deg, #eef8e8, #dff2d6 60%, #d3edcb);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(24,38,28,.16);
}
.stage::before {                      /* the "dots" procedural backdrop */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(61,163,87,.22) 1.3px, transparent 1.4px);
  background-size: 24px 24px;
  animation: dotdrift 26s linear infinite;
}
@keyframes dotdrift { to { background-position: 96px 48px; } }
.stage .ruler {
  position: relative;
  display: flex; justify-content: space-between;
  padding: 10px 18px 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: rgba(24,38,28,.5);
  border-bottom: 1px solid rgba(24,38,28,.08);
  background:
    repeating-linear-gradient(90deg, rgba(24,38,28,.16) 0 1px, transparent 1px 12px) left bottom / 100% 5px no-repeat,
    rgba(255,255,255,.5);
}
.stage .shot { position: relative; padding: clamp(18px, 4.2vw, 46px); }
.stage .shot img {
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(24,38,28,.30), 0 2px 8px rgba(24,38,28,.18);
}
.stage .rec {
  position: absolute; top: 44px; left: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--ink);
  background: rgba(255,255,255,.85);
  border: 1px solid var(--hair);
  border-radius: var(--r-chip);
  padding: 5px 10px;
  box-shadow: 0 4px 14px rgba(24,38,28,.12);
}
.stage .rec i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--record);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

/* synthetic cursor + click ripples */
.syncursor {
  position: absolute; z-index: 4; width: 18px; height: 18px;
  border: 2.5px solid #fff; border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(94,202,92,.30), 0 2px 8px rgba(24,38,28,.35);
  pointer-events: none;
  transition: top 1.6s cubic-bezier(.45,.05,.25,1), left 1.6s cubic-bezier(.45,.05,.25,1);
}
.ripple {
  position: absolute; z-index: 3; width: 18px; height: 18px;
  border: 2px solid var(--leaf); border-radius: 50%;
  pointer-events: none;
  animation: rip .9s ease-out forwards;
}
@keyframes rip { to { transform: scale(3.4); opacity: 0; } }

.friday-showcase {
  margin-top: 28px;
  text-align: left;
  display: none;
  grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  border: 1px solid rgba(194,35,51,.20);
  border-radius: var(--r-panel);
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(255,69,77,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.70));
  box-shadow: 0 18px 48px rgba(24,38,28,.10);
  padding: clamp(20px, 3.4vw, 34px);
}
html[data-theme="friday-night"] .friday-showcase {
  display: grid;
  background:
    radial-gradient(72% 98% at 94% 0%, rgba(255,70,83,.26), transparent 62%),
    radial-gradient(54% 78% at 12% 100%, rgba(205,167,255,.12), transparent 58%),
    linear-gradient(180deg, rgba(44,10,14,.92), rgba(22,4,7,.88));
  border-color: rgba(255,230,224,.18);
  box-shadow: 0 22px 66px rgba(255,70,83,.14), inset 0 1px 0 rgba(255,255,255,.08);
}
.friday-showcase h2 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 720;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.1;
  margin: 0 0 10px;
}
.friday-showcase p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}
.friday-record-player {
  display: grid;
  grid-template-columns: minmax(220px, 296px) 1fr;
  gap: clamp(16px, 3vw, 24px);
  align-items: center;
  max-width: 620px;
  margin-top: 18px;
}
.friday-turntable {
  position: relative;
  isolation: isolate;
  width: min(100%, 296px);
  aspect-ratio: 1.42;
  padding: 18px 78px 18px 18px;
  border: 1px solid rgba(255,230,224,.16);
  border-radius: 25px;
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,.14), transparent 20%),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02) 36%, rgba(0,0,0,.22)),
    #15090d;
  box-shadow:
    0 22px 46px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -18px 30px rgba(0,0,0,.20);
}
.friday-turntable::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: min(58%, 174px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.20) 0 10%, transparent 11%),
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(0,0,0,.24));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 18px 30px rgba(0,0,0,.22);
}
.friday-turntable::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255,255,255,.74), transparent 0 18%),
    linear-gradient(145deg, #353136, #090709);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 8px 16px rgba(0,0,0,.30);
}
.friday-record {
  position: relative;
  z-index: 2;
  width: min(100%, 168px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #f5f0ea 0 19%, #151010 20% 28%, #2b2021 29% 39%, #0b0809 40% 100%),
    repeating-radial-gradient(circle at 50% 50%, #211a1b 0 3px, #070606 4px 6px);
  box-shadow:
    0 18px 34px rgba(0,0,0,.42),
    0 0 0 5px rgba(255,197,201,.34),
    0 0 42px rgba(255,70,83,.16),
    inset 0 1px 10px rgba(255,255,255,.22);
}
.friday-record::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 5px, rgba(255,255,255,.055) 6px 7px),
    conic-gradient(from 18deg, rgba(255,255,255,.13), transparent 9deg 58deg, rgba(255,255,255,.08) 70deg, transparent 86deg 360deg);
  mix-blend-mode: screen;
  pointer-events: none;
}
.friday-record::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0 36%, rgba(255,255,255,.18) 43%, transparent 51% 100%);
  opacity: .42;
  pointer-events: none;
}
.friday-record img {
  position: relative;
  z-index: 1;
  width: 43%;
  height: 43%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #111;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 0 5px rgba(245,240,234,.85);
}
.friday-spindle {
  position: absolute;
  z-index: 3;
  left: 97px;
  top: 97px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f7d8a6;
  box-shadow: 0 0 0 2px #10090a, 0 0 14px rgba(255,209,102,.42);
  pointer-events: none;
}
.friday-tonearm {
  position: absolute;
  z-index: 4;
  right: 28px;
  top: 34px;
  width: 104px;
  height: 86px;
  pointer-events: none;
  transform-origin: 80px 22px;
  transform: rotate(8deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.friday-tonearm::before {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #514b51, #151115);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 12px 20px rgba(0,0,0,.28);
}
.friday-tonearm::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 21px;
  width: 78px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8d6c3, #9b8790 48%, #21191d);
  transform: rotate(30deg);
  transform-origin: 100% 50%;
  box-shadow: 0 6px 12px rgba(0,0,0,.20);
}
.friday-tonearm i {
  position: absolute;
  left: 5px;
  top: 56px;
  width: 24px;
  height: 13px;
  border-radius: 4px 4px 9px 9px;
  background: linear-gradient(180deg, #2b2528, #050404);
  transform: rotate(29deg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 6px 10px rgba(0,0,0,.30);
}
.friday-tonearm i::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 10px solid #d9c4b0;
}
.friday-record-player.is-playing .friday-record {
  animation: friday-disc-spin 5.2s linear infinite;
}
.friday-record-player.is-playing .friday-tonearm {
  transform: rotate(23deg);
}
.friday-player-copy {
  display: grid;
  gap: 10px;
  align-content: center;
}
.friday-player-copy > span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.friday-play {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,197,201,.64);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.14)), var(--card);
  color: var(--party);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(194,35,51,.24), inset 0 1px 0 rgba(255,255,255,.34);
  transition: transform .16s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.friday-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 32px rgba(194,35,51,.30), inset 0 1px 0 rgba(255,255,255,.38);
}
.friday-record-player.is-playing .friday-play {
  background: linear-gradient(180deg, #ff6b74, #c22333);
  border-color: #ff8b91;
  color: #fff;
}
.friday-play svg {
  width: 14px;
  height: 14px;
  display: block;
}
@keyframes friday-disc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.friday-memes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.friday-cover-option {
  position: relative;
  border: 3px solid #101010;
  border-radius: 18px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(24,38,28,.20);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.friday-cover-option:hover,
.friday-cover-option:focus-visible {
  transform: translateY(-2px);
  border-color: #ff6b74;
}
.friday-cover-option[aria-pressed="true"] {
  border-color: #ff6b74;
  box-shadow: 0 0 0 4px rgba(255,107,116,.22), 0 16px 30px rgba(194,35,51,.22);
}
.friday-cover-option img {
  aspect-ratio: 1;
  width: 100%;
  display: block;
  object-fit: cover;
}
html[data-theme="friday-night"] .friday-cover-option {
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 14px 30px rgba(0,0,0,.34);
}
html[data-theme="friday-night"] .friday-cover-option[aria-pressed="true"] {
  box-shadow: 0 0 0 4px rgba(255,107,116,.28), 0 0 34px rgba(255,70,83,.26), 0 18px 34px rgba(0,0,0,.36);
}
.friday-dance-floor {
  grid-column: 1 / -1;
  position: relative;
  min-height: 238px;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid rgba(255,197,201,.24);
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.24), transparent 12%),
    radial-gradient(circle at 22% 74%, rgba(255,70,83,.22), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(205,167,255,.18), transparent 27%),
    linear-gradient(180deg, rgba(45,5,10,.94), rgba(12,1,4,.98) 74%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -44px 80px rgba(255,70,83,.12),
    0 22px 42px rgba(0,0,0,.18);
}
.friday-dance-floor::before,
.friday-dance-floor::after {
  content: "";
  position: absolute;
  inset: -44% -8% auto;
  height: 150%;
  pointer-events: none;
  background:
    conic-gradient(from 205deg at 50% 0%, transparent 0 18deg, rgba(255,70,83,.58) 19deg 23deg, transparent 24deg 52deg, rgba(129,190,255,.36) 53deg 57deg, transparent 58deg 84deg, rgba(205,167,255,.44) 85deg 89deg, transparent 90deg 118deg, rgba(255,209,102,.32) 119deg 123deg, transparent 124deg 360deg);
  mix-blend-mode: screen;
  transform-origin: 50% 0%;
  animation: friday-floor-lasers 5.4s linear infinite;
}
.friday-dance-floor::after {
  animation-duration: 7.8s;
  animation-direction: reverse;
  opacity: .82;
}
@keyframes friday-floor-lasers {
  to { transform: rotate(360deg); }
}
.friday-floor-grid {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -18%;
  height: 62%;
  z-index: 0;
  transform: perspective(260px) rotateX(58deg);
  transform-origin: 50% 100%;
  background:
    linear-gradient(rgba(255,70,83,.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,209,102,.16) 1px, transparent 1px);
  background-size: 100% 22px, 48px 100%;
  box-shadow: 0 -18px 46px rgba(255,70,83,.22);
}
.friday-light {
  position: absolute;
  z-index: 1;
  top: 18px;
  width: 34%;
  height: 120%;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .62;
  filter: blur(1px);
  transform-origin: 50% 0%;
  animation: friday-spotlight 2.8s ease-in-out infinite;
}
.friday-light.light-a {
  left: 6%;
  background: linear-gradient(180deg, rgba(255,70,83,.44), transparent 72%);
  rotate: -18deg;
}
.friday-light.light-b {
  left: 34%;
  background: linear-gradient(180deg, rgba(205,167,255,.36), transparent 72%);
  animation-delay: -.9s;
}
.friday-light.light-c {
  right: 5%;
  background: linear-gradient(180deg, rgba(255,209,102,.26), transparent 72%);
  rotate: 18deg;
  animation-delay: -1.5s;
}
.friday-crowd {
  position: absolute;
  inset: 54px 90px 22px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 5vw, 54px);
  pointer-events: none;
}
.friday-dancer {
  --shirt: #ff4653;
  --skin: #ffd6bd;
  position: relative;
  width: 42px;
  height: 118px;
  transform-origin: 50% 100%;
  animation: friday-dance-step 1.05s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 14px 12px rgba(0,0,0,.34));
}
.friday-dancer i,
.friday-dancer b,
.friday-dancer em,
.friday-dancer strong {
  position: absolute;
  display: block;
}
.friday-dancer i {
  left: 11px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--skin);
  box-shadow: inset -4px 0 0 rgba(0,0,0,.18);
}
.friday-dancer b {
  left: 9px;
  top: 25px;
  width: 24px;
  height: 42px;
  border-radius: 13px 13px 10px 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--shirt) 82%, white), var(--shirt));
}
.friday-dancer em,
.friday-dancer strong {
  top: 29px;
  width: 9px;
  height: 46px;
  border-radius: 999px;
  background: var(--skin);
  transform-origin: 50% 8%;
}
.friday-dancer em {
  left: 4px;
  transform: rotate(-46deg);
}
.friday-dancer strong {
  right: 3px;
  transform: rotate(42deg);
}
.friday-dancer::before,
.friday-dancer::after {
  content: "";
  position: absolute;
  top: 63px;
  width: 10px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, #241014, #090305);
  transform-origin: 50% 0%;
}
.friday-dancer::before {
  left: 11px;
  transform: rotate(14deg);
}
.friday-dancer::after {
  right: 10px;
  transform: rotate(-18deg);
}
.dancer-a { --shirt: #ff4653; --delay: 0s; }
.dancer-b { --shirt: #cda7ff; --delay: -.22s; scale: 1.1; }
.dancer-c { --shirt: #ffb15c; --delay: -.44s; scale: .96; }
.dancer-d { --shirt: #81beff; --delay: -.66s; scale: 1.04; }
.dancer-b em { transform: rotate(-82deg); }
.dancer-b strong { transform: rotate(72deg); }
.dancer-c em { transform: rotate(-22deg); }
.dancer-c strong { transform: rotate(88deg); }
.dancer-d em { transform: rotate(-70deg); }
.dancer-d strong { transform: rotate(28deg); }
@keyframes friday-spotlight {
  0%, 100% { transform: rotate(-4deg) translateX(-2%); opacity: .45; }
  50% { transform: rotate(5deg) translateX(3%); opacity: .76; }
}
@keyframes friday-dance-step {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  35% { transform: translateY(-11px) rotate(6deg); }
  70% { transform: translateY(-4px) rotate(-8deg); }
}
.friday-prop {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(42px, 6vw, 58px);
  height: clamp(42px, 6vw, 58px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.25);
  backdrop-filter: blur(8px) saturate(1.25);
  font-size: clamp(24px, 4vw, 36px);
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.36));
}
.friday-prop.disco {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  animation: friday-disco-swing 3.6s ease-in-out infinite;
}
.friday-prop.confetti {
  left: 18px;
  bottom: 18px;
  animation: friday-confetti-pop 2.4s ease-in-out infinite;
}
.friday-prop.beer {
  right: 86px;
  bottom: 20px;
  animation: friday-beer-chill 2.2s ease-in-out infinite;
}
.friday-prop.wine {
  right: 22px;
  bottom: 18px;
  transform-origin: 50% 100%;
  animation: friday-wine-sway 2.8s ease-in-out infinite;
}
@keyframes friday-disco-swing {
  0%, 100% { transform: translateX(-50%) rotate(-7deg); }
  50% { transform: translateX(-50%) rotate(7deg); }
}
@keyframes friday-confetti-pop {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-7px); }
}
@keyframes friday-beer-chill {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}
@keyframes friday-wine-sway {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(9deg); }
}

/* ---------- Features: an inspector, not a card grid ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.inspector-frame {
  display: grid;
  grid-template-columns: 232px 1fr;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  box-shadow: 0 22px 60px rgba(24,38,28,.10);
  overflow: hidden;
}
.feat-sidebar {
  background: rgba(24,38,28,.035);
  border-right: 1px solid var(--hair);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 1px;
}
.feat-item { display: contents; }
.feat-item input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.feat-sidebar label {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r-lane);
  font-weight: 700; font-size: 14.5px; color: var(--ink-soft);
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.feat-sidebar label:hover { background: rgba(24,38,28,.05); color: var(--ink); }
.feat-item input:checked ~ label { background: rgba(24,38,28,.08); color: var(--ink); }
.feat-item input:focus-visible ~ label { outline: 3px solid var(--leaf); outline-offset: 2px; }
.feat-detail { padding: 40px 44px; display: flex; align-items: center; }
.feat-panel { display: none; max-width: 56ch; }
.feat-panel .chip {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: #fff;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.feat-panel h3 { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 23px; margin: 0 0 10px; letter-spacing: -.005em; }
.feat-panel p { margin: 0; font-size: 16px; color: var(--ink-soft); }
/* Per-feature inspector readout — the control rows the app itself shows */
.feat-spec {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair-soft);
  max-width: 400px;
  display: grid;
  gap: 10px;
}
.feat-spec > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.feat-spec dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.feat-spec dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
html[data-theme="friday-night"] .feat-spec { border-color: rgba(255,230,224,.14); }
.inspector-frame:has(#feat-framing:checked) #panel-framing,
.inspector-frame:has(#feat-zoom:checked) #panel-zoom,
.inspector-frame:has(#feat-cursor:checked) #panel-cursor,
.inspector-frame:has(#feat-webcam:checked) #panel-webcam,
.inspector-frame:has(#feat-annotate:checked) #panel-annotate,
.inspector-frame:has(#feat-deco:checked) #panel-deco,
.inspector-frame:has(#feat-transcript:checked) #panel-transcript,
.inspector-frame:has(#feat-notes:checked) #panel-notes,
.inspector-frame:has(#feat-library:checked) #panel-library { display: block; }
/* Flagship panels pair their copy with a live editor screenshot */
.inspector-frame:has(#feat-spotlight:checked) #panel-spotlight,
.inspector-frame:has(#feat-branding:checked) #panel-branding,
.inspector-frame:has(#feat-ducking:checked) #panel-ducking,
.inspector-frame:has(#feat-publish:checked) #panel-publish { display: grid; }
.feat-panel.has-shot {
  max-width: none; width: 100%;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.12fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
}
.feat-shot {
  margin: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--hair);
  box-shadow: 0 16px 40px rgba(24,38,28,.14);
  background: var(--paper);
}
.feat-shot img { display: block; width: 100%; height: auto; }
html[data-theme="friday-night"] .feat-shot { border-color: rgba(255,230,224,.16); box-shadow: 0 16px 40px rgba(0,0,0,.34); }
.feat-panel .caps, .lane-copy .caps, .privacy .caps, .faq .caps {
  display: inline-flex; align-items: center; gap: 4px;
  vertical-align: -2px;
}
.feat-panel kbd, .lane-copy kbd, .privacy kbd, .faq kbd {
  font-family: var(--mono); font-size: .82em;
  border: 1px solid var(--hair); border-bottom-width: 2px; border-radius: var(--r-chip);
  background: #fff; padding: 1px 6px;
}
html[data-theme="friday-night"] .inspector-frame,
html[data-theme="friday-night"] .console,
html[data-theme="friday-night"] .pcard,
html[data-theme="friday-night"] .perm {
  background:
    radial-gradient(78% 92% at 100% 0%, rgba(255,70,83,.12), transparent 62%),
    rgba(36,16,20,.82);
  border-color: rgba(255,230,224,.16);
  box-shadow: 0 20px 54px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.06);
}
html[data-theme="friday-night"] .feat-sidebar {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,230,224,.14);
}
html[data-theme="friday-night"] .feat-sidebar label:hover,
html[data-theme="friday-night"] .feat-item input:checked ~ label {
  background: rgba(255,70,83,.16);
  color: var(--ink);
}
html[data-theme="friday-night"] .feat-panel kbd,
html[data-theme="friday-night"] .lane-copy kbd,
html[data-theme="friday-night"] .privacy kbd,
html[data-theme="friday-night"] .faq kbd,
html[data-theme="friday-night"] .pcard .path {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,230,224,.18);
  color: var(--ink);
}

/* ---------- Usage: the timeline ---------- */
.lanes { display: flex; flex-direction: column; gap: 14px; }
.lane {
  display: grid;
  grid-template-columns: 108px 6px 1fr;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 26px 26px;
  align-items: start;
}
.lane .tc { font-family: var(--mono); font-size: 15px; font-weight: 600; padding-top: 3px; }
.lane .strip { align-self: stretch; border-radius: 3px; }
.lane[data-accent="record"] .tc { color: var(--record); }  .lane[data-accent="record"] .strip { background: var(--record); }
.lane[data-accent="zoom"]   .tc { color: var(--zoom); }    .lane[data-accent="zoom"]   .strip { background: var(--zoom); }
.lane[data-accent="export"] .tc { color: var(--leaf-deep);} .lane[data-accent="export"] .strip { background: var(--leaf); }
.lane[data-accent="music"]  .tc { color: var(--music); }   .lane[data-accent="music"]  .strip { background: var(--music); }
.lane[data-accent="azure"]  .tc { color: var(--azure); }   .lane[data-accent="azure"]  .strip { background: var(--azure); }
.lane[data-accent="party"]  .tc { color: var(--party); }   .lane[data-accent="party"]  .strip { background: var(--party); }
.lane h3 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.lane p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.lane .when { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-mute); margin-left: 10px; letter-spacing: .01em; }
.lane ul { margin: 0; padding-left: 19px; color: var(--ink-soft); max-width: 68ch; }
.lane li { margin-bottom: 7px; }
.lane li:last-child { margin-bottom: 0; }
.lane .barshot { margin-top: 16px; max-width: 404px; }
.lane .barshot img { border-radius: 12px; box-shadow: 0 8px 26px rgba(24,38,28,.18); }
html[data-theme="friday-night"] .lane {
  background:
    linear-gradient(90deg, rgba(255,70,83,.10), transparent 42%),
    rgba(36,16,20,.82);
  border-color: rgba(255,230,224,.16);
  box-shadow: 0 18px 46px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-theme="friday-night"] .lane.next {
  background: rgba(36,16,20,.62);
  border-color: rgba(255,230,224,.22);
}
html[data-theme="friday-night"] .lane .barshot img {
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
}

/* ---------- Changelog: the reel ---------- */
.reel-log { position: relative; display: flex; flex-direction: column; gap: 14px; }
.reel-log::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 0; bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--hair) 0 6px, transparent 6px 13px);
}
.take {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 22px 24px;
}
.take-node {
  justify-self: center;
  margin-top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px var(--card);
}
.take[data-accent="record"] { color: var(--record); }
.take[data-accent="zoom"]   { color: var(--zoom); }
.take[data-accent="export"] { color: var(--leaf-deep); }
.take[data-accent="music"]  { color: var(--music); }
.take[data-accent="azure"]  { color: var(--azure); }
.take[data-accent="sky"]    { color: var(--sky); }
.take[data-accent="party"]  { color: var(--party); }
.take.next { color: var(--ink-mute); }
.take.next .take-node { background: var(--card); border: 2px solid currentColor; }
.take-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; }
.take .tc {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: currentColor; background: color-mix(in srgb, currentColor 13%, transparent);
  padding: 3px 8px; border-radius: var(--r-chip);
}
.take h3 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 19px; margin: 0; color: var(--ink); }
.take .when { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-mute); margin-left: auto; letter-spacing: .01em; }
.take ul { margin: 0; padding-left: 19px; color: var(--ink-soft); max-width: 66ch; }
.take li { margin-bottom: 7px; }
.take li:last-child { margin-bottom: 0; }

.take-more-link {
  display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 16px;
  padding: 16px 24px;
  border: 1px dashed var(--hair); border-radius: var(--r-card);
  color: var(--leaf-deep); font-weight: 700; font-size: 14.5px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.take-more-link .take-node { background: var(--paper); border: 2px solid currentColor; margin-top: 0; box-shadow: 0 0 0 4px var(--paper); }
.take-more-link:hover { background: rgba(94,202,92,.06); border-color: color-mix(in srgb, var(--leaf-deep) 45%, transparent); }

html[data-theme="friday-night"] .take {
  background:
    linear-gradient(90deg, rgba(255,70,83,.10), transparent 42%),
    rgba(36,16,20,.82);
  border-color: rgba(255,230,224,.16);
  box-shadow: 0 18px 46px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-theme="friday-night"] .reel-log::before {
  background: repeating-linear-gradient(180deg, rgba(255,230,224,.18) 0 6px, transparent 6px 13px);
}
html[data-theme="friday-night"] .take-more-link { border-color: rgba(255,230,224,.22); }

/* ---------- Shortcuts: the playable board ---------- */
.console {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  box-shadow: 0 22px 60px rgba(24,38,28,.10);
  padding: clamp(20px, 3.4vw, 38px);
}
.kbdeck {
  width: fit-content; max-width: 100%;
  margin: 0 auto 18px;
  padding: clamp(12px, 1.9vw, 20px);
  border-radius: 20px;
  background: linear-gradient(180deg, #f3f7ef, #e5ecdf);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8),
              inset 0 -1px 0 rgba(24,38,28,.05),
              0 14px 34px rgba(24,38,28,.10);
}
html[data-theme="friday-night"] .kbdeck {
  background: linear-gradient(180deg, rgba(255,247,243,.10), rgba(255,247,243,.04));
  border-color: rgba(255,230,224,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 18px 42px rgba(0,0,0,.28);
}
html[data-theme="friday-night"] .key {
  background: linear-gradient(180deg, #322024, #1c0b0f);
  border-color: rgba(255,230,224,.16);
  border-bottom-color: rgba(255,230,224,.26);
  color: var(--ink-soft);
}
.kb {
  --u: clamp(26px, 4.1vw, 46px);
  --kgap: clamp(3px, .5vw, 6px);
  display: flex; flex-direction: column; gap: var(--kgap);
}
.krow { display: flex; gap: var(--kgap); justify-content: center; }
.key {
  position: relative;
  width: var(--u); height: var(--u);
  border-radius: var(--r-chip);
  background: linear-gradient(180deg, #ffffff, #f4f7f1);
  border: 1px solid rgba(24,38,28,.12);
  border-bottom: 3px solid rgba(24,38,28,.20);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: clamp(9px, 1.1vw, 12.5px);
  font-weight: 500;
  display: grid; place-items: center;
  user-select: none;
  box-shadow: 0 1px 1px rgba(24,38,28,.05);
  transition: transform .1s ease, background .12s ease, color .12s ease,
              border-color .12s ease, border-bottom-width .1s ease, box-shadow .12s ease;
}
.key .name {
  position: absolute; left: 3px; right: 3px; bottom: 2px;
  font-size: 7.5px; letter-spacing: .02em; text-align: center;
  color: var(--ink-mute);
  white-space: nowrap; overflow: hidden;
}
.key.mod .sym { transform: translateY(-3px); }
.kcol { display: flex; flex-direction: column; gap: 2px; justify-content: flex-end; }
.kcol .key { height: calc((var(--u) - 2px) / 2); width: 100%; }
.key.down {
  transform: translateY(2px);
  border-bottom-width: 1px;
  background: var(--kc, var(--leaf));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--kc, var(--leaf)) 40%, transparent);
}
.key.down .name { color: rgba(255,255,255,.82); }
.kbreadout {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: fit-content; max-width: 100%;
  margin: 0 auto 26px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 99px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute);
  box-shadow: 0 4px 14px rgba(24,38,28,.07);
}
.kbreadout .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hair); flex-shrink: 0; transition: background .15s ease; }
.kbreadout.live { color: var(--ink-soft); }
.kbreadout.live .dot { background: var(--kc, var(--leaf)); }
.kbreadout .combo { font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.kbreadout .combo:empty { display: none; }
.scgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px 44px; }
.scg h3 {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-stretch: 110%; font-weight: 700;
  font-size: 16px; margin: 0 0 8px;
}
.scg ul { list-style: none; margin: 0; padding: 0; }
.sc {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 6px 10px; margin: 0 -10px;
  border-radius: var(--r-lane);
  font-size: 14.5px; color: var(--ink-soft);
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.sc.lit { background: rgba(24,38,28,.055); color: var(--ink); }
.sc .caps { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; color: var(--ink-mute); }
.sc kbd {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  min-width: 14px; text-align: center;
  border: 1px solid var(--hair); border-bottom-width: 2px; border-radius: var(--r-chip);
  background: #fff; padding: 2px 6px;
  color: var(--ink-soft);
}
html[data-theme="friday-night"] .kbreadout {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,230,224,.17);
  color: var(--ink-soft);
  box-shadow: 0 10px 26px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
}
html[data-theme="friday-night"] .kbreadout .combo {
  color: var(--ink);
}
html[data-theme="friday-night"] .sc.lit {
  background: rgba(255,70,83,.14);
  color: var(--ink);
}
html[data-theme="friday-night"] .sc kbd {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,230,224,.18);
  color: var(--ink);
}
.tag-new {
  font-family: var(--mono); font-style: normal; font-size: 10px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: #5c4a10; background: var(--banana);
  border-radius: 99px; padding: 2px 7px; margin-left: 8px;
  vertical-align: 1px;
}
@media (max-width: 900px) { .key .name { display: none; } .key.mod .sym { transform: none; } }
@media (max-width: 600px) { .kbdeck, .kbreadout { display: none; } }

/* ---------- Changelog: the "next" lane ---------- */
.lane.next { border-style: dashed; background: rgba(255,255,255,.55); }
.lane.next .tc { color: var(--ink-mute); }
.lane.next .strip {
  background: repeating-linear-gradient(180deg, rgba(24,38,28,.20) 0 6px, transparent 6px 12px);
}

/* ---------- Privacy ---------- */
.privacy .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pcard {
  border-radius: var(--r-panel); padding: 30px 28px;
  background: var(--card); border: 1px solid var(--hair);
}
.pcard h3 {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 21px; margin: 0 0 12px;
}
.pcard ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.pcard li { margin-bottom: 10px; }
.pcard li:last-child { margin-bottom: 0; }
.pcard .path { font-family: var(--mono); font-size: .85em; background: rgba(24,38,28,.05); border-radius: var(--r-chip); padding: 1px 6px; white-space: nowrap; }
.perms { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; margin-top: 16px; }
.perm {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-card);
  padding: 16px 16px 14px;
}
.perm b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; display: block; margin-bottom: 6px; }
.perm span { font-size: 14px; color: var(--ink-soft); }
.perm.opt b .opt-tag { color: var(--ink-mute); font-weight: 400; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "▸";
  font-family: var(--mono); font-size: 15px; color: var(--leaf-deep);
  transition: rotate .2s ease; flex-shrink: 0;
}
.faq details[open] summary::after { rotate: 90deg; }
.faq details p { margin: 0 4px 22px; color: var(--ink-soft); max-width: 64ch; }

html[data-theme="friday-night"] .faq details {
  border-color: rgba(255, 204, 197, .16);
}
html[data-theme="friday-night"] .faq summary {
  color: var(--ink);
}
html[data-theme="friday-night"] .faq summary::after {
  color: #ff8585;
  text-shadow: 0 0 12px rgba(255, 74, 94, .45);
}

/* ---------- Footer: the end slate ---------- */
footer { margin-top: 96px; border-top: 1px solid var(--hair); background: #f2f8ee; }
.foot { max-width: var(--w); margin: 0 auto; padding: 40px 24px 48px; }
.endslate { text-align: center; padding: 26px 0 44px; }
.endslate .end-title {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 720;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
  text-wrap: balance;
}
.endslate .end-sub {
  margin: 0 auto 26px;
  max-width: 52ch;
  font-size: 17px;
  color: var(--ink-soft);
}
.endslate .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.foot .lanesdeco { display: flex; flex-direction: column; gap: 5px; margin-bottom: 30px; }
.foot .lanesdeco span { height: 6px; border-radius: 3px; opacity: .8; }
.foot .lanesdeco span:nth-child(1) { width: 34%; background: var(--record); }
.foot .lanesdeco span:nth-child(2) { width: 58%; background: var(--zoom); margin-left: 12%; }
.foot .lanesdeco span:nth-child(3) { width: 44%; background: var(--music); margin-left: 30%; }
.foot .cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot .cols a { color: var(--ink-soft); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.foot .cols a:hover { color: var(--ink); text-decoration: underline; }
.foot .made { font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute); }

html[data-theme="friday-night"] footer {
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 66, 90, .16), transparent 34%),
    radial-gradient(circle at 78% 8%, rgba(255, 182, 90, .10), transparent 30%),
    linear-gradient(180deg, rgba(26, 4, 10, .98), #100105);
  border-color: rgba(255, 204, 197, .16);
}
html[data-theme="friday-night"] .foot .lanesdeco span {
  opacity: .95;
  box-shadow: 0 0 18px currentColor;
}
html[data-theme="friday-night"] .foot .cols a:hover {
  color: var(--ink);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage::before, .stage .rec i { animation: none; }
  .syncursor, .ripple { display: none; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .btn:hover { transform: none; }
  .key, .sc { transition: none; }
  .key.down { transform: none; }
  .friday-tonearm,
  .friday-cover-option { transition: none; }
  html[data-theme="friday-night"] body::before,
  .friday-record-player.is-playing .friday-record,
  .friday-record-player.is-playing .friday-tonearm,
  .friday-dance-floor::before,
  .friday-dance-floor::after,
  .friday-light,
  .friday-dancer,
  .friday-prop { animation: none; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 32px; }
}

@media (max-width: 1300px) {
  .bar .ver { display: none; }
}

@media (max-width: 1150px) {
  .theme-switch span:first-child { display: none; }
  .bar-inner { gap: 10px; }
  .bar nav a { padding: 7px 9px; }
}

@media (max-width: 820px) {
  .bar nav { display: none; }
  .privacy .duo { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 64px 5px 1fr; gap: 14px; padding: 20px 18px; }
  .lane .tc { font-size: 13px; }
  .hero { padding-top: 112px; }
  .theme-switch span:first-child { display: none; }
  .friday-showcase { grid-template-columns: 1fr; text-align: left; }
  .friday-record-player { grid-template-columns: 1fr; justify-items: start; }
  .friday-turntable { width: min(100%, 284px); }
  .friday-memes { gap: 8px; }
  .friday-cover-option { border-radius: 14px; border-width: 2px; }
  .friday-dance-floor { min-height: 220px; }
  .friday-crowd { inset: 58px 46px 24px; gap: clamp(10px, 4vw, 26px); }
  .friday-dancer { width: 34px; height: 104px; }
  .friday-dancer b { left: 7px; width: 21px; height: 38px; }
  .friday-dancer::before, .friday-dancer::after { top: 58px; height: 44px; }
  .friday-prop.beer { right: 72px; }
  .inspector-frame { grid-template-columns: 1fr; }
  .feat-sidebar {
    flex-direction: row; flex-wrap: wrap; gap: 6px;
    border-right: none; border-bottom: 1px solid var(--hair);
  }
  .feat-sidebar label { padding: 7px 11px; font-size: 13.5px; }
  .feat-detail { padding: 26px 22px; }
  .feat-panel.has-shot { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Sub-page back link ---------- */
.backlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--ink-mute); text-decoration: none;
  margin: 0 0 20px;
  transition: color .16s ease, gap .16s ease;
}
.backlink:hover { color: var(--leaf-deep); gap: 9px; }
html[data-theme="friday-night"] .backlink:hover { color: var(--leaf); }
