/* afinita.app. Ensō Light on the Twilight Sea ground. Tokens are the app's
   (lib/shared/ui/enso/tokens.dart). Light is earned: what sounds blooms,
   what is chosen is lit, what can sound rests as an ember, the rest is ink. */

@font-face { font-family: "Sora"; font-weight: 300; font-display: swap; src: url("/fonts/sora-300.1845d4f2.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url("/fonts/sora-400.07873724.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 500; font-display: swap; src: url("/fonts/sora-500.79504299.woff2") format("woff2"); }

:root {
  --bg: #05080E; --bg-low: #070A14; --surface: #11151F; --raised: #1B2232; --mist: #273249;
  --outline: #5B6B7C; --text: #E6EDF2; --bright: #F2FBFD; --secondary: #C9D4DD; --muted: #8E9AA6;
  --accent: #3B8B9B; --accent-soft: #639DAB; --glow: #7FD8E8; --warm: #F2C98B; --horizon: #9A86E0;
  --line: rgba(39,50,73,.65);
  --gutter: 16px; --max: 1200px; --r-card: 20px; --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1); --t1: 150ms; --t2: 200ms; --t3: 300ms;
  --gap: clamp(36px, 5.5vw, 80px);
  --level: 0;
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
html.has-dock { scroll-padding-bottom: 120px; } /* focus never hides under the dock (WCAG 2.4.11) */
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 "Sora", system-ui, sans-serif; font-variant-numeric: tabular-nums; overflow-x: hidden; overflow-wrap: break-word; }
:lang(de) :is(h1, h2, h3) { hyphens: auto; hyphenate-limit-chars: 14 6 6; } /* long German compounds below 360 px */
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--glow); }
p a:not(.more) { text-decoration: underline; text-decoration-color: rgba(99,157,171,.45); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
cite { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.glyph { fill: currentColor; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.glyph--arrow { display: inline-block; vertical-align: -2px; }

.eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
h1 { font-weight: 300; font-size: 29px; line-height: 1.18; color: var(--bright); text-wrap: balance; }
h2 { font-weight: 300; font-size: 25px; line-height: 1.22; color: var(--bright); text-wrap: balance; }
h3 { font-weight: 500; font-size: 17px; line-height: 1.35; }
.lead { color: var(--secondary); font-size: 16px; margin-top: 12px; max-width: 36em; }
@media (min-width: 1024px) { h1 { font-size: 50px; line-height: 1.12; } h2 { font-size: 36px; } .lead { font-size: 19px; margin-top: 20px; } }
.more { display: inline-block; padding: 10px 0; font-size: 14.5px; }
.more::after { content: "\00a0\2192"; }

/* Header and menus */
.top { position: relative; z-index: 10; }
.top__in { display: flex; align-items: center; gap: 12px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; font-size: 18px; }
.brand:hover { color: var(--bright); }
.logo__in { fill: var(--accent); } .logo__out { fill: var(--glow); } .logo__pearl { fill: var(--warm); }
.top__nav { display: none; gap: 28px; margin-left: 28px; }
.top__nav a { color: var(--secondary); font-size: 15px; padding: 10px 0; }
.top__nav a:hover { color: var(--glow); }
.top__end { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menu { position: relative; }
.menu summary { display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 8px; border-radius: 12px; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.menu summary:hover, .menu[open] summary { color: var(--text); background: rgba(27,34,50,.5); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; padding: 8px; border-radius: 16px; background: var(--raised); box-shadow: 0 0 0 1px rgba(91,107,124,.35), 0 18px 40px -12px rgba(0,0,0,.85); }
.menu__panel a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--secondary); }
.menu__panel a:hover { background: rgba(39,50,73,.6); color: var(--bright); }
.menu__panel a[aria-current] { color: var(--glow); }
.menu--nav nav { display: grid; }
@media (min-width: 900px) { .top__nav { display: flex; } .top__in { height: 72px; } .menu--nav { display: none; } }

/* Pills and the badge slot */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); color: var(--text); font-weight: 500; font-size: 15px; border: 1.5px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(115deg, #9AAABA 0%, var(--outline) 28%, rgba(91,107,124,.38) 100%) border-box; }
.pill--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.pill:hover { color: var(--bright); }
.badge { display: inline-flex; align-items: center; line-height: 0; margin: 12px 0; }
.badge img { height: 48px; width: auto; }
.badge--soon { line-height: 1.2; min-height: 48px; padding: 0 18px; border-radius: 10px; border: 1px dashed var(--outline); color: var(--muted); font-size: 15px; cursor: default; }
.badge--text { line-height: 1.2; }
.free { color: var(--secondary); font-size: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-soft); }

/* Hero */
.hero { position: relative; padding: 0 0 36px; overflow: hidden; }
.hero__grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "card" "cta" "chips"; position: relative; z-index: 1; }
.hero__text { grid-area: text; } .hero__cta { grid-area: cta; } .hero__chips { grid-area: chips; }
.hero h1 { font-size: 27px; }
.hero .lead { font-size: 15px; margin-top: 8px; }
.hero__cta .badge { margin: 0 0 8px; }
.shelves { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 2px 0 10px; font-size: 13px; }
.shelves__cur { color: var(--text); text-decoration: underline; text-decoration-color: var(--glow); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.shelves a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.horizon { position: absolute; left: -10%; right: -10%; bottom: 0; height: 160px; pointer-events: none; background: radial-gradient(60% 100% at 50% 100%, rgba(154,134,224,.12), rgba(154,134,224,0) 70%); }
@media (min-width: 600px) { .hero h1 { font-size: 34px; } .hero .lead { font-size: 16.5px; } }
@media (min-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "text card" "cta chips"; column-gap: 64px; row-gap: 22px; align-items: start; }
  .hero__text { align-self: end; }
  .hero h1 { font-size: 46px; } .hero .lead { font-size: 18px; margin-top: 18px; }
  .shelves { font-size: 14px; margin-bottom: 18px; }
}
@media (min-width: 1200px) { .hero h1 { font-size: 52px; } }

/* The listening card: the app's pitch card on the web */
.listen { grid-area: card; position: relative; background: linear-gradient(180deg, rgba(17,21,31,.96), rgba(11,14,22,.96)); border-radius: var(--r-card); padding: 14px 16px 12px; box-shadow: 0 0 0 1px rgba(39,50,73,.7), 0 30px 60px -30px rgba(0,0,0,.8); }
.listen__head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.fork { fill: none; stroke: var(--outline); stroke-width: 1.4; stroke-linecap: round; }
.listen__hero { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.listen__a, .listen__unit { font-weight: 300; font-size: 24px; color: var(--secondary); }
.listen__num { font-weight: 300; font-size: 50px; line-height: 1.05; color: var(--bright); transition: opacity var(--t2); }
.listen.is-440 .listen__num { opacity: .4; }
.listen__meta { color: var(--muted); font-size: 13px; }
.listen__story { color: var(--secondary); font-size: 14px; margin-top: 6px; }
/* short phones (360x640): the story is in the History row; Play stays in the first screen */
@media (max-width: 899px) and (max-height: 700px) { .hero .listen__story { display: none; } }
.listen__src, .listen__door { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.listen__src a, .listen__door a { display: inline-block; padding: 4px 0; margin: -4px 0; } /* 24 px targets, same line height */
.listen__door { margin-top: 6px; }
.listen__door a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--mist); text-underline-offset: 3px; }
.listen__door a:hover { color: var(--glow); }
.listen__cap { color: var(--secondary); font-size: 14px; }
.listen__piece { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; min-width: 0; font-size: 14px; line-height: 1.35; }
.listen__piece span + span { color: var(--muted); font-size: 12.5px; }
.listen--pair { margin-top: 16px; }
.hearrow { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "piece piece" "play compare"; align-items: center; gap: 6px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hearrow .lantern { grid-area: play; } .hearrow .listen__piece { grid-area: piece; } .hearrow .compare { grid-area: compare; justify-self: end; }
.listen--pair .hearrow { border-top: 0; margin-top: 4px; }
@media (min-width: 900px) {
  .listen { padding: 26px 28px 22px; }
  .listen__num { font-size: 88px; } .listen__a, .listen__unit { font-size: 32px; }
  .listen__story { font-size: 15.5px; }
  .hearrow { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "play piece compare"; }
  .hearrow .listen__piece { flex-direction: column; gap: 0; }
}

/* Lantern: the play ensō */
.lantern { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--glow); font-weight: 500; font-size: 15.5px; text-align: left; }
.lantern__ring { width: 44px; height: 44px; flex: none; }
.lantern__ring svg { width: 100%; height: 100%; overflow: visible; }
.lantern__base, .lantern__head, .lantern__mist { fill: none; transform-origin: 28px 28px; transform: rotate(-58deg); }
.lantern__base { stroke: var(--accent-soft); stroke-width: 2.2; stroke-dasharray: 95 5; stroke-linecap: round; transition: stroke var(--t2); }
.lantern__head { stroke: var(--accent-soft); stroke-width: 3.4; stroke-dasharray: 16 84; stroke-linecap: round; transition: stroke var(--t2); }
.lantern__mist { stroke: var(--glow); stroke-width: 10; opacity: 0; filter: blur(5px); transition: opacity var(--t1); }
.lantern[data-lantern="hero"] .lantern__base, .lantern[data-lantern="hero"] .lantern__head, .lantern[data-lantern="dock"] .lantern__base, .lantern[data-lantern="dock"] .lantern__head { stroke: var(--glow); }
.lantern[data-lantern="hero"] .lantern__ring { filter: drop-shadow(0 0 3px rgba(127,216,232,.45)); }
.lantern:hover .lantern__base, .lantern:hover .lantern__head { stroke: var(--glow); }
.lantern.is-sounding .lantern__base { stroke: var(--glow); stroke-width: 3; stroke-dasharray: 100 0; }
.lantern.is-sounding .lantern__head { stroke: var(--bright); }
.lantern.is-sounding .lantern__mist { opacity: calc(.18 + var(--level) * .7); }
.lantern.is-sounding .lantern__ring { filter: drop-shadow(0 0 calc(3px + var(--level) * 9px) rgba(127,216,232,.6)); }
.lantern.is-loading .lantern__base { stroke: var(--outline); }

/* The 440 compare: the underline is the side you hear */
.compare { display: flex; flex-direction: column; align-items: center; }
.compare__cap { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.compare__sides { display: flex; gap: 4px; }
.compare__side { position: relative; min-width: 50px; min-height: 44px; padding: 0 6px; font-weight: 300; font-size: 21px; color: var(--secondary); }
.compare__side::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--mist); transition: background var(--t2), box-shadow var(--t2); }
.compare__side[aria-checked="true"] { color: var(--bright); }
.compare__side[aria-checked="true"]::after { background: var(--glow); box-shadow: 0 0 8px rgba(127,216,232,.55); }
.is-playing .compare__side[aria-checked="true"] { color: var(--glow); }

