/* Song Practice — shared site styles
   Mirrors the iOS app's "Peacock" dark system (KaraokeWhiz/Extensions/Theme.swift):
   deep navy field, translucent navy surfaces, a five-accent peacock palette
   (teal, sapphire, violet, magenta, gold) with the iridescent ring used sparingly,
   mono micro-labels. Token values are the app's hex values verbatim. */

:root {
  /* Field */
  --bg:           #070c1a;   /* bgBottom */
  --bg-top:       #0a1122;   /* bgTop */

  /* Surfaces */
  --surface:      #0f192e;   /* surfaceSolid */
  --surface-hi:   #182238;   /* surfaceRaised */
  --inset:        #0f172a;   /* tileInner */
  --hairline:     #1b2742;
  --hairline-hi:  #263455;

  /* Type */
  --text:         #e6edfa;
  --muted:        #8fa0c0;
  --dim:          #5d6d8f;
  --body:         #c9d3e6;

  /* Peacock accents */
  --teal:         #0ec8c0;
  --sapphire:     #2e7cf6;
  --violet:       #7a3bff;
  --violet-lt:    #b79bff;
  --magenta:      #c438a8;
  --gold:         #e8b24a;
  --gold-hi:      #f2c56a;
  --ink-on-gold:  #10130a;
  --ink-on-teal:  #06110f;

  --gold-08:      rgba(232,178,74,0.08);
  --gold-16:      rgba(232,178,74,0.16);
  --gold-30:      rgba(232,178,74,0.30);
  --teal-10:      rgba(14,200,192,0.10);
  --teal-30:      rgba(14,200,192,0.30);

  --iridescent: conic-gradient(from 210deg, var(--teal), var(--sapphire), var(--violet), var(--magenta), var(--gold), var(--teal));
  --iridescent-line: linear-gradient(90deg, var(--teal), var(--sapphire), var(--violet), var(--magenta), var(--gold));

  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --card-shadow:    0 10px 30px rgba(0,0,0,0.38);
  --card-shadow-hi: 0 18px 46px rgba(0,0,0,0.5);

  --radius:      22px;
  --radius-sm:   14px;
  --maxw:        1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1000px; z-index: -1;
  background:
    radial-gradient(760px 420px at 18% 0%, rgba(14,200,192,0.07), transparent 70%),
    radial-gradient(760px 460px at 86% 10%, rgba(122,59,255,0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-top), var(--bg));
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.gold { color: var(--gold); } .teal { color: var(--teal); } .magenta { color: var(--magenta); }
.sapphire { color: var(--sapphire); } .violet { color: var(--violet-lt); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 12, 26, 0.8);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.04rem;
  color: var(--text); letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .accent { color: var(--gold); }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--gold); color: var(--ink-on-gold) !important; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; font-size: 0.88rem;
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--gold-hi); transform: translateY(-1px); text-decoration: none; }
@media (max-width: 800px) { .nav-links li:not(.nav-cta-li) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 700;
  border-radius: 999px; padding: 15px 28px; font-size: 1rem;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--gold); color: var(--ink-on-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 28px rgba(232,178,74,0.22);
}
.btn-primary:hover { background: var(--gold-hi); }
.btn-ghost { background: var(--surface-hi); color: var(--text); box-shadow: var(--card-shadow); }
.btn-ghost:hover { background: #1f2b45; }
.btn svg { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 76px; }
.hero .container {
  position: relative; display: grid;
  grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-proof, .hero-pills { justify-content: center; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--teal-10); border-radius: 999px; padding: 7px 15px;
  font-size: 0.8rem; color: var(--teal); font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.2rem); line-height: 1.0; margin-bottom: 22px; }
