/* ═══════════════════════════════════════════════════════════
   Sınav Hanı — Marketing Site (v2)
   Modern, mobile-first, brand: #1A6FD4 → #4DA6FF
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand-1: #1A6FD4;
  --brand-2: #4DA6FF;
  --brand-soft: #EAF3FF;
  --gold: #F59E0B;
  --green: #10B981;
  --red: #EF4444;
  --bg: #F8FAFC;
  --bg-2: #F1F5F9;
  --card: #FFFFFF;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 40px -10px rgba(26,111,212,.15), 0 8px 16px -4px rgba(15,23,42,.05);
  --shadow-xl: 0 30px 60px -15px rgba(26,111,212,.25), 0 12px 24px -8px rgba(15,23,42,.08);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --grad-brand: linear-gradient(135deg, #1A6FD4 0%, #4DA6FF 100%);
  --grad-brand-soft: linear-gradient(135deg, #EAF3FF 0%, #DBEAFE 100%);

  --header-h: 64px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  text-rendering: optimizeLegibility;
}

/* Scroll lock when menu open */
body.menu-open { overflow: hidden; }

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

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

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--brand-1);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  font-weight: 700;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 760px; }

.text-center { text-align: center; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s cubic-bezier(.4,0,.2,1), box-shadow .15s ease, background .15s ease, opacity .15s ease;
  min-height: 48px;
  letter-spacing: -.005em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 16px; font-size: 14px; min-height: 40px; }
.btn-lg { padding: 14px 26px; font-size: 16px; min-height: 52px; }
.btn-xl { padding: 18px 36px; font-size: 17px; min-height: 60px; }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--brand-1); color: var(--brand-1); }
.btn-ghost[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; pointer-events: none;
}

/* Store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  background: #0F172A;
  color: #fff;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  min-height: 56px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-md);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.store-badge-icon { font-size: 26px; line-height: 1; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge-text small { font-size: 11px; opacity: .8; font-weight: 500; }
.store-badge-text strong { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.store-badge.disabled { opacity: .55; pointer-events: none; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(12px)) {
  @media (min-width: 769px) {
    .site-header {
      background: rgba(255,255,255,.85);
      backdrop-filter: saturate(180%) blur(14px);
      -webkit-backdrop-filter: saturate(180%) blur(14px);
    }
  }
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand-icon {
  font-size: 24px;
  line-height: 1;
  display: inline-block;
}
.brand-text {
  color: var(--brand-1);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .brand-text { -webkit-text-fill-color: transparent; }
}

/* ─── Mobile menu — modern slide-in overlay ─── */
/* Görsel olarak gizli ama erişilebilir (display:none A11y'yi kırardı) */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}
.nav-toggle-label-bars {
  position: relative;
  width: 20px;
  height: 14px;
}
.nav-toggle-label-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .2s ease, top .25s ease;
}
.nav-toggle-label-bars span:nth-child(1) { top: 0; }
.nav-toggle-label-bars span:nth-child(2) { top: 6px; }
.nav-toggle-label-bars span:nth-child(3) { top: 12px; }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 105;
  opacity: 0;
  /* KRITIK: Menü kapalıyken backdrop tıklanmamalı, yoksa sayfadaki her
     tıklama menüyü açar (label[for=nav-toggle] olduğu için).
     visibility:hidden + pointer-events:none çift güvence. */
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: inline-block;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--brand-1); background: var(--brand-soft); text-decoration: none; }
.site-nav .btn { margin-left: 8px; }

