/* =========================================================
   AM Landing — mobile-first redesign
   Stack: pure CSS, no framework. English-only.
   ========================================================= */

:root {
  /* Palette */
  --ink:        #0B1220;
  --ink-2:      #1A2230;
  --ink-soft:   #4A5568;
  --ink-mute:   #6B7280;
  --line:       #E5E7EB;
  --line-soft:  #EEF0F3;
  --bg:         #F7F6F2;
  --surface:    #FFFFFF;
  --surface-2:  #FAFAF7;

  --brand:      #00C77A;   /* mint — growth, trust */
  --brand-deep: #00A862;
  --brand-soft: #E6F9F0;
  --accent:     #FF6B47;   /* warm coral, sparingly */

  /* Typography */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 60px -20px rgba(11, 18, 32, 0.25);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layout */
  --maxw: 1180px;
  --pad-x: 20px;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

/* ---------------- Buttons ---------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.22);
}
.button-primary:hover { background: #000; transform: translateY(-1px); }
.button-primary:active { transform: translateY(0); }

.button-xl {
  padding: 18px 28px;
  font-size: 17px;
  min-height: 56px;
}
.button-block {
  width: 100%;
}
.button-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.button:hover .button-arrow { transform: translateX(3px); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 246, 242, 0.95);
}
.nav-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 14%, transparent 15%),
    linear-gradient(135deg, var(--brand) 0%, var(--ink) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.nav-links {
  display: none;
  margin-left: auto;
  gap: 28px;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

/* Language picker */
.language-picker {
  margin-left: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.language-picker:hover { border-color: var(--ink); color: var(--ink); }
.language-picker-icon { font-size: 14px; }
.language-picker select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0 18px 0 2px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234A5568' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 10px 6px;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 24px var(--pad-x) 56px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-inner { max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 199, 122, 0.18);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 199, 122, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(0, 199, 122, 0.06); }
}

.hero-title {
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--ink);
}
.hero-title-accent {
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--ink) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-cta .button { width: 100%; }
.hero-assist {
  font-size: 14px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-support {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  max-width: 560px;
}

/* Hero visual — route card */
.hero-visual {
  margin-top: 36px;
}
.route-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.route-card::before {
  content: "";
  position: absolute;
  inset: -50% 30% auto auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 199, 122, 0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.route-card-top { margin-bottom: 20px; position: relative; z-index: 1; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-deep);
}
.route-map {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}
.route-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.route-node.done .route-num {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.route-node.active .route-num {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(11, 18, 32, 0.08);
}
.route-label {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.route-bar {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.route-bar span {
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform-origin: left;
  animation: fill 1.4s var(--ease) forwards;
}
.route-map > .route-bar:nth-of-type(1) span { animation-delay: 0.2s; }
.route-map > .route-bar:nth-of-type(2) span {
  animation: fillPartial 1.6s var(--ease) 0.6s forwards;
  transform: scaleX(0);
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fillPartial { from { transform: scaleX(0); } to { transform: scaleX(0.65); } }

.assistant-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.assistant-orb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), #00E699, var(--brand-deep), var(--brand));
  position: relative;
  flex-shrink: 0;
  animation: spin 6s linear infinite;
}
.assistant-orb::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--surface);
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }
.assistant-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.assistant-text span {
  font-size: 12px;
  color: var(--ink-soft);
}

.confirmation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.confirmation-ready {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
}
.check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 199, 122, 0.25);
}

/* ---------------- Metrics strip ---------------- */
.metrics {
  background: var(--ink);
  color: #fff;
  padding: 22px 0;
  margin-bottom: 60px;
}
.metrics-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}
.metrics-track::-webkit-scrollbar { display: none; }
.metric-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metric-chip strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.metric-chip span {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ---------------- Sections ---------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--pad-x);
}
.section-head {
  margin-bottom: 32px;
  max-width: 640px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--brand); }
.section-head h2 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.section-sub {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-soft);
}

/* ---------------- How it works ---------------- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.step-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 700;
}
.step-body p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.security-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--brand-soft);
  border-radius: var(--r-lg);
  font-size: 14px;
  color: var(--brand-deep);
  font-weight: 500;
}
.security-note .shield { font-size: 22px; }

/* ---------------- Cases — целостная карточка + свайп ---------------- */
.cases {
  padding: 48px 0 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.cases .section-head {
  padding: 0 var(--pad-x);
}
.case-slider-wrap {
  position: relative;
}
.case-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px var(--pad-x) 16px;
  scroll-padding-inline: var(--pad-x);
  scroll-behavior: smooth;
}
.case-slider::-webkit-scrollbar { display: none; }
.case-slider:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: var(--r-lg);
}

.case-card {
  flex-shrink: 0;
  width: min(86%, 380px);
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.case-card.is-active {
  box-shadow: var(--shadow-lg);
}

.case-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line-soft);
}
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.case-card:hover .case-media img { transform: scale(1.03); }
.case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 18, 32, 0.55) 100%);
}
.case-flag {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(11, 18, 32, 0.25);
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-content {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-content h3 {
  font-size: 22px;
  font-weight: 800;
}
.case-role {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 500;
  margin-top: -4px;
}
.case-objective {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 14px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  line-height: 1.5;
}
.case-body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.case-details {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: 2px;
}
.case-details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
}
.case-details summary::-webkit-details-marker { display: none; }
.case-details summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-soft);
  flex-shrink: 0;
  line-height: 1;
}
.case-details[open] summary::after { content: "−"; }
.case-details ul,
.case-details p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.case-details ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-details li {
  position: relative;
  padding-left: 22px;
}
.case-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8.5L7 11.5L12 5.5' stroke='%2300A862' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.case-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px var(--pad-x) 4px;
}
.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-button:disabled { opacity: 0.35; cursor: default; background: var(--surface); color: var(--ink); }
.case-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.case-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--line);
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}
.case-dots button.is-active {
  background: var(--ink);
  width: 26px;
  border-radius: 4px;
}

