/* whoismyspotifytwin.com
   Two listeners, one taste. Coral is you, periwinkle is your twin; where the two ripples overlap is the match.
   A question-led guide hub: Apple structure (one typeface, grouped lists, one coral button per screen) over two
   soft colour glows and fine grain. Every "find them" button goes to AudioTwins. */
:root {
  --bg: #000;
  --fill-1: rgba(28, 28, 30, 0.78);
  --fill-2: #2c2c2e;
  --fill-3: #3a3a3c;
  --sep: rgba(255, 255, 255, 0.1);
  --label: #f5f5f7;
  --label-2: rgba(235, 235, 245, 0.64);
  --label-3: rgba(235, 235, 245, 0.5);
  --tint: #9ba5ff;
  --you: #ff7a5c;
  --twin: #8b96ff;
  --red: #ff8a80;
  --red-fill: rgba(255, 69, 58, 0.16);
  --both: linear-gradient(90deg, var(--you), var(--twin));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100svh; background: transparent; color: var(--label);
  font: 400 1.0625rem/1.47 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--twin); color: #000; }
/* The backdrop: coral (you) and periwinkle (your twin) glowing in from the edges, under a fine film grain. */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(46vmax 40vmax at -8% -6%, rgba(255, 122, 92, 0.46), transparent 68%),
    radial-gradient(42vmax 44vmax at 110% 40%, rgba(139, 150, 255, 0.42), transparent 68%),
    radial-gradient(40vmax 32vmax at 18% 114%, rgba(255, 122, 92, 0.24), transparent 70%);
}
body::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 160px; opacity: 0.11; mix-blend-mode: overlay; }
html { caret-color: var(--you); scrollbar-color: var(--fill-3) transparent; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 40; padding: 10px 16px; border-radius: 999px; background: var(--label); color: #000; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------- Navigation: the one glass surface ---------- */
.navbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--sep);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; height: 52px; margin: 0 auto; padding: 0 12px 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--label); font: 600 0.94rem/1 var(--font); letter-spacing: -0.01em; padding: 10px 0; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--tint); font-size: 0.94rem; }
.nav-links .nav-cta { min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--you); color: #000; font-weight: 600; }
.nav-links .nav-cta:hover { text-decoration: none; background: #ff8f75; }

/* ---------- Layout ---------- */
.hero, .section, .case-page { max-width: 640px; margin: 0 auto; padding: 0 16px; }

.hero-mark { width: min(62vw, 340px); height: auto; margin: 0 auto 8px; overflow: visible; }
h1 { margin: 0; font: 800 clamp(2.75rem, 12vw, 4.5rem)/0.98 var(--font-display); letter-spacing: -0.045em; text-wrap: balance; }
.h1-accent { color: var(--you); }
.lede { max-width: 28em; margin: 16px auto 0; font-size: 1.1875rem; line-height: 1.42; color: var(--label-2); letter-spacing: -0.015em; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 600 1.0625rem/1.1 var(--font); letter-spacing: -0.015em;
  transition: background-color .2s, transform .12s var(--ease); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--you); color: #000; box-shadow: 0 10px 28px -14px rgba(255, 122, 92, 0.75); }
.btn-secondary { background: var(--fill-1); color: var(--label); }
.btn-destructive { background: var(--fill-2); color: var(--red); }
@media (hover: hover) {
  .btn-primary:hover { background: #ff8f75; }
  .btn-secondary:hover, .btn-destructive:hover { background: var(--fill-3); }
}
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn-row { display: flex; gap: 10px; margin-top: 10px; }
.text-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--tint); font-size: 1.0625rem; cursor: pointer; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Headings shared with the case page */
.step-head { text-align: center; padding-top: 32px; }
.step-h { margin: 0; font: 800 2.25rem/1.05 var(--font-display); letter-spacing: -0.035em; outline: none; text-wrap: balance; }
.step-sub { max-width: 24em; margin: 10px auto 0; color: var(--label-2); text-wrap: pretty; }

/* Grouped lists: label on the left, the value you can edit on the right */
.group { margin-top: 24px; border-radius: 16px; background: var(--fill-1); overflow: hidden; -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
.group-head { margin: 32px 16px 8px; font-size: 0.8125rem; font-weight: 400; line-height: 1.4; letter-spacing: 0.02em; text-transform: uppercase; color: var(--label-2); }
.group-head + .group { margin-top: 0; }
.group-foot { margin: 8px 16px 0; font-size: 0.8125rem; line-height: 1.4; color: var(--label-2); }
.group-gap { margin-top: 32px; }
.row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; }
.row + .row::before, div + .row::before, [role="radiogroup"] > .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.row > label, .row > span:first-child { flex: none; color: var(--label); }
.row input, .row select {
  flex: 1; min-width: 0; height: 52px; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--label); font: 400 max(16px, 1.0625rem)/1.2 var(--font); letter-spacing: -0.01em; text-align: right;
  appearance: none; -webkit-appearance: none; border-radius: 0;
}
.row input::placeholder { color: var(--label-3); }
.row input[type="number"] { -moz-appearance: textfield; }
.row input::-webkit-inner-spin-button, .row input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.row input::-webkit-calendar-picker-indicator { display: none !important; }

