/* TabStage landing — painted from the app's default ("Default" / blue) theme tokens
   in Tabs/src/ui/styles.css, so the page and the app read as one product. */
:root {
  --app-bg: #080c18;
  --app-panel: #0c1020;
  --app-raised: #0e1628;
  --app-edge: #1a2747;
  --app-accent: #00c8ff;
  --app-ink: #e0e8f0;
  --app-muted: #8fa3bc;
  --social-on: #ff9030;
  --fb-note: #00ff88;
  --fb-string: #8a7a50;
  --edit-glow: #b47cff;
  --rec: #ff3b4e;
  --radius: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--app-bg);
  color: var(--app-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; position: relative; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--app-panel), var(--app-bg)); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--app-accent); margin-bottom: 12px;
}
.eyebrow.orange { color: var(--social-on); }
.eyebrow.green { color: var(--fb-note); }
.eyebrow.violet { color: var(--edit-glow); }
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 8px; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--app-muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.accent { color: var(--app-accent); }
.orange { color: var(--social-on); }

/* Ecosystem bar, same idea as the ChordScanner page */
.eco-bar {
  display: block; text-align: center; padding: 8px 12px; background: #050810;
  color: #ffffffcc; font: 600 12px system-ui, sans-serif; text-decoration: none; letter-spacing: .02em;
  border-bottom: 1px solid var(--app-edge);
}
.eco-bar strong { color: #3ddc84; }

/* Top nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(8, 12, 24, .82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(26, 39, 71, .7); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand {
  display: flex; align-items: center; text-decoration: none; font-weight: 800; font-size: 22px;
  letter-spacing: .14em; color: var(--app-ink);
}
/* Two halves like the icon: the fretboard half in white, the paper half in
   the app's orange. The S changes colour across itself on the icon's slant
   (about 13 degrees off vertical, "/"), with a thin band of the icon's cyan
   edge between the two, painted into the letter rather than drawn over it.
   The stops sit left of 50% because the box includes the letter spacing
   after the S, so the glyph's own middle is at about 41%. */
.brand-stage { color: var(--social-on); }
.brand-s {
  background: linear-gradient(103deg, var(--app-ink) 0 38.5%, var(--app-accent) 38.5% 43.5%, var(--social-on) 43.5% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
/* The icon's REC light: a red dot floating just above and to the right of
   the E, glowing in and out like a camera's recording LED. It only changes
   brightness, never position, so it runs with reduced motion too. */
.brand-e { position: relative; }
.brand-e::after {
  content: ''; position: absolute; left: calc(100% - .14em + 3px); top: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: #ff1f3d; animation: rec-led 1.6s ease-in-out infinite;
}
@keyframes rec-led {
  0%, 100% { opacity: .3; box-shadow: 0 0 0 0 rgba(255, 31, 61, 0); }
  50% { opacity: 1; box-shadow: 0 0 8px 2px rgba(255, 31, 61, .9), 0 0 18px 6px rgba(255, 31, 61, .4); }
}
.brand { padding-right: 14px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--app-muted); transition: color .2s; }
.nav-links a:hover { color: var(--app-ink); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #04121c; }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--app-accent); color: #04121c; box-shadow: 0 10px 30px -10px rgba(0, 200, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(0, 200, 255, .85); }
.btn-ghost { background: transparent; color: var(--app-ink); border: 1px solid var(--app-edge); }
.btn-ghost:hover { border-color: var(--app-accent); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .75; }
.btn .btn-text { text-align: left; line-height: 1.2; }

/* Hero */
/* The hero is one stage: a spotlight falls from the top onto the title and
   the screenshot, an animated canvas (hero-bg.js) plays behind it, a glow sits
   under the app, and it fades into the colour the next section starts with,
   so nothing in it ends on a hard edge. */
.hero {
  position: relative; padding: 72px 0 72px; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--app-bg) 0%, var(--app-bg) 60%, #04060c 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    conic-gradient(from 180deg at 50% -8%, transparent 155deg, rgba(0, 200, 255, .07) 172deg, rgba(0, 200, 255, .11) 180deg, rgba(0, 200, 255, .07) 188deg, transparent 205deg),
    radial-gradient(55% 32% at 50% 0%, rgba(0, 200, 255, .20), transparent 72%),
    radial-gradient(35% 26% at 18% 18%, rgba(255, 144, 48, .09), transparent 72%),
    radial-gradient(35% 26% at 82% 14%, rgba(180, 124, 255, .09), transparent 72%),
    radial-gradient(48% 20% at 50% 66%, rgba(0, 200, 255, .13), transparent 72%);
}
.hero > * { position: relative; z-index: 1; }
/* Animated canvas (hero-bg.js). Dimmed behind the headline so the copy stays
   readable, and faded out at the bottom and sides. */
.hero > .hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 0; pointer-events: none; display: block;
  -webkit-mask-image: radial-gradient(var(--dim-rx, 34%) var(--dim-ry, 24%) at 50% var(--dim-y, 46%), rgba(0, 0, 0, var(--dim-a, .12)), rgba(0, 0, 0, calc(var(--dim-a, .12) + .08)) 55%, #000 100%), linear-gradient(180deg, #000 92%, transparent);
  mask-image: radial-gradient(var(--dim-rx, 34%) var(--dim-ry, 24%) at 50% var(--dim-y, 46%), rgba(0, 0, 0, var(--dim-a, .12)), rgba(0, 0, 0, calc(var(--dim-a, .12) + .08)) 55%, #000 100%), linear-gradient(180deg, #000 92%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-logo { width: 160px; height: 160px; margin: 0 auto 24px; filter: drop-shadow(0 16px 32px rgba(0, 200, 255, .25)); }
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--app-accent), var(--fb-note)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.os-row { display: flex; gap: 18px; justify-content: center; align-items: center; color: var(--app-muted); font-size: 14px; flex-wrap: wrap; }
.os-row i { font-size: 18px; color: var(--app-ink); margin-right: 6px; }

/* Desktop window frame around screenshots */
.window {
  border-radius: 12px; overflow: hidden; background: var(--app-panel);
  border: 1px solid var(--app-edge);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02), 0 0 120px -40px rgba(0, 200, 255, .35);
}
.window-bar { display: flex; gap: 7px; padding: 10px 14px; background: #060914; border-bottom: 1px solid var(--app-edge); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.window-bar span:nth-child(1) { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.hero-shot { max-width: 1100px; margin: 56px auto 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 140px -30px rgba(0, 200, 255, .45); }

/* Highlights strip */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.pill { padding: 8px 14px; border-radius: 999px; background: var(--app-raised); border: 1px solid var(--app-edge); font-size: 14px; color: var(--app-ink); }
.pill i { color: var(--app-accent); margin-right: 6px; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 1.25fr 1fr; }
.split.reverse .split-text { order: 2; }
@media (max-width: 960px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-text { order: 0; }
}
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--app-ink); }
.checklist li i { color: var(--fb-note); margin-top: 5px; }
.checklist li span { color: var(--app-muted); }
.checklist li b { color: var(--app-ink); font-weight: 600; }

/* Keycaps */
kbd, .key {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px;
  font: 600 13px/1 'Roboto Mono', ui-monospace, monospace; color: var(--app-ink);
  background: linear-gradient(180deg, #16203a, #0e1628); border: 1px solid #263559; border-bottom-width: 3px; border-radius: 7px;
}
.keys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
@media (max-width: 520px) { .keys-grid { grid-template-columns: 1fr; } }
.key-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--app-raised); border: 1px solid var(--app-edge); border-radius: 10px; font-size: 14px; color: var(--app-muted); }
.key-row .caps { display: flex; gap: 4px; flex-shrink: 0; }