@media (max-width: 880px) {
  .nav-toggle-label { display: inline-flex; }
  .nav-backdrop { display: block; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86%, 380px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--card);
    padding: 88px 24px 32px;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -20px 0 60px -10px rgba(15,23,42,.2);
    z-index: 108;
    overflow-y: auto;
  }
  .site-nav a {
    padding: 16px 18px;
    font-size: 17px;
    border-radius: 12px;
  }
  .site-nav .btn {
    margin: 16px 0 0;
    width: 100%;
    font-size: 16px;
  }

  /* Backdrop visible on open + clickable (closes menu) */
  #nav-toggle:checked ~ .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  #nav-toggle:checked ~ .site-nav { transform: translateX(0); }

  /* Hamburger → X transformation */
  #nav-toggle:checked ~ .nav-toggle-label .nav-toggle-label-bars span:nth-child(1) {
    top: 6px; transform: rotate(45deg);
  }
  #nav-toggle:checked ~ .nav-toggle-label .nav-toggle-label-bars span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle:checked ~ .nav-toggle-label .nav-toggle-label-bars span:nth-child(3) {
    top: 6px; transform: rotate(-45deg);
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 48px 0 64px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(77,166,255,.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 30%, rgba(26,111,212,.13), transparent 55%),
    var(--bg);
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 64px 0 88px; } }
@media (min-width: 1024px) { .hero { padding: 96px 0 120px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

.hero-text { max-width: 620px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.hero-badge-pill {
  background: var(--grad-brand);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 900;
  margin: 0 0 18px;
}
h1 .grad {
  color: var(--brand-1);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  h1 .grad { -webkit-text-fill-color: transparent; }
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw + .5rem, 1.2rem);
  color: var(--text-2);
  margin: 0 0 28px;
  line-height: 1.6;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-cta-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Hero QR Kartı ─── */
/* Vertikal kart: gradient header + beyaz QR area + footer CTA */
.hero-qr {
  display: none;
  flex-direction: column;
  align-items: stretch;
  width: 180px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .25s ease, border-color .2s ease;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  flex-shrink: 0;
}
.hero-qr:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--brand-2);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
}
.hero-qr * {
  text-decoration: none !important;
}

/* Header — brand gradient şerit */
.hero-qr-header {
  background: var(--grad-brand);
  color: #FFFFFF !important;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.hero-qr-header > span:first-child {
  font-size: 14px;
}

/* Body — beyaz QR alan */
.hero-qr-body {
  padding: 14px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-qr-body img {
  width: 130px;
  height: 130px;
  display: block;
  border-radius: 6px;
}

/* Footer — CTA */
.hero-qr-foot {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--card);
  text-align: center;
}
.hero-qr-foot small {
  font-size: 10px;
  color: var(--muted) !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-qr-foot strong {
  font-size: 13px;
  color: var(--text) !important;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* QR sadece geniş ekranlarda görünür (telefonda anlamsız) */
@media (min-width: 768px) {
  .hero-qr { display: flex; }
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}
.hero-trust-stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.hero-stats strong {
  font-size: clamp(1.5rem, 2.5vw + .5rem, 2rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1;
}
.hero-stats span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
  margin-top: 6px;
  text-transform: uppercase;
}

/* Hero phones */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
  padding: 16px 0;
}
@media (min-width: 1024px) { .hero-visual { min-height: 480px; padding: 0; } }

.phone-frame {
  position: relative;
  border-radius: 36px;
  background: linear-gradient(145deg, #1A1A2E, #0F172A);
  padding: 8px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  flex-shrink: 0;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  max-width: 110px;
  height: 18px;
  background: #0F172A;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-frame img {
  border-radius: 28px;
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
}

.phone-main { z-index: 3; width: 220px; }
@media (min-width: 1024px) { .phone-main { width: 280px; transform: translateY(-10px); } }

.phone-side {
  position: absolute;
  z-index: 2;
  width: 200px;
  opacity: .85;
  display: none;
}
.phone-side-1 { left: 0; top: 30px; transform: rotate(-8deg) translateY(20px); }
.phone-side-2 { right: 0; bottom: 0; transform: rotate(8deg) translateY(-10px); }
@media (min-width: 1024px) { .phone-side { display: block; } }

/* ─── Sections ─── */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
@media (min-width: 1024px) { .section { padding: 104px 0; } }

.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-1);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  font-weight: 900;
  letter-spacing: -.025em;
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.15;
}
.section-lead {
  text-align: center;
  color: var(--text-2);
  font-size: clamp(1rem, 1vw + .75rem, 1.15rem);
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

/* ─── Stats banner ─── */
.section-stats {
  background: var(--text);
  color: #fff;
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
  text-align: center;
  list-style: none;
  margin: 0; padding: 0;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.025em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  line-height: 1;
}
.stats-grid span {
  font-size: 13px;
  color: #94A3B8;
  letter-spacing: .03em;
  font-weight: 600;
}

/* ─── Grid utilities ─── */
.grid { display: grid; gap: 24px; }
.grid-features {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-screens {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

/* ─── Feature cards (modern) ─── */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-2);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--grad-brand-soft);
  margin-bottom: 16px;
  border: 1px solid var(--brand-soft);
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.015em;
  color: var(--text);
}
.feature-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ─── Exam chips ─── */
.section-exams {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.exam-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.01em;
}
.chip small {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,.06);
  color: var(--muted);
}
.chip-active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.chip-soon {
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* ─── Screen cards ─── */
.section-screens { background: var(--bg); }
.screen-card { margin: 0; text-align: center; }
.screen-card .phone-frame {
  margin: 0 auto 16px;
  width: 100%;
  max-width: 240px;
}
.screen-card figcaption {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ─── How it works ─── */
.section-how { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: transform .2s ease;
}
.step:hover { transform: translateY(-3px); }
.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: var(--shadow-md);
}
.step h3 { font-size: 19px; margin: 0 0 8px; font-weight: 800; letter-spacing: -.015em; }
.step p { color: var(--text-2); margin: 0; font-size: 15px; }

/* ─── Testimonials ─── */
.section-testimonials { background: var(--bg); }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.testimonial-quote {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 500;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-meta strong { display: block; font-weight: 700; font-size: 14px; }
.testimonial-meta span { font-size: 12px; color: var(--muted); }

/* ─── FAQ ─── */
.section-faq { background: var(--card); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.faq-item[open] {
  border-color: var(--brand-2);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  transition: transform .25s ease, background .25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--brand-1);
  color: #fff;
  transform: rotate(180deg);
}
.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── Final CTA ─── */
.section-cta {
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(77,166,255,.18), transparent 70%),
    var(--bg);
  text-align: center;
}
.section-cta h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  font-weight: 900;
  letter-spacing: -.025em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.section-cta .section-lead { margin-bottom: 32px; }

/* ─── Footer ─── */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand .brand-icon { font-size: 24px; }
.footer-brand .brand-text {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}
.footer-brand p {
  margin: 14px 0 0;
  color: #64748B;
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-nav h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-nav a {
  display: block;
  padding: 5px 0;
  color: #94A3B8;
  font-size: 14px;
  transition: color .15s ease;
}
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 13px;
  color: #64748B;
}

/* ─── 404 page ─── */
.page-404 h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  margin: 0;
  line-height: 1;
}
.page-404 h2 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.page-404 .section-lead { margin-bottom: 32px; }

