/* ============================================
   MUA Studio — Marketing Page Styles
   Tokens: tokens.css (must be loaded first)
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Skip Link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 200;
  font-size: 0.875rem;
  font-weight: 600;
}
.skip-link:focus {
  top: var(--space-sm);
}

/* --- Typography --- */
h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--text);
}
h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--duration-short) ease;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary-dark);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--on-primary);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary-dark);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 10px var(--space-lg);
  font-size: 0.875rem;
}
.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}
.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* --- Beta badge primitive --- */
.beta-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5ch;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1;
  vertical-align: middle;
}
.beta-badge-inline {
  font-size: 0.625rem;
  padding: 1px 6px;
}

/* --- Hero CTA sub-caption --- */
.hero-cta-sub {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5ch;
  align-items: center;
}
.hero-cta-sub a { color: var(--text-secondary); }
.hero-cta-sub a:hover { color: var(--primary-dark); text-decoration: underline; }

/* --- App Store text fallback (shown on Android) --- */
.appstore-text-fallback { display: none; }
html.platform-android .appstore-badge { display: none; }
html.platform-android .appstore-text-fallback { display: inline-flex; }

/* --- Android primary-swap styling --- */
html.platform-android [data-platform-cta="android"].btn-outline {
  background: var(--primary);
  color: var(--on-primary);
  border-color: transparent;
}
html.platform-android [data-platform-cta="android"].btn-outline:hover {
  background: var(--primary-dark);
}
html.platform-android [data-platform-cta="web"].btn-outline,
html.platform-android [data-platform-cta="ios"].btn-primary {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
html.platform-android [data-platform-cta="web"].btn-outline:hover,
html.platform-android [data-platform-cta="ios"].btn-primary:hover {
  background: var(--primary);
  color: var(--on-primary);
}

/* Focus/visual order: Android testing comes first on Android in CTA containers. */
html.platform-android .hero-buttons [data-platform-cta="android"],
html.platform-android .nav-cta [data-platform-cta="android"],
html.platform-android .mobile-nav [data-platform-cta="android"],
html.platform-android .cta-appstore-wrap [data-platform-cta="android"] {
  order: 0;
}
html.platform-android .hero-buttons [data-platform-cta="web"],
html.platform-android .nav-cta [data-platform-cta="web"],
html.platform-android .mobile-nav [data-platform-cta="web"],
html.platform-android .cta-appstore-wrap [data-platform-cta="web"] {
  order: 1;
}
html.platform-android .hero-buttons [data-platform-cta="ios"],
html.platform-android .nav-cta [data-platform-cta="ios"],
html.platform-android .mobile-nav [data-platform-cta="ios"],
html.platform-android .cta-appstore-wrap [data-platform-cta="ios"] {
  order: 2;
}

/* --- App Store Badge --- */
.appstore-badge {
  display: inline-block;
  transition: opacity var(--duration-short) ease, transform var(--duration-short) ease;
}
.appstore-badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.appstore-badge img {
  display: block;
}

.cta-appstore-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.cta-appstore-sub {
  font-size: 0.875rem;
  opacity: 0.65;
  margin: 0;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: all var(--duration-short) ease;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  line-height: 1;
}
.nav-logo span { color: var(--primary); }
.brandmark-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(var(--shadow-rgb), 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-short);
}
.nav-links a:hover { color: var(--primary-dark); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav-cta .btn { padding: 10px var(--space-lg); font-size: 0.875rem; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration-short) ease;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}
@media (prefers-color-scheme: dark) {
  .mobile-nav { background: var(--bg); }
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav .btn {
  font-size: 1rem;
  min-width: min(280px, 84vw);
}
.mobile-nav .btn-primary {
  color: var(--on-primary);
}
.mobile-nav .btn-outline {
  color: var(--primary-dark);
}

/* --- Section Shared --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { font-size: 1.0625rem; }

/* --- Hero --- */
.hero {
  padding: 148px 0 92px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto var(--space-xl);
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto var(--space-2xl);
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Social Proof Bar --- */
.social-proof {
  padding: var(--space-3xl) 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.social-proof-tagline {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}
.proof-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  text-align: left;
}
.proof-card strong {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
}
.proof-card span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Platforms (editorial list) --- */
.platforms {
  padding: var(--space-3xl) 0;
  background: var(--bg);
}
.platforms-list {
  max-width: 760px;
  margin: var(--space-xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.platform-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.platform-row:last-child { border-bottom: 1px solid var(--border); }
.platform-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.platform-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
.platform-desc a { color: var(--primary-dark); }
.platform-desc a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .platform-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .platform-name { font-size: 1.5rem; }
}

/* --- Android Closed Testing Signup --- */
.android-test {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}
.android-test-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: var(--space-2xl);
  align-items: start;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2xl) 0;
}
.android-test-copy {
  max-width: 560px;
}
.android-test-copy h2 {
  margin: var(--space-sm) 0 var(--space-md);
}
.android-test-copy p {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.android-test-form {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.form-field {
  display: grid;
  gap: var(--space-xs);
}
.form-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}
.form-field label span {
  font-weight: 500;
  color: var(--text-muted);
}
.form-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: 0 var(--space-md);
  transition: border-color var(--duration-short), box-shadow var(--duration-short);
}
.form-field input::placeholder {
  color: var(--text-muted);
}
.form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.form-status {
  min-height: 22px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }
.form-status.pending { color: var(--primary-dark); }

/* --- Before/After Section --- */
.before-after {
  padding: 100px 0;
}
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.before-side {
  background: var(--neutral-100);
  padding: var(--space-2xl);
  position: relative;
}
.after-side {
  background: var(--surface-elevated);
  padding: var(--space-2xl);
  position: relative;
}
.before-side h3,
.after-side h3 {
  margin-bottom: var(--space-lg);
}
.ba-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.before-side .ba-label { color: var(--error); }
.after-side .ba-label { color: var(--success); }

.ba-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}
.ba-item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-item-icon .mark-svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.before-side .ba-item-icon { color: var(--error); }
.after-side .ba-item-icon { color: var(--success); }
.ba-item-text {
  color: var(--text-secondary);
  line-height: 1.5;
}
.ba-item-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Compact workflow chips on the before side */
.workflow-notes {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.workflow-notes span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Organized cards on after side */
.order-cards {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.order-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
}
.order-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.order-card-dot.green { background: var(--success); }
.order-card-dot.orange { background: var(--warning); }
.order-card-dot.blue { background: var(--info); }

/* --- Features (Tiered) --- */
.features {
  padding: 100px 0;
  background: var(--surface);
}
.features-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.feature-hero-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  transition: all var(--duration-short) ease;
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.feature-hero-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(to right, var(--accent-mauve), var(--primary), var(--accent-mustard));
}
.feature-hero-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
/* Feature hero screenshot (phone image beside text) */
.feature-hero-screenshot {
  width: 132px;
  flex-shrink: 0;
}
.feature-hero-screenshot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(var(--shadow-rgb), 0.18));
}