/* Mode cards (In key / Chromatic / SELECT) */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }
.mode { padding: 18px; border-radius: 12px; background: var(--app-raised); border: 1px solid var(--app-edge); }
.mode .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
/* In key orange and Chromatic pink: the app's own default colours for the two. */
.mode.in-key .tag { color: var(--social-on); border: 1px solid var(--social-on); background: rgba(255, 144, 48, .1); }
.mode.chromatic .tag { color: #ff6fb1; border: 1px solid #ff6fb1; background: rgba(255, 111, 177, .1); }
.mode p { color: var(--app-muted); font-size: 15px; }
/* SELECT is the app's dashed selection outline, so its tag is dashed too. */
.mode.select { grid-column: 1 / -1; }
.mode.select .tag { color: var(--app-accent); border: 1px dashed var(--app-accent); background: rgba(0, 200, 255, .06); }

/* Selection mode: what bars can be selected for, beside the shot of it */
.select-block { margin-top: 96px; }
.select-block .eyebrow { margin-bottom: 8px; }
.select-block h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin-bottom: 12px; }
.select-block .keys-grid { margin-top: 22px; }
.select-block .checklist { margin-top: 22px; }

/* Social Mode */
.social { background: radial-gradient(ellipse at 50% 0%, rgba(255, 144, 48, .12), transparent 60%), #060910; }
.social-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .social-grid { grid-template-columns: 1fr; } .social-phone { max-width: 260px; margin: 0 auto; } }
.social-phone { position: relative; }
.social-phone img { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7)); }
.rec-badge {
  /* Inside the phone's screen, over the camera area, like a recording app's own badge. */
  position: absolute; top: 14.5%; right: 9%; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(8, 10, 18, .62); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .6px;
  padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.rec-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { padding: 20px; border-radius: var(--radius); background: var(--app-raised); border: 1px solid var(--app-edge); }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; background: rgba(0, 200, 255, .12); color: var(--app-accent); font-size: 18px; }