.hero-sub { color: var(--muted); font-size: 1.14rem; max-width: 34rem; margin-bottom: 26px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.hero-pills span {
  font-weight: 800; font-size: 0.86rem; padding: 7px 15px; border-radius: 999px;
  font-family: var(--font-display); letter-spacing: -0.01em;
}
.p-teal { background: var(--teal); color: var(--ink-on-teal); }
.p-gold { background: var(--gold); color: var(--ink-on-gold); }
.p-magenta { background: var(--magenta); color: #fff; }
.p-violet { background: var(--violet); color: #fff; }
.p-sapphire { background: var(--sapphire); color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.hero-proof { display: flex; gap: 30px; flex-wrap: wrap; color: var(--muted); font-size: 0.84rem; }
.hero-proof strong {
  color: var(--text); font-family: var(--font-mono); font-weight: 700;
  font-size: 1.02rem; display: block; letter-spacing: -0.02em;
}
.hero-proof .stars { color: var(--gold); letter-spacing: 1px; }
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media::before {
  content: ""; position: absolute; inset: 6% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(122,59,255,0.22), rgba(14,200,192,0.08) 60%, transparent);
  filter: blur(20px); z-index: 0;
}
.frame {
  position: relative; z-index: 1; width: min(330px, 74vw);
  border-radius: 34px; overflow: hidden; padding: 2px;
  background: var(--iridescent);
  box-shadow: 0 34px 80px rgba(0,0,0,0.6);
}
.frame img { border-radius: 32px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: rgba(19,30,54,0.28); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head { max-width: 46rem; margin: 0 auto 52px; text-align: center; }
.kicker, .section-head p.kicker {
  color: var(--teal); font-family: var(--font-mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.06; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Feature rows (image + copy, alternating) ---------- */
.rows { display: grid; gap: 88px; }
.row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.row.flip { grid-template-columns: 1.15fr 0.85fr; }
.row.flip .row-media { order: 2; }
@media (max-width: 880px) {
  .row, .row.flip { grid-template-columns: 1fr; gap: 32px; }
  .row.flip .row-media { order: 0; }
}
.row-media { display: flex; justify-content: center; }
.row-media picture { width: min(310px, 78vw); }
.row-media img { border-radius: 30px; box-shadow: var(--card-shadow-hi); outline: 1px solid var(--hairline-hi); }
.row-copy h3 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); line-height: 1.05; margin: 10px 0 14px; }
.row-copy > p { color: var(--muted); font-size: 1.04rem; margin-bottom: 20px; }
.row-copy ul { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.row-copy li { position: relative; padding-left: 26px; color: var(--body); font-size: 0.96rem; }
.row-copy li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--dot, var(--gold));
}
.row-copy .more { font-weight: 600; font-size: 0.94rem; }
.tag-mono {
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--dot, var(--gold));
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.stat strong { display: block; font-family: var(--font-mono); font-size: 1.7rem; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.86rem; }

/* ---------- Mix bars (stems illustration) ---------- */
.stems { max-width: 560px; margin: 0 auto; display: grid; gap: 12px; }
.stem {
  display: grid; grid-template-columns: 90px 1fr 56px; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 12px 16px;
}
.stem b { font-family: var(--font-display); font-size: 0.95rem; }
.stem i { display: block; height: 12px; border-radius: 999px; background: var(--inset); position: relative; overflow: hidden; }
.stem i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--c); }
.stem em { font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; color: var(--c); text-align: right; }
.stem.muted { opacity: 0.45; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px 22px; }
.step .num {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c, var(--gold)); color: var(--ink-on-gold);
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px 22px; }
.feature .glyph {
  width: 40px; height: 40px; border-radius: 13px; margin-bottom: 15px;
  background: color-mix(in srgb, var(--c, var(--gold)) 16%, transparent); color: var(--c, var(--gold));
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 1.04rem; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Audience cards ---------- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }
.aud {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 24px 22px; color: var(--text); display: flex; flex-direction: column; gap: 8px;
  border-top: 3px solid var(--c);
  transition: transform .2s ease, box-shadow .2s ease;
}
.aud:hover { transform: translateY(-3px); text-decoration: none; box-shadow: var(--card-shadow-hi); }
.aud h3 { font-size: 1.1rem; }
.aud p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.aud .more { color: var(--c); font-weight: 600; font-size: 0.88rem; }

