/* Tinnitune / ShahWave shared site styles.
   Tokens mirror the app's own theme.ts exactly, so the website and the
   product feel like one brand, not a separate marketing skin. */

:root {
  --bg: #fbfcfe;
  --surface: #f1f5f9;
  --surface-raised: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.66);
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #0ea5e9;
  --accent: #14b8a6;
  --accent-rgb: 20, 184, 166;
  --primary-rgb: 14, 165, 233;
  --shadow-color: 220 45% 20%;
  --container-wide: 1180px;
  --container: 740px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e14;
    --surface: #141a24;
    --surface-raised: #171e2a;
    --surface-glass: rgba(20, 26, 36, 0.6);
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border: #232b38;
    --border-strong: #2e394a;
    --primary: #38bdf8;
    --accent: #2dd4bf;
    --accent-rgb: 45, 212, 191;
    --primary-rgb: 56, 189, 248;
    --shadow-color: 220 60% 3%;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0e14;
  --surface: #141a24;
  --surface-raised: #171e2a;
  --surface-glass: rgba(20, 26, 36, 0.6);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border: #232b38;
  --border-strong: #2e394a;
  --primary: #38bdf8;
  --accent: #2dd4bf;
  --accent-rgb: 45, 212, 191;
  --primary-rgb: 56, 189, 248;
  --shadow-color: 220 60% 3%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark, .btn, .fact .value, .card-icon + h3 {
  font-family: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2 { text-wrap: balance; }

a { color: var(--primary); }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  translate: 0 var(--parallax-y, 0px);
}
.ambient span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.55), transparent 70%);
  animation: drift1 26s ease-in-out infinite;
}
.ambient span:nth-child(2) {
  width: 38vw;
  height: 38vw;
  top: 8vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.5), transparent 70%);
  animation: drift2 32s ease-in-out infinite;
}
.ambient span:nth-child(3) {
  width: 30vw;
  height: 30vw;
  bottom: -12vw;
  left: 20vw;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.35), transparent 70%);
  animation: drift3 38s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 5vw) scale(1.08); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, 4vw) scale(1.05); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3vw, -3vw) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient span { animation: none; }
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, padding 0.25s ease;
}
header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -18px hsl(var(--shadow-color) / 0.5);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 20px 24px;
}
header.is-scrolled .header-inner { padding: 14px 24px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--text);
  z-index: 2;
}
.wordmark .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(var(--accent-rgb), 0.6);
}
.wordmark .mark img { display: block; width: 100%; height: 100%; object-fit: cover; }

nav {
  display: flex;
  align-items: center;
}
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-left: 26px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
nav a:hover { color: var(--text); }
nav a:hover::after,
nav a[aria-current="page"]::after { transform: scaleX(1); }
nav a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { position: relative; }