.card .icon.orange { background: rgba(255, 144, 48, .14); color: var(--social-on); }
.card .icon.green { background: rgba(0, 255, 136, .12); color: var(--fb-note); }
.card .icon.violet { background: rgba(180, 124, 255, .14); color: var(--edit-glow); }
.card p { color: var(--app-muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: #0a1020; border: 1px solid var(--app-edge); color: var(--app-ink); }
.social-wide { margin-top: 56px; }

/* File formats */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 900px) { .formats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .formats { grid-template-columns: 1fr; } }
.format { padding: 22px; border-radius: var(--radius); background: var(--app-raised); border: 1px solid var(--app-edge); }
.format .ext { font: 700 22px/1 'Roboto Mono', ui-monospace, monospace; color: var(--app-accent); margin-bottom: 10px; }
.format .dir { display: flex; gap: 6px; margin-bottom: 10px; }
.format .dir span { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 5px; }
.dir .in { background: rgba(0, 255, 136, .12); color: var(--fb-note); }
.dir .out { background: rgba(255, 144, 48, .14); color: var(--social-on); }
.format p { color: var(--app-muted); font-size: 14px; }

/* Drop zone illustration */
.dropzone {
  border: 2px dashed rgba(0, 200, 255, .55); border-radius: var(--radius); padding: 28px; text-align: center;
  background: rgba(0, 200, 255, .04); margin-top: 28px; position: relative; overflow: hidden;
}
.dropzone .file {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  background: var(--app-raised); border: 1px solid var(--app-edge); font: 600 14px ui-monospace, monospace;
  animation: drop 3.2s ease-in-out infinite;
}
.dropzone .file i { color: var(--app-accent); }
.dropzone .label { margin-top: 14px; color: var(--app-accent); font-weight: 700; }
@keyframes drop { 0% { transform: translateY(-30px); opacity: 0; } 25%, 70% { transform: none; opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

/* Customization tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 40px 0 28px; }
.tab {
  padding: 10px 18px; border-radius: 999px; background: var(--app-raised); border: 1px solid var(--app-edge);
  color: var(--app-muted); font: 600 14px 'Roboto', sans-serif; cursor: pointer; transition: all .2s;
}
.tab:hover { color: var(--app-ink); }
.tab[aria-selected='true'] { background: rgba(255, 144, 48, .12); border-color: var(--social-on); color: var(--social-on); }
.panel { display: none; }
.panel.active { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; animation: fade .35s ease; }
@media (max-width: 960px) { .panel.active { grid-template-columns: 1fr; gap: 28px; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel .shot { border-radius: 14px; overflow: hidden; border: 2px solid rgba(255, 199, 92, .55); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.swatches { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.swatch { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--app-raised); border: 1px solid var(--app-edge); font-size: 13px; }
.swatch .dots { display: flex; }
.swatch .dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--app-raised); margin-left: -5px; }
.swatch .dots span:first-child { margin-left: 0; }
.lang-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.note-systems { display: grid; gap: 10px; margin-top: 20px; }
.note-system { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--app-raised); border: 1px solid var(--app-edge); }
.note-system b { font: 600 15px ui-monospace, monospace; letter-spacing: .08em; }
.note-system span { color: var(--app-muted); font-size: 13px; text-align: right; }

/* Compatibility */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 820px) { .platforms { grid-template-columns: 1fr; } }
.platform { text-align: center; padding: 36px 24px; border-radius: 20px; background: linear-gradient(180deg, var(--app-raised), var(--app-panel)); border: 1px solid var(--app-edge); transition: transform .2s, border-color .2s; }
.platform:hover { transform: translateY(-4px); border-color: var(--app-accent); }
.platform i { font-size: 52px; margin-bottom: 18px; color: var(--app-ink); }
.platform h3 { font-size: 24px; }
.platform p { color: var(--app-muted); font-size: 15px; }
.platform .pkg { display: inline-block; margin-top: 14px; font: 600 12px ui-monospace, monospace; padding: 5px 10px; border-radius: 6px; background: #0a1020; border: 1px solid var(--app-edge); color: var(--app-accent); }
.compat-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 820px) { .compat-extra { grid-template-columns: 1fr; } }
.compat-extra .card { text-align: left; }

/* Download CTA */
.download { text-align: center; }
.download-card {
  max-width: 760px; margin: 0 auto; padding: 56px 28px; border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 200, 255, .2), transparent 65%), linear-gradient(180deg, #101a33, var(--app-panel));
  border: 1px solid var(--app-edge);
}
.download-card img { width: 96px; margin: 0 auto 20px; }
.price { font-size: 44px; font-weight: 800; margin: 12px 0 4px; }
.price small { font-size: 15px; font-weight: 500; color: var(--app-muted); }
.download-card .checklist { max-width: 420px; margin: 24px auto 32px; text-align: left; }
.download-card .os-row { margin-top: 18px; }

/* Footer */
footer { border-top: 1px solid var(--app-edge); padding: 40px 0; text-align: center; color: var(--app-muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 12px; }
footer a { color: var(--app-muted); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--app-ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dropzone .file, .rec-badge::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* Download links */
.os-link { text-decoration: none; transition: color .2s; }
.os-link:hover, .os-link:hover i { color: var(--app-ink); }
.other-os { color: var(--app-accent); font-weight: 600; }
.other-os[hidden] { display: none; }
a.platform { display: block; text-decoration: none; color: inherit; }
.platform-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 10px;
  background: rgba(0, 200, 255, .12); color: var(--app-accent); font-weight: 700; font-size: 14px; transition: background .2s, color .2s;
}
.platform-cta i { font-size: 14px; margin: 0; color: inherit; }
a.platform:hover .platform-cta, a.platform:focus-visible .platform-cta { background: var(--app-accent); color: #04121c; }

/* Zoomable screenshots */
img.zoomable { cursor: zoom-in; }
img.zoomable:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 4px; }

/* Lightbox */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 12px; padding: 56px 16px 48px; background: rgba(3, 6, 14, .92); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.lb-visible { opacity: 1; }
.lb-stage { grid-column: 2; margin: 0; height: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lb-frame { position: relative; max-width: 100%; max-height: calc(100% - 48px); display: flex; }
.lb-img {
  max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); cursor: crosshair; user-select: none; -webkit-user-drag: none;
  transition: opacity .2s;
}
.lightbox.lb-loading .lb-img { opacity: .35; }
@media (hover: none) { .lb-img { cursor: default; } }
.lb-lens {
  position: absolute; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; opacity: 0;
  border: 3px solid rgba(255, 255, 255, .9); background-color: var(--app-bg); background-repeat: no-repeat;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 200, 255, .5), inset 0 0 20px rgba(0, 0, 0, .25);
  transition: opacity .12s;
}
.lb-caption { color: var(--app-muted); font-size: 14px; text-align: center; max-width: 720px; }
.lb-close, .lb-nav {
  display: grid; place-items: center; border: 1px solid var(--app-edge); background: rgba(14, 22, 40, .85); color: var(--app-ink);
  border-radius: 50%; cursor: pointer; transition: background .2s, border-color .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--app-raised); border-color: var(--app-accent); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 2px; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; font-size: 18px; z-index: 2; }