/* Feature support card screenshot (thumbnail above text) */
.feature-screenshot {
  margin-bottom: var(--space-md);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.feature-screenshot img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--duration-medium) ease;
}
.feature-card:hover .feature-screenshot img {
  transform: scale(1.03);
}
.feature-hero-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}
.feature-hero-content p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}
.feature-hero-detail {
  font-size: 0.8125rem;
  color: var(--primary-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.features-support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.feature-card {
  padding: var(--space-lg) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  transition: all var(--duration-short) ease;
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--primary-dark);
  border: 1px solid var(--border);
}
.mark-svg,
.detail-icon,
.table-icon {
  width: 20px;
  height: 20px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.detail-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}
.feature-card p { font-size: 0.875rem; }

/* --- App Preview Gallery --- */
.app-gallery {
  padding: 100px 0;
}
.gallery-scroll {
  overflow: visible;
}
.gallery-track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-lg);
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
  text-align: center;
}
.gallery-item img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(var(--shadow-rgb), 0.18));
  transition: transform var(--duration-short) ease, filter var(--duration-short) ease;
}
.gallery-item:hover img {
  transform: translateY(-6px);
  filter: drop-shadow(0 8px 32px rgba(var(--shadow-rgb), 0.22));
}
.gallery-caption {
  display: block;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- Comparison Table --- */
.comparison {
  padding: 100px 0;
}
.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}
/* Scroll hint shadow on right */
.comparison-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-short);
}
.comparison-wrapper.has-scroll::after {
  opacity: 1;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-elevated);
  min-width: 600px;
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}
.comparison-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-muted);
  background: var(--surface);
  padding: var(--space-lg);
  position: sticky;
  top: 0;
}
.comparison-table th:first-child {
  text-align: left;
  color: var(--text);
  font-size: 0.9375rem;
  text-transform: none;
  letter-spacing: 0;
}
.comparison-table th.highlight {
  color: var(--primary-dark);
  background: var(--surface);
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}
.comparison-table tr:hover td {
  background: var(--neutral-50);
}
.comparison-table .check {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.comparison-table .dash {
  color: var(--neutral-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.table-icon {
  width: 18px;
  height: 18px;
}
.comparison-table .partial {
  color: var(--neutral-400);
  font-size: 0.75rem;
}

/* --- How It Works (Connected Timeline) --- */
.how-it-works {
  padding: 100px 0;
  background: var(--surface);
}

.timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
/* Flowing bloom line */
.timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.666% + 20px);
  right: calc(16.666% + 20px);
  height: 3px;
  background: linear-gradient(to right, var(--accent-terracotta), var(--primary), var(--accent-mustard));
  border-radius: 2px;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 var(--space-md);
}
.timeline-dot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--surface);
}
.timeline-dot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot-inner .mark-svg {
  width: 24px;
  height: 24px;
}
.timeline-step h3 {
  margin-bottom: var(--space-sm);
}
.timeline-step p {
  font-size: 0.9375rem;
  max-width: 260px;
  margin: 0 auto;
}