/* Chips */
.chips__cap { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.chips__row { display: flex; gap: 5px; }
.chip { flex: 1 1 0; min-width: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px 1px; border-radius: 14px; color: var(--secondary); border: 1px solid var(--mist); background: rgba(5,8,14,.4); transition: border-color var(--t2), color var(--t2); }
.chip__hz { font-size: 16px; line-height: 1.2; }
.chip__name { font-size: 10.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--outline); }
.chip[aria-checked="true"] { color: var(--glow); border-color: rgba(127,216,232,.6); box-shadow: 0 0 12px rgba(127,216,232,.14) inset; }

/* Without JS: plain players */
.fallback { display: none; }
.no-js .fallback { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 8px 12px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 13px; }
.no-js .fallback audio { width: 100%; height: 36px; }
.no-js .lantern, .no-js .compare, .no-js .chips, .no-js .blind__pair, .no-js .slider, .js .nojs-note { display: none; }
.nojs-note p { color: var(--secondary); font-size: 14px; margin-bottom: 8px; }
.nojs-note audio { width: 100%; }

/* Bands */
.band { padding: var(--gap) 0; position: relative; }
.section-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.section-cta p { color: var(--secondary); font-size: 15px; }
.section-cta .badge { margin-bottom: 0; }
@media (min-width: 1024px) { .section-cta { flex-direction: row; align-items: center; justify-content: space-between; } }