.lb-nav { width: 48px; height: 48px; font-size: 18px; }
.lb-nav[hidden] { display: none; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
.lb-footer { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--app-muted); }
.lb-counter { color: var(--app-ink); font-weight: 600; }
.lb-hint[hidden] { display: none; }
/* Phones: no arrows (swipe or tap a dot); the dots show there is more. */
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 72px 12px 84px; }
  .lb-stage { grid-column: 1; grid-row: 1; }
  .lb-nav { display: none; }
  .lb-footer { bottom: 22px; }
  .lightbox.lb-multi { padding-bottom: 96px; }
  .lightbox.lb-multi .lb-img { max-height: calc(100vh - 220px); }
}
@media (prefers-reduced-motion: reduce) { .lightbox, .lb-img, .lb-lens { transition: none; } }

/* OS row: hidden items must really leave the flex row */
.os-row [hidden] { display: none; }

/* Keyboard / mouse input blocks */
.input-heading { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 32px 0 0; color: var(--app-ink); }
.input-heading i { color: var(--fb-note); }
.input-heading + .keys-grid { margin-top: 14px; }
.input-note { color: var(--app-muted); font-size: 15px; margin-top: 6px; }
.input-note + .keys-grid { margin-top: 14px; }
.mouse-cap {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px;
  background: rgba(0, 200, 255, .12); border: 1px solid rgba(0, 200, 255, .35); color: var(--app-accent); font-size: 13px;
}

/* Lightbox toolbar: one frosted bar holding [Magnifier | ×]. The toggle reads
   as a labelled switch, not a lit-up ball: off is quiet grey, on turns the
   icon and label orange over a faint orange wash with a small "ON" pip. */
