/* ---------------- design tokens ---------------- */
:root {
  --bg:           #0a0a0a;
  --bg-elev:      #14141a;
  --bg-card:      rgba(31, 41, 55, 0.45);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hi:    rgba(255, 255, 255, 0.16);
  --text:         #f5f5f7;
  --text-mute:    #a1a1aa;
  --text-dim:     #71717a;
  --accent:       #60a5fa;
  --accent-hi:    #2563eb;
  --accent-glow:  rgba(96, 165, 250, 0.35);
  --gold:         #fbbf24;
  --green:        #22c55e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
               'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(96, 165, 250, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(168, 85, 247, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 70%, rgba(34, 197, 94, 0.06), transparent 60%),
    var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #93c5fd; }

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

/* ---------------- layout ---------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}
.section--tight { padding: 60px 0; }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

/* ---------------- nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 10, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-brand .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  margin-right: 8px;
  vertical-align: middle;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
}
.nav-links a:hover { color: var(--text); }
.nav-menu { justify-self: end; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}
.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.language-control::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-mute);
  border-bottom: 1.5px solid var(--text-mute);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.language-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.language-picker {
  width: 92px;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.language-picker option {
  background: var(--bg);
  color: var(--text);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }
  .nav-brand { min-width: 0; }
  .nav-actions {
    gap: 8px;
    grid-column: 2;
    grid-row: 1;
  }
  .language-control {
    min-height: 38px;
    max-width: 126px;
    padding: 0 28px 0 10px;
  }
  .language-control::after { right: 11px; }
  .language-label { display: none; }
  .language-picker {
    width: 78px;
    font-size: 13px;
  }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    justify-self: stretch;
    transition: max-height 0.22s ease, padding-top 0.22s ease;
  }
  .nav.is-open .nav-menu {
    max-height: 280px;
    padding-top: 10px;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.9);
  }
  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text);
  }
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

/* ---------------- hero ---------------- */
.hero {
  padding: 120px 0 80px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(96, 165, 250, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 10px rgba(96, 165, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

h1.headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 24px;
}
h1 .grad {
  background: linear-gradient(120deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 540px;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.28);
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--text-mute);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hint-row {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------------- phone mockup ---------------- */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.phone {
  width: 320px;
  height: 640px;
  background: linear-gradient(135deg, #1c1c22 0%, #0d0d12 100%);
  border-radius: 44px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(96, 165, 250, 0.15);
  transform: rotate(-3deg);
  transition: transform 0.6s ease;
  animation: float 6s ease-in-out infinite;
}
.phone:hover { transform: rotate(0deg); }
@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-12px); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px 0 24px;
  font-size: 11px;
  color: var(--text-mute);
}
.phone-bar .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.phone-cues {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Extra left padding so the cue text stays clear of the seek bar
     (which sits at left: 14px, width: 4px). */
  padding: 0 14px 0 30px;
  gap: 18px;
}
.phone-cue {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
}
.phone-cue .src { color: var(--text); }
.phone-cue .tgt { color: #cbd5e1; font-weight: 500; }
/* "Distance from center" is expressed as font-size + opacity only —
   no scale transforms — so every cue's left edge stays aligned. */
.phone-cue.active { font-size: 17px; position: relative; }
.phone-cue.active .star {
  position: absolute;
  right: -2px;
  top: 0;
  color: var(--gold);
  font-size: 16px;
}
.phone-cue.faded { opacity: 0.32; font-size: 14px; }
.phone-cue.fade-far { opacity: 0.10; font-size: 13px; }

.phone-seek {
  position: absolute;
  left: 14px;
  top: 70px;
  bottom: 60px;
  width: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}
.phone-seek::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36%;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ---------------- features ---------------- */
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 600px;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature {
  position: relative;
  padding: 36px;
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}
.feature h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mute);
}

/* ---------------- how it works ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}
.step-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mute);
}

/* ---------------- philosophy / tenets ---------------- */
.tenets {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 760px;
  margin-top: 56px;
}
.tenet {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  align-items: start;
}
.tenet-num {
  font-feature-settings: 'tnum';
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  padding-top: 10px;
  border-top: 1px solid rgba(96, 165, 250, 0.35);
  display: inline-block;
  width: 40px;
}
.tenet h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 12px;
}
.tenet p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-mute);
}
@media (max-width: 640px) {
  .tenets { gap: 40px; }
  .tenet {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tenet h3 { font-size: 22px; }
}

/* ---------------- reassurance pill (under "how it works" steps) ---------------- */
.reassure {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
}
.reassure .check {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reassure strong { color: var(--text); font-weight: 700; }

/* ---------------- pricing ---------------- */
.pricing-card {
  max-width: 560px;
  margin: 56px auto 0;
  padding: 48px;
  border-radius: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-hi);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-glow), transparent 40%);
  opacity: 0.4;
  animation: spin 24s linear infinite;
  z-index: 0;
}
.pricing-card > * { position: relative; z-index: 1; }
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.pricing-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 20px;
}
.price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.price-sub {
  color: var(--text-mute);
  font-size: 14px;
  margin-bottom: 32px;
}
.price-bullets {
  list-style: none;
  text-align: left;
  max-width: 320px;
  margin: 0 auto 32px;
}
.price-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
}
.price-bullets li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

