/* The showcase page (index.html). Colours and fonts come from site.css. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.landing { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.landing h1, .landing h2, .landing h3 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.landing p { text-wrap: pretty; }
.landing a { color: inherit; text-decoration: none; }
.landing main { max-width: 1120px; padding: 0 20px; }
.landing main.home { max-width: none; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(20px, calc((100vw - 1120px) / 2 + 20px)); background: color-mix(in oklab, var(--bg), transparent 15%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; font-size: 1.125rem; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 550; color: var(--muted); }
.nav-links a:not(.cta):hover { color: var(--ink); }

.cta { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 650; font-size: 16px; box-shadow: 0 1px 2px rgb(40 30 20 / 0.15), 0 8px 20px -8px color-mix(in oklab, var(--accent), transparent 30%); transition: scale 0.15s cubic-bezier(0.2, 0, 0, 1), background-color 0.15s, box-shadow 0.15s; }
.cta:hover { background: color-mix(in oklab, var(--accent), var(--ink) 10%); }
.cta:active { scale: 0.96; }
.cta.small { min-height: 40px; padding: 0 16px; font-size: 14.5px; box-shadow: none; }
.cta.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.cta.ghost:hover { background: var(--surface-2); }
.cta[aria-disabled="true"] { background: var(--surface-2); color: var(--muted) !important; box-shadow: none; cursor: default; }
.cta[aria-disabled="true"]:active { scale: 1; }
.cta:focus-visible, .landing a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.cta:focus-visible { border-radius: 999px; }

.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.home-page .nav {
  position: absolute;
  inset: 0 0 auto;
  padding: clamp(1rem, 2.1vw, 2rem) var(--hero-gutter);
  background: transparent;
  backdrop-filter: none;
  color: var(--hero-ink);
}
.home-page .nav .logo { font-family: var(--editorial); font-size: clamp(1.4rem, 2.5vw, 2.5rem); }
.home-page .nav .logo img { width: 1.08em; height: 1.08em; flex: none; }
.home-page .nav-links { color: var(--hero-ink); text-shadow: 0 1px 5px #2a130d; }
.home-page .nav-links a:not(.cta):hover { color: var(--hero-highlight); }
.home-page .nav-links .cta { background: #381911; box-shadow: 0 0 0 1px #ffe3bd60; color: var(--hero-ink) !important; }

.hero { position: relative; isolation: isolate; background: var(--hero-shadow); color: var(--hero-ink); }
.hero-picture, .hero::after { position: absolute; inset: 0; }
.hero-picture { z-index: -2; }
.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #321209e8 0%, #37190bbb 28%, #35180b20 56%, transparent 75%),
              linear-gradient(180deg, #29140975, transparent 23%);
}
.hero-inner {
  max-width: 1740px;
  margin: 0 auto;
  min-height: clamp(41rem, 53vw, 56rem);
  padding: clamp(6rem, 8vw, 8rem) var(--hero-gutter) clamp(2.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 2rem 5vw;
  align-items: center;
}
.hero-copy { container-type: inline-size; }
.hero h1 {
  text-wrap: initial;
  font-family: var(--editorial);
  font-size: clamp(2rem, 9.5cqw, 6rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-emphasis { position: relative; isolation: isolate; display: inline-block; }
.hero-emphasis::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 -.32em .015em;
  height: .15em;
  border-top: .082em solid var(--hero-highlight);
  border-radius: 55% 38% 0 0;
  rotate: -1.5deg;
}
.hero .lede { max-width: 32ch; margin: clamp(1.7rem, 3vw, 3rem) 0 0; font-size: clamp(1.05rem, 1.55vw, 1.45rem); line-height: 1.32; color: var(--hero-ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.45rem, 3vw, 3.1rem); }
.hero .cta {
  gap: .65rem;
  min-height: clamp(3.2rem, 5vw, 5rem);
  padding-inline: clamp(1.25rem, 2.8vw, 2.9rem);
  border-radius: var(--radius-button);
  background: var(--hero-action);
  color: white !important;
  font-size: clamp(1rem, 1.7vw, 1.65rem);
}
.hero .cta:hover, .closing .cta:hover { background: var(--hero-action-hover); }
.actions > .cta:not([hidden]) + .alternate { background: #2a170eb3; box-shadow: inset 0 0 0 1px #ffe3bd80; }
.actions > .cta:not([hidden]) + .alternate:hover { background: #4e2a1a; }
.hero-demo-arrow { display: none; }
.hero .cta:focus-visible { outline-color: var(--hero-ink); border-radius: var(--radius-button); }
.fine { display: grid; gap: .25rem; margin: 1.15rem 0 0; font-weight: 650; font-size: 1rem; }
.fine span { font-size: .875rem; font-weight: 450; }
.hero-visual { display: grid; gap: 1rem; justify-self: end; width: min(100%, 31rem); }
.demo { translate: var(--window-x, 0px) var(--window-y, 0px); overflow: hidden; padding: 0 .9rem .75rem; border-radius: var(--radius-card); background: var(--demo-surface); color: var(--demo-ink); box-shadow: var(--hero-window-shadow); scroll-margin-top: 1rem; }
.demo-title { position: relative; margin: 0 -.9rem .75rem; display: flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .35rem .75rem .35rem 3.5rem; background: var(--demo-chrome); font-weight: 700; font-size: .875rem; }
.window-lights { position: absolute; top: 50%; left: .85rem; translate: 0 -50%; width: .55rem; aspect-ratio: 1; border-radius: 50%; background: #ef6758; box-shadow: .85rem 0 #eab73a, 1.7rem 0 #46ad62; }
.demo-grip { display: none; }
.demo-button svg { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1000px) and (any-pointer: fine) {
  .demo-grip { position: absolute; inset: 0; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: grab; -webkit-user-select: none; user-select: none; }
  .demo-grip:hover { background: color-mix(in srgb, var(--demo-ink) 5%, transparent); }
  .demo-grip:focus-visible { outline: 2px solid var(--demo-accent); outline-offset: -4px; }
  .demo-grip[data-dragging] { cursor: grabbing; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.demo-road { --pair-h: clamp(4.4rem, 9vw, 5.8rem); --strike-gap: 5px; position: relative; height: clamp(15.5rem, 30vw, 19.5rem); overflow: hidden; border-radius: var(--radius-button); background: var(--demo-chrome); }
.demo-road canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-tiles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.demo-tile, .demo-pair { display: flex; align-items: center; gap: .55rem; }
.demo-tile strong, .demo-pair strong { font: 700 clamp(2rem, 4.4vw, 2.9rem)/1 var(--sans); }
.demo-tile img, .demo-pair img { display: block; width: auto; height: var(--pair-h); }
.demo-tile { position: absolute; top: 0; left: 0; transform-origin: 50% 100%; will-change: transform, opacity; }
.demo-tile::before { content: ""; position: absolute; inset: -.3rem -.65rem; z-index: -1; border-radius: .8rem; background: var(--demo-surface); box-shadow: 0 0 0 1.5px var(--demo-accent), 0 4px 12px #2f180f22; opacity: var(--tile-frame, 1); }
.demo-next { position: absolute; top: .45rem; left: .65rem; z-index: 3; margin: 0; font-size: .8rem; font-weight: 650; }
.demo-dock { position: absolute; inset: auto 0 0; z-index: 1; height: 43%; display: grid; place-items: center; background: color-mix(in srgb, var(--demo-surface) 73%, transparent); box-shadow: inset 0 1px 0 #3d241b19; }
.demo-dock-label { position: absolute; top: .4rem; left: .65rem; color: var(--demo-accent); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.demo-strike { position: absolute; inset: calc(50% + var(--pair-h) / 2 + var(--strike-gap)) 7% auto; height: 3px; border-radius: 2px; background: var(--demo-accent); box-shadow: 0 0 calc(3px + var(--glow, 0) * 14px) var(--demo-accent); scale: 1 calc(1 + var(--glow, 0) * .6); }
.demo-legend { margin: .4rem 0 0; font-size: .8rem; }
.demo-hint { margin: .4rem 0; font-size: .8125rem; font-weight: 650; }
.demo-player {
  --player-font: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --player-accent: #70ed82;
  --player-muted: #b6b8bc;
  position: relative;
  min-width: 0;
  overflow: clip;
  padding: 0 .8rem .75rem;
  border: 1px solid #55595e;
  border-radius: var(--radius-card);
  background: #151719;
  color: #f6f7f7;
  font-family: var(--player-font);
  box-shadow: var(--hero-window-shadow);
  scroll-margin-top: 1rem;
}
.demo-player-title { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 2.3rem; margin: 0 -.8rem .7rem; padding: .2rem .8rem .2rem 3.5rem; background: #22252a; }
.demo-player-title h2 { display: flex; align-items: center; gap: .45rem; margin: 0; color: inherit; font: 750 .95rem/1.2 var(--player-font); letter-spacing: normal; }
.dotify-mark { display: block; flex: none; fill: #fff; }
.dotify-disc { fill: #1c9452; }
.demo-player-content { position: relative; z-index: 1; }
.demo-cover { display: none; }
.demo-meter { display: inline-flex; align-items: center; gap: 2px; height: .85rem; color: var(--player-accent); }
.demo-meter i { width: 2px; height: 100%; border-radius: 2px; background: currentColor; transform: scaleY(.25); }
.demo-transport { display: flex; align-items: center; gap: .45rem; margin-top: .25rem; }
.demo-timeline { display: grid; flex: 1; grid-template-columns: auto minmax(0, 1fr) auto; gap: .45rem; align-items: center; color: var(--player-muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
.demo-timeline span { min-width: 4ch; }
.demo-timeline span:last-child { text-align: right; }
.demo-timeline progress { width: 100%; height: .25rem; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: #4c5054; color: var(--player-accent); accent-color: var(--player-accent); }
.demo-timeline progress::-webkit-progress-bar { background: #4c5054; }
.demo-timeline progress::-webkit-progress-value { background: var(--player-accent); }
.demo-timeline progress::-moz-progress-bar { background: var(--player-accent); }
.demo-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: auto; margin: 0; min-height: 44px; padding: .25rem .7rem; border: 0; border-radius: .45rem; background: transparent; color: var(--player-muted); white-space: nowrap; font: 750 .875rem var(--sans); cursor: pointer; }
#demo-play { width: 44px; padding: 0; }
.demo-listen { background: var(--hero-action); color: white; box-shadow: inset 0 -2px 0 #0003; }
.demo-button:not([data-playing="true"]) .transport-pause,
.demo-button[data-playing="true"] .transport-play,
.demo-listen:not([data-audible="true"]) svg .sound-on,
.demo-listen[data-audible="true"] svg .sound-off { display: none; }
.demo-sound-label { display: grid; justify-items: center; }
.demo-sound-label > span { grid-area: 1 / 1; }
.demo-listen:not([data-audible="true"]) .demo-sound-label .sound-on,
.demo-listen[data-audible="true"] .demo-sound-label .sound-off { visibility: hidden; }
.demo-button:active { scale: .98; }
.demo-button:focus-visible, .demo-song:has(input:focus-visible) { outline: 2px solid var(--player-accent); outline-offset: 2px; }
.demo-error { margin: .45rem 0 0; font-size: .8125rem; }
.demo-songs { display: grid; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.demo-songs legend { margin-bottom: .3rem; padding: 0; font-size: .75rem; font-weight: 700; }
.demo-song { position: relative; display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .3rem; border-bottom: 1px solid #35383b; font-size: .75rem; line-height: 1.2; cursor: pointer; }
.demo-song input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.demo-song-cover { flex: none; width: 2rem; height: 2rem; object-fit: cover; border-radius: .2rem; }
.demo-song-details { display: grid; gap: .12rem; }
.demo-song-title { font-weight: 650; }
.demo-song-artist { color: var(--player-muted); font-size: .7rem; font-weight: 500; }
.demo-song:has(input:checked) { background: #222b26; }
.demo-song:has(input:checked) .demo-song-title { color: var(--player-accent); }
@media (hover: hover) {
  #demo-play:hover, .demo-song:hover { background: #303538; color: white; }
  .demo-listen:hover { background: var(--hero-action-hover); }
}
.demo-capo { position: absolute; top: .4rem; right: .65rem; z-index: 3; margin: 0; padding: .1rem .5rem; border-radius: 999px; background: var(--demo-accent); color: white; font-size: .75rem; font-weight: 700; }
.sources .hero-note { max-width: 43rem; margin: 0 auto 1.6rem; font-weight: 500; font-size: 1rem; text-transform: none; letter-spacing: normal; }

@media (min-width: 1000px) {
  .demo-road { height: clamp(15rem, 22vw, 17.5rem); }
}

@media (min-width: 1280px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 2rem 3vw; }
  .hero-visual { width: min(100%, 44rem); }
  .demo-player { margin-right: 4rem; }
  .demo-player-content { width: 11.75rem; }
  .demo-cover { display: block; position: absolute; inset: 2.3rem 0 0 13.25rem; width: calc(100% - 13.25rem); height: calc(100% - 2.3rem); object-fit: cover; opacity: .63; }
  .demo { z-index: 2; margin: 4rem 0 0 13.5rem; }
}

@media (max-width: 760px) {
  .hero-demo-arrow { display: inline; }
  .hero-photo { object-position: 60% 50%; }
  .hero::after {
    background: linear-gradient(180deg, #32170ce8 0%, #36180bbb 28%, transparent 55%, #27110882 100%);
  }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 5.5rem 1.5rem; gap: clamp(2rem, 6vw, 3rem); }
  .hero-visual { justify-self: center; width: min(100%, 29rem); }
}

.window { display: block; position: relative; margin: 0; padding: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1), 0 2px 6px rgb(40 30 20 / 0.08), 0 40px 80px -24px rgb(40 30 20 / 0.4); }
.window img { display: block; width: 100%; height: auto; }
@media (prefers-color-scheme: dark) { .window { background: #121110; box-shadow: 0 0 0 1px rgb(255 245 230 / 0.14), 0 40px 80px -24px rgb(0 0 0 / 0.8); } }

.jam-photo { display: block; width: 100%; height: auto; object-fit: cover; }
.sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: .6rem 1.5rem;
  padding: 1.15rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}
.sources p { margin: 0; color: var(--muted); }
.sources ul { display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem 1.5rem; margin: 0; padding: 0; list-style: none; font-weight: 700; }

.wrap > section { margin-top: clamp(3.75rem, 8vw, 6.75rem); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(1.75rem, 5vw, 4rem); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .copy { order: 2; }
.feature h2, .how h2, .plans-heading h2, .faq h2, .closing h2 {
  font-family: var(--editorial);
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  letter-spacing: -.045em;
  line-height: 1.04;
}
.feature .copy > p:not(.eyebrow) { margin: 1rem 0 0; font-size: 1.075rem; color: var(--muted); }
.section-link { display: inline-block; margin-top: 1.15rem; color: var(--accent) !important; text-underline-offset: .2em; font-weight: 700; }
.section-link:hover, .faq .section-link { text-decoration: underline; }
.faq .section-link { display: inline; margin: 0; }
.ticks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before, .ticks li::after { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; }
.ticks li::before { background: var(--accent-soft); }
.ticks li::after { background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }


.how ol, .practice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.how ol { counter-reset: step; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.how li { counter-increment: step; }
.how li, .practice article { padding: .9rem 0 0; border-top: 1px solid var(--line); }
.how li::before { content: counter(step); display: grid; place-items: center; width: 1.8rem; aspect-ratio: 1; margin-bottom: .65rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .875rem; font-weight: 700; }
.how h3, .practice h3 { font-size: 1.15rem; }
.how li p, .practice p, .plans-heading p { margin: .35rem 0 0; color: var(--muted); }

.plans-teaser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.plans-heading { grid-column: 1 / -1; margin-bottom: .55rem; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); }
.plan.pro { border-color: var(--accent); background: var(--surface-2); }
.plan h3 { font-size: 1.125rem; }
.plan .big { margin: 0; font-family: var(--editorial); font-weight: 700; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; line-height: 1.1; }
.plan-lifetime { margin: 0; color: var(--muted); }
.plan .ticks { margin: .55rem 0 1.25rem; }
.plan .cta { margin-top: auto; white-space: normal; text-align: center; }

.faq { max-width: 46rem; margin-inline: auto; }
.faq h2 { margin-bottom: 1.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-weight: 650; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--display); font-size: 24px; color: var(--accent); transition: rotate 0.2s cubic-bezier(0.2, 0, 0, 1); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 2px 20px; color: var(--muted); }


.closing { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 19rem; overflow: hidden; border-radius: var(--radius-card); background: var(--hero-shadow); color: var(--hero-ink); }
.closing .jam-photo, .closing::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing .jam-photo { z-index: -2; }
.closing::before { content: ""; z-index: -1; background: linear-gradient(90deg, #29150fed, #29150f45); }
.closing-copy { padding: clamp(1.4rem, 5vw, 3.5rem); }
.closing .cta { background: var(--hero-action); border-radius: var(--radius-button); color: white !important; }
.closing .actions { margin-top: 1.5rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 1120px; margin: 112px auto 0; padding: 28px 20px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .feature.flip .copy { order: 0; }
  .window { border-radius: 10px; }
}
@media (max-width: 560px) {
  .nav-links a:not(.cta) { display: none; }
  .sources { gap: .55rem; }
  .sources ul { column-gap: .9rem; }
  .how ol, .practice, .plans-teaser { grid-template-columns: minmax(0, 1fr); }
  .closing { min-height: 17rem; }
  .landing main, .wrap { padding-left: 16px; padding-right: 16px; }
  .landing main.home { padding: 0; }
  .nav { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .faq summary::after { transition: none; }
}

.hero-visual { scroll-margin-top: 1rem; }
.demo-audio-controls { grid-area: 1 / 1; justify-self: start; --player-accent: var(--hero-highlight); }
.demo-audio-controls:has(button[hidden]) { display: none; }
.demo-player { grid-area: 2 / 1; align-self: start; z-index: 0; box-shadow: 0 12px 30px #160d0b70, 0 2px 6px #160d0b55; }
.hero-visual .demo { box-shadow: 0 20px 52px -10px #160d0baa, 0 3px 8px #160d0b4d; }
.demo { grid-area: 3 / 1; align-self: start; }
.hero-visual[data-window="dotify"] [data-demo-window="dotify"],
.hero-visual[data-window="browser"] [data-demo-window="browser"] { z-index: 1; margin-top: 1.75rem; }
.hero-visual[data-window="dotify"] [data-demo-window="browser"],
.hero-visual[data-window="browser"] [data-demo-window="dotify"] { margin-inline: 1.2rem .85rem; padding-bottom: 0; }
.demo-window-button {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.demo-window-button::after { content: ""; position: absolute; inset: 0; }
.demo-window-button[aria-pressed="true"] { cursor: default; }
.demo-window-button:hover[aria-pressed="false"] { color: #bfe0ff; }
.demo-window-button:focus-visible { outline: 0; }
.demo-window-button:focus-visible::after { outline: 2px solid white; outline-offset: -3px; }
.hero-visual[data-window="dotify"] [data-demo-window="dotify"] { margin-top: 3.5rem; }
.demo-browser { --player-font: Arial, "Helvetica Neue", sans-serif; }
.demo-browser-chrome { position: relative; margin: 0 -.8rem .65rem; }
.demo-browser .demo-player-title { position: static; justify-content: flex-start; align-items: end; gap: .45rem; margin: 0; padding-block: 0; background: #29374a; }
.demo-browser .window-lights { top: 1.15rem; }
.demo-browser .demo-window-button { display: inline-flex; align-items: center; gap: .3rem; }
.demo-browser-icon, .demo-browser-tabs svg { width: .85rem; height: .85rem; flex: none; }
.demo-browser .demo-player-title h2 { align-self: center; font-size: .78rem; }
.demo-browser[data-source="metube"] { --player-accent: #ffaca6; }
.demo-browser[data-source="radio"] { --player-accent: #ffc36d; }
.demo-browser-tabs { position: relative; z-index: 1; display: flex; gap: .2rem; }
.demo-browser-tabs button {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  width: auto;
  min-height: 30px;
  margin: 0;
  padding: .25rem .42rem;
  border: 0;
  border-radius: .45rem .45rem 0 0;
  background: transparent;
  color: #e1e7ef;
  white-space: nowrap;
  font: 600 .72rem var(--player-font);
}
.demo-browser-tabs button:hover { background: #344357; }
.demo-browser-tabs [aria-pressed="true"] { background: #3b4a5e; }
.demo-browser-tabs button:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.demo-address-bar {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .25rem .8rem .35rem;
  background: #3b4a5e;
  color: #aebdce;
  font: 400 calc(.65rem - 1px) ui-monospace, Menlo, Consolas, monospace;
}
.demo-browser-arrows, .demo-browser-tools { flex: none; color: #9cacc0; font-size: .9rem; }
#demo-browser-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: #263242;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-browser-screen { position: relative; display: grid; grid-template-rows: minmax(0, 1fr); contain: size; aspect-ratio: 4 / 3; min-width: 0; border-radius: .5rem; overflow: clip; }
.demo-video { background: #101010; }
.demo-video img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-video-toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: #0003;
  color: white;
  opacity: 0;
}
.demo-video-toggle svg {
  box-sizing: content-box;
  width: 1.35rem;
  height: 1.35rem;
  padding: .55rem;
  border-radius: 50%;
  background: #c82e39;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}
.demo-video-toggle[data-playing="true"] .transport-play,
.demo-video-toggle[data-playing="false"] .transport-pause { display: none; }
.demo-video:hover .demo-video-toggle, .demo-video-toggle:focus-visible { opacity: 1; }
.demo-video-toggle:focus-visible { outline: 2px solid white; outline-offset: -3px; }
@media (hover: none) {
  .demo-video-toggle { opacity: 1; }
}
.demo-page-details { display: grid; grid-template-rows: auto auto 1fr; gap: .15rem; margin-top: .4rem; padding: .4rem .5rem; border: 1px solid #3a414b; border-radius: .4rem; background: #20242a; font: .69rem/1.25 var(--player-font); }
.demo-page-details p { margin: 0; }
.demo-page-heading { font-weight: 700; }
.demo-page-meta { color: var(--player-muted); }
.demo-page-lines { display: grid; align-content: start; min-block-size: 4.25rem; gap: .14rem; margin: .15rem 0 0; padding: .3rem 0 0; border-top: 1px solid #3a414b; list-style: none; color: #dce2eb; }
.demo-page-details p, .demo-page-lines li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-comments { gap: .4rem; }
.demo-comments li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .38rem; }
.demo-comment-avatar { display: grid; place-items: center; width: 1.1rem; aspect-ratio: 1; border-radius: 50%; background: #8d5a7d; color: white; font-size: .62rem; font-weight: 700; }
.demo-comments li:nth-child(2) .demo-comment-avatar { background: #356d75; }
.demo-comments strong { font-weight: 600; }
.demo-comments small { margin-left: .16rem; color: var(--player-muted); font-size: .62rem; }
.demo-comments p:last-child { color: #d0d6de; font-weight: 400; }
.demo-source-caption { margin: .45rem 0 0; color: var(--player-muted); font-size: .73rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-radio-site { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); background: #f4dfb8; color: #241a15; }
.demo-station { display: grid; align-items: end; background: #3e2b20 url("media/jam-records-small.webp") center / cover no-repeat; }
.demo-station-copy { padding: .55rem; background: #231713e8; color: #ffedd0; }
.demo-station-copy p { margin: 0; }
.demo-station-live { color: #ffc36d; font: 700 .6rem/1.1 var(--player-font); letter-spacing: .08em; text-transform: uppercase; }
.demo-station-name { color: #fff3d9; font: 700 clamp(1.3rem, 2.2vw, 1.9rem)/1.1 var(--editorial); }
.demo-station-frequency { font: 600 .64rem/1.3 ui-monospace, Menlo, monospace; }
.demo-radio-ads { display: grid; grid-template-rows: auto repeat(2, minmax(0, 1fr)); gap: .2rem; padding: .3rem; border-left: 1px solid #765b3b; }
.demo-radio-ads small { font: 700 .54rem/1.1 var(--player-font); text-transform: uppercase; letter-spacing: .08em; }
.demo-radio-ads article { display: grid; align-content: stretch; grid-template-rows: minmax(0, 1fr) auto auto; gap: .12rem; min-height: 0; padding: .19rem; border: 1px solid #a7735d; background: #ffefd7; font: .56rem/1.12 var(--player-font); }
.demo-radio-ads article:last-child { background: #eed3a9; }
.demo-radio-ads img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.demo-radio-ads strong { overflow: hidden; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) {
  .demo-browser-label { display: none; }
}

@media (max-width: 1279px) {
  .demo-player-content[inert] { display: none; }
}

@media (min-width: 1280px) {
  .hero-visual[data-window="dotify"] [data-demo-window="browser"],
  .hero-visual[data-window="browser"] [data-demo-window="dotify"] { margin-right: 2rem; }
  .demo { grid-area: 2 / 1; margin-top: 5.75rem; }
  .hero-visual[data-window="dotify"] .demo { margin-top: 7.5rem; }
  .demo-browser .demo-player-content { width: 13rem; }
  .demo-browser::before {
    content: "";
    position: absolute;
    inset: 4.4rem 0 0 14.5rem;
    background: #27232a url("media/keyboard-cat-still.webp") center / cover no-repeat;
    opacity: .7;
  }
  .demo-browser[data-source="radio"]::before {
    background-image: url("media/jam-records-small.webp");
  }
  .hero-visual[data-window="browser"] .demo { margin-left: 14.75rem; }
}