.lb-tools {
  position: absolute; top: 14px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 14px; background: rgba(12, 18, 34, .72); border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.lb-tools .lb-close { position: static; }
.lb-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; min-width: 38px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--app-muted);
  font: 600 13px/1 'Roboto', sans-serif; letter-spacing: .01em; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.lb-tool i { font-size: 15px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.lb-tool:hover { background: rgba(255, 255, 255, .06); border-color: transparent; color: var(--app-ink); }
.lb-tool:active i { transform: scale(.88); }
.lb-tool:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
.lb-tools .lb-close { width: 38px; padding: 0; border-radius: 10px; font-size: 17px; }
@media (pointer: coarse) { .lb-tool, .lb-tools .lb-close { height: 44px; min-width: 44px; } }
/* Touch screens only get the close button: a plain round glass button. */
.lb-tools.lb-solo { padding: 0; border-radius: 50%; }
.lb-tools.lb-solo .lb-close { width: 44px; height: 44px; border-radius: 50%; color: var(--app-ink); }
.lb-sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .1); }
.lb-sep[hidden], .lb-zoom[hidden] { display: none; }
.lb-zoom-state {
  min-width: 30px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 3px 5px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); color: var(--app-muted); transition: background .18s, color .18s;
}
.lb-zoom-state::before { content: 'OFF'; }
.lb-zoom[aria-pressed='true'] { color: var(--social-on); background: rgba(255, 144, 48, .12); border-color: rgba(255, 144, 48, .35); }
.lb-zoom[aria-pressed='true']:hover { background: rgba(255, 144, 48, .18); color: #ffa552; }
.lb-zoom[aria-pressed='true'] .lb-zoom-state { background: var(--social-on); color: #1a0d00; }
.lb-zoom[aria-pressed='true'] .lb-zoom-state::before { content: 'ON'; }
.lb-zoom[aria-pressed='true'] i { transform: scale(1.08); }
.lb-img { cursor: default; }
.lightbox.lb-magnifying .lb-img { cursor: crosshair; }
.lightbox.lb-magnifying .lb-lens { border-color: rgba(255, 144, 48, .9); box-shadow: 0 12px 40px rgba(0, 0, 0, .65), inset 0 0 20px rgba(0, 0, 0, .25); }

/* Carousel: position dots + loading/error states */
.lb-footer { flex-direction: column; align-items: center; gap: 10px; }
.lb-footer-row { display: flex; gap: 18px; align-items: center; }
@media (min-width: 641px) {
  .lightbox.lb-multi { padding-bottom: 84px; }
  .lightbox.lb-multi .lb-img { max-height: calc(100vh - 196px); }
}
.lb-dots { display: flex; gap: 2px; pointer-events: auto; }
.lb-dots:empty { display: none; }
.lb-dot { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.lb-dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .3);
  transition: width .3s cubic-bezier(.2, .8, .2, 1), background .3s;
}
.lb-dot:hover::before { background: rgba(255, 255, 255, .6); }
.lb-dot[aria-current='true']::before { width: 22px; background: var(--social-on); }
.lb-dot:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 0; border-radius: 6px; }
.lb-counter:empty { display: none; }
.lb-hint { display: inline-flex; align-items: center; gap: 6px; }
.lb-hint i { font-size: 12px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
.lb-stage { position: relative; }
.lb-img { will-change: transform, opacity; }
.lightbox.lb-loading .lb-img { opacity: 1; }
.lb-spinner { position: absolute; left: 50%; top: 50%; margin: -22px 0 0 -22px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lightbox.lb-loading .lb-spinner { opacity: 1; }
.lb-error { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: var(--app-muted); }
.lb-error[hidden] { display: none; }

/* Orange spinner, shared by the page and the lightbox */
.spinner {
  display: block; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255, 144, 48, .2); border-top-color: var(--social-on);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Page image loaders: the spinner sits over the image's frame, invisible until
   the image has been slow for a moment. */
.img-host { position: relative; }
.img-loader {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.img-loader.is-loading, .img-loader.is-error { opacity: 1; visibility: visible; }
.img-loader.is-loading { background: rgba(8, 12, 24, .35); }
.img-loader .spinner { display: none; }
.img-loader.is-loading .spinner { display: block; }
.img-loader-msg { display: none; font-size: 14px; color: var(--app-muted); padding: 8px 12px; border-radius: 8px; background: rgba(8, 12, 24, .8); }
.img-loader.is-error .img-loader-msg { display: block; }
/* Unloaded screenshots keep their size (width/height attributes) and show a
   faint panel instead of an empty hole. */
.window > img, .shot > img, .window > picture > img, .shot > picture > img { background: linear-gradient(180deg, #0c1222, #0a0f1d); }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .lb-hint i, .lb-dot::before, .lb-tool i { animation: none; transition: none; }
}

/* Theme preview buttons */
.swatch-hint { margin-top: 20px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--app-muted); }
.swatch-hint + .swatches { margin-top: 10px; }
button.swatch { font: 500 14px 'Roboto', sans-serif; color: var(--app-ink); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
button.swatch:hover { border-color: rgba(255, 144, 48, .6); transform: translateY(-1px); }
button.swatch[aria-pressed='true'] { border-color: var(--social-on); background: rgba(255, 144, 48, .12); color: var(--social-on); }
button.swatch:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 2px; }
[data-theme-preview] { transition: opacity .15s ease; }
[data-theme-preview].swapping { opacity: 0; }

/* Share flow (themes + keys) */
.share-title { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 17px; color: var(--app-ink); }
.share-title i { color: var(--social-on); }
.share-text { color: var(--app-muted); font-size: 15px; margin-top: 6px; }
.share-flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; counter-reset: step; }
.share-flow li {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 16px 10px 14px; border-radius: 12px; background: var(--app-raised); border: 1px solid var(--app-edge);
}
.share-flow li:not(:last-child)::after {
  content: '→'; position: absolute; right: -10px; top: 50%; transform: translate(50%, -50%);
  color: var(--social-on); font-weight: 700; z-index: 1;
}
.share-flow .share-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 144, 48, .14); color: var(--social-on); margin-bottom: 4px; }
.share-flow b { font-size: 14px; }
.share-flow small { font-size: 12px; color: var(--app-muted); }
@media (max-width: 480px) {
  .share-flow { grid-template-columns: 1fr; }
  .share-flow li { flex-direction: row; text-align: left; gap: 10px; }
  .share-flow li small { margin-left: auto; }
  .share-flow li:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -10px; transform: translate(50%, 50%); }
}

/* Platform cards: one vertical stack each, button pinned to the bottom so all
   three line up no matter how long the description or file type is. */