/* --- Founder Story --- */
.founder {
  padding: 100px 0;
  position: relative;
}
.founder-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  background: var(--surface);
  border-radius: var(--radius-lg);
  position: relative;
}
.founder-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-md);
  left: var(--space-2xl);
  font-size: 5rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.founder-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-bg);
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-sm);
}
.founder-mark .mark-svg {
  width: 30px;
  height: 30px;
}
.founder-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}
.founder-name {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}
.founder-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* --- Privacy & Trust --- */
.privacy-trust {
  padding: 100px 0;
  background: var(--surface);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.privacy-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  border: 1px solid var(--border);
  transition: all var(--duration-short) ease;
}

.privacy-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.privacy-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.privacy-card h3 {
  margin-bottom: var(--space-sm);
}

.privacy-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.privacy-banner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.privacy-banner p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.privacy-banner a {
  color: var(--primary);
  font-weight: 600;
  transition: color var(--duration-short) ease;
}

.privacy-banner a:hover {
  color: var(--primary-dark);
}

/* --- FAQ --- */
.faq {
  padding: 100px 0;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  background: none;
  border: none;
  transition: color var(--duration-short);
}
.faq-question:hover { color: var(--primary-dark); }
.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--duration-short) ease;
  color: var(--text-muted);
}
.faq-item.active .faq-chevron,
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-medium) ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 0 var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Final CTA --- */
.final-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.final-cta h2 {
  max-width: 560px;
  margin: 0 auto var(--space-md);
}
.final-cta > .container > p {
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
}


/* --- Footer --- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: var(--space-md); }
.footer-brand .brandmark-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: var(--space-md);
  color: var(--text);
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--duration-short);
}
.footer-col a:hover { color: var(--primary-dark); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-socials {
  display: flex;
  gap: var(--space-md);
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-short);
  font-size: 0.875rem;
}
.footer-socials a:hover {
  background: var(--primary);
  color: var(--on-primary);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* Stat counter animation */
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Legal Pages --- */
.legal-page {
  padding: 140px 0 80px;
}
.legal-page .container {
  max-width: 720px;
}
.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}
.legal-page .last-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}
.legal-page h2 {
  font-size: 1.3rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}
.legal-page p,
.legal-page li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.legal-page ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}
.legal-page ul li { margin-bottom: 6px; }
.legal-page a {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 1.8rem; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }

  .features-hero-grid { grid-template-columns: 1fr; }
  .features-support-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline {
    grid-template-columns: 1fr;
    flex-direction: column;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .timeline::before {
    left: 36px;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    right: auto;
  }
  .timeline-step {
    text-align: left;
    padding-left: 90px;
    padding-bottom: var(--space-2xl);
  }
  .timeline-dot {
    position: absolute;
    left: 0;
    margin: 0;
  }

  .before-after-grid { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .feature-hero-screenshot { width: 120px; }

  .gallery-item { flex: 0 0 180px; }

  .proof-grid { grid-template-columns: 1fr; }
  .android-test-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 640px) {
  h1 { font-size: 2.35rem; }

  .hero { padding: 118px 0 64px; }
  .hero-buttons { flex-direction: column; width: 100%; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }

  .feature-hero-screenshot { width: 100px; }

  .gallery-item { flex: 0 0 160px; }

  .features-support-grid { grid-template-columns: 1fr; }

  .feature-hero-card {
    flex-direction: column;
  }

  .features, .how-it-works, .founder,
  .faq, .final-cta, .before-after, .comparison, .privacy-trust, .android-test {
    padding: 64px 0;
  }

  .android-test-inner {
    padding: var(--space-xl) 0;
  }

  .android-test-form {
    padding: var(--space-lg);
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .comparison-wrapper::after { opacity: 1; }
}
