@font-face {
  font-family: 'Street Corner Thin';
  src: url('assets/street-corner-thin.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

:root {
  --yellow: #F2CB00;
  --yellow-hover: #D9B400;
  --page-bg: #2a2a2a;
  --strip-bg: #151515;
  --header-glass: rgba(21, 21, 21, 0.72);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #F2CB00;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-hover: rgba(242, 203, 0, 0.55);
  --glow-yellow: rgba(242, 203, 0, 0.32);
  --glow-blue: rgba(45, 70, 120, 0.4);
  --glow-yellow-dim: rgba(242, 203, 0, 0.16);
  --success: #15803d;
  --charcoal: #111827;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Street Corner Thin', system-ui, sans-serif;
  --radius-card: 14px;
  --shadow-glass: 0 10px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  --focus-ring: 0 0 0 4px rgba(242, 203, 0, 0.3);
  --pad: 24px;
  --container: 1120px;
}
@media (min-width: 640px) { :root { --pad: 40px; } }
@media (min-width: 1024px) { :root { --pad: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--page-bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(242, 203, 0, 0.3); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; box-shadow: var(--focus-ring); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; margin: 0; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: var(--container); margin: 0 auto; }
.band { position: relative; z-index: 10; padding: 64px var(--pad); }
@media (min-width: 640px) { .band { padding-block: 80px; } }

.section-light {
  background: #f9fafb;
  color-scheme: light;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #1f2937;
  --glass-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-border-hover: rgba(242, 203, 0, 0.7);
  color: var(--text-main);
}
.section-white { background: #fff; }

.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; border-radius: 999px; filter: blur(60px); opacity: 0.5; }
.ambient .g1 { width: 520px; height: 520px; top: -140px; right: -100px; background: var(--glow-yellow); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: stretch;
  min-height: 4rem;
  background: var(--header-glass);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 8px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.q-tile {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--yellow); color: #2A2A2A;
  display: inline-flex; align-items: center; justify-content: center;
  font: 900 18px/1 var(--font-sans); letter-spacing: -0.04em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.brand-name small { font-size: 11px; color: var(--text-muted); }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-link {
  display: none;
  padding: 0 12px; height: 36px; align-items: center;
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.8); text-decoration: none;
  border-radius: 999px; transition: color 0.15s ease-out, background-color 0.15s ease-out;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
@media (min-width: 900px) { .nav-link { display: inline-flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-yellow { background: var(--yellow); color: var(--charcoal); }
.btn-yellow:hover { background: var(--yellow-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--card-border-hover); }
.section-light .btn-ghost { border-color: #d1d5db; color: var(--charcoal); background: #fff; }
.section-light .btn-ghost:hover { border-color: var(--card-border-hover); background: #fffdf0; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
@media (max-width: 639px) { .btn-sm { min-height: 44px; } }
.arrow { font-weight: 400; }

/* Hero */
.hero { padding-top: 56px; }
@media (min-width: 640px) { .hero { padding-top: 88px; padding-bottom: 96px; } }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.01em;
  color: #fff;
}
.hero-lede { margin-top: 20px; max-width: 34em; font-size: 18px; color: #d1d5db; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(16px) saturate(1.5);
}
.section-light .glass { background: #fff; border-color: #e5e7eb; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); backdrop-filter: none; }

/* Product shot */
.hero-copy { max-width: 760px; }
.shot { margin: 56px 0 0; }
.shot img {
  width: 100%; height: auto;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.04);
}
.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--text-muted); }

/* Prose sections */
.prose { max-width: 720px; margin-left: 0; }
@media (min-width: 1232px) { .prose { margin-left: calc((100% - var(--container)) / 2); } }
.prose h2, .faq-title { font-size: clamp(1.875rem, 3.6vw, 2.5rem); color: var(--text-main); }
.prose h2::after, .faq-title::after {
  content: ''; display: block; width: 40px; height: 3px; margin-top: 16px;
  background: var(--yellow); border-radius: 2px;
}
.prose p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: #374151; }
.prose .btn { margin-top: 32px; }
.faq-title { margin-bottom: 32px; }

/* Resonate band */
.cred { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .cred { grid-template-columns: 1fr 1.3fr; gap: 64px; } }
.cred-logo { width: 220px; max-width: 60%; height: auto; }
.cred h2 { font-size: clamp(1.875rem, 3.6vw, 2.5rem); color: #fff; }
.cred p { margin-top: 16px; color: #d1d5db; font-size: 17px; max-width: 60ch; }
.text-link { display: inline-flex; gap: 6px; color: var(--yellow); font-weight: 600; text-decoration: none; }
.cred .text-link { margin-top: 24px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid #e5e7eb; }
.faq details:first-of-type { border-top: 1px solid #e5e7eb; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 300; color: #6b7280; transition: transform 0.18s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: #4b5563; max-width: 68ch; }
.faq details p + p { margin-top: -8px; }
.faq details a { color: var(--charcoal); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose .guide-list { margin-top: 28px; }

/* Footer */
.site-footer { position: relative; z-index: 10; background: var(--strip-bg); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 32px var(--pad); font-size: 14px; color: var(--text-muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Legal pages */
.legal-band { min-height: calc(100dvh - 4rem); }
.legal { max-width: 760px; color: #374151; font-size: 16px; line-height: 1.65; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3rem); color: var(--charcoal); }
.legal h2 { margin-top: 40px; font-family: var(--font-sans); font-weight: 700; font-size: 19px; color: var(--charcoal); }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--charcoal); text-underline-offset: 3px; }
.legal-date { color: #6b7280; font-size: 14px; }
.draft-note { display: inline-block; margin: 0 0 24px; padding: 6px 12px; border-radius: 999px; background: rgba(242, 203, 0, 0.2); color: #3a3a3a; font-size: 13px; font-weight: 600; }
mark.tbc { background: rgba(242, 203, 0, 0.35); color: inherit; padding: 0 3px; border-radius: 3px; }

/* Guides */
.nav-link[aria-current="page"] { color: #fff; }
.article-band { padding-top: 40px; }
@media (min-width: 640px) { .article-band { padding-top: 56px; } }
.article { max-width: 720px; margin: 0 auto; color: #374151; font-size: 18px; line-height: 1.7; }
.crumbs { font-size: 14px; color: #6b7280; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article h1 { margin-top: 12px; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.08; color: var(--charcoal); }
.article-meta { margin-top: 16px; font-size: 14px; color: #6b7280; }
.article .lede { margin-top: 24px; font-size: 20px; line-height: 1.6; color: #1f2937; }
.article h2 { margin-top: 56px; font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.15; color: var(--charcoal); }
.article h3 { margin-top: 36px; font-family: var(--font-sans); font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--charcoal); }
.article p, .article ul, .article ol { margin-top: 16px; }
.article ul, .article ol { padding-left: 22px; }
.article li + li { margin-top: 8px; }
.article a:not(.btn) { color: var(--charcoal); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article a:not(.btn):hover { text-decoration-color: currentColor; }
.article strong { color: #1f2937; }
.article figure { margin: 36px 0; }
.article figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid #e5e7eb; }
.article figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #6b7280; }
.shot-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; padding: 24px; border: 2px dashed #d1d5db; border-radius: 12px; background: #f3f4f6; color: #6b7280; font-size: 15px; text-align: center; }
.table-wrap { margin-top: 20px; overflow-x: auto; }
.article table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.article caption { caption-side: bottom; padding-top: 10px; text-align: left; font-size: 14px; color: #6b7280; }
.article th, .article td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e5e7eb; }
.article thead th { color: var(--charcoal); border-bottom: 2px solid #d1d5db; }
.article tbody th { font-weight: 600; color: #1f2937; }
.note { margin-top: 24px; padding: 16px 20px; border-left: 4px solid var(--yellow); background: #fffbea; border-radius: 0 8px 8px 0; font-size: 16px; line-height: 1.6; }
.cta { margin: 48px 0; padding: 28px; border-radius: var(--radius-card); background: var(--strip-bg); color: #d1d5db; }
@media (min-width: 640px) { .cta { padding: 32px 36px; } }
.cta .cta-title { margin: 0; font-family: var(--font-heading); font-size: 1.875rem; line-height: 1.15; color: #fff; }
.cta p:not(.cta-title) { margin-top: 10px; font-size: 17px; line-height: 1.6; color: #d1d5db; }
.cta .btn { margin-top: 20px; }
.sources { margin-top: 56px; padding-top: 28px; border-top: 1px solid #e5e7eb; font-size: 15px; line-height: 1.6; }
.article .sources h2 { margin-top: 0; font-family: var(--font-sans); font-weight: 700; font-size: 17px; }
.sources ul { padding-left: 18px; }
.sources li + li { margin-top: 6px; }
.related { margin-top: 40px; }
.article .related h2 { margin-top: 0; font-family: var(--font-sans); font-weight: 700; font-size: 17px; }
.related ul { list-style: none; padding: 0; }
.related li { margin: 0; border-bottom: 1px solid #e5e7eb; }
.related li + li { margin-top: 0; }
.related a:not(.btn) { display: block; padding: 14px 0; font-weight: 600; text-decoration: none; }
.related a:not(.btn):hover { text-decoration: underline; }
.guide-index { max-width: 760px; }
.guide-index h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); color: var(--charcoal); }
.guide-index .lede { margin-top: 20px; font-size: 19px; line-height: 1.6; color: #374151; }
.guide-list { margin-top: 40px; list-style: none; padding: 0; border-top: 1px solid #e5e7eb; }
.guide-list li { border-bottom: 1px solid #e5e7eb; }
.guide-list a { display: block; padding: 24px 0; text-decoration: none; color: var(--charcoal); }
.guide-list b { display: block; font-size: 20px; line-height: 1.3; }
.guide-list a:hover b { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.guide-list span { display: block; margin-top: 6px; color: #4b5563; font-size: 16px; line-height: 1.55; }

/* Simple page (404) */
.simple { min-height: calc(100dvh - 4rem - 98px); display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: rgba(30, 34, 42, 0.97); backdrop-filter: none; }
  .site-header { background: rgba(21, 21, 21, 0.98); backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(30, 34, 42, 0.96); }
  .site-header { background: rgba(21, 21, 21, 0.98); }
}
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid CanvasText; box-shadow: none; }
}