a.platform { display: flex; flex-direction: column; align-items: center; }
a.platform .pkg { margin-top: 14px; margin-bottom: 22px; }
a.platform .platform-cta { margin-top: auto; width: 100%; justify-content: center; padding: 12px 16px; }
a.platform p { margin-bottom: 0; }
.platforms { align-items: stretch; }

/* Mobile fixes */
/* The counter strip spans the bottom edge, where the arrows sit on phones: it
   must never take their taps. */
.lb-footer { pointer-events: none; }
/* The OS row is a link; give it a finger-sized hit area without moving it. */
.os-link { padding: 11px 8px; margin: -11px auto; border-radius: 10px; }

/* Social Mode: basic vs advanced */
.social-modes { margin-top: 112px; }
.mode-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
@media (max-width: 860px) { .mode-compare { grid-template-columns: 1fr; } }
.mode-shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.mode-shot figcaption { display: flex; align-items: center; gap: 12px; color: var(--app-muted); font-size: 15px; min-height: 28px; }
.mode-tag {
  flex-shrink: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px;
  border-radius: 999px; border: 1px solid var(--app-edge); color: var(--app-ink); background: var(--app-raised);
}
.mode-tag.on { color: var(--social-on); border-color: var(--social-on); background: rgba(255, 144, 48, .1); }
.adv-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
@media (max-width: 1000px) { .adv-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .adv-list { grid-template-columns: 1fr; } }
.adv-list li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 14px;
  background: var(--app-raised); border: 1px solid var(--app-edge); color: var(--app-ink);
}
.adv-list i { color: var(--social-on); width: 16px; text-align: center; }
.custom-shot { margin-top: 72px; }
.custom-shot .share-title { margin-top: 0; }

/* Import / export summary under the Files heading */
.import-banner {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 28px;
  padding: 12px 16px; border-radius: 14px; background: var(--app-raised); border: 1px solid var(--app-edge);
}
.import-banner code { font: 600 14px 'Roboto Mono', ui-monospace, monospace; color: var(--app-accent); padding: 4px 8px; border-radius: 6px; background: #0a1020; }
.import-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fb-note); }
.import-label.out { color: var(--social-on); margin-left: 12px; }
@media (max-width: 560px) { .import-label.out { margin-left: 0; flex-basis: 100%; justify-content: center; } .import-label:first-child { flex-basis: 100%; justify-content: center; } }

/* Share section */
.share { background: radial-gradient(ellipse at 50% 0%, rgba(0, 200, 255, .1), transparent 60%), #070b16; }
.share-steps { max-width: 760px; margin: 40px auto 0; }
.share-steps .share-ic { background: rgba(0, 200, 255, .12); color: var(--app-accent); }
.share-steps li:not(:last-child)::after { color: var(--app-accent); }
.share-grid { display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: center; margin-top: 56px; }
@media (max-width: 860px) { .share-grid { grid-template-columns: 1fr; } .share-phone { max-width: 240px; margin: 0 auto; } }
.share-phone { position: relative; }
.share-phone img { border-radius: 28px; border: 6px solid #1c2338; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); background: var(--app-bg); }
.share-checks { max-width: 760px; margin: 40px auto 0; }
section[id]:focus { outline: none; }

/* Fretboard section: heading, one big screenshot, then the two ways to write
   side by side, then the modes next to the checklist. */
.fret-shot { max-width: 1100px; margin: 48px auto 0; }
.input-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
@media (max-width: 860px) { .input-panels { grid-template-columns: 1fr; } }
.input-panel { padding: 24px; border-radius: 20px; background: rgba(8, 12, 24, .55); border: 1px solid var(--app-edge); }
.input-panel .input-heading { margin-top: 0; font-size: 18px; }
.input-panel .input-note { margin-top: 6px; min-height: 2.9em; }
@media (max-width: 860px) { .input-panel .input-note { min-height: 0; } }
.input-panel .keys-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.fret-bottom { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
@media (max-width: 860px) { .fret-bottom { grid-template-columns: 1fr; gap: 24px; } }
.fret-bottom .modes, .fret-bottom .checklist { margin-top: 0; }

/* ── Scroll transitions ─────────────────────────────────────────────────── */
/* Reading progress, drawn as the fretboard trail (canvas, see tabstage.js).
   It straddles the nav's bottom edge so the glow spills over the page. */
.scroll-trail { position: absolute; left: 0; right: 0; bottom: -9px; width: 100%; height: 18px; pointer-events: none; }
html.is-jumping main { will-change: transform, opacity, filter; }

/* The nav link of the section on screen. */
.nav-links a:not(.btn) { position: relative; transition: color .25s; }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--sec, var(--app-accent)); box-shadow: 0 0 8px var(--sec, var(--app-accent));
  transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.nav-links a[aria-current='true'] { color: var(--app-ink); }
.nav-links a[aria-current='true']::after { transform: scaleX(1); }

/* Items inside a revealing block follow it in, one after another. */
.reveal .stagger-item { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--stagger, 0ms); }
.reveal.in .stagger-item { opacity: 1; transform: none; }

/* Screenshots settle in as they scroll into view: they start slightly tilted
   back and smaller, and flatten out tied to the scroll position. Browsers
   without scroll-driven animations keep the plain fade-up. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .window.reveal:not(.hero-shot), .browser.reveal, .share-phone.reveal, .social-phone.reveal {
      opacity: 1; transform: none; transition: none;
      animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 40%;
    }
    @keyframes settle {
      from { opacity: .2; transform: perspective(1400px) translateY(60px) rotateX(14deg) scale(.92); }
      to { opacity: 1; transform: none; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal .stagger-item { opacity: 1; transform: none; transition: none; }
  .nav-links a::after { transition: none; }
}

/* Back to top: appears once the hero is out of view. */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; color: var(--app-accent); font-size: 17px;
  background: rgba(12, 18, 34, .78); border: 1px solid rgba(0, 200, 255, .35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility .25s, background .2s, color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--app-accent); color: #04121c; }
.to-top:hover i { transform: translateY(-2px); }
.to-top i { transition: transform .2s; }
.to-top:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 3px; }
html.lb-open .to-top { visibility: hidden; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s, visibility .2s; transform: none; } }