/* History */
.history { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-low) 100%); }
.history__grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.history__intro > p { color: var(--secondary); margin-top: 14px; max-width: 32em; }
.legend { margin: 20px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; font-size: 12.5px; color: var(--muted); }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend div:last-child { grid-column: 1 / -1; align-items: flex-start; }
.legend dt { flex: none; } .legend dd { margin: 0; line-height: 1.35; }
.mk-knot { fill: var(--accent-soft); } .mk-dash { stroke: var(--accent-soft); stroke-width: 2.4; } .mk-spread { stroke: var(--accent-soft); stroke-width: 5; }
.mk-440 { stroke: var(--glow); stroke-width: 1.6; } .mk-ring { fill: none; stroke: var(--muted); stroke-width: 1.3; }
@media (min-width: 1024px) {
  .history__grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .history__intro { position: sticky; top: 32px; }
  .legend { grid-template-columns: 1fr; margin-top: 28px; }
}

.eras { --gw: 36%; --hzw: 62px; position: relative; }
@media (min-width: 600px) { .eras { --gw: 40%; --hzw: 76px; } }
@media (min-width: 1024px) { .eras { --gw: 48%; } }
.eras__axis, .era__row { display: grid; grid-template-columns: minmax(0, 1fr) var(--gw) var(--hzw); column-gap: 12px; }
.eras__axis { align-items: end; height: 40px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.axis { position: relative; height: 100%; }
.axis__lo, .axis__hi { display: none; position: absolute; bottom: 4px; }
.axis__lo { left: 0; } .axis__hi { right: 0; }
.axis__lo::before { content: "\2190  "; } .axis__hi::after { content: "  \2192"; }
.axis__mid { position: absolute; left: 64.71%; top: 0; transform: translateX(-50%); color: var(--glow); white-space: nowrap; }
.axis::after { content: ""; position: absolute; left: 64.71%; top: 18px; bottom: 0; width: 1.6px; background: var(--glow); opacity: .85; transform: translateX(-50%); }
.axis__hz { text-align: right; padding: 0 4px 4px 0; }
@media (min-width: 600px) { .axis__lo, .axis__hi { display: block; } .axis__mid { top: 0; } }
.era { position: relative; }
.era__row { min-height: 58px; align-items: stretch; border-radius: 12px; transition: background var(--t2); }
.era__row:hover { background: rgba(27,34,50,.35); }
.era__name { display: flex; flex-direction: column; justify-content: center; padding: 8px 0 8px 4px; min-width: 0; }
.era__label { color: var(--text); font-size: 15px; line-height: 1.3; }
.nw { white-space: nowrap; }
.era__label .ring { display: inline-block; margin-left: 6px; vertical-align: 0; }
.era__place { color: var(--muted); font-size: 12px; line-height: 1.35; }
.ring { fill: none; stroke: var(--muted); stroke-width: 1.3; flex: none; }
.era__hz { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; font-size: 15.5px; color: var(--secondary); padding-right: 4px; line-height: 1.2; }
.era__hz .to { font-size: 10.5px; color: var(--muted); }
.era__g, .mini__g { position: relative; background: linear-gradient(var(--glow), var(--glow)) 64.71% 0 / 1.6px 100% no-repeat, linear-gradient(var(--mist), var(--mist)) 0 50% / 100% 1px no-repeat; }
.gauge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.g-knot { fill: var(--accent-soft); } .g-dash { stroke: var(--accent-soft); stroke-width: 2.6; stroke-linecap: round; } .g-spread { stroke: var(--accent-soft); stroke-width: 5; }
.era[open] .era__label { font-weight: 500; color: var(--bright); }
.era[open] .g-knot { fill: var(--glow); } .era[open] .g-dash, .era[open] .g-spread { stroke: var(--glow); }
.era.is-sounding .g-mark { filter: drop-shadow(0 0 calc(3px + var(--level) * 10px) rgba(127,216,232,.85)); }
.era__body { padding: 2px 4px 18px; max-width: 42em; }
.era__story { color: var(--secondary); font-size: 14.5px; }
.era__source { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.hearrow--row { border-top: 0; padding-top: 0; margin-top: 10px; }
.credit { color: var(--muted); font-size: 12px; margin-top: 14px; }

/* Blind test */
.blind { display: grid; gap: 12px; margin-top: 28px; padding: 18px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px rgba(39,50,73,.6); }
.blind h3 { font-size: 17px; }
.blind__text p { color: var(--secondary); font-size: 14.5px; margin-top: 4px; }
.blind__pair { display: flex; gap: 28px; }
.blind__pair .lantern__word { font-size: 20px; font-weight: 400; }
.blind__reveal summary, .srcs summary { display: flex; align-items: center; min-height: 44px; color: var(--accent-soft); font-size: 15px; }
.blind__reveal summary::after, .srcs summary::after { content: "+"; margin-left: 8px; color: var(--muted); }
.blind__reveal[open] summary::after, .srcs[open] summary::after { content: "\2212"; }
@media (min-width: 1024px) { .blind { grid-template-columns: 1fr auto; align-items: center; padding: 22px 26px; } .blind__reveal, .blind .fallback { grid-column: 1 / -1; } }

/* Tune */
.tune__head > p { color: var(--secondary); margin-top: 14px; max-width: 36em; }
.tune__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
.slider { padding: 18px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px rgba(39,50,73,.6); }
.slider__read { min-height: 116px; }
.slider__eyebrow { color: var(--muted); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; min-height: 1.4em; }
.slider__title { color: var(--text); font-size: 15px; min-height: 1.4em; }
.slider__num { display: flex; align-items: baseline; gap: 6px; font-weight: 300; }
.slider__num [data-slider-hz] { font-size: 44px; line-height: 1.1; color: var(--bright); transition: color var(--t2), text-shadow var(--t2); }
.slider__a, .slider__unit { font-size: 22px; color: var(--secondary); }
.slider.is-own [data-slider-hz] { color: var(--glow); text-shadow: 0 0 18px rgba(127,216,232,.35); }
.slider__line { color: var(--muted); font-size: 14px; }
.slider input[type="range"] { width: 100%; margin: 16px 0 0; height: 36px; background: transparent; -webkit-appearance: none; appearance: none; }
.slider input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--mist), var(--outline), var(--mist)); }
.slider input[type="range"]::-moz-range-track { height: 2px; background: var(--outline); }
.slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--glow); box-shadow: 0 0 10px rgba(127,216,232,.45); }
.slider input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--glow); }
.slider__ticks { margin-top: 2px; }
.slider__ticks line { stroke: var(--outline); stroke-width: 1; } .slider__ticks line.t440 { stroke: var(--glow); stroke-width: 1.6; }
.slider__ticks text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.slider__row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.slider__piece { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; }
.slider__piece span + span { color: var(--muted); font-size: 12.5px; }
.slider__note { color: var(--muted); font-size: 12px; margin-top: 8px; }
.phone { margin: 0; justify-self: center; text-align: center; }
.phone img { margin: 0 auto; width: 220px; height: auto; border-radius: 30px; box-shadow: 0 0 0 1px rgba(39,50,73,.8), 0 0 0 7px #0B0F18, 0 0 0 8px rgba(91,107,124,.35), 0 40px 80px -30px rgba(0,0,0,.9); }
.phone figcaption { color: var(--muted); font-size: 13px; margin-top: 22px; max-width: 26em; }
@media (min-width: 900px) {
  .tune__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: 72px; align-items: start; margin-top: 36px; }
  .slider { padding: 24px 26px; }
  .phone img { width: 280px; border-radius: 36px; }
  .phone { justify-self: center; }
}