/* ─── Privacy / Terms pages ─── */
.legal-page { padding: 48px 0 96px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 {
  font-size: clamp(1.875rem, 3vw + 1rem, 2.5rem);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -.025em;
}
.legal-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 40px;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
}
.legal-card h2 {
  font-size: 20px;
  color: var(--brand-1);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -.015em;
}
.legal-card h3 {
  font-size: 16px;
  margin: 18px 0 8px;
  font-weight: 700;
}
.legal-card p, .legal-card li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}
.legal-card ul { padding-left: 24px; }
.legal-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.legal-card th, .legal-card td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.legal-card th { background: var(--bg); font-weight: 700; }
.legal-card .highlight {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand-1);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 14px 0;
}
.legal-card a { color: var(--brand-1); }

/* ─── App family section + cards ─── */
.section-apps {
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.grid-apps {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-2); }
.app-card-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.app-card-main:hover { text-decoration: none; }
.app-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.app-card-body { display: flex; flex-direction: column; gap: 4px; }
.app-card-body strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--text);
}
.app-card-body span {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}
.app-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}
.app-card-detail {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-1);
}
.app-card-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-card-store:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }

/* ─── App subpage hero ─── */
.app-hero {
  position: relative;
  padding: 48px 0 56px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(77,166,255,.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(26,111,212,.10), transparent 55%),
    var(--bg);
  overflow: hidden;
}
@media (min-width: 768px) { .app-hero { padding: 72px 0 72px; } }
.app-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.app-hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.app-hero .section-eyebrow { margin-bottom: 10px; }
.app-hero h1 {
  font-size: clamp(1.9rem, 4vw + 1rem, 3.25rem);
  margin: 0 0 16px;
}
.app-hero-lead {
  font-size: clamp(1rem, 1.2vw + .6rem, 1.18rem);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 0 28px;
  line-height: 1.65;
}
.app-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 36px;
}
.app-hero-tags {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.app-hero-feature {
  width: 100%;
  max-width: 880px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ─── Focus visible (a11y) ─── */
:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus-visible { outline-offset: 4px; }

/* Selection */
::selection { background: var(--brand-2); color: #fff; }