/* Default (article/legal) page container */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* Marketing pages (home, clinicians): main goes full-bleed, sections opt into their own width */
body.page-marketing main { max-width: none; padding: 0; }
.section-block {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.section-block.narrow { max-width: var(--container); }
.section-block + .section-block { margin-top: 88px; }
.section-block:last-child { padding-bottom: 96px; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered children inside reveal groups */
.grid[data-reveal] .card,
.tracks[data-reveal] .track,
.articles[data-reveal] .article-card,
.fact-grid[data-reveal] .fact,
.assets[data-reveal] .asset-card {
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal] details { transition-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero (marketing pages) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 64px 24px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }

[data-hero-in] {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.85s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-hero-in] { opacity: 1; transform: none; animation: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
}
h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 22px;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 0 36px;
}
h2.section {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
main > h2.section { margin-top: 64px; }
.section-lede {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0 0 20px;
  max-width: 56ch;
}
.section-head { margin-bottom: 28px; }

.hero .cta-row { margin-bottom: 22px; }

.scroll-cue {
  position: absolute;
  left: 24px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  text-decoration: none;
  z-index: 1;
}
.scroll-cue svg { animation: cueBounce 1.8s ease-in-out infinite; }
@keyframes cueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }
@media (max-width: 1024px) { .scroll-cue { display: none; } }

/* ---------- Hero visual (generative soundscape panel) ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-glass), transparent 60%), var(--surface);
  backdrop-filter: blur(6px);
  box-shadow: 0 40px 80px -32px hsl(var(--shadow-color) / 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero-visual-inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
.hero-visual-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.4), transparent 72%);
  filter: blur(36px);
}
.hero-visual svg.hero-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
}
.hero-visual .layer-a { stroke: var(--accent); stroke-width: 5; opacity: 0.22; animation: wavePulse 7s ease-in-out infinite; }
.hero-visual .layer-b { stroke: var(--primary); stroke-width: 3.5; opacity: 0.4; animation: wavePulse 5.5s ease-in-out infinite -1.4s; }
.hero-visual .layer-c { stroke: url(#waveGradient); stroke-width: 2.5; opacity: 0.92; animation: wavePulse 4.2s ease-in-out infinite -0.6s; }
.hero-visual svg path { fill: none; stroke-linecap: round; }
@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.85) translateY(0); }
  50% { transform: scaleY(1.15) translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual svg path { animation: none; }
}

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px -16px hsl(var(--shadow-color) / 0.5);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  animation: chipFloat 5s ease-in-out infinite;
}
.hero-chip svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ---------- Phone mockup (real app screenshots, cycling) ---------- */
.hero-visual.phone-frame {
  aspect-ratio: 640 / 1385;
  max-width: 290px;
  border-radius: 46px;
  border: none;
  background: #0a0a0e;
  backdrop-filter: none;
  box-shadow: 0 60px 100px -30px hsl(var(--shadow-color) / 0.55), 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 3%;
  min-height: 10px;
  background: #0a0a0e;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  position: absolute;
  inset: 9px;
  border-radius: 38px;
  overflow: hidden;
  background: #05050a;
}
.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  animation: phoneCycle 12s ease-in-out infinite;
}
.phone-screen img:nth-child(1) { animation-delay: 0s; }
.phone-screen img:nth-child(2) { animation-delay: 4s; }
.phone-screen img:nth-child(3) { animation-delay: 8s; }
@keyframes phoneCycle {
  0% { opacity: 0; }
  4% { opacity: 1; }
  29% { opacity: 1; }
  33%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-screen img { animation: none; opacity: 0; }
  .phone-screen img:first-child { opacity: 1; }
}
.phone-screen.single img { animation: none; opacity: 1; }

/* ---------- Privacy panel ---------- */
.privacy-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.08), transparent 60%), var(--surface);
  text-align: center;
}
.privacy-panel h2 { margin: 10px 0 28px; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.privacy-compare {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 28px;
}
.privacy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
}
.privacy-row svg { flex-shrink: 0; width: 20px; height: 20px; }
.privacy-row.no { background: rgba(148, 163, 184, 0.08); color: var(--text-tertiary); text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, 0.4); }
.privacy-row.no svg { color: var(--text-tertiary); }
.privacy-row.yes { background: rgba(var(--accent-rgb), 0.1); color: var(--text); font-weight: 600; text-decoration: none; }
.privacy-row.yes svg { color: var(--accent); }
.privacy-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}
.privacy-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  justify-content: center;
}
.privacy-fact svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ---------- How it works (3 steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  counter-reset: step;
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), 0.6);
}
.step h3 { margin: 0 0 8px; font-size: 1.0625rem; font-family: "Lexend", sans-serif; }
.step p { margin: 0; color: var(--text-secondary); font-size: 0.9375rem; }
.step-arrow {
  position: absolute;
  top: 20px;
  right: -8%;
  color: var(--border-strong);
}

/* ---------- Spotlight (pitch-match feature deep dive) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.spotlight-visual { display: flex; justify-content: center; }
.spotlight-phone {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 640 / 1385;
  border-radius: 40px;
  background: #0a0a0e;
  box-shadow: 0 50px 90px -28px hsl(var(--shadow-color) / 0.5), 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
}
.spotlight-phone img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); max-width: none; margin: 0; object-fit: cover; object-position: top center; border-radius: 33px; }
.spotlight-flow { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.spotlight-flow-item { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; color: var(--text); font-weight: 500; }
.spotlight-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Compare table (Free vs Premium) ---------- */
.compare-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 480px; }
.compare-table th, .compare-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--surface); font-family: "Lexend", sans-serif; font-weight: 600; }
.compare-table th:nth-child(2), .compare-table th:nth-child(3),
.compare-table td:nth-child(2), .compare-table td:nth-child(3) { text-align: center; min-width: 110px; font-size: 0.875rem; }
.compare-table thead th:nth-child(3) { color: var(--accent); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(var(--accent-rgb), 0.04); }
.compare-table svg.yes { color: var(--accent); width: 18px; height: 18px; }
.compare-table svg.no { color: var(--text-tertiary); width: 14px; height: 14px; opacity: 0.5; }
.compare-note { margin: 18px 0 0; color: var(--text-secondary); font-size: 0.9375rem; text-align: center; }
.compare-note strong { color: var(--text); }

