/* ── Theme tokens ── */
:root,
[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-elevated: #ffffff;
  --text: #0c1222;
  --text-muted: #5a6478;
  --text-soft: #8b95a8;
  --border: rgba(12, 18, 34, 0.08);
  --brand: #1d4ed8;
  --brand-2: #1e40af;
  --brand-hover: #1e3a8a;
  --accent: #c2410c;
  --accent-hover: #cf4f1a;
  --accent-soft: rgba(232, 93, 36, 0.14);
  --success: #0d9f6e;
  --header-bg: rgba(246, 248, 252, 0.82);
  --shadow: 0 20px 50px rgba(12, 18, 34, 0.1);
  --shadow-sm: 0 8px 24px rgba(12, 18, 34, 0.06);
  --hero-mesh: linear-gradient(180deg, #eef2f8 0%, var(--bg) 85%);
  --gradient-cta: var(--brand);
  --card-bg: #ffffff;
  --code-bg: #eef1f8;
  --footer-bg: #0a0f1a;
  --footer-text: #9aa8bc;
  --footer-heading: #f0f4fa;
  --toggle-bg: #fff;
  --marquee-fade: linear-gradient(90deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%);
  --preview-bg: #0f1424;
  --preview-surface: #1a2238;
}

[data-theme="dark"] {
  --bg: #070b14;
  --bg-elevated: #111827;
  --text: #f0f4fa;
  --text-muted: #9aa8bc;
  --text-soft: #6b7d94;
  --border: rgba(255, 255, 255, 0.08);
  --brand: #60a5fa;
  --brand-2: #93c5fd;
  --brand-hover: #93c5fd;
  --accent: #fb923c;
  --accent-hover: #ffaa80;
  --accent-soft: rgba(255, 140, 90, 0.18);
  --header-bg: rgba(7, 11, 20, 0.88);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 28px rgba(0, 0, 0, 0.3);
  --hero-mesh: linear-gradient(180deg, #0c1220 0%, var(--bg) 90%);
  --gradient-cta: var(--brand);
  --card-bg: #111827;
  --code-bg: #1a2238;
  --footer-bg: #04060c;
  --toggle-bg: #111827;
  --marquee-fade: linear-gradient(90deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%);
  --preview-bg: #050810;
  --preview-surface: #141c30;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

.container {
  width: min(1160px, 100% - clamp(24px, 5vw, 40px));
  margin: 0 auto;
}

.container-wide {
  width: min(1280px, 100% - clamp(20px, 4vw, 32px));
  margin: 0 auto;
}

[id] {
  scroll-margin-top: 96px;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 200;
  background: var(--brand);
  transition: width 0.1s linear;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  margin-right: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.brand:hover { color: inherit; text-decoration: none; }

.brand-logo-wrap,
.download-logo-wrap,
.footer-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow-sm);
}

.download-logo-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}

.footer-logo-wrap {
  width: 44px;
  height: 44px;
}

.brand-logo,
.download-logo,
.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.brand-text { min-width: 0; }

.brand-name { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.brand-tag { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; line-height: 1.3; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

body.nav-open .nav-toggle-icon .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle-icon .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-icon .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  width: 100%;
  flex: 1 1 100%;
  order: 10;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
}

.nav-drawer:not([hidden]) {
  display: block;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-drawer-links a:hover {
  color: var(--text);
  background: var(--bg);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover { color: var(--text); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s, color 0.2s;
}

.theme-toggle:hover { color: var(--text); transform: rotate(12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s, background 0.2s;
  -webkit-font-smoothing: antialiased;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover { color: #fff; background: var(--brand-hover); box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3); }

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { color: var(--text); background: var(--card-bg); }

.btn-sm { padding: 10px 18px; font-size: 0.82rem; }

.btn-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  transform: none !important;
}

.btn-arrow::after {
  content: "→";
  margin-left: 0.45em;
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn:hover.btn-arrow::after { transform: translateX(3px); }

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 80px;
  background: var(--hero-mesh);
  overflow: hidden;
}

.hero-blob {
  display: none;
}

.hero-blob-1 {
  width: 420px;
  height: 420px;
  background: rgba(109, 62, 240, 0.35);
  top: -120px;
  right: -80px;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(232, 93, 36, 0.25);
  bottom: 0;
  left: -60px;
  animation-delay: -5s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 24px) scale(1.05); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-preview { order: -1; }
  .brand-tag { display: none; }
  .header-actions { gap: 8px; }
  .lang-switcher { order: 2; }
  #btn-download-nav { order: 3; }
}

@media (max-width: 520px) {
  .header-inner { gap: 8px; }
  .brand-name { font-size: 1rem; }
  #btn-download-nav { padding: 10px 14px; font-size: 0.78rem; }
  .lang-btn { padding: 5px 6px; font-size: 0.68rem; }
  .hero { padding: 100px 0 56px; }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btns .btn { width: 100%; }
  .section { padding: 56px 0; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .download-card { padding: 32px 20px; border-radius: 20px; }
  .platform-btn { padding: 0 14px; font-size: 0.82rem; min-height: 40px; }
  .pricing-card { padding: 28px 20px; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .cta-band { padding: 56px 0; }
  .stats-grid { gap: 12px; }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  animation: fade-up 0.7s ease both;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(13, 159, 110, 0.2);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fade-up 0.7s ease 0.1s both;
}

.hero h1 .accent-word,
.hero h1 .gradient-text {
  color: var(--brand);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 28px;
  animation: fade-up 0.7s ease 0.2s both;
}

.hero-checklist {
  list-style: none;
  margin-bottom: 28px;
  animation: fade-up 0.7s ease 0.25s both;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-checklist li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fade-up 0.7s ease 0.3s both;
}

.hero-meta {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* App preview */
.hero-preview {
  animation: fade-up 0.9s ease 0.2s both;
}

.preview-shell {
  background: var(--preview-bg);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.preview-shell:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4558;
}

.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #febc2e; }
.preview-dot:nth-child(3) { background: #28c840; }

.preview-title {
  margin-left: auto;
  font-size: 0.72rem;
  color: #8b95a8;
}

.preview-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 12px 0;
  overflow-x: auto;
}

.preview-tab {
  padding: 8px 14px;
  border: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #8b95a8;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.preview-tab.is-active {
  background: var(--preview-surface);
  color: #fff;
}

.preview-body {
  padding: 16px;
  min-height: 220px;
}

.preview-panel {
  display: none;
  animation: panel-in 0.35s ease;
}

.preview-panel.is-active { display: block; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--preview-surface);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #c8d0e0;
}

.preview-row strong { color: #fff; font-weight: 600; }

.preview-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(13, 159, 110, 0.2);
  color: #5eead4;
}

.preview-badge.warn {
  background: rgba(232, 93, 36, 0.2);
  color: #fdba74;
}

/* Stats */
.stats-section {
  padding: 48px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  padding: 20px;
  border-radius: 16px;
  transition: transform 0.25s, background 0.25s;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: var(--bg);
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.1;
}

.stat-suffix {
  font-size: 1.5rem;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Marquee */
.marquee-wrap {
  padding: 28px 0;
  overflow: hidden;
  position: relative;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrap::before { left: 0; background: var(--marquee-fade); }
.marquee-wrap::after { right: 0; background: var(--marquee-fade); transform: scaleX(-1); }

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.marquee-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Pill tabs (product areas) */
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.pill-tab {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.pill-tab:hover {
  border-color: var(--brand);
  color: var(--text);
  transform: translateY(-2px);
}

.pill-tab.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: none;
}

.pill-panel-wrap {
  position: relative;
  min-height: 280px;
}

.pill-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  animation: panel-in 0.4s ease;
}

.pill-panel.is-active { display: grid; }

@media (max-width: 800px) {
  .pill-panel.is-active { grid-template-columns: 1fr; }
}

.pill-panel-copy h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.pill-panel-copy p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pill-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.pill-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.pill-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.pill-visual {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.pill-visual-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Bento features */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  grid-column: span 4;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}

.bento-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow);
  border-color: rgba(26, 79, 214, 0.2);
}

.bento-card.wide { grid-column: span 6; }
.bento-card.tall { grid-column: span 4; grid-row: span 1; }

@media (max-width: 900px) {
  .bento-card, .bento-card.wide { grid-column: span 12; }
}

.bento-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.bento-num {
  font-size: 2.5rem;
  font-weight: 800;
  opacity: 0.08;
  line-height: 1;
  margin-bottom: 12px;
}

/* Problems accordion */
.problems-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.problem-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.problem-item.is-open {
  border-color: rgba(26, 79, 214, 0.25);
  box-shadow: var(--shadow-sm);
}

.problem-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.problem-trigger span:last-child {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--brand);
  transition: transform 0.25s;
}

.problem-item.is-open .problem-trigger span:last-child {
  transform: rotate(45deg);
}

.problem-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.problem-item.is-open .problem-body { max-height: 160px; }

.problem-inner {
  padding: 0 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.problem-solved {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--success);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 159, 110, 0.12);
  flex-shrink: 0;
}

.problem-inner p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials {
  overflow: hidden;
  padding-bottom: 8px;
}

.testimonial-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card {
  flex: 0 0 min(380px, 85vw);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.testimonial-card p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card cite {
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.testimonial-dot.is-active {
  background: var(--brand);
  transform: scale(1.25);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 18px 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-trigger-text {
  flex: 1;
  text-align: left;
  padding-right: 12px;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: var(--brand);
}

.faq-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.28s ease-in-out;
}

@keyframes faq-icon-spin-to-x {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(90deg);
  }
  55% {
    transform: rotate(630deg);
  }
  82% {
    transform: rotate(720deg);
  }
  100% {
    transform: rotate(45deg);
  }
}

.faq-item.is-open .faq-icon svg {
  animation: faq-icon-spin-to-x 0.62s cubic-bezier(0.42, 0, 0.58, 1) forwards;
  transition: none;
}

.note-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-left: 3px solid var(--brand);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.note-card p { margin: 0; }

.bento-num {
  display: none;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-body { max-height: 280px; }

.faq-inner {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Download */
.download-section {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.download-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-cta);
  opacity: 0.04;
  pointer-events: none;
}

.download-card > * { position: relative; z-index: 1; }

/* download-logo sizing via .download-logo-wrap */

.download-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 28px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tag-live {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

.download-error {
  display: none;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--accent);
}

.download-error.show { display: block; }

.platform-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.platform-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.platform-btn-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.platform-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.platform-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.platform-btn.is-active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: none;
}

[data-theme="dark"] .platform-btn.is-active {
  background: var(--brand);
}

/* Fallback layer — covers subpixel gaps on rounded pills in some browsers */
.platform-btn.is-active::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: inherit;
  z-index: 0;
  pointer-events: none;
}

.platform-btn.is-active .platform-icon-win path {
  fill: #fff;
}

.platform-btn.is-active .platform-icon-linux path,
.platform-btn.is-active .platform-icon-linux ellipse {
  fill: #fff;
}

.platform-btn.is-active .platform-icon-apple {
  color: #fff;
}

.download-unavailable {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.download-unavailable:not([hidden]) { display: block; }

/* Pricing */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.pricing-price {
  margin-bottom: 12px;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.pricing-period {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-cta {
  width: 100%;
  max-width: 280px;
}

.pricing-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.pricing-card a:not(.btn) {
  color: var(--brand);
}

.download-steps {
  text-align: left;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.download-steps h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.download-steps ol {
  margin-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.download-steps li { margin-bottom: 8px; }
.download-steps code {
  font-size: 0.82rem;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

/* CTA band */
.cta-band {
  padding: 72px 0;
  text-align: center;
  background: var(--brand);
  color: #fff;
}

.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-band .btn-primary:hover {
  color: var(--brand-hover);
  background: #fff;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 320px;
}

/* footer-logo sizing via .footer-logo-wrap */

.footer-brand strong {
  display: block;
  color: var(--footer-heading);
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-links a:hover { color: var(--footer-heading); text-decoration: none; }

.footer-legal {
  padding-top: 24px;
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-legal p + p { margin-top: 8px; }

.footer-legal a { color: #8fa8bc; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