/* The current section's marker on the trail breathes: a soft glow swelling
   and fading, with a thin horizontal glare through it, in the section's colour. */
.trail-pulse { position: absolute; bottom: 0; left: 0; width: 0; height: 0; pointer-events: none; --c: #3aaaff; }
.trail-pulse[hidden] { display: none; }
.trail-pulse::before, .trail-pulse::after { content: ''; position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.trail-pulse::before {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 12%, var(--c) 22%, color-mix(in srgb, var(--c) 35%, transparent) 45%, transparent 70%);
  animation: breathe 2.4s ease-in-out infinite;
}
.trail-pulse::after {
  width: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c), #fff, var(--c), transparent);
  animation: glare 2.4s ease-in-out infinite;
}
.trail-pulse.arrive::before { animation: arrive .5s cubic-bezier(.2, .8, .2, 1), breathe 2.4s ease-in-out .5s infinite; }
@keyframes breathe {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.75); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
}
@keyframes glare {
  0%, 100% { opacity: .15; transform: translate(-50%, -50%) scaleX(.4); }
  50% { opacity: .9; transform: translate(-50%, -50%) scaleX(1); }
}
@keyframes arrive {
  from { opacity: 1; transform: translate(-50%, -50%) scale(2); }
  to { opacity: .55; transform: translate(-50%, -50%) scale(.75); }
}
/* With reduced motion the marker still breathes, as light only: no growing. */
@keyframes breathe-still { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .trail-pulse::before, .trail-pulse.arrive::before { animation: breathe-still 2.4s ease-in-out infinite; }
  .trail-pulse::after { animation: breathe-still 2.4s ease-in-out infinite; transform: translate(-50%, -50%); }
}

/* The carousel's position is shown by the dots; the "2 / 4" text stays for
   screen readers only. */