/* ---------- Founder note ---------- */
.founder-note {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px;
  background: var(--surface);
  max-width: 640px;
  margin: 0 auto;
}
.founder-note p:first-of-type { margin-top: 0; }
.founder-note p { color: var(--text-secondary); line-height: 1.7; }
.founder-sig { margin: 20px 0 0 !important; color: var(--text) !important; font-weight: 600; font-size: 0.9375rem; }

/* ---------- Language chips ---------- */
.lang-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.lang-chip.rtl { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.35); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { margin-bottom: 24px; }
.final-cta .stores { justify-content: center; margin-bottom: 16px; }
.final-cta .badge { margin: 0 auto; }
.hero-chip.chip-1 { top: 8%; left: -6%; animation-delay: -0.4s; }
.hero-chip.chip-2 { bottom: 24%; right: -8%; animation-delay: -2.1s; }
.hero-chip.chip-3 { bottom: -4%; left: 12%; animation-delay: -3.4s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) { .hero-chip { animation: none; } }
@media (max-width: 640px) {
  .hero-chip { font-size: 0.75rem; padding: 7px 12px 7px 9px; }
}

/* ---------- Store badge ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.store-badge:hover {
  box-shadow: 0 16px 32px -12px rgba(var(--accent-rgb), 0.5);
}
.store-badge svg { flex-shrink: 0; }
.store-badge .sub { display: block; font-size: 0.6875rem; font-weight: 400; opacity: 0.75; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 48px; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 11px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.28) 40%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn:hover::before { transform: translateX(120%); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 36px -12px rgba(var(--accent-rgb), 0.65); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost {
  color: var(--text-secondary);
  padding: 13px 4px;
  gap: 6px;
}
.btn-ghost::before { display: none; }
.btn-ghost svg { transition: transform 0.25s var(--ease); }
.btn-ghost:hover { color: var(--text); }
.btn-ghost:hover svg { transform: translateY(2px); }

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 20px 40px -20px hsl(var(--shadow-color) / 0.4);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), 0.6);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 1.0625rem; font-family: "Lexend", sans-serif; font-weight: 600; position: relative; }
.card p { margin: 0; color: var(--text-secondary); font-size: 0.9375rem; position: relative; }
.tier-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 1;
}
.tier-tag.free { color: var(--accent); background: rgba(var(--accent-rgb), 0.14); }
.tier-tag.premium { color: var(--primary); background: rgba(var(--primary-rgb), 0.16); }

.highlight {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--surface), var(--bg));
  margin-top: 16px;
  overflow: hidden;
}
.highlight::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}
.highlight h3 { margin: 0 0 8px; font-size: 1.125rem; font-family: "Lexend", sans-serif; }
.highlight p { margin: 0; color: var(--text-secondary); }

.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.track {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  background: var(--surface);
  transition: border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.track:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb), 0.5); box-shadow: 0 20px 40px -22px hsl(var(--shadow-color) / 0.4); }
.track .tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
}
.track h3 { margin: 0 0 8px; font-size: 1.0625rem; font-family: "Lexend", sans-serif; }
.track p { margin: 0; color: var(--text-secondary); font-size: 0.9375rem; }

.contact-card {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--surface), var(--bg));
  border-radius: 18px;
  padding: 28px 32px;
  margin-top: 16px;
  overflow: hidden;
}
.contact-card h2 { font-size: 1.0625rem; margin: 0 0 4px; font-family: "Lexend", sans-serif; }
.contact-card p { margin: 0 0 16px; color: var(--text-secondary); font-size: 0.9375rem; }
.contact-card a.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.contact-card a.button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(var(--accent-rgb), 0.6); }

/* Fact grid (press kit) */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.fact { border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; background: var(--surface); transition: transform 0.3s var(--ease), border-color 0.3s ease; }
.fact:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.fact .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 4px; }
.fact .value { font-size: 0.9375rem; font-weight: 600; }

.boilerplate {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 28px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.boilerplate p { margin: 0; }

.quote {
  position: relative;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 0;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.65;
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--text-secondary);
}

.assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.asset-card { border: 1px solid var(--border); border-radius: 16px; padding: 16px; text-align: center; background: var(--surface); transition: transform 0.3s var(--ease); }
.asset-card:hover { transform: translateY(-3px); }
.asset-swatch { width: 100%; height: 64px; border-radius: 10px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.asset-card .name { font-size: 0.8125rem; font-weight: 600; }
.asset-card .hex { font-size: 0.75rem; color: var(--text-secondary); font-family: ui-monospace, "SF Mono", Menlo, monospace; }

.screenshot-gallery { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.screenshot-gallery .asset-card { padding: 12px; }
.screenshot-gallery .asset-card img { width: 100%; border-radius: 12px; display: block; margin-bottom: 10px; }
.screenshot-gallery .asset-card a.dl { font-size: 0.75rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.screenshot-gallery .asset-card a.dl:hover { text-decoration: underline; }

/* ---------- Trust strip (built responsibly) ---------- */
.trust-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto; }
.trust-fact { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; color: var(--text-secondary); text-align: left; }
.trust-fact svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.trust-fact strong { color: var(--text); }

/* Article list (resources index) */
.articles { display: grid; gap: 16px; }
.article-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s var(--ease);
}
.article-card:hover { transform: translateY(-4px) translateX(2px); border-color: var(--accent); box-shadow: 0 20px 40px -22px hsl(var(--shadow-color) / 0.4); }
.article-card .tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.article-card h2 { font-size: 1.1875rem; margin: 0 0 6px; font-family: "Lexend", sans-serif; }
.article-card p { margin: 0; color: var(--text-secondary); font-size: 0.9375rem; }

/* Article body (individual resource pages) */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 28px;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}
.back:hover { color: var(--accent); transform: translateX(-3px); }
article h2 { font-size: 1.3125rem; margin: 48px 0 12px; font-family: "Lexend", sans-serif; }
article p { margin: 0 0 16px; }
article ul { margin: 0 0 16px; padding-left: 22px; }
article li { margin-bottom: 8px; }
.callout {
  border-left: 3px solid var(--accent);
  padding: 8px 22px;
  margin: 32px 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), transparent);
  border-radius: 0 14px 14px 0;
}
.note {
  margin-top: 48px;
  padding: 16px 20px;
  border-left: 3px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Legal page (privacy) */
.updated { color: var(--text-secondary); font-size: 0.875rem; margin: 0 0 40px; }
section.legal { margin-bottom: 32px; }
section.legal h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: "Lexend", sans-serif;
  margin: 0 0 8px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
section.legal:first-of-type h2 { border-top: none; padding-top: 0; }
section.legal p { margin: 0; color: var(--text-secondary); }

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s ease;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875em;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
details[open] summary::before { content: "\2212"; transform: rotate(180deg); }
details p { margin: 12px 0 0 2.15em; color: var(--text-secondary); }

/* ---------- Footer ---------- */
footer {
  position: relative;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 32ch;
  margin: 14px 0 0;
}
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  width: fit-content;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 20px 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}
.footer-bottom a { color: var(--text-tertiary); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom p { margin: 0; max-width: 62ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 24px 56px; gap: 40px; }
  .hero-visual { max-width: 340px; order: -1; }
  .hero-visual.phone-frame { max-width: 240px; }
  .section-block + .section-block { margin-top: 64px; }
  .spotlight { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .spotlight-flow { align-items: center; }
  .spotlight-flow-item { text-align: left; }
}

@media (max-width: 760px) {
  .header-inner { padding: 16px 20px; }
  nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    margin-top: 8px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 24px 48px -20px hsl(var(--shadow-color) / 0.5);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  nav a { margin: 0; padding: 12px 14px; border-radius: 10px; }
  nav a:hover { background: var(--surface); }
  nav a::after { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  main { padding: 44px 20px 72px; }
  .hero-visual { display: none; }
  .hero-inner { padding: 40px 20px 48px; }
  .section-block { padding: 0 20px; }
  h1 { font-size: clamp(2rem, 1.7rem + 3vw, 2.5rem); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px 32px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .footer-bottom { padding: 20px 20px 32px; }
  .steps { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .step-arrow { display: none; }
  .privacy-panel { padding: 28px 22px; }
  .privacy-row { font-size: 0.875rem; padding: 12px 16px; }
  .founder-note { padding: 28px 24px; }
}

@media (max-width: 420px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
}