/* Hero ripples spread out once, then rest */
.hero-mark .hm-you circle, .hero-mark .hm-twin circle { transform-box: fill-box; transform-origin: center; animation: ripple 1.1s var(--ease) both; animation-delay: var(--d); }
.hero-mark .hm-glow { animation: glow 1.6s .5s var(--ease) both; }
@keyframes ripple { from { opacity: 0; transform: scale(.6); } }
@keyframes glow { from { opacity: 0; } }

/* ---------- Sections, FAQ, footer ---------- */
.section { margin-top: 88px; }
.section-h { margin: 0; font: 700 1.75rem/1.15 var(--font-display); letter-spacing: -0.025em; }
.section-sub { margin: 8px 0 0; color: var(--label-2); }
.faq { margin-top: 20px; }
.faq details + details { box-shadow: inset 0 1px var(--sep); }
.faq summary { list-style: none; cursor: pointer; justify-content: space-between; padding: 14px 16px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: 12px; border-right: 2px solid var(--label-3); border-bottom: 2px solid var(--label-3); transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > p { margin: 0; padding: 0 16px 16px; color: var(--label-2); font-size: 0.94rem; line-height: 1.5; }

.footer { max-width: 600px; margin: 88px auto 0; padding: 20px 16px calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sep); font-size: 0.8125rem; line-height: 1.5; color: var(--label-2); }
.footer p { margin: 0 0 6px; }
.footer a { display: inline-block; padding: 6px 0; }
.disclaimer { color: var(--label); }