/* ---------------- AI confidence block ---------------- */
.ai-confidence {
  margin: 32px var(--pad-x) 0;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.ai-confidence::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 199, 122, 0.16), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.ai-confidence > * { position: relative; z-index: 1; }
.ai-confidence h3 {
  font-size: clamp(20px, 4.6vw, 26px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ai-confidence p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.ai-confidence .button { align-self: flex-start; margin-top: 6px; }

/* ---------------- Center action ---------------- */
.center-action {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* ---------------- Compare ---------------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.compare-good {
  background: linear-gradient(160deg, #061a13 0%, var(--ink) 100%);
  border-color: var(--ink);
  color: #fff;
}
.compare-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.compare-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.compare-good .compare-icon {
  background: rgba(0, 199, 122, 0.15);
}
.compare-head h3 { font-size: 19px; font-weight: 700; }
.compare-card ul { display: flex; flex-direction: column; gap: 12px; }
.compare-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}
.compare-bad li { color: var(--ink-soft); }
.compare-bad li span { color: var(--ink-mute); font-weight: 700; }
.compare-good li { color: rgba(255,255,255,0.9); }
.compare-good li span { color: var(--brand); font-weight: 700; }

/* ---------------- FAQ ---------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-list details[open] {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-soft);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------------- Final CTA ---------------- */
.final-cta {
  margin: 40px 0 0;
  padding: 0 var(--pad-x) 80px;
}
.final-cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 28px 56px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 199, 122, 0.22), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(0, 199, 122, 0.12), transparent 50%),
    var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-inner h2 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.final-cta-sub {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  font-size: 16px;
}
.final-cta .button-primary {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 199, 122, 0.35);
}
.final-cta .button-primary:hover { background: #00E08A; }
.final-cta-trust {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 36px var(--pad-x) calc(36px + env(safe-area-inset-bottom));
  margin-top: -1px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
}
.footer-fine {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ---------------- Sticky mobile CTA ---------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px var(--pad-x) calc(12px + env(safe-area-inset-bottom));
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line);
  z-index: 40;
  transform: translateY(120%);
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta .button {
  font-size: 16px;
  padding: 16px 20px;
  min-height: 54px;
}

/* ---------------- Reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .route-bar span { animation: none; transform: scaleX(1); }
  .assistant-orb { animation: none; }
  .hero-badge .dot { animation: none; }
}

/* ============================================================
   ≥ 640px — tablet portrait
   ============================================================ */
@media (min-width: 640px) {
  :root { --pad-x: 32px; }
  .hero { padding: 48px var(--pad-x) 72px; }
  .hero-cta { flex-direction: row; align-items: center; }
  .hero-cta .button { width: auto; }
  .hero-trust { gap: 16px 24px; }
  .step { padding: 28px; }
  .case-card { width: min(62%, 420px); }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: none; }
}

/* ============================================================
   ≥ 900px — desktop
   ============================================================ */
@media (min-width: 900px) {
  :root { --pad-x: 48px; }
  .nav-links { display: inline-flex; }
  .language-picker { margin-left: 0; }

  .hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 80px var(--pad-x) 96px;
  }
  .hero-visual { margin-top: 0; }
  .hero-title { font-size: clamp(48px, 4.6vw, 68px); }

  .step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .case-card { width: min(46%, 440px); }
  .icon-button { display: inline-flex; }
  .section { padding: 96px var(--pad-x); }
  .cases { padding: 80px 0 48px; }
  .final-cta-inner { padding: 80px 48px; }
  .ai-confidence {
    margin: 48px var(--pad-x) 0;
    padding: 40px 44px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
  }
  .ai-confidence > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
  .ai-confidence h3 { grid-column: 1; }
  .ai-confidence p { grid-column: 1; }
  .ai-confidence .button { grid-column: 2; grid-row: 2 / span 2; align-self: center; margin-top: 0; }
}

/* ============================================================
   ≥ 1100px — large desktop polish
   ============================================================ */
@media (min-width: 1100px) {
  .case-card { width: 380px; }
  .case-slider { gap: 24px; padding-block: 12px 28px; }
}

/* ============================================================
   Language-specific typography & RTL
   ============================================================ */
html[lang="ar"] body {
  font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
  letter-spacing: 0;
}
html[lang="hi"] body {
  font-family: "Noto Sans Devanagari", "Inter", system-ui, sans-serif;
}
html[lang="ar"] .hero-title,
html[lang="ar"] .section-head h2,
html[lang="ar"] .final-cta-inner h2,
html[lang="ar"] .ai-confidence h3 {
  letter-spacing: 0;
}

/* RTL — flip directional things */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .button-arrow,
html[dir="rtl"] .button .button-arrow { transform: scaleX(-1); }
html[dir="rtl"] .button:hover .button-arrow { transform: scaleX(-1) translateX(3px); }
html[dir="rtl"] .route-bar span { transform-origin: right; }
html[dir="rtl"] .case-objective { border-left: 0; border-right: 3px solid var(--brand); border-radius: var(--r-sm) 0 0 var(--r-sm); }
html[dir="rtl"] .hero-support { border-left: 0; border-right: 3px solid var(--brand); }
html[dir="rtl"] .case-details li { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .case-details li::before { left: auto; right: 0; }
html[dir="rtl"] .nav-shell { direction: rtl; }
html[dir="rtl"] .language-picker { margin-left: 0; margin-right: auto; }
@media (min-width: 900px) {
  html[dir="rtl"] .language-picker { margin-right: 0; }
}
