/* ============================================================
   Koloritoo — Design tokens
   ============================================================ */
:root {
  --color-primary: #a855f7;
  --color-secondary: #ec4899;
  --color-bg: #fdf4ff;
  --color-surface: #ffffff;
  --color-text: #0f0a1a;
  --color-text-muted: #6b7280;
  --color-border: #ede0f7;
  --gradient: linear-gradient(135deg, #a855f7, #ec4899);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
  --shadow-lg: 0 12px 48px rgba(168, 85, 247, 0.22);
  --duration: 0.22s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset & base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(168, 85, 247, 0.18);
  color: var(--color-text);
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
  scroll-margin-top: 80px;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 244, 255, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease);
}

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

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.lang-switcher .lang-sep {
  color: var(--color-border);
}

.lang-switcher a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.lang-switcher a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.lang-switcher .lang-active {
  color: var(--color-primary);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), opacity var(--duration) var(--ease);
  border: none;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.48);
}

.btn-outline {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-store {
  background: var(--color-text);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.btn-store:hover {
  opacity: 0.82;
}

.btn-store svg {
  flex-shrink: 0;
}

.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   Hero
   ============================================================ */
@keyframes orb-a {
  from {
    transform: translateX(-50%) scale(1);
  }

  to {
    transform: translateX(calc(-50% + 40px)) scale(1.15);
  }
}

@keyframes orb-b {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-30px, 20px) scale(1.08);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Large purple orb — top center */
.hero::before {
  content: '';
  position: absolute;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 68%);
  border-radius: 50%;
  top: -320px;
  left: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: orb-a 10s ease-in-out infinite alternate;
}

/* Pink orb — bottom right */
.hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 40px;
  right: -80px;
  filter: blur(50px);
  pointer-events: none;
  animation: orb-b 13s ease-in-out infinite alternate;
}

.hero-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.1);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Hero content — CSS keyframe animations (play on page load, no JS needed) */
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  animation: fade-up 0.7s 0.05s var(--ease) both;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fade-up 0.65s 0.16s var(--ease) both;
}

.hero .store-buttons {
  justify-content: center;
  animation: fade-up 0.65s 0.26s var(--ease) both;
}

.hero .screenshots {
  background: transparent;
  padding: 16px 0 0;
}

/* ============================================================
   Before / After slider
   ============================================================ */
.before-after {
  background: var(--color-surface);
}

.before-after h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.before-after .subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 56px;
  font-size: 1.05rem;
}

.ba-slider {
  position: relative;
  max-width: 720px;
  margin: 48px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  aspect-ratio: 3/2;
  animation: fade-up 0.85s 0.4s var(--ease) both;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-img--before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  cursor: col-resize;
  z-index: 10;
}

.ba-handle-bar {
  flex: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
}

.ba-handle-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.ba-handle:focus-visible .ba-handle-circle {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================
   Screenshots carousel
   ============================================================ */
.screenshots {
  background: var(--color-surface);
  padding: 16px 0 44px;
}

.screenshots-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0;
}

.screenshots-track {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-top: 38px;
  padding-bottom: 56px;
  margin-bottom: -56px;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

@supports (scrollbar-width: none) {
  .screenshots-track {
    scrollbar-width: none;
  }
}

.screenshot-item {
  flex: 0 0 calc((100% - 3 * 16px) / 4);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  background: var(--color-bg);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.screenshot-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* Prev / Next buttons */
.sc-btn[hidden] {
  display: none;
}

.sc-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
  z-index: 2;
}

.sc-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
}

.sc-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.sc-btn--prev {
  order: -1;
}

/* Dots */
.sc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.sc-dot {
  width: 6px;
  height: 6px;
  border-radius: 100px;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), width 0.2s var(--ease);
}

.sc-dot.is-active {
  background: var(--color-primary);
  width: 20px;
  transform: none;
}

/* ============================================================
   How it works
   ============================================================ */
.how-it-works {
  background: var(--color-surface);
}

.how-it-works h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.how-it-works .subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 64px;
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: var(--gradient);
  opacity: 0.2;
}

.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
  position: relative;
  z-index: 1;
}

/* Outer glow ring around step numbers */
.step-number::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.12;
  z-index: -1;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   Features
   ============================================================ */
.features {
  background: var(--color-bg);
}

.features h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.features .title {
  margin-bottom: 56px;
}

.features .subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 56px;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

@media (max-width: 1023px) {
  .screenshot-item {
    flex: 0 0 calc((100% - 1 * 16px) / 2);
  }
}

@media (max-width: 599px) {
  .screenshots {
    padding: 40px 0 32px;
  }

  .screenshot-item {
    flex: 0 0 100%;
  }
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
  border: 1px solid var(--color-border);
}

/* Gradient border reveal on hover via mask-composite */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.28);
}

.feature-icon i {
  color: #fff;
  font-size: 2rem;
}

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

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   Download CTA
   ============================================================ */
.download-cta {
  background: var(--gradient);
  text-align: center;
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

/* Decorative radial overlay for depth */
.download-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.download-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
}

.download-cta p {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 40px;
  position: relative;
}

.download-cta .store-buttons {
  justify-content: center;
  position: relative;
}

