/* SoundRange site: dark, like the app. One accent (the dial's violet→blue gradient), system type. */
:root {
  --bg: #0b0b0f;
  --panel: #131317;
  --card: #1c1c21;
  --line: rgba(255, 255, 255, 0.08);
  --fg: #f3f2f7;
  --muted: #9a99a6;
  --a: #c25cff;
  --b: #5468ff;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(120, 80, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(194, 92, 255, 0.10), transparent 60%),
    var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}

a { color: #b9b4ff; text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--b); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 650; }
.brand img { display: block; width: auto; height: 28px; }
.nav { display: flex; gap: 20px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 48px 64px; }
.hero h1 { font: 700 clamp(40px, 6vw, 60px)/1.04 var(--display); letter-spacing: -0.02em; margin: 0 0 18px; text-wrap: balance; }
.hero h1 span { background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 26px; max-width: 34ch; }
.hero .shot { display: block; width: 100%; max-width: 420px; height: auto; margin-left: auto; border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill {
  position: relative; overflow: hidden; display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; color: #fff;
  background: linear-gradient(90deg, var(--a), var(--b));
  box-shadow: 0 6px 20px rgba(120, 90, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.pill:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(120, 90, 255, 0.45); }
.pill:active { transform: translateY(0); }
/* Light sweep across the button on hover. */
.pill::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: transform 0.6s ease;
}
.pill:hover::after { transform: translateX(120%) skewX(-20deg); }
.pill.ghost { background: var(--card); color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.pill.ghost:hover { border-color: rgba(158, 137, 235, 0.55); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.pill.ghost::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); }
.note { font-size: 13px; color: var(--muted); }

/* Sections */
section { padding-block: 40px; border-top: 1px solid var(--line); }
section h2 { font: 650 26px/1.2 var(--display); letter-spacing: -0.01em; margin: 0 0 22px; }
.eyebrow { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 6px;
  background: linear-gradient(90deg, var(--a), var(--b)); color: #fff; margin-left: 6px; vertical-align: 2px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.plan.pro { border: 1px solid transparent; background:
  linear-gradient(var(--card), var(--card)) padding-box,
  linear-gradient(135deg, var(--a), var(--b)) border-box; }
.plan h3 { margin: 0; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.plan.pro h3 { background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price { margin: 8px 0 6px; }
.amount { font: 700 38px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.once { color: var(--muted); font-size: 14px; margin-left: 4px; }
.plan-lede { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 24px; font-size: 14.5px; color: #d6d5de; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px;
  border-left: 2px solid #9e89eb; border-bottom: 2px solid #9e89eb; transform: rotate(-45deg); }
.trial { margin: 18px 0 0; font-weight: 600; font-size: 14.5px; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p, details ol, details ul { color: #c9c8d2; font-size: 15px; margin: 0 0 14px; }
details li { margin-bottom: 4px; }
kbd { font: 12px var(--ui); padding: 1px 6px; border-radius: 5px; background: #2a2a31; border: 1px solid var(--line); color: var(--fg); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact p { margin: 0; color: var(--muted); max-width: 52ch; }
.email { font: 600 18px var(--ui); }
.copy { font: 600 13px var(--ui); color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; margin-left: 10px; transition: border-color 0.2s ease; }
.copy:hover { border-color: rgba(158, 137, 235, 0.55); }

/* Long-form (privacy) */
.doc { max-width: 68ch; padding-block: 40px 64px; }
.doc h1 { font: 700 40px/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.doc h2 { font: 650 20px/1.3 var(--display); margin: 32px 0 8px; }
.doc p, .doc li { color: #d3d2dc; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; color: var(--fg); }

footer { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 28px 44px; gap: 32px; }
  .hero .shot { margin: 0 auto; max-width: 360px; }
  .grid, .plans { grid-template-columns: 1fr; }
}
/* ---------- Motion ---------- */

/* Little level meter above the headline, like the app's. */
.kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; letter-spacing: 0.04em; margin: 0 0 18px; }
.meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.meter i { display: block; width: 4px; height: 100%; border-radius: 2px; transform-origin: bottom;
  background: linear-gradient(to top, #4ade80 0 55%, #fbbf24 55% 80%, #f87171 80%);
  animation: level 1.1s ease-in-out infinite alternate; }
.meter i:nth-child(1) { animation-duration: 0.9s; }
.meter i:nth-child(2) { animation-duration: 1.3s; animation-delay: -0.4s; }
.meter i:nth-child(3) { animation-duration: 0.7s; animation-delay: -0.2s; }
.meter i:nth-child(4) { animation-duration: 1.1s; animation-delay: -0.7s; }
.meter i:nth-child(5) { animation-duration: 1.5s; animation-delay: -0.1s; }
@keyframes level { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

/* Slow shimmer through the gradient words. */
.hero h1 span { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--a), var(--b), #9e89eb, var(--a));
  animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Hero entrance: each piece rises in turn (--d is its step). */
.rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 0.12s + 0.05s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* App window: a slow float with a breathing glow behind it. */
.shot-wrap { position: relative; }
.shot-wrap::before { content: ""; position: absolute; inset: 12% 8%; border-radius: 40%;
  background: radial-gradient(closest-side, rgba(140, 100, 255, 0.55), transparent);
  filter: blur(40px); z-index: -1; animation: breathe 6s ease-in-out infinite; }
.shot { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { 0%, 100% { opacity: 0.55; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }

/* Scroll reveals. Only hidden once JS has marked the page, so nothing is ever stuck invisible. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--stagger, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hover lift on cards. */
.card, .plan { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(158, 137, 235, 0.4); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.plan:hover { transform: translateY(-3px); }
.js .reveal.in.card:hover, .js .reveal.in.plan:hover { transform: translateY(-3px); }

/* Pro card: the gradient border slowly turns. */
@property --angle { syntax: "<angle>"; initial-value: 135deg; inherits: false; }
.plan.pro { background:
  linear-gradient(var(--card), var(--card)) padding-box,
  conic-gradient(from var(--angle), var(--a), var(--b), #9e89eb, var(--a)) border-box;
  animation: spin-border 6s linear infinite; }
@keyframes spin-border { to { --angle: 495deg; } }

@media (max-width: 480px) {
  .top { gap: 10px; }
  .brand img { height: 22px; }
  .nav { gap: 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .meter i { transform: scaleY(0.7); }
}
