:root {
  --bg: #0c0d13;
  --surface: #14161f;
  --card: #171a24;
  --border: #272b39;
  --text: #eceef5;
  --muted: #98a0b3;
  --primary: #7c8bff;
  --accent: #ff7a66;
  --grad: linear-gradient(120deg, #7c8bff 0%, #b58bff 45%, #ff7a66 100%);
  --maxw: 1000px;
  --radius: 18px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fc;
    --surface: #ffffff;
    --card: #ffffff;
    --border: #e6e9f3;
    --text: #14161f;
    --muted: #596174;
    --primary: #4a5bd6;
    --accent: #e2563d;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px -4px var(--primary);
}
nav.top {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links {
  display: flex;
  gap: 22px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 550;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* App Store badge — always black with white content (high contrast, both themes) */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.1;
}
.appstore:hover {
  text-decoration: none;
  opacity: 0.88;
}
.appstore svg {
  fill: #fff;
  flex: none;
}
.appstore .small {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  opacity: 0.85;
}
.appstore .big {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: -2px;
}
.appstore--sm {
  padding: 8px 13px;
  border-radius: 10px;
}
.appstore--sm .big {
  font-size: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 84px 0 44px;
  text-align: center;
  overflow: hidden;
}
/* Waveform sits at the BOTTOM of the hero and fades upward, so it never
   reduces the headline's contrast. */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 190px;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 550;
  margin-bottom: 26px;
}
.eyebrow b {
  color: var(--text);
  font-weight: 650;
}
h1 {
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
  text-wrap: balance;
}
h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 30px;
  text-wrap: balance;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.btn-ghost:hover {
  border-color: var(--primary);
  text-decoration: none;
}

/* Sections */
section.block {
  padding: 58px 0;
}
section.tint {
  background: color-mix(in srgb, var(--surface) 45%, var(--bg));
}
.section-head {
  max-width: 640px;
  margin: 0 auto 34px;
  text-align: center;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: -0.025em;
  font-weight: 780;
  margin: 10px 0 0;
  text-wrap: balance;
}

/* Feature cards with SVG icons */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}
.ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}
.ic.coral {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}
.ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin: 0 0 7px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* FAQ — prominent */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 650;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Legal docs */
main.doc {
  padding: 56px 0 64px;
}
.legal {
  max-width: 780px;
  margin: 0 auto;
}
.legal h1 {
  font-size: 2rem;
  margin: 0 0 6px;
  text-align: left;
}
.legal .updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 30px;
}
.legal h2 {
  font-size: 1.35rem;
  margin: 38px 0 4px;
  text-align: left;
}
.legal h3 {
  font-size: 1.08rem;
  margin: 26px 0 4px;
}
.legal h4 {
  font-size: 0.98rem;
  margin: 18px 0 2px;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal ul {
  padding-left: 20px;
}
.legal li {
  margin: 6px 0;
}
.legal strong {
  color: var(--text);
}
.legal address {
  font-style: normal;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: inline-block;
}
.legal .src {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 22px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site a {
  color: var(--muted);
}
footer.site a:hover {
  color: var(--text);
}

/* Trust banner — "no cookies" notice */
.trust-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}
.trust-banner__content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}
.trust-banner__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.trust-banner__icon svg {
  width: 20px;
  height: 20px;
}
.trust-banner__body {
  flex: 1;
}
.trust-banner__title {
  margin: 0;
  font-size: 0.98rem;
}
.trust-banner__text {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.trust-banner__btn {
  flex: none;
  border: none;
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.trust-banner__btn:hover {
  opacity: 0.9;
}

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