/* ---------------- final CTA ---------------- */
.final-cta {
  text-align: center;
  padding: 96px 24px;
}
.final-cta h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  line-height: 1.1;
}

/* ---------------- footer ---------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  background: rgba(0, 0, 0, 0.4);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { font-weight: 700; color: var(--text); }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-mute);
}
.footer-links a:hover { color: var(--text); }
.footer-fine {
  width: 100%;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 24px;
  text-align: center;
}

/* ---------------- legal pages ---------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
}
.legal h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}
.legal p, .legal li {
  font-size: 16px;
  line-height: 1.7;
  color: #d4d4d8;
}
.legal p { margin-bottom: 16px; }
.legal ul, .legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal li { margin-bottom: 8px; }
.legal a { border-bottom: 1px dotted var(--accent); }
.legal a:hover { border-bottom-style: solid; }

/* ---------------- scroll fade-ins ---------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .phone, .pricing-card::before { animation: none; }
}

/* ---------------- FAQ ---------------- */
/* Built on native <details>/<summary> so it works without JS, is
   keyboard-accessible by default, and animates open/close via the
   browser's built-in disclosure widget. We hide the default marker
   triangle and substitute a +/− indicator on the right edge. */
.faq-list {
  margin: 48px auto 0;
  max-width: 760px;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-list .faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item summary.faq-q {
  list-style: none;             /* Firefox marker */
  cursor: pointer;
  position: relative;
  padding: 22px 36px 22px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  user-select: none;
}
.faq-item summary.faq-q::-webkit-details-marker { display: none; } /* Safari/Chrome */
.faq-item summary.faq-q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-mute);
  line-height: 1;
}
.faq-item[open] summary.faq-q::after {
  content: '−';
}
.faq-item summary.faq-q:hover { color: var(--text); }
.faq-item summary.faq-q:hover::after { color: var(--text); }
.faq-a {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0 0 16px;
  padding-right: 36px;     /* leave room for the +/− indicator column */
}
ul.faq-a {
  padding-left: 24px;
  list-style-type: disc;
}
ul.faq-a li { margin-bottom: 4px; }
.faq-item .faq-a:last-child { margin-bottom: 22px; }
.faq-a a {
  border-bottom: 1px dotted var(--accent);
}
.faq-a a:hover {
  border-bottom-style: solid;
}

/* ---------------- headline language rotation ---------------- */
/* The "with" word in the hero h1 (id="lang_rotation") cycles through
   translations every 3s, gently fading between values. main.js drives
   the swap; this just declares the transition + alignment.
   Width is pinned in JS to the widest variant in the sequence so
   the trailing "YouTube" word doesn't slide left and right as the
   rotation changes. text-align:right anchors each variant to the
   right edge of its box (next to YouTube). */
#lang_rotation {
  display: inline-block;
  text-align: right;
  transition: opacity 0.6s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  #lang_rotation { transition: none; }
}