/* ---------- Case page /r/<id> ---------- */
.case-page .step-head { padding-top: 28px; }
.case-mark { width: 120px; height: 64px; margin: 0 auto 18px; overflow: visible; }
.eyebrow { margin: 0 0 8px; font-size: 0.94rem; font-weight: 600; color: var(--label-2); }
.case-h { font-size: clamp(2.4rem, 11vw, 3.5rem); }
.clues { margin: 0; }
.clues .row { justify-content: space-between; align-items: flex-start; min-height: 0; padding-top: 15px; padding-bottom: 15px; }
.clues dt { flex: none; color: var(--label); }
.clues dd { margin: 0; color: var(--label-2); text-align: right; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.dot-you { background: var(--you); }
.dot-twin { background: var(--twin); }
.actions { display: grid; gap: 10px; margin-top: 36px; }
.case-id { margin-top: 20px; text-align: center; color: var(--label-3); }
.group-foot strong { color: var(--label); font-weight: 600; }

/* Ticker: the shared counter pill above the hero headline (same numbers as audiotwins.app). */
.ticker { display: flex; align-items: center; gap: 8px; width: max-content; margin: -6px auto 18px; padding: 7px 14px; border-radius: 999px; background: var(--fill-1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: var(--label); font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--you); box-shadow: 0 0 0 0 rgba(255, 122, 92, 0.55); animation: ticker-pulse 2.2s ease-out infinite; }
.ticker-plus { margin-left: -6px; color: var(--you); }
#ticker-n { display: inline-block; }
#ticker-n.is-ticking { animation: ticker-bump 0.28s var(--ease); }
@keyframes ticker-pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 122, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 92, 0); } }
@keyframes ticker-bump { 40% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .ticker-dot, #ticker-n.is-ticking { animation: none; } }

/* ---------- Guides: homepage list, footer links and the article pages ---------- */
a.row { color: var(--label); justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; line-height: 1.3; }
a.row:hover { text-decoration: none; background: rgba(255, 255, 255, 0.035); }
a.row:active { background: var(--fill-2); }
a.row .chev { flex: none; width: 8px; height: 14px; color: var(--label-3); }
.guides { margin-top: 8px; }
.footer-guides { display: flex; flex-wrap: wrap; gap: 0 14px; margin-bottom: 14px; }
.footer-guides a { color: var(--label-2); }
.article { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.article-head { padding-top: 40px; }
.article h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); line-height: 1.02; text-align: left; }
.article-lead { margin: 16px 0 0; font-size: 1.1875rem; line-height: 1.45; color: var(--label-2); letter-spacing: -0.015em; }
.article .article-lead { margin: 16px 0 0; }
.article-meta { margin: 12px 0 0; font-size: 0.8125rem; color: var(--label-2); }
.article section { margin-top: 36px; }
.article h2 { margin: 0 0 10px; font: 700 1.375rem/1.2 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.article p { margin: 0 0 14px; line-height: 1.55; max-width: 65ch; }
.article-steps { margin: 0; padding-left: 1.3em; line-height: 1.55; }
.article-steps li { margin-bottom: 10px; padding-left: 4px; }
.article-steps li::marker { color: var(--you); font-weight: 700; }
.article-cta { margin-top: 40px; }
.article-cta .group-foot { text-align: center; }
.article .faq { margin-top: 0; }
.article-more { margin-top: 48px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 12px; }
.hero .ticker { margin: -6px auto 18px; }
.hero-actions { display: grid; gap: 10px; max-width: 420px; margin: 28px auto 0; }
.hero-foot { margin: 14px 0 0; font-size: 0.94rem; color: var(--label-2); }

/* ---------- Short answers ---------- */
.qa { display: grid; gap: 12px; margin-top: 20px; }
.qa-item { padding: 18px 18px 16px; border-radius: 18px; background: var(--fill-1); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
.qa-item h3 { margin: 0 0 6px; font: 700 1.1875rem/1.25 var(--font-display); letter-spacing: -0.02em; }
.qa-item p { margin: 0 0 8px; color: var(--label-2); line-height: 1.5; }
.qa-item a { font-size: 0.94rem; font-weight: 600; }
.qa-item a::after { content: " \203A"; }
@media (min-width: 640px) { .qa { grid-template-columns: 1fr 1fr; } }

/* ---------- Checker ---------- */
.checker .group-head { display: flex; align-items: center; gap: 2px; }
.checker .group-head .dot { margin-right: 6px; }
.row select { flex: 1; text-align: right; text-align-last: right; cursor: pointer; color: var(--label); }
.row select:invalid, .row select option[value=""] { color: var(--label-3); }
.row-pair { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.row-pair select { flex: 0 1 auto; width: auto; }
.row-pair input { flex: 0 0 4.2em; }
.checker-btn { margin-top: 28px; }
.verdict { margin-top: 20px; padding: 22px 18px 18px; border-radius: 20px; background: radial-gradient(80% 70% at 50% 0%, rgba(176, 140, 255, 0.14), transparent), var(--fill-1); outline: none; scroll-margin-top: 72px; }
.verdict-kicker { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label-2); }
.verdict-h { margin: 6px 0 0; font: 800 1.875rem/1.1 var(--font-display); letter-spacing: -0.03em; }
.verdict.is-yes .verdict-h { color: var(--twin); }
.verdict.is-no .verdict-h { color: var(--red); }
.verdict-sub { margin: 8px 0 0; color: var(--label-2); line-height: 1.5; }
.fit-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.fit { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; line-height: 1.4; color: var(--label-2); }
.fit strong { color: var(--label); font-weight: 600; }
.fit svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 999px; }
.fit-yes svg { background: rgba(139, 150, 255, 0.22); color: var(--tint); }
.fit-close svg { background: rgba(255, 122, 92, 0.2); color: var(--you); }
.fit-no svg { background: var(--red-fill); color: var(--red); }
.verdict-cta { margin-top: 20px; }

/* ---------- Clue guide ---------- */
.clue-list { margin: 20px 0 0; }
.clue-list .row { display: grid; grid-template-columns: 8.5em 1fr; align-items: start; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.clue-list dt { color: var(--label); font-weight: 600; }
.clue-list dd { margin: 0; color: var(--label-2); font-size: 0.94rem; line-height: 1.45; }
@media (max-width: 380px) { .clue-list .row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- AudioTwins band ---------- */
.cta-band { text-align: center; }
.cta-band > :not(.section-h):not(.section-sub) { max-width: 420px; margin-left: auto; margin-right: auto; }
.cta-band .section-sub { max-width: 30em; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin-top: 20px; }

/* ---------- Guide groups, places ---------- */
.guide-group + .guide-group { margin-top: 8px; }
.more-link { margin: 16px 16px 0; font-weight: 600; }
.more-link a::after { content: " \203A"; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--fill-1); color: var(--label); font-size: 0.94rem; }
.chips a:hover { text-decoration: none; background: var(--fill-3); }
#places .group-head { margin-top: 28px; }

@media (min-width: 640px) {
  .hero { padding-top: 40px; }
  .step-head { padding-top: 56px; }
  .lede { font-size: 1.3125rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