.download-cta .btn-store {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.download-cta .btn-store:hover {
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8rem;
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal-page {
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page .last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--color-text);
}

.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.legal-page p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  color: var(--color-text-muted);
  margin-bottom: 6px;
  line-height: 1.7;
}

.legal-page a {
  color: var(--color-primary);
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.legal-page th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(168, 85, 247, 0.06);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
}

.legal-page td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  vertical-align: top;
}

.legal-page tr:last-child td {
  border-bottom: none;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  transition: color var(--duration) var(--ease);
}

.legal-back:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ============================================================
   FAQ accordion — shared styles (landing preview + faq page)
   ============================================================ */
.faq-list {
  display: grid;
  gap: 12px;
  padding: 15px 0 0;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  overflow: hidden;
}

.faq-item h2,
.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 18px 52px 18px 18px;
  line-height: 1.35;
  cursor: pointer;
  position: relative;
  /* border-bottom acts as separator when answer is open */
  border-bottom: 1px solid transparent;
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.faq-question:hover {
  background: rgba(168, 85, 247, 0.04);
}

.faq-question[aria-expanded='true'] {
  border-bottom-color: var(--color-border);
}

/* Animated chevron icon */
.faq-question::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.22s var(--ease);
}

.faq-question[aria-expanded='true']::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq-question:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
}

/* Smooth expand/collapse via CSS grid trick.
   Root cause of "doesn't close fully": inner element padding adds to box height
   even when grid-template-rows is 0fr — because padding is part of the box model
   and min-height:0 only applies to content, not padding.
   Fix: start with 0 vertical padding and transition it alongside the grid row. */
.faq-answer {
  display: grid !important;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
  overflow: hidden;
}

.faq-answer:not([hidden]) {
  grid-template-rows: 1fr;
}

.faq-answer>p,
.faq-answer>div {
  min-height: 0;
  overflow: hidden;
  /* Horizontal padding always present; vertical padding starts at 0 */
  padding: 0 18px;
  color: var(--color-text-muted);
  line-height: 1.75;
  transition: padding-top 0.32s var(--ease), padding-bottom 0.32s var(--ease);
}

/* Vertical padding expands with the grid row so height truly reaches 0 when closed */
.faq-answer:not([hidden])>p,
.faq-answer:not([hidden])>div {
  padding-top: 12px;
  padding-bottom: 18px;
}

/* ============================================================
   FAQ pages (standalone)
   ============================================================ */
.faq-page {
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}


.faq-page h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-page .last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.faq-page p {
  color: var(--color-text-muted);
  line-height: 1.75;
}

.faq-intro {
  margin-bottom: 12px;
}

/* ============================================================
   FAQ Preview (landing page)
   ============================================================ */
.faq-preview {
  background: var(--color-surface);
}

.faq-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}

.faq-preview-aside {
  position: sticky;
  top: 88px;
}

.faq-preview h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-more {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-preview .faq-item {
  border: none;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.faq-preview .faq-list .faq-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.faq-preview .faq-question {
  padding: 22px 40px 22px 0;
  font-size: 1rem;
}

.faq-preview .faq-question::after {
  right: 4px;
}

/* In the preview, item borders already separate entries — hide the button separator */
.faq-preview .faq-question[aria-expanded='true'] {
  border-bottom-color: transparent;
}

.faq-preview .faq-answer {
  overflow: hidden;
}

.faq-preview .faq-answer>div {
  padding: 0;
}

.faq-preview .faq-answer:not([hidden])>div {
  padding-top: 4px;
  padding-bottom: 20px;
}

.faq-preview .faq-answer ul {
  padding-left: 20px;
  margin-top: 8px;
}

.faq-preview .faq-answer li {
  color: var(--color-text-muted);
  margin-bottom: 4px;
  line-height: 1.7;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .faq-preview-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq-preview-aside {
    position: static;
  }
}

/* ============================================================
   Scroll reveal — state applied by IntersectionObserver
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.58s var(--ease), transform 0.58s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero h1,
  .hero p,
  .hero .store-buttons,
  .ba-slider {
    animation: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 20px;
  }

  /* Vertical timeline line on mobile */
  .steps::before {
    display: block;
    top: 40px;
    bottom: 40px;
    left: 60px;
    right: auto;
    width: 2px;
    height: auto;
  }

  /* Each step: circle on left, content on right */
  .step {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    text-align: left;
    padding: 0;
  }

  .step-number {
    grid-row: 1 / 3;
    margin: 0;
    align-self: start;
  }

  section {
    padding: 64px 0;
  }

  .faq-question {
    font-size: 1.1rem;
    padding: 16px 46px 16px 16px;
  }

  .faq-preview .faq-question {
    padding: 18px 38px 18px 0;
  }

  /* Keep the 0-vertical-padding trick on mobile — same pattern as base styles */
  .faq-answer>p,
  .faq-answer>div {
    padding: 0 16px;
  }

  .faq-answer:not([hidden])>p,
  .faq-answer:not([hidden])>div {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .faq-preview .faq-answer>div {
    padding: 0;
  }

  .faq-preview .faq-answer:not([hidden])>div {
    padding-top: 4px;
    padding-bottom: 16px;
  }
}