.lb-counter { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Share: the web player shown inside a browser, so it reads as a web page. */
.browser {
  border-radius: 12px; overflow: hidden; background: #0b0f1c; border: 1px solid #222b40;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 120px -40px rgba(0, 200, 255, .35);
}
.browser-tabs { display: flex; align-items: flex-end; gap: 6px; padding: 8px 12px 0; background: #05070e; }
.browser-tabs .lights { display: flex; gap: 7px; align-self: center; margin-right: 10px; padding-bottom: 6px; }
.browser-tabs .lights span { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.browser-tabs .lights span:nth-child(1) { background: #ff5f57; }
.browser-tabs .lights span:nth-child(2) { background: #febc2e; }
.browser-tabs .lights span:nth-child(3) { background: #28c840; }
.browser-tab {
  display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 300px; padding: 7px 12px; border-radius: 9px 9px 0 0;
  font-size: 12px; color: var(--app-muted); text-align: left;
}
.browser-tab.active { background: #141a2b; color: var(--app-ink); }
.browser-tab img { width: 14px; height: 14px; flex-shrink: 0; }
.browser-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-tab .fa-times { font-size: 10px; color: var(--app-muted); margin-left: 6px; }
.browser-tab-new { padding: 7px 8px; font-size: 12px; color: var(--app-muted); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: #141a2b; border-bottom: 1px solid #222b40; color: var(--app-muted); font-size: 13px; }
.browser-url {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: #0b0f1c; border: 1px solid #222b40; color: var(--app-ink); font-size: 13px; text-align: left;
}
.browser-url .fa-lock { color: var(--fb-note); font-size: 11px; }
.browser-url span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-url .host { color: var(--app-muted); }
@media (max-width: 640px) {
  .browser-tab-new, .browser-bar .opt { display: none; }
  .browser-bar { gap: 10px; padding: 7px 10px; }
  .browser-url { font-size: 11px; padding: 5px 10px; }
}

/* The phone gets a mobile browser around the player: status bar, address
   pill on top. */
.share-phone .phone {
  border-radius: 30px; border: 6px solid #1c2338; background: #05070e; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.phone-status { display: flex; justify-content: space-between; padding: 6px 16px 2px; font-size: 10px; font-weight: 700; color: var(--app-ink); }
.phone-status i { font-size: 9px; margin-left: 3px; }
.phone-url {
  display: flex; align-items: center; justify-content: center; gap: 5px; margin: 4px 8px 6px; padding: 5px 8px;
  border-radius: 9px; background: #1a2133; color: var(--app-ink); font-size: 10px;
}
.phone-url .fa-lock { font-size: 8px; color: var(--fb-note); }
.share-phone .phone img { border: 0; border-radius: 0; box-shadow: none; }

/* Every section after the hero starts with a lit string across its top in
   that section's colour on the scroll trail (the same colour as its nav
   underline), with a little of that light spilling down and a faint tint in
   the background. The hero sinks into near-black so the first edge reads.
   Bases alternate between two near-identical darks, and the tints stay a few
   percent strong, so the sections differ in mood, not in paint. */
main > .section {
  --sec-rgb: 0, 200, 255;
  background:
    radial-gradient(60% 260px at 50% 0, rgba(var(--sec-rgb), .055), transparent 100%),
    linear-gradient(180deg, rgba(var(--sec-rgb), .018), transparent 60%),
    var(--app-bg);
}
main > .section:nth-of-type(even) {
  background:
    radial-gradient(60% 260px at 50% 0, rgba(var(--sec-rgb), .055), transparent 100%),
    linear-gradient(180deg, rgba(var(--sec-rgb), .018), transparent 60%),
    linear-gradient(180deg, var(--app-panel), var(--app-bg));
}
main > .section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--sec-rgb), .35) 22%, rgba(var(--sec-rgb), .75) 50%, rgba(var(--sec-rgb), .35) 78%, transparent);
  box-shadow: 0 0 12px rgba(var(--sec-rgb), .45), 0 0 30px rgba(var(--sec-rgb), .18);
}

/* The H1 opens with what TabStage is, set small like an eyebrow, before the tagline. */
.h1-kicker {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--app-accent); line-height: 1.4; margin-bottom: 14px;
}

/* Footer links are easy to tap on a phone. */
footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }

/* Hero video: waits for a press. One big button in the middle: play, then
   pause (shown while the pointer is over the video), then replay at the end.
   Sound and full screen sit bottom right. */
.hero-video { position: relative; aspect-ratio: 16 / 9; background: #0a0f1d url("/images/tabstage/tabstage-demo-poster.webp") center / cover no-repeat; cursor: pointer; overflow: hidden; }
/* The film fades to black at its end; the poster comes back instead. */
.hero-video.is-ended video { opacity: 0; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video::after { content: ""; position: absolute; inset: 0; background: rgba(4, 7, 16, .45); pointer-events: none; opacity: 0; transition: opacity .25s; }
.hero-video.is-idle::after, .hero-video.is-ended::after { opacity: 1; }
.hv-big {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
  background: rgba(6, 9, 20, .72); color: #fff; font-size: 2rem; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 8px rgba(0, 200, 255, .08), 0 20px 50px -10px rgba(0, 0, 0, .7);
  transition: opacity .2s, transform .2s, background .2s, border-color .2s;
}
.hv-big .fa-play { margin-left: 6px; }
.hv-big:hover { background: rgba(6, 9, 20, .9); border-color: rgba(0, 200, 255, .7); transform: translate(-50%, -50%) scale(1.06); }
.hv-bar { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: flex; gap: 8px; transition: opacity .2s; }
.hv-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
  background: rgba(6, 9, 20, .78); color: #fff; font-size: 1rem; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, border-color .2s;
}
.hv-btn:hover { background: rgba(6, 9, 20, .92); border-color: rgba(0, 200, 255, .6); }
.hv-big:focus-visible, .hv-btn:focus-visible { outline: 2px solid #00c8ff; outline-offset: 2px; }
/* While playing, the controls show only while the pointer is there (or the keyboard is). */
.hero-video.is-playing .hv-big, .hero-video.is-playing .hv-bar { opacity: 0; pointer-events: none; }
.hero-video.is-playing.is-active .hv-big, .hero-video.is-playing.is-active .hv-bar,
.hero-video.is-playing:has(button:focus-visible) .hv-big, .hero-video.is-playing:has(button:focus-visible) .hv-bar { opacity: 1; pointer-events: auto; }
.hero-video.is-playing.is-active { cursor: default; }
.hero-video.is-playing:not(.is-active) { cursor: none; }
.hero-video:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; background-color: #000; background-size: contain; }
.hero-video:fullscreen video { object-fit: contain; }
.hero-video:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; background-color: #000; background-size: contain; }
.hero-video:-webkit-full-screen video { object-fit: contain; }
@media (max-width: 700px) {
  .hv-big { width: 68px; height: 68px; font-size: 1.5rem; }
  .hv-bar { right: 8px; bottom: 8px; gap: 6px; }
  .hv-btn { width: 36px; height: 36px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .hv-big, .hv-bar, .hero-video::after { transition: none; } }