/* ---------- Screenshots ---------- */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px;
}
.shot { scroll-snap-align: start; }
.shot img { border-radius: 24px; outline: 1px solid var(--hairline-hi); box-shadow: var(--card-shadow); }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.88rem; text-align: center; }
.shot figcaption strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 0.98rem; }

/* ---------- Guides ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 9px; color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.guide-card:hover { transform: translateY(-3px); text-decoration: none; box-shadow: var(--card-shadow-hi); border-color: var(--hairline-hi); }
.guide-card .tag { color: var(--teal); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.guide-card h3 { font-size: 1.06rem; line-height: 1.3; }
.guide-card p { color: var(--muted); font-size: 0.89rem; flex: 1; }
.guide-card .more { color: var(--gold); font-weight: 600; font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 10px; }
.faq details[open] { border-color: var(--hairline-hi); }
.faq summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em;
  font-size: 1.02rem; list-style: none; position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.5rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.faq .answer a { font-weight: 600; }

/* ---------- Big CTA ---------- */
.cta-band { position: relative; text-align: center; padding: 96px 0; overflow: hidden; border-top: 1px solid var(--hairline); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 300px at 50% 60%, rgba(122,59,255,0.12), transparent 72%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band img.icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 18px 44px rgba(0,0,0,0.55); }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 1.05rem; max-width: 33rem; margin: 0 auto 32px; }
.cta-band .kicker { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 54px 0 40px; background: rgba(5,9,20,0.6); position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--iridescent-line); opacity: 0.5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 14px; font-weight: 700; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--text); text-decoration: none; }
.footer-about p { color: var(--muted); font-size: 0.89rem; margin-top: 12px; max-width: 22rem; }
.footer-bottom {
  border-top: 1px solid var(--hairline); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--dim); font-size: 0.82rem;
}
.footer-bottom a { color: var(--muted); }

/* ---------- Article pages (guides + audience pages) ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 52px 24px 40px; }
.breadcrumbs { font-family: var(--font-mono); font-size: 0.76rem; color: var(--dim); margin-bottom: 26px; letter-spacing: 0.02em; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.article h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); line-height: 1.06; margin-bottom: 18px; }
.article .lede { font-size: 1.12rem; color: var(--muted); margin-bottom: 14px; }
.article .meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--dim); margin-bottom: 30px; letter-spacing: 0.04em; }
.article h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.article h3 { font-size: 1.16rem; margin: 30px 0 10px; }
.article p { margin-bottom: 16px; color: var(--body); }
.article ul, .article ol { margin: 0 0 18px 22px; color: var(--body); }
.article li { margin-bottom: 10px; }
.article strong { color: var(--text); }
.article table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: 0.93rem; }
.table-wrap { overflow-x: auto; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); color: var(--body); vertical-align: top; }
.article th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.article picture.inline-shot { display: block; width: min(300px, 100%); margin: 30px auto; }
.article picture.inline-shot img { border-radius: 26px; outline: 1px solid var(--hairline-hi); box-shadow: var(--card-shadow-hi); }
.tldr {
  background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 8px 0 28px; font-size: 0.96rem;
}
.tldr > strong:first-child { color: var(--teal); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; display: block; margin-bottom: 6px; }
.tldr p:last-child, .tldr ul:last-child { margin-bottom: 0; }
.tip { background: var(--gold-08); border: 1px solid var(--gold-30); border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; font-size: 0.95rem; color: var(--body); }
.tip strong { color: var(--gold); }
.article-cta { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 32px; text-align: center; margin: 48px 0 12px; }
.article-cta img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px; }
.article-cta h2 { margin: 0 0 10px; font-size: 1.4rem; }
.article-cta p { color: var(--muted); margin-bottom: 22px; }
.related { margin-top: 44px; border-top: 1px solid var(--hairline); padding-top: 30px; }
.related h2 { margin-top: 0; }
.related ul { list-style: none; margin-left: 0; }
.related li { margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