/* Frequencies */
.freq { background: linear-gradient(180deg, var(--bg-low), var(--bg)); }
.freq__head { max-width: 780px; }
.kicker { color: var(--glow); font-size: 15px; margin-bottom: 6px; }
.freq__head > p:last-child { color: var(--secondary); margin-top: 14px; }
.fcards { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
.fcard { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 10px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px rgba(39,50,73,.5); }
.fcard__eyebrow { color: var(--muted); font-size: 12.5px; }
.fcard h3 { font-size: 18px; color: var(--text); font-weight: 400; }
.fcard__num { font-weight: 300; font-size: 26px; color: var(--bright); }
.fcard__text { color: var(--secondary); font-size: 14px; }
.fcard__act { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.fcard.is-sounding { box-shadow: 0 0 0 1px rgba(127,216,232,.45), 0 0 calc(10px + var(--level) * 26px) rgba(127,216,232,.12); }
@media (min-width: 900px) { .fcards { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 40px; } .fcard { padding: 22px 24px 14px; } }
.solf-fig { margin: 6px 0 0; }
.solf-box { position: relative; }
.solf { overflow: visible; position: relative; }
.solf__keys { position: absolute; left: 0; top: 52px; width: 100%; height: 18px; overflow: visible; }
.k-base { stroke: var(--mist); stroke-width: 1; fill: none; } .k-white { stroke: var(--mist); stroke-width: 1.4; } .k-black { stroke: var(--outline); stroke-width: 2.4; }
.solf .k-name { fill: var(--muted); font-size: 9.5px; text-anchor: middle; font-family: inherit; }
.solf .s-drop { stroke-width: 1; stroke-dasharray: 2 3; } .solf .s-drop.s-on { stroke: var(--outline); } .solf .s-drop.s-between { stroke: var(--accent-soft); }
.solf .s-dot.s-on { fill: var(--accent-soft); } .solf .s-dot.s-between { fill: var(--glow); }
.solf .s-hz { font-size: 10.5px; text-anchor: middle; font-family: inherit; } .solf .s-hz.s-on { fill: var(--secondary); } .solf .s-hz.s-between { fill: var(--glow); }
.solf-fig figcaption { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 2px; }
.solf-key { width: 7px; height: 7px; border-radius: 50%; display: inline-block; } .solf-key--on { background: var(--accent-soft); } .solf-key--between { background: var(--glow); margin-left: 8px; }
.mini { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: stretch; min-height: 40px; margin-top: 6px; }
.mini__lab, .mini__hz { display: flex; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mini__hz { color: var(--text); font-size: 14.5px; }
.mini__cap { color: var(--muted); font-size: 12px; }
.frows { margin-top: 18px; border-top: 1px solid var(--line); }
.frow { border-bottom: 1px solid var(--line); }
.frow summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; }
.frow summary:hover { background: rgba(27,34,50,.3); }
.frow__name { display: flex; flex-direction: column; color: var(--text); font-size: 15.5px; line-height: 1.3; }
.frow__sub { color: var(--muted); font-size: 12.5px; }
.frow__num { font-weight: 300; font-size: 20px; color: var(--secondary); white-space: nowrap; }
.frow__num span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.frow[open] .frow__num { color: var(--glow); }
.frow__body { padding: 0 4px 16px; max-width: 44em; }
.frow__body > p { color: var(--secondary); font-size: 14.5px; }
.frow__act { margin-top: 6px; }
.verb { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.freq__foot { color: var(--secondary); font-size: 15px; margin-top: 24px; }
.nohealth { color: var(--muted); font-size: 12px; margin-top: 14px; }
.nohealth--page { margin-top: 0; padding-bottom: 28px; }

/* Make, Free and Pro, questions, last call */
.make__in { display: flex; gap: 18px; align-items: flex-start; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.make__glyph { width: 40px; height: 40px; flex: none; fill: var(--outline); margin-top: 4px; }
.make h2 { font-size: 21px; font-weight: 400; color: var(--text); }
.make p { color: var(--secondary); font-size: 14.5px; margin-top: 6px; max-width: 46em; }
.make .eyebrow { margin-bottom: 6px; } .make .make__pro { color: var(--muted); font-size: 13.5px; }
@media (min-width: 1024px) { .make h2 { font-size: 24px; } }
.price__grid { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
.plan { padding: 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px rgba(39,50,73,.5); }
.plan h3 { display: flex; align-items: baseline; gap: 10px; font-size: 18px; }
.plan h3 span { color: var(--muted); font-size: 13px; font-weight: 400; }
.plan ul { margin-top: 12px; display: grid; gap: 8px; }
.plan li { position: relative; padding-left: 18px; color: var(--secondary); font-size: 14.5px; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.plan--pro li::before { background: var(--warm); }
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; margin-top: 28px; }
.trust li { display: flex; flex-direction: column; gap: 2px; }
.trust strong { font-weight: 500; font-size: 15px; color: var(--text); }
.trust span { color: var(--muted); font-size: 13px; line-height: 1.4; }
@media (min-width: 900px) { .price__grid { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; } .plan { padding: 26px 28px; } .trust { grid-template-columns: repeat(4, 1fr); margin-top: 40px; } }
.faq__in { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .faq__in { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 72px; } }
.faq__head { margin-bottom: 14px; }
.q { border-bottom: 1px solid var(--line); }
.q summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 8px 0; font-size: 16px; color: var(--text); }
.q summary::after { content: "+"; color: var(--muted); font-size: 20px; font-weight: 300; }
.q[open] summary::after { content: "\2212"; }
.q p { color: var(--secondary); font-size: 15px; padding: 0 0 18px; max-width: 40em; }
.last, .cta { text-align: center; }
.last__in, .cta__in { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.last__mark { width: 84px; height: auto; } .cta__mark { width: 64px; height: auto; }
.last p, .cta p { color: var(--secondary); max-width: 32em; }
.cta { border-top: 1px solid var(--line); margin-top: var(--gap); }
.cta .cta__free { color: var(--muted); font-size: 14px; }

/* Inner pages */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--mist); }
.crumbs a { display: inline-block; padding: 12px 0; color: var(--muted); } .crumbs a:hover { color: var(--glow); }
.page__head { padding-top: 18px; padding-bottom: 8px; max-width: calc(820px + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.page__head .answer { color: var(--text); }
.page__listen { margin-top: 20px; max-width: calc(820px + 2 * var(--gutter)); }
.prose-sec { margin-top: clamp(40px, 5vw, 64px); max-width: calc(820px + 2 * var(--gutter)); }
.prose-sec > h2 { margin-bottom: 14px; }
.prose-sec > p { color: var(--secondary); margin-top: 10px; }
.prose-sec .src-line, .note { color: var(--muted); font-size: 13.5px; }
.qa { margin-top: 18px; } .qa h3 { font-size: 16.5px; color: var(--text); } .qa p { color: var(--secondary); margin-top: 4px; }
.data { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 20px 0 0; padding: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px rgba(39,50,73,.5); }
.data dt { color: var(--muted); font-size: 12.5px; }
.data dd { margin: 0; color: var(--text); font-size: 16px; }
.data dd span { display: block; color: var(--muted); font-size: 13px; }
@media (min-width: 720px) { .data { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sources { display: grid; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--secondary); }
.sources li { padding-left: 16px; position: relative; } .sources li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--mist); }
.claims { max-width: calc(820px + 2 * var(--gutter)); }
.claim { padding: 26px 0; border-bottom: 1px solid var(--line); }
.claim h2 { font-size: 22px; }
.claim h3 { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; margin-top: 16px; }
.claim p { color: var(--secondary); margin-top: 4px; }
.claim .claim__label { margin: 14px 0 4px; } .claim__q { margin: 0; padding-left: 14px; border-left: 2px solid var(--mist); } .claim .claim__q p { color: var(--text); font-size: 17px; margin: 0; }
@media (min-width: 1024px) { .claim h2 { font-size: 28px; } }
.claimref { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--surface); }
.claimref .eyebrow { margin-bottom: 4px; } .claimref p + p { color: var(--secondary); margin-top: 4px; font-size: 14.5px; }
.time ul { display: grid; gap: 8px; margin-top: 36px; grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.time li { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.time span { color: var(--muted); font-size: 12.5px; }
@media (min-width: 720px) { .time ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
@media (min-width: 1024px) { .hub { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 64px; } .hub__legend .legend { grid-template-columns: 1fr; margin-top: 0; } }
.scale, .ref { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--secondary); font-size: 14.5px; }
.scale .fallback, .ref .fallback { flex-basis: 100%; }
.refs { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tones { display: grid; gap: 0 24px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
.tone { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; border-bottom: 1px solid var(--line); color: var(--secondary); font-size: 14.5px; }
.tone > p { flex: 1 1 0; min-width: 0; }
.tone .lantern__word { display: none; }
.tone .fallback { flex-basis: 100%; margin-bottom: 10px; }
@media (min-width: 720px) { .tones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps { counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--outline); display: grid; place-items: center; color: var(--glow); font-size: 14px; }
.steps h3 { font-size: 16.5px; } .steps p { color: var(--secondary); margin-top: 2px; }
.table-wrap { max-width: 100%; }
.strings { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.strings caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 8px; }
.strings th, .strings td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); }
.strings th { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.strings td:nth-child(n+3), .strings th:nth-child(n+3) { text-align: right; }
.links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 8px; }
.links a { display: inline-flex; min-height: 44px; align-items: center; }
.opts { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: minmax(0, 1fr); max-width: calc(820px + 2 * var(--gutter)); }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h g" "p g"; align-items: center; gap: 2px 12px; padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px rgba(39,50,73,.6); color: var(--text); }
.opt h2 { grid-area: h; font-size: 18px; font-weight: 500; } .opt p { grid-area: p; color: var(--secondary); font-size: 14.5px; } .opt .glyph { grid-area: g; color: var(--accent-soft); }
.opt:hover { box-shadow: 0 0 0 1px rgba(127,216,232,.45); color: var(--bright); }
@media (min-width: 720px) { .opts { grid-template-columns: 1fr 1fr; } }
.mailline { margin-top: 16px; color: var(--secondary); max-width: calc(820px + 2 * var(--gutter)); }
.legal__date { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.legal__body { max-width: calc(760px + 2 * var(--gutter)); color: var(--secondary); }
.legal__body > p { margin-top: 12px; }
.legal__short { color: var(--text); padding: 16px; border-radius: 16px; background: var(--surface); }
.legal__toc ol { display: grid; gap: 2px; margin: 18px 0 8px; padding-left: 0; font-size: 14px; }
.legal__toc a { display: inline-flex; min-height: 32px; align-items: center; }
.legal section { margin-top: 30px; }
.legal section h2 { font-size: 21px; margin-bottom: 8px; }
.legal section p { margin-top: 8px; }
.legal section ul { margin-top: 8px; display: grid; gap: 6px; }
.legal section li { position: relative; padding-left: 16px; }
.legal section li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-soft); }
.next { margin-top: clamp(40px, 5vw, 64px); }
.next h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.next ul { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.next a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 14px; background: var(--surface); color: var(--text); }
.next a:hover { color: var(--glow); }
@media (min-width: 720px) { .next ul { grid-template-columns: 1fr 1fr; } }
.page + .cta, .page ~ .cta { margin-top: clamp(48px, 6vw, 88px); }
.nf { max-width: 640px; margin: 0 auto; padding: 48px var(--gutter); }
.nf__list { display: grid; gap: 18px; margin-top: 32px; }
.nf__list p { color: var(--secondary); }
.nf__list a { display: inline-flex; min-height: 44px; align-items: center; }

/* Footer and dock */
.foot { border-top: 1px solid var(--line); padding: 40px 0 32px; margin-top: var(--gap); background: var(--bg-low); font-size: 14px; }
.foot__cols { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px 16px; }
.foot__brand, .foot__langs { grid-column: 1 / -1; }
.foot__brand p { color: var(--muted); margin-top: 8px; }
.foot h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 6px; }
.foot li a { display: inline-flex; min-height: 40px; align-items: center; color: var(--secondary); }
.foot li a:hover, .foot li a[aria-current] { color: var(--glow); }
.foot__langs ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot__base { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(39,50,73,.5); display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.has-dock .foot { padding-bottom: 104px; }
@media (min-width: 900px) { .foot__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot__brand, .foot__langs { grid-column: auto; } .foot__langs ul { display: block; } }
.last + .foot, .cta + .foot { margin-top: 0; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.dock[hidden] { display: none; }
.dock__in { pointer-events: auto; max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px 6px 8px; border-radius: 18px; background: rgba(27,34,50,.95); box-shadow: 0 0 0 1px rgba(91,107,124,.35), 0 18px 40px -12px rgba(0,0,0,.8); animation: dock-in var(--t3) var(--ease); }
.dock__what { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.3; }
.dock__what span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__meta { color: var(--muted); font-size: 12.5px; }
.dock .lantern__word, .compare--dock .compare__cap { display: none; }
.compare--dock .compare__side { font-size: 17px; min-width: 46px; }
@keyframes dock-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 150ms !important; transition-duration: 150ms !important; }
  .lantern.is-sounding .lantern__mist { opacity: .35; }
  .lantern.is-sounding .lantern__ring, .era.is-sounding .g-mark { filter: drop-shadow(0 0 6px rgba(127,216,232,.7)); }
}
