/* =============================================================
   PhotoRus Landing — Landing-specific styles on top of design tokens
   ============================================================= */

html, body {
  background: var(--ph-white);
  color: var(--ph-navy-900);
  font-family: var(--ph-font-ui);
  scroll-behavior: smooth;
}

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

/* -------------------------------------------------------------
   Shared structural helpers
   ------------------------------------------------------------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ph-primary);
  margin: 0 0 16px;
}

.section-title {
  font-family: var(--ph-font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ph-navy-900);
  margin: 0 0 16px;
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ph-gray-500);
  max-width: 640px;
  margin: 0 0 48px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section--subtle {
  background: var(--ph-surface-subtle);
}

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--ph-font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 200ms var(--ph-ease-standard);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ph-white);
  color: var(--ph-primary);
  box-shadow: 0 8px 24px rgba(84,104,255,0.25), 0 2px 6px rgba(0,0,0,0.08);
}
.btn-primary:hover {
  transform: scale(1.05);
}
.btn-primary:active { transform: scale(0.98); }

.btn-primary-solid {
  background: var(--ph-primary);
  color: var(--ph-white);
  box-shadow: var(--ph-shadow-primary);
}
.btn-primary-solid:hover {
  background: var(--ph-primary-hover);
  transform: translateY(-1px);
}
.btn-primary-solid:active {
  background: var(--ph-primary-pressed);
  transform: scale(0.98);
}

.btn-ghost-on-dark {
  background: rgba(255,255,255,0.12);
  color: var(--ph-white);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost-on-dark:hover {
  background: rgba(255,255,255,0.2);
}

.btn-secondary {
  background: var(--ph-primary-100);
  color: var(--ph-primary);
}
.btn-secondary:hover { background: #D8DEFF; }

.btn-outline {
  background: var(--ph-white);
  color: var(--ph-navy-900);
  border: 1.5px solid rgba(48,56,116,0.14);
}
.btn-outline:hover { border-color: var(--ph-primary); color: var(--ph-primary); }

.btn-lg { padding: 18px 32px; font-size: 16px; }

/* Apple Store badge (black) */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 20px 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 200ms var(--ph-ease-standard);
}
.btn-appstore:hover { transform: translateY(-1px); }
.btn-appstore .apple-ico {
  width: 28px; height: 28px; flex: none;
}
.btn-appstore .as-copy {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1;
}
.btn-appstore .as-top { font-size: 10px; font-weight: 400; letter-spacing: 0.02em; opacity: 0.88; margin-bottom: 3px; }
.btn-appstore .as-bot { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; font-family: var(--ph-font-display); }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--ph-white);
  color: var(--ph-navy);
  border: 1px solid rgba(48,56,116,0.10);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ph-primary); }

.chip-on-dark {
  background: rgba(255,255,255,0.08);
  color: var(--ph-white);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  border-bottom: 1px solid rgba(255,255,255,0);
  transition: background 320ms var(--ph-ease-standard), backdrop-filter 320ms var(--ph-ease-standard), border-color 320ms var(--ph-ease-standard), box-shadow 320ms var(--ph-ease-standard);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(48,56,116,0.08);
  box-shadow: 0 4px 20px rgba(16,23,32,0.04);
}
.site-header.on-dark .logo,
.site-header.on-dark .nav-link {
  transition: color 320ms var(--ph-ease-standard);
}
.site-header.on-dark .logo { color: var(--ph-white); }
.site-header.on-dark .nav-link { color: rgba(255,255,255,0.85); }
.site-header.on-dark .nav-link:hover { background: rgba(255,255,255,0.12); color: var(--ph-white); }

.site-header.on-dark.scrolled .logo { color: var(--ph-navy-900); }
.site-header.on-dark.scrolled .nav-link { color: var(--ph-gray-500); }
.site-header.on-dark.scrolled .nav-link:hover { background: var(--ph-primary-100); color: var(--ph-primary); }
.site-header.on-dark.scrolled .btn-ghost-on-dark {
  background: var(--ph-surface-subtle);
  color: var(--ph-navy-900);
  border-color: rgba(48,56,116,0.12);
  transition: all 320ms var(--ph-ease-standard);
}
.site-header.on-dark.scrolled .btn-primary {
  background: var(--ph-primary);
  color: #fff;
  box-shadow: var(--ph-shadow-primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 40px;
  width: 100%;
  margin: 0;
}
.header-inner .nav-links {
  flex: 1;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ph-navy-900);
  text-decoration: none;
}
.site-header.on-dark .logo { color: var(--ph-white); }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--ph-primary);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(84,104,255,0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ph-gray-500);
  text-decoration: none;
  transition: all 160ms var(--ph-ease-standard);
  white-space: nowrap;
}
.nav-link:hover { background: var(--ph-primary-100); color: var(--ph-primary); }
.site-header.on-dark .nav-link { color: rgba(255,255,255,0.75); }
.site-header.on-dark .nav-link:hover { background: rgba(255,255,255,0.12); color: var(--ph-white); }

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

/* -------------------------------------------------------------
   HERO — purple gradient, fills viewport
   ------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(162,187,255,0.35), transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(74,58,255,0.4), transparent 55%),
    linear-gradient(135deg, #7081FF 0%, #5468FF 55%, #4A3AFF 100%);
  color: var(--ph-white);
  overflow: hidden;
  padding: 0;
  margin-top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero--compact {
  padding: 120px 0 80px;
  min-height: 100vh;
}
.hero::before {
  /* Subtle halftone texture */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.25;
  pointer-events: none;
}
/* Decorative 100/100 backdrop — static SVG */
.hero-decor {
  position: absolute;
  right: -60px;
  top: 40%;
  transform: translateY(-50%);
  width: 720px;
  height: auto;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-inner.hero-inner--left {
  display: block;
  max-width: 820px;
  margin-left: 0 !important;
  margin-right: auto;
  padding-left: 80px;
  text-align: left;
}
.hero-inner--left .hero-actions { justify-content: flex-start; }
.hero-inner--left .hero-chips { justify-content: flex-start; }
.hero-inner--left p.lede { margin-left: 0; margin-right: 0; max-width: 600px; }

.hero h1 {
  font-family: var(--ph-font-display);
  font-size: 76px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-inner--left h1 { font-size: 80px; }
.hero h1 .accent-handwritten {
  font-family: var(--ph-font-script);
  font-weight: 400;
  font-size: 1.2em;
  color: #E6EAFF;
  padding-right: 0.12em;
}

.hero p.lede {
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin: 0 0 40px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Interactive mockup card */
.hero-demo {
  position: relative;
  isolation: isolate;
}
.hero-demo-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.25), transparent 65%);
  z-index: -1;
  filter: blur(40px);
}

/* -------------------------------------------------------------
   Essay-annotation interactive mockup (used in hero + demo section)
   ------------------------------------------------------------- */
.essay-card {
  background: var(--ph-white);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(16,23,32,0.25), 0 10px 20px rgba(16,23,32,0.15);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  color: var(--ph-navy-900);
}
.essay-card--wide {
  grid-template-columns: 1.5fr 1fr;
  box-shadow: 0 20px 50px rgba(16,23,32,0.12), 0 4px 12px rgba(16,23,32,0.05);
}
.essay-header {
  grid-column: 1 / -1;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ph-off-white);
  background: var(--ph-white);
}
.essay-header .tabs { display: flex; gap: 4px; background: var(--ph-surface-subtle); padding: 3px; border-radius: 999px; }
.essay-header .tab { padding: 6px 14px; font-size: 12px; font-weight: 500; color: var(--ph-gray-500); border-radius: 999px; cursor: pointer; border: none; background: transparent; }
.essay-header .tab.active { background: var(--ph-white); color: var(--ph-navy); box-shadow: var(--ph-shadow-xs); }

.essay-doc-title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px; color: var(--ph-navy-900);
}
.essay-doc-title .score-pill {
  padding: 3px 10px;
  background: var(--ph-primary-100);
  color: var(--ph-primary);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
}

/* Essay body (left) */
.essay-body {
  padding: 22px 22px 24px;
  font-size: 14px;
  line-height: 1.65;
  color: #2D3447;
  max-height: 440px;
  overflow-y: auto;
}
.essay-body p { margin: 0 0 12px; }

.err {
  position: relative;
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: background 160ms var(--ph-ease-standard);
  padding: 0 2px; border-radius: 3px;
}
.err.orfo  { text-decoration-color: #FF0064; }
.err.punct { text-decoration-color: #FF8C00; }
.err.gram  { text-decoration-color: #7570FF; }
.err.speech{ text-decoration-color: #34C759; }
.err:hover, .err.is-active {
  background: rgba(84,104,255,0.1);
}
.err.orfo:hover, .err.orfo.is-active  { background: rgba(255,0,100,0.10); }
.err.punct:hover, .err.punct.is-active { background: rgba(255,140,0,0.10); }
.err.gram:hover, .err.gram.is-active  { background: rgba(117,112,255,0.12); }
.err.speech:hover, .err.speech.is-active { background: rgba(52,199,89,0.12); }

/* Essay comments (right) */
.essay-comments {
  border-left: 1px solid var(--ph-off-white);
  background: var(--ph-surface-subtle);
  padding: 18px;
  max-height: 440px;
  overflow-y: auto;
}
.comment-criteria-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ph-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
.comment-card {
  background: var(--ph-white);
  border: 1px solid var(--ph-off-white);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  transition: all 220ms var(--ph-ease-standard);
}
.comment-card.is-active {
  border-color: var(--ph-primary);
  box-shadow: 0 8px 20px rgba(84,104,255,0.15);
  transform: translateY(-1px);
}
.comment-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.comment-type {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--ph-danger);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.comment-type.is-warn { color: var(--ph-warning); }
.comment-type.is-gram { color: var(--ph-violet-bright); }
.comment-type.is-speech { color: var(--ph-success); }
.comment-score {
  font-size: 12px; font-weight: 600; color: var(--ph-navy);
  padding: 2px 8px; border-radius: 6px; background: var(--ph-surface-subtle);
}
.comment-title {
  font-size: 13px; font-weight: 600;
  color: var(--ph-navy-900);
  margin: 0 0 6px;
  line-height: 1.4;
}
.comment-body {
  font-size: 12.5px; line-height: 1.5;
  color: var(--ph-gray-500);
  margin: 0;
}
.comment-rule {
  margin-top: 10px;
  padding: 10px;
  background: var(--ph-primary-50);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ph-navy);
}
.comment-rule strong { color: var(--ph-primary); }

.essay-footer {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--ph-off-white);
  background: var(--ph-white);
}
.essay-footer .total-label { font-size: 13px; color: var(--ph-gray-500); }
.essay-footer .total-score {
  font-family: var(--ph-font-display);
  font-size: 24px; font-weight: 700; color: var(--ph-primary);
  letter-spacing: -0.01em;
}
.essay-footer .total-score small { font-size: 16px; color: var(--ph-gray-500); font-weight: 500; }

/* Error-type legend */
.err-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 22px 0; background: var(--ph-white); }
.err-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
  background: var(--ph-surface-subtle);
  color: var(--ph-gray-500);
}
.err-pill .sw { width: 8px; height: 8px; border-radius: 50%; }

/* -------------------------------------------------------------
   HOW IT WORKS — scroll-animated roadmap
   ------------------------------------------------------------- */
.how-section { padding: 140px 0 120px; }
.roadmap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.roadmap-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.roadmap-line {
  position: absolute;
  top: 34px;
  left: calc(16.666% + 42px);
  right: calc(16.666% + 42px);
  height: 6px;
  background: rgba(48,56,116,0.10);
  z-index: 0;
  border-radius: 999px;
  overflow: hidden;
}
.roadmap-line-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ph-primary), var(--ph-violet-accent, #7570FF));
  width: 0%;
  transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px rgba(84,104,255,0.35);
  border-radius: 999px;
}
.roadmap-node {
  position: relative;
  text-align: center;
  padding: 0 12px;
  opacity: 0.35;
  transform: translateY(20px);
  transition: opacity 520ms var(--ph-ease-standard), transform 520ms var(--ph-ease-standard);
}
.roadmap-node.is-active {
  opacity: 1;
  transform: translateY(0);
}
.roadmap-dot {
  position: relative;
  width: 76px; height: 76px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  background: var(--ph-white);
  border-radius: 50%;
  border: 2px solid rgba(48,56,116,0.10);
  z-index: 2;
  transition: all 420ms var(--ph-ease-standard);
}
.roadmap-node.is-active .roadmap-dot {
  background: var(--ph-primary);
  border-color: var(--ph-primary);
  box-shadow: 0 10px 28px rgba(84,104,255,0.35);
}
.roadmap-node.is-active .roadmap-dot .roadmap-dot-inner { color: #fff; }
.roadmap-dot-inner {
  color: var(--ph-gray-400);
  transition: color 320ms var(--ph-ease-standard);
}
.roadmap-dot-inner svg { width: 30px; height: 30px; }
.roadmap-dot-ring {
  position: absolute; inset: -8px;
  border: 2px solid var(--ph-primary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 400ms var(--ph-ease-standard), transform 400ms var(--ph-ease-standard);
}
.roadmap-node.is-current .roadmap-dot-ring {
  opacity: 0.5;
  transform: scale(1);
  animation: roadmap-pulse 2s ease-in-out infinite;
}
@keyframes roadmap-pulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.2; }
}
.roadmap-step-num {
  font-family: var(--ph-font-display);
  font-size: 13px; font-weight: 700;
  color: var(--ph-primary);
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.roadmap-step-title {
  font-family: var(--ph-font-display);
  font-size: 28px; font-weight: 700;
  color: var(--ph-navy-900);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  white-space: nowrap;
}
.roadmap-step-sub {
  font-size: 15px;
  color: var(--ph-gray-500);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto 28px;
}
.roadmap-visual {
  height: 220px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--ph-surface-subtle) 0%, var(--ph-white) 100%);
  border: 1px solid rgba(48,56,116,0.06);
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}
/* Visual: Camera */
.rv { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }
.rv-camera .rv-paper {
  width: 140px; height: 180px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(16,23,32,0.12);
  transform: rotate(-6deg) translateY(6px);
  transition: transform 700ms var(--ph-ease-standard);
  padding: 16px 12px;
}
.rv-camera.is-active .rv-paper { transform: rotate(-3deg) translateY(0); }
.rv-paper-line {
  height: 4px; background: rgba(48,56,116,0.12);
  border-radius: 2px; margin-bottom: 8px;
}
.rv-frame {
  position: absolute; inset: 30px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms var(--ph-ease-standard) 200ms;
}
.rv-camera.is-active .rv-frame { opacity: 1; }
.rv-frame-corner {
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid var(--ph-primary);
}
.rv-frame-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.rv-frame-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 4px; }
.rv-frame-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 4px; }
.rv-frame-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 4px; }
.rv-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.9), transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.rv-camera.is-active .rv-flash {
  animation: rv-flash 700ms ease-out 400ms 1;
}
@keyframes rv-flash { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

/* Visual: Upload */
.rv-upload .rv-doc {
  width: 180px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16,23,32,0.12);
  overflow: hidden;
}
.rv-doc-header { display: flex; gap: 4px; padding: 8px 10px; background: var(--ph-surface-subtle); }
.rv-doc-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(48,56,116,0.18); }
.rv-doc-body { padding: 14px 12px; position: relative; }
.rv-text-line { height: 4px; background: rgba(48,56,116,0.12); border-radius: 2px; margin-bottom: 7px; opacity: 0; transform: translateY(-4px); transition: opacity 320ms, transform 320ms; }
.rv-upload.is-active .rv-text-line { opacity: 1; transform: translateY(0); }
.rv-upload.is-active .rv-text-line:nth-child(2) { transition-delay: 200ms; }
.rv-upload.is-active .rv-text-line:nth-child(3) { transition-delay: 300ms; }
.rv-upload.is-active .rv-text-line:nth-child(4) { transition-delay: 400ms; }
.rv-upload.is-active .rv-text-line:nth-child(5) { transition-delay: 500ms; }
.rv-upload.is-active .rv-text-line:nth-child(6) { transition-delay: 600ms; }
.rv-scan-line {
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ph-primary), transparent);
  box-shadow: 0 0 12px var(--ph-primary);
  top: 0;
  opacity: 0;
}
.rv-upload.is-active .rv-scan-line {
  opacity: 1;
  animation: rv-scan 1.4s ease-in-out infinite;
}
@keyframes rv-scan {
  0% { top: 10%; } 50% { top: 90%; } 100% { top: 10%; }
}
.rv-progress { height: 4px; background: var(--ph-surface-subtle); border-radius: 0; overflow: hidden; }
.rv-progress-fill {
  height: 100%; width: 0;
  background: var(--ph-primary);
  transition: width 1.4s ease-out 300ms;
}
.rv-upload.is-active .rv-progress-fill { width: 100%; }

/* Visual: Result v2 - compact grade card with progress bars */
.rv-result-v2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid rgba(48,56,116,0.08);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(48,56,116,0.08);
}
.rv-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(48,56,116,0.1);
}
.rv-score-badge {
  display: flex;
  align-items: baseline;
  font-family: var(--ph-font-display);
  color: var(--ph-navy-900);
  line-height: 1;
}
.rv-score-big {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ph-primary), #7570FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rv-score-slash { font-size: 22px; color: var(--ph-gray-400); margin: 0 2px; font-weight: 500; }
.rv-score-max { font-size: 22px; color: var(--ph-gray-500); font-weight: 600; }
.rv-result-meta { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.rv-result-grade { display: flex; align-items: center; gap: 8px; }
.rv-result-grade-num { font-family: var(--ph-font-display); font-weight: 700; font-size: 16px; color: var(--ph-navy-900); }
.rv-result-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rv-result-pill--success {
  background: rgba(52,199,89,0.12);
  color: #1FA04A;
}
.rv-result-label { font-size: 11px; color: var(--ph-gray-500); }

.rv-crit-list-v2 { display: flex; flex-direction: column; gap: 7px; }
.rv-crit-v2 {
  display: grid;
  grid-template-columns: 28px 1fr 36px;
  align-items: center;
  gap: 10px;
}
.rv-crit-v2-label {
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--ph-navy-900);
}
.rv-crit-v2-bar {
  height: 7px;
  background: var(--ph-off-white, #F3F4F8);
  border-radius: 999px;
  overflow: hidden;
}
.rv-crit-v2-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ph-primary), #7570FF);
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.rv-crit-v2-score {
  font-family: var(--ph-font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ph-navy-900);
  text-align: right;
}
.rv-crit-v2-score span { color: var(--ph-gray-400); font-weight: 500; }

/* Visual: Result (legacy) */
.rv-result { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 0 16px; }
.rv-score-ring { position: relative; width: 120px; height: 120px; flex: none; }
.rv-score-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--ph-font-display);
  color: var(--ph-navy-900);
  text-align: center;
  flex-direction: column;
}
.rv-score-num .big { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; color: var(--ph-primary); line-height: 1; }
.rv-score-num .small { font-size: 13px; color: var(--ph-gray-500); display: block; margin-top: 2px; }
.rv-crit-list { display: flex; flex-direction: column; gap: 8px; flex: 1; max-width: 180px; }
.rv-crit { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; font-size: 11px; }
.rv-crit-label { font-weight: 700; color: var(--ph-navy-900); font-family: var(--ph-font-display); font-size: 12px; }
.rv-crit-bar { height: 9px; background: var(--ph-off-white); border-radius: 5px; overflow: hidden; border: 1px solid rgba(48,56,116,0.06); }
.rv-crit-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--ph-primary), #7570FF);
  border-radius: 5px;
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 6px rgba(84,104,255,0.3);
}

/* -------------------------------------------------------------
   ADVANTAGES — asymmetric tiles
   ------------------------------------------------------------- */
.advantages-section { padding: 140px 0; }
.adv-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  grid-template-rows: auto;
  gap: 20px;
}
.adv-tile {
  border-radius: 28px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.adv-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.adv-tile-num {
  font-family: var(--ph-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.5;
}
.adv-tile-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
}
.adv-tile-title {
  font-family: var(--ph-font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 28px;
}
.adv-tile-body {
  font-size: 15px;
  line-height: 1.55;
  margin: auto 0 0;
  max-width: 320px;
}

/* Fast tile — primary color */
.adv-tile--fast {
  background: linear-gradient(145deg, var(--ph-primary) 0%, var(--ph-primary-pressed) 100%);
  color: #fff;
}
.adv-tile--fast .adv-tile-body { color: rgba(255,255,255,0.8); }
.adv-fast-visual { display: flex; gap: 24px; align-items: center; margin-bottom: 32px; }
.adv-fast-timer { position: relative; width: 160px; height: 160px; flex: none; }
.adv-fast-num { position: absolute; inset: 0; display: grid; place-items: center; flex-direction: column; font-family: var(--ph-font-display); }
.adv-fast-num .adv-fast-big { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.adv-fast-num .adv-fast-unit { font-size: 14px; opacity: 0.8; margin-top: 4px; }
.adv-fast-rows { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.adv-fast-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.adv-fast-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.7); }
.adv-fast-val { font-family: var(--ph-font-display); font-weight: 700; font-size: 13px; opacity: 0.9; }

/* Accurate tile — light */
.adv-tile--accurate {
  background: var(--ph-white);
  color: var(--ph-navy-900);
  border: 1px solid rgba(48,56,116,0.08);
  min-height: 480px;
}
.adv-tile--accurate .adv-tile-tag { background: var(--ph-primary-100); color: var(--ph-primary); border-color: transparent; }
.adv-tile--accurate .adv-tile-body { color: var(--ph-gray-500); }
.adv-accurate-visual { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; margin-bottom: 20px; }
.adv-crit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.adv-crit-chip {
  padding: 10px 6px;
  text-align: center;
  border-radius: 10px;
  background: var(--ph-off-white);
  color: var(--ph-gray-400);
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: 13px;
  border: 1.5px solid transparent;
  transition: all 280ms var(--ph-ease-standard);
}
.adv-crit-chip.is-on {
  background: var(--ph-primary-100);
  color: var(--ph-primary);
  border-color: rgba(84,104,255,0.24);
}
/* -- Fast visual v2: comparison bars ------------------ */
.adv-fast-visual-v2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px 20px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
}
.adv-fast-compare { display: flex; flex-direction: column; gap: 18px; }
.afc-row { display: flex; flex-direction: column; gap: 8px; }
.afc-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
}
.afc-who { color: rgba(255,255,255,0.72); font-weight: 500; }
.afc-time { font-family: var(--ph-font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.afc-row--us .afc-time { color: #fff; }
.afc-row--them .afc-time { color: rgba(255,255,255,0.55); }
.afc-bar { height: 10px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; position: relative; }
.afc-bar-fill { height: 100%; border-radius: 999px; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }
.afc-bar-fill--them { width: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.35)); }
.afc-bar-fill--us {
  width: 4%;
  background: linear-gradient(90deg, #fff, #D6D3FF);
  box-shadow: 0 0 16px rgba(255,255,255,0.5);
}
.afc-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

/* -- Accurate visual v2: stat + bars ------------------ */
.adv-accurate-visual-v2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 24px;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, var(--ph-primary-50, rgba(84,104,255,0.05)), rgba(84,104,255,0.01));
  border: 1px solid rgba(84,104,255,0.12);
  border-radius: 16px;
}
.aav-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.aav-stat-num {
  font-family: var(--ph-font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ph-navy-900);
}
.aav-stat-num span { font-size: 38px; color: var(--ph-primary); margin-left: 2px; }
.aav-stat-label {
  font-size: 13px;
  color: var(--ph-gray-500);
  line-height: 1.35;
  max-width: 180px;
  text-wrap: balance;
}
.aav-bars { display: flex; flex-direction: column; gap: 10px; }
.aav-bar-row { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; }
.aav-bar-lbl { font-size: 12px; font-weight: 600; color: var(--ph-navy); }
.aav-bar { height: 24px; background: rgba(48,56,116,0.05); border-radius: 8px; overflow: hidden; }
.aav-bar-fill {
  height: 100%;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px;
  font-size: 11px; font-weight: 700; color: #fff;
  font-family: var(--ph-font-display);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.aav-bar-fill--us {
  background: linear-gradient(90deg, var(--ph-primary) 0%, var(--ph-primary-pressed) 100%);
  box-shadow: 0 2px 8px rgba(84,104,255,0.25);
}
.aav-bar-fill--gpt {
  background: linear-gradient(90deg, #A5A8B8, #8B8FA3);
}

.adv-fipi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ph-surface-subtle);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ph-navy);
  border: 1px solid rgba(48,56,116,0.08);
  align-self: flex-start;
}
.adv-fipi-badge svg { color: var(--ph-success); }

/* Clear tile — navy dark */
.adv-tile--clear {
  background: linear-gradient(145deg, #1E2547 0%, #303874 100%);
  color: #fff;
}
.adv-tile--clear .adv-tile-body { color: rgba(255,255,255,0.7); }
.adv-clear-visual { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.adv-clear-quote {
  background: rgba(255,255,255,0.08);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  align-self: stretch;
  border: 1px solid rgba(255,255,255,0.1);
}
.adv-clear-quote .err.punct.is-active {
  background: rgba(255,140,0,0.2);
  color: #FFC880;
  text-decoration-color: #FF8C00;
}
.adv-clear-rest { opacity: 0.7; }
.adv-clear-arrow { color: #FF8C00; opacity: 0.8; }
.adv-clear-card {
  background: #fff;
  color: var(--ph-navy-900);
  border-radius: 12px;
  padding: 14px;
  align-self: stretch;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.adv-clear-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.adv-clear-card-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--ph-warning); text-transform: uppercase; }
.adv-clear-card-score { font-size: 11px; font-weight: 600; color: var(--ph-navy); background: var(--ph-surface-subtle); padding: 2px 7px; border-radius: 4px; }
.adv-clear-card-title { font-size: 13px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.adv-clear-card-body { font-size: 12px; color: var(--ph-gray-500); margin: 0; line-height: 1.4; }

/* -------------------------------------------------------------
   iOS FEATURES section (tests + exercises)
   ------------------------------------------------------------- */
.ios-section {
  background: linear-gradient(180deg, var(--ph-navy) 0%, #25285A 100%);
  color: var(--ph-white);
  padding: 120px 0;
  overflow: hidden;
  position: relative;
}
.ios-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.ios-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ios-copy .eyebrow { color: var(--ph-primary-200); }
.ios-copy h2 { color: var(--ph-white); }
.ios-copy p.lede { color: rgba(255,255,255,0.75); font-size: 18px; line-height: 1.55; margin: 0 0 32px; }

.feature-list { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fl-ico {
  flex: none;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(84,104,255,0.25);
  color: var(--ph-primary-200);
  display: grid; place-items: center;
  margin-top: 2px;
}
.feature-list h4 { font-size: 16px; font-weight: 600; margin: 0 0 4px; color: var(--ph-white); }
.feature-list p { font-size: 14px; color: rgba(255,255,255,0.62); margin: 0; line-height: 1.5; }

.ios-screens-stack {
  position: relative;
  height: 640px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ios-screen {
  position: absolute;
  width: 300px;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 10px 20px rgba(0,0,0,0.2);
  transition: transform 600ms var(--ph-ease-emphasize);
  cursor: pointer;
}
.ios-screen img { width: 100%; display: block; }
.ios-screen-nav {
  position: absolute;
  bottom: -50px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.ios-screen-nav button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer;
  transition: all 200ms var(--ph-ease-standard);
}
.ios-screen-nav button.is-active {
  width: 28px; border-radius: 999px;
  background: var(--ph-white);
}

/* -------------------------------------------------------------
   COMPARISON — PhotoRus-highlighted card layout
   ------------------------------------------------------------- */
.compare-section { padding: 140px 0; }
.compare-wrap {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--ph-white);
  border-radius: 28px;
  border: 1px solid rgba(48,56,116,0.08);
  box-shadow: 0 24px 60px rgba(16,23,32,0.06);
  overflow: hidden;
  position: relative;
}
.compare-head {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr 1fr;
  background: var(--ph-surface-subtle);
  border-bottom: 1px solid rgba(48,56,116,0.08);
}
.compare-head-cell {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ph-gray-500);
  position: relative;
}
.compare-head-cell--label {
  align-items: flex-start;
  text-align: left;
  padding-left: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  justify-content: center;
}
.compare-head-cell--us {
  background: linear-gradient(180deg, var(--ph-primary) 0%, var(--ph-primary-pressed) 100%);
  color: #fff;
  position: relative;
  border-radius: 0;
}
.compare-head-cell--us::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}
.compare-logo-mini { display: flex; align-items: center; gap: 8px; }
.compare-logo-mini .logo-mark {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.2);
  box-shadow: none;
}
.compare-head-name {
  font-family: var(--ph-font-display);
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em;
  color: currentColor;
}
.compare-head-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.compare-competitor-ico {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ph-white);
  border: 1px solid rgba(48,56,116,0.10);
  color: var(--ph-gray-400);
}
.compare-gpt { color: #10A37F; background: rgba(16,163,127,0.08); border-color: rgba(16,163,127,0.2); }
.compare-man { color: #AC5EFF; background: rgba(172,94,255,0.08); border-color: rgba(172,94,255,0.2); }

.compare-row {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr 1fr;
  border-bottom: 1px solid var(--ph-off-white);
  align-items: stretch;
}
.compare-row:last-of-type { border-bottom: none; }
.compare-cell-lbl {
  padding: 20px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ph-navy-900);
  display: flex;
  align-items: center;
}
.compare-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  font-size: 14px;
}
.compare-slot--us {
  background: linear-gradient(180deg, rgba(84,104,255,0.06) 0%, rgba(84,104,255,0.03) 100%);
  border-left: 1px solid rgba(84,104,255,0.12);
  border-right: 1px solid rgba(84,104,255,0.12);
  position: relative;
}
.compare-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.compare-cell-us {
  color: var(--ph-navy-900);
  font-weight: 600;
}
.compare-cell-other { color: var(--ph-gray-500); }
.compare-cell-text {
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: 15px;
}
.compare-cell-us.compare-cell-text { color: var(--ph-primary); font-size: 16px; }
.compare-ico {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  flex: none;
}
.compare-ico.good { background: var(--ph-success-bg); color: var(--ph-success); }
.compare-ico.bad { background: var(--ph-danger-bg); color: var(--ph-danger); }
.compare-ico.meh { background: var(--ph-warning-bg); color: var(--ph-warning); }

.compare-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
  background: linear-gradient(180deg, rgba(84,104,255,0.03), rgba(84,104,255,0.08));
  border-top: 1px solid rgba(48,56,116,0.08);
}
.compare-footer-copy { flex: 1; max-width: 620px; }
.compare-footer--simple {
  justify-content: center;
}
.compare-footer-kicker {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--ph-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.compare-footer-copy p {
  margin: 0;
  font-size: 15px;
  color: var(--ph-navy-900);
  line-height: 1.5;
  font-weight: 500;
}

/* -------------------------------------------------------------
   PRICING — animated tabs + save-badge
   ------------------------------------------------------------- */
.pricing-tabs {
  position: relative;
  display: inline-flex;
  gap: 0;
  background: var(--ph-surface-subtle);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 40px;
  border: 1px solid rgba(48,56,116,0.08);
}
.pricing-tab {
  position: relative;
  z-index: 2;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ph-gray-500);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color 220ms var(--ph-ease-standard);
  min-width: 150px;
}
.pricing-tab.is-active { color: var(--ph-navy-900); }
.pricing-tab-indicator {
  position: absolute;
  z-index: 1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--ph-white);
  border-radius: 999px;
  box-shadow: var(--ph-shadow-sm);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-grid {
  display: grid;
  gap: 20px;
}
.pricing-grid.is-anim .price-card {
  opacity: 0;
  transform: translateY(12px);
}
.price-card {
  background: var(--ph-white);
  border: 1.5px solid rgba(48,56,116,0.10);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 240ms var(--ph-ease-standard);
  animation: price-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes price-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.price-card:hover { border-color: var(--ph-primary); transform: translateY(-2px); }
.price-card.is-popular {
  border-color: var(--ph-primary);
  box-shadow: 0 20px 48px rgba(84,104,255,0.18);
  transform: translateY(-4px);
}
.price-card.is-popular:hover { transform: translateY(-6px); }
.price-card .pop-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--ph-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(84,104,255,0.3);
  z-index: 2;
}
.save-badge {
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start;
  margin: 10px 0 2px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #34C759, #1FA04A);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(52,199,89,0.3);
  animation: save-pop 560ms cubic-bezier(0.22, 1.3, 0.36, 1) 120ms both;
}
/* On popular card, save-badge sits lower (pop-badge takes the top) */
.price-card.is-popular .save-badge {
  animation-delay: 240ms;
}
@keyframes save-pop {
  from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
.price-per-check {
  font-size: 13px;
  color: var(--ph-gray-500);
  margin-top: 2px;
  margin-bottom: 2px;
}

/* -------------------------------------------------------------
   FAQ — smooth open animation (uses grid-template-rows trick)
   ------------------------------------------------------------- */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 28px;
}
.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a .faq-a-inner {
  overflow: hidden;
  min-height: 0;
  transition: padding 380ms var(--ph-ease-standard);
  padding: 0 0 0;
}
.faq-item.is-open .faq-a .faq-a-inner {
  padding: 0 0 24px;
}
.faq-a p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ph-gray-500); }

/* -------------------------------------------------------------
   EXPERTS section
   ------------------------------------------------------------- */
.experts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.expert-card {
  background: var(--ph-white);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid rgba(48,56,116,0.08);
  position: relative;
  transition: all 240ms var(--ph-ease-standard);
}
.expert-card:hover { box-shadow: var(--ph-shadow-md); transform: translateY(-2px); }
.expert-card .quote-mark {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--ph-font-display);
  font-size: 80px; line-height: 0.8;
  color: var(--ph-primary-100);
  letter-spacing: -0.05em;
  pointer-events: none;
}
.expert-quote {
  font-size: 16px; line-height: 1.55;
  color: var(--ph-navy-900);
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
  min-height: 130px;
}
.expert-person { display: flex; align-items: center; gap: 14px; }
.expert-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ph-primary-200), var(--ph-primary));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 18px;
  font-family: var(--ph-font-display);
  flex: none;
  box-shadow: 0 4px 12px rgba(84,104,255,0.3);
}
.expert-name { font-size: 15px; font-weight: 600; color: var(--ph-navy-900); margin: 0; line-height: 1.3; }
.expert-role { font-size: 13px; color: var(--ph-gray-500); margin: 2px 0 0; line-height: 1.3; }

/* -------------------------------------------------------------
   PRICING
   ------------------------------------------------------------- */
.pricing-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--ph-surface-subtle);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 40px;
  border: 1px solid rgba(48,56,116,0.08);
}
.pricing-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ph-gray-500);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms var(--ph-ease-standard);
}
.pricing-tab.is-active {
  background: var(--ph-white);
  color: var(--ph-navy-900);
  box-shadow: var(--ph-shadow-sm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--ph-white);
  border: 1.5px solid rgba(48,56,116,0.10);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 240ms var(--ph-ease-standard);
}
.price-card:hover { border-color: var(--ph-primary); transform: translateY(-2px); }
.price-card.is-popular {
  border-color: var(--ph-primary);
  box-shadow: 0 20px 48px rgba(84,104,255,0.18);
  transform: translateY(-4px);
}
.price-card.is-popular .pop-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--ph-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(84,104,255,0.3);
}
.price-name { font-size: 14px; font-weight: 600; color: var(--ph-gray-500); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }
.price-tagline { font-size: 15px; font-weight: 500; color: var(--ph-navy-900); margin: 0 0 24px; min-height: 44px; line-height: 1.4; }
.price-amount {
  font-family: var(--ph-font-display);
  font-size: 46px;
  font-weight: 700;
  color: var(--ph-navy-900);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.price-amount .per {
  font-size: 15px;
  font-weight: 500;
  color: var(--ph-gray-500);
  letter-spacing: 0;
}
.price-amount .curr { font-size: 32px; }
.price-divider { height: 1px; background: var(--ph-off-white); margin: 24px 0; }
.price-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.price-features li { display: flex; gap: 10px; font-size: 14px; color: var(--ph-navy-900); line-height: 1.45; }
.price-features li .pf-check {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ph-primary-100);
  color: var(--ph-primary);
  display: grid; place-items: center;
  margin-top: 2px;
}
.price-features li.is-muted { color: var(--ph-gray-400); }
.price-features li.is-muted .pf-check { background: var(--ph-off-white); color: var(--ph-gray-400); }

.price-cta { width: 100%; justify-content: center; }

.packs-note {
  text-align: center;
  font-size: 13px;
  color: var(--ph-gray-500);
  margin-top: 24px;
}

/* -------------------------------------------------------------
   FAQ
   ------------------------------------------------------------- */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  background: var(--ph-white);
  border-radius: 24px;
  border: 1px solid rgba(48,56,116,0.08);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--ph-off-white);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  padding: 24px 28px;
  background: none;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--ph-navy-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--ph-font-ui);
  transition: color 160ms var(--ph-ease-standard);
}
.faq-q:hover { color: var(--ph-primary); }
.faq-q .chev { flex: none; transition: transform 240ms var(--ph-ease-standard); color: var(--ph-gray-500); }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); color: var(--ph-primary); }

/* -------------------------------------------------------------
   SCHOOLS section
   ------------------------------------------------------------- */
.schools-section {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(162,187,255,0.3), transparent 50%),
    linear-gradient(135deg, #5468FF 0%, #4A3AFF 100%);
  color: var(--ph-white);
  overflow: hidden;
}
.schools-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.schools-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.schools-copy h2 { color: #fff; }
.schools-copy p.lede { color: rgba(255,255,255,0.8); font-size: 18px; line-height: 1.5; margin: 0 0 32px; }
.schools-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.schools-benefits li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,0.9); font-size: 15px; line-height: 1.5; }
.schools-benefits .sb-check {
  flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  display: grid; place-items: center;
  margin-top: 1px;
}

/* School form */
.school-form {
  background: var(--ph-white);
  border-radius: 24px;
  padding: 40px;
  color: var(--ph-navy-900);
  box-shadow: 0 30px 60px rgba(16,23,32,0.2);
}
.school-form h3 {
  font-family: var(--ph-font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.school-form .form-lede { font-size: 14px; color: var(--ph-gray-500); margin: 0 0 28px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ph-navy-900); }
.form-field label .req { color: var(--ph-danger); }
.form-field input,
.form-field textarea {
  font-family: var(--ph-font-ui);
  font-size: 14px;
  padding: 12px 14px;
  border: 1.5px solid rgba(48,56,116,0.14);
  border-radius: 12px;
  background: var(--ph-white);
  color: var(--ph-navy-900);
  outline: none;
  transition: border-color 160ms var(--ph-ease-standard), box-shadow 160ms var(--ph-ease-standard);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 3px rgba(84,104,255,0.15);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field.full { grid-column: 1 / -1; }
.form-submit {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}
.form-footnote {
  font-size: 12px;
  color: var(--ph-gray-500);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}

.form-success {
  background: var(--ph-success-bg);
  color: var(--ph-success);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  margin-top: 16px;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.form-error {
  background: rgba(255, 0, 100, 0.08);
  color: #C81560;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 500;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.form-error a { color: inherit; text-decoration: underline; }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background: #0E1533;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { color: #fff; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.55); margin: 0 0 20px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 160ms var(--ph-ease-standard);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-legal {
  text-align: right;
  line-height: 1.55;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  transition: all 160ms var(--ph-ease-standard);
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--ph-primary);
  color: #fff;
}


/* =============================================================
   Round-2 fixes (Nick's review)
   ============================================================= */

/* --- Hero: chips replaced by an inline meta row above actions ---- */
.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-meta-item svg { color: rgba(255,255,255,0.92); flex: none; }
.hero-meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.32);
}

/* --- iOS section: prev / next arrows -------------------------- */
.ios-screens-stack { perspective: 1200px; }
.ios-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(48,56,116,0.14);
  color: var(--ph-navy-900);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 10px 24px rgba(16,23,32,0.18);
  transition: transform 200ms var(--ph-ease-standard), background 160ms ease, color 160ms ease;
}
.ios-arrow:hover {
  background: var(--ph-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
  border-color: transparent;
}
.ios-arrow--prev { left: -8px; }
.ios-arrow--next { right: -8px; }

/* =============================================================
   COMPARISON v2 — clean, no gradient, no colored icons
   ============================================================= */
.cmp-v2 {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--ph-white);
  border: 1px solid rgba(48,56,116,0.10);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16,23,32,0.04);
}
.cmp-v2-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
}

/* Header cells */
.cmp-v2-head {
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-bottom: 1px solid rgba(48,56,116,0.08);
  text-align: center;
}
.cmp-v2-head--lbl { background: transparent; }
.cmp-v2-head-name {
  font-family: var(--ph-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ph-navy-900);
}
.cmp-v2-head-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* "Us" column gets a solid brand fill, no gradient */
.cmp-v2-head--us {
  background: var(--ph-primary);
  border-bottom-color: var(--ph-primary);
}
.cmp-v2-head--us .cmp-v2-head-name { color: #fff; }

.cmp-v2-cell--us {
  background: rgba(84,104,255,0.04);
  border-left: 1px solid rgba(84,104,255,0.14);
  border-right: 1px solid rgba(84,104,255,0.14);
  position: relative;
}
.cmp-v2-grid > .cmp-v2-cell--us:last-of-type {
  border-bottom-left-radius: 0;
}

/* Label / value cells */
.cmp-v2-lbl {
  padding: 18px 24px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ph-navy-900);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(48,56,116,0.06);
}
.cmp-v2-grid > .cmp-v2-lbl:nth-of-type(1n) { /* keeps source order — first row labels skip border */ }
.cmp-v2-cell {
  padding: 18px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-top: 1px solid rgba(48,56,116,0.06);
}
/* The 4 header cells are first 4 children — strip the top border on the first data row */
.cmp-v2-grid > :nth-child(5),
.cmp-v2-grid > :nth-child(6),
.cmp-v2-grid > :nth-child(7),
.cmp-v2-grid > :nth-child(8) {
  border-top: none;
}

/* Values: typographic states, no colored circles */
.cmp-v2-val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.cmp-v2-val.is-good { color: var(--ph-navy-900); }
.cmp-v2-val.is-good::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ph-navy-900);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/70% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/70% no-repeat;
}
.cmp-v2-val.is-meh {
  color: var(--ph-gray-500);
  font-weight: 500;
}
.cmp-v2-val.is-meh::before {
  content: "";
  display: inline-block;
  width: 12px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin-right: 2px;
}
.cmp-v2-val.is-bad {
  color: var(--ph-gray-400);
  font-weight: 500;
}
.cmp-v2-val.is-bad::before {
  content: "—";
  font-weight: 700;
  margin-right: 2px;
  letter-spacing: 0;
}
.cmp-v2-val.is-text {
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ph-navy-900);
}

/* "Us" column emphasis */
.cmp-v2-val.is-us { color: var(--ph-primary); }
.cmp-v2-val.is-us.is-good::before { background: var(--ph-primary); }
.cmp-v2-val.is-us.is-text { color: var(--ph-primary); font-size: 16px; }

/* Footer CTA */
.cmp-v2-footer {
  padding: 24px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(48,56,116,0.08);
  background: var(--ph-surface-subtle);
}

@media (max-width: 760px) {
  .cmp-v2-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; font-size: 13px; }
  .cmp-v2-lbl { padding: 14px; font-size: 13px; }
  .cmp-v2-cell { padding: 14px 8px; }
}

/* =============================================================
   ADVANTAGES — middle card widened + recolored, less empty space
   ============================================================= */

/* Equal-width tiles so the middle card no longer pinches */
.adv-grid { grid-template-columns: 1fr 1fr 1fr; }

/* Recolor: middle "accurate" card now matches the brand family
   (deep navy → slightly lighter navy) so it sits visually between
   the bright primary "fast" card and the dark "clear" card. */
.adv-tile--accurate {
  background: linear-gradient(160deg, #2A3361 0%, #3A4584 100%);
  color: #fff;
  border: none;
  min-height: 480px;
  box-shadow: 0 16px 40px rgba(16,23,32,0.18);
}
.adv-tile--accurate .adv-tile-num { color: rgba(255,255,255,0.55); opacity: 1; }
.adv-tile--accurate .adv-tile-tag {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.adv-tile--accurate .adv-tile-body { color: rgba(255,255,255,0.74); }

/* Tighten the visual: pull body up, shorter bars, less empty space */
.adv-accurate-visual-v2 {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
}
.adv-tile--accurate .aav-stat-num { color: #fff; line-height: 0.95; font-size: 56px; }
.adv-tile--accurate .aav-stat-num span { color: #A2BBFF; font-size: 32px; }
.adv-tile--accurate .aav-stat-label { color: rgba(255,255,255,0.65); }
.adv-tile--accurate .aav-bar-lbl { color: rgba(255,255,255,0.78); }
.adv-tile--accurate .aav-bar {
  height: 16px;
  background: rgba(255,255,255,0.08);
}
.adv-tile--accurate .aav-bar-fill {
  height: 100%;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  color: #fff;
}
.adv-tile--accurate .aav-bar-fill--us {
  background: linear-gradient(90deg, #A2BBFF 0%, #fff 100%);
  color: var(--ph-navy-900);
  box-shadow: 0 0 16px rgba(162,187,255,0.35);
}
.adv-tile--accurate .aav-bar-fill--gpt {
  background: rgba(255,255,255,0.22);
}

/* The FIPI badge gets onto-dark styling here */
.adv-tile--accurate .adv-fipi-badge {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
}

/* Pull the body text closer to the visual on all advantage tiles
   to absorb the empty space below the visual block */
.adv-tile-body { margin: 0; }
.adv-tile { justify-content: flex-start; }
.adv-fast-visual-v2,
.adv-accurate-visual-v2,
.adv-clear-visual {
  flex: 0 0 auto;
  margin-bottom: 24px;
}
.adv-tile-title { margin: 0 0 22px; font-size: 48px; }

/* Shorter bar height across visuals for tighter rhythm */
.aav-bar { height: 16px; }
.afc-bar { height: 8px; }


/* =============================================================
   Round-3 fixes
   ============================================================= */

/* --- Icon-only versions of the accurate-tile capsules --- */
.afc-note.afc-note--icon-only,
.adv-fipi-badge.adv-fipi-badge--icon-only {
  align-self: center;
  justify-self: center;
  margin: 0 auto;
  padding: 8px;
  width: 36px;
  height: 36px;
  min-width: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.adv-tile--accurate .adv-fipi-badge--icon-only {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
}
.afc-note--icon-only {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
}

/* Re-tighten paddings inside the accurate metrics card */
.adv-tile--accurate {
  padding: 28px;
}
/* superseded by round-5 equal-height rules below */
.adv-tile--accurate .aav-stat {
  align-items: baseline;
  gap: 12px;
}
.adv-tile--accurate .aav-bar-row {
  grid-template-columns: 88px 1fr;
}

/* =============================================================
   COMPARISON v3 — full redesign: stacked column-cards
   ============================================================= */
.cmp-v3 {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1fr 1fr;
  gap: 0;
  background: var(--ph-white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(48,56,116,0.10);
  box-shadow: 0 16px 48px rgba(16,23,32,0.06);
}

/* Header row spans full width and uses the same grid */
.cmp-v3-head {
  display: contents;
}
.cmp-v3-h {
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  text-align: center;
  background: var(--ph-surface-subtle);
  border-bottom: 1px solid rgba(48,56,116,0.08);
}
.cmp-v3-h--lbl {
  align-items: flex-start;
  text-align: left;
  padding-left: 28px;
  background: transparent;
  font-family: var(--ph-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ph-gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cmp-v3-h--us {
  background: var(--ph-navy-900);
  border-bottom-color: var(--ph-navy-900);
  color: #fff;
}
.cmp-v3-h--us .cmp-v3-h-name { color: #fff; }
.cmp-v3-h--us .cmp-v3-h-tag { color: rgba(255,255,255,0.55); }

.cmp-v3-h-name {
  font-family: var(--ph-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ph-navy-900);
}
.cmp-v3-h-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--ph-gray-500);
  letter-spacing: 0.02em;
}

/* Rows */
.cmp-v3-row {
  display: contents;
}
.cmp-v3-lbl {
  padding: 18px 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ph-navy-900);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(48,56,116,0.06);
}
.cmp-v3-c {
  padding: 18px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-top: 1px solid rgba(48,56,116,0.06);
}
.cmp-v3-c--us {
  background: rgba(30,37,71,0.025);
  border-left: 1px solid rgba(30,37,71,0.08);
  border-right: 1px solid rgba(30,37,71,0.08);
}

/* Values: typographic, no colored circles */
.cmp-v3-val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ph-navy-900);
}
.cmp-v3-val.is-good::before {
  content: "";
  display: inline-block;
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.cmp-v3-val.is-meh {
  color: var(--ph-gray-500);
  font-weight: 500;
}
.cmp-v3-val.is-meh::before {
  content: "";
  display: inline-block;
  width: 14px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.cmp-v3-val.is-bad {
  color: var(--ph-gray-400);
  font-weight: 500;
}
.cmp-v3-val.is-bad::before {
  content: "✕";
  font-size: 12px;
  font-weight: 700;
}
.cmp-v3-val.is-text {
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ph-navy-900);
}

.cmp-v3-val.is-us { color: var(--ph-primary); font-weight: 700; }
.cmp-v3-val.is-us.is-text { color: var(--ph-primary); font-size: 16px; }

/* Last row rounds with the container */
.cmp-v3 > .cmp-v3-row:last-of-type .cmp-v3-lbl,
.cmp-v3 > .cmp-v3-row:last-of-type .cmp-v3-c {
  padding-bottom: 22px;
}

/* =============================================================
   Round-4: pack pricing save-badge fix
   - Was inline above .price-name and pushed card content down,
     creating inconsistent vertical alignment across pack cards.
   - Now absolute-positioned in the top-right corner so all
     pack cards have identical content baselines.
   ============================================================= */
.price-card .save-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  align-self: auto;
  margin: 0;
  padding: 5px 10px;
  z-index: 2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.price-card .save-badge svg { flex: none; }
/* On the popular card the pop-badge sits centered top — push the
   save-badge slightly down so they don't collide on narrow widths */
.price-card.is-popular .save-badge {
  top: 16px;
  right: 16px;
}


/* =============================================================
   Round-5: equal-height inner metric cards in Fast & Accurate tiles
   + restore inner padding so content doesn't touch the stroke
   ============================================================= */

/* All three inner panels share identical box, height & padding so
   the body text below sits on the same baseline. */
.adv-tile--fast   .adv-fast-visual-v2,
.adv-tile--accurate .adv-accurate-visual-v2,
.adv-tile--clear  .adv-clear-visual {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  box-sizing: border-box;
  overflow: visible;
  gap: 10px;
  justify-content: center;
}
.adv-tile--fast .adv-fast-visual-v2 {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  justify-content: space-between;
}
.adv-tile--accurate .adv-accurate-visual-v2 {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  justify-content: space-between;
}
.adv-tile--clear .adv-clear-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
}

/* Restore visible badge styling on dark accurate tile */
.adv-tile--accurate .adv-fipi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  width: auto;
  height: auto;
}
.adv-tile--accurate .adv-fipi-badge svg { color: #A2BBFF; }

/* Same body baseline across all three tiles */
.adv-tile { display: flex; flex-direction: column; }
.adv-tile-body {
  margin: 0;
  min-height: 0;
}

/* Highlight feature in price-card (Экономия N%) */
.price-features li.is-highlight {
  color: var(--ph-success);
  font-weight: 700;
}
.price-features li.is-highlight .pf-check {
  background: var(--ph-success-bg);
  color: var(--ph-success);
}

/* Hide the absolute corner save-badge — savings now live in features list */
.price-card .save-badge.save-badge--hidden { display: none; }


/* =============================================================
   Round-6 — desktop-only feedback fixes
   ============================================================= */

/* p13 — hero layout fix: fluid left padding scales with viewport */
.hero-inner.hero-inner--left {
  display: block;
  max-width: 880px;
  margin-left: 0 !important;
  margin-right: auto;
  padding-left: clamp(24px, 6vw, 120px);
  padding-right: 0;
  text-align: left;
}

/* p8 — "одном" белым */
.hero h1 .accent-handwritten {
  color: var(--ph-white);
}

/* Заголовок hero — всегда ровно две строки, разделение только по <br> */
.hero h1 { white-space: nowrap; }

/* p5 — карточки преимуществ: компактнее (≈ -40% по высоте) */
.adv-tile,
.adv-tile--accurate {
  min-height: 442px;
  padding: 26px 26px;
}
.adv-tile-title,
.adv-tile-title { /* override late rule */
  font-size: 30px;
  margin: 0 0 14px;
}
.adv-tile-head { margin-bottom: 10px; }
.adv-fast-visual-v2,
.adv-accurate-visual-v2,
.adv-clear-visual {
  margin-bottom: 14px;
  gap: 12px;
}
.adv-fast-visual-v2 { padding: 16px 16px 14px; gap: 14px; }
.adv-fast-compare { gap: 12px; }
.afc-row { gap: 6px; }
.afc-time { font-size: 16px; }
.aav-stat-num { font-size: 48px !important; }
.aav-stat-num span { font-size: 26px !important; }
.aav-bar { height: 14px !important; }
.aav-bars { gap: 8px; }
.adv-clear-quote { padding: 12px 14px; font-size: 13px; flex: 0 0 auto; }
.adv-clear-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 24px;
  position: relative;
  color: #FF8C00;
  opacity: 0.85;
}
.adv-clear-arrow svg { display: none; }
.adv-clear-arrow::before {
  content: "";
  width: 1.5px;
  height: calc(100% - 8px);
  background: currentColor;
}
.adv-clear-arrow::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.adv-clear-card { padding: 10px 12px; flex: 0 0 auto; }
.adv-clear-card-title { font-size: 12px; margin: 0 0 2px; }
.adv-clear-card-body { font-size: 11px; line-height: 1.3; }
.aav-stat-num { font-size: 40px !important; }
.aav-stat-num span { font-size: 22px !important; }
.afc-bar { height: 6px !important; }
.aav-bar { height: 12px !important; }
.afc-bar, .afc-row { gap: 4px; }
.afc-time { font-size: 14px !important; }
.aav-stat-label { font-size: 12px; line-height: 1.25; }
.aav-bar-row { grid-template-columns: 70px 1fr !important; gap: 8px !important; }
.aav-bar-lbl { font-size: 11px !important; }
.adv-tile-tag { font-size: 10px; padding: 3px 8px; }
.adv-tile-num { font-size: 12px; }

/* p4 — adv-clear-visual: внутренняя белая подложка → прозрачная,
   как у соседних карточек */
.adv-tile--clear .adv-clear-card {
  background: rgba(255,255,255,0.08);
  color: var(--ph-white);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.14);
}
.adv-tile--clear .adv-clear-card-tag {
  color: #FFC880;
}
.adv-tile--clear .adv-clear-card-score {
  background: rgba(255,255,255,0.12);
  color: var(--ph-white);
}
.adv-tile--clear .adv-clear-card-body {
  color: rgba(255,255,255,0.7);
}

/* p6 — afc-note и adv-fipi-badge без bg/border, центр */
.afc-note,
.afc-note.afc-note--icon-only,
.adv-fipi-badge,
.adv-fipi-badge.adv-fipi-badge--icon-only,
.adv-tile--accurate .adv-fipi-badge,
.adv-tile--accurate .adv-fipi-badge--icon-only {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* p7 — Comparison: убрать синий акцент со столбца PhotoRus */
.cmp-v3-val.is-us,
.cmp-v3-val.is-us.is-text {
  color: var(--ph-navy-900) !important;
}

/* Hero — тёмно-синий, без перехода */
.hero {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(84,104,255,0.25), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(74,58,255,0.22), transparent 55%),
    linear-gradient(180deg, #1E2547 0%, #2A3361 60%, #303874 100%);
}

/* p1 — крайние стрелки в iOS-каруселе */
.ios-arrow:disabled,
.ios-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

/* =============================================================
   MOBILE LAYOUT — main breakpoint: 768px
   Adds hamburger, hides desktop nav, drawer styles
   ============================================================= */

/* Hamburger button — visible only < 768px */
.header-burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.header-burger:hover { background: rgba(255,255,255,0.08); }
.site-header.scrolled .header-burger {
  border-color: rgba(48,56,116,0.18);
  color: var(--ph-navy-900);
}
.site-header.scrolled .header-burger:hover { background: rgba(48,56,116,0.06); }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 32, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-menu.is-open .mobile-menu-backdrop { opacity: 1; }
.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--ph-navy);
  color: #fff;
  padding: 20px 24px 32px;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 100vh;
  overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu-panel { transform: translateY(0); }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.08); }
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-link {
  color: #fff;
  text-decoration: none;
  padding: 14px 4px;
  font-family: var(--ph-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s ease;
}
.mobile-menu-link:hover { color: var(--ph-primary-300, #A2BBFF); }
.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.mobile-menu-cta .btn { width: 100%; justify-content: center; }

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

/* < 768px: hide desktop nav + CTAs in header, show hamburger */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .header-cta .btn { display: none; }
  .header-burger { display: inline-flex; }
  .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* =============================================================
   HERO — mobile
   ============================================================= */
@media (max-width: 768px) {
  .hero { padding: 80px 0 56px; }
  .hero-inner h1 {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  /* Keep the JSX <br/> active so the title stays as two lines:
     "Весь ЕГЭ по русскому" / "в одном приложении". Override the
     desktop `text-wrap: balance` so the lines fill the container
     naturally rather than getting balanced narrower. */
  .hero h1 { text-wrap: wrap; }
  .hero-inner .lede { font-size: 16px; max-width: 100%; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-appstore {
    width: 100%;
    justify-content: center;
  }
  .hero-chips { flex-wrap: wrap; gap: 8px; }
  .hero-decor { display: none; }
}

/* Hero CTA shadow override: the global .btn-primary uses an indigo glow
   that disappears against the indigo hero background. Use a soft black
   lift here so the button reads on the gradient. Other surfaces keep
   the design-system indigo shadow. */
.hero .btn-primary {
  box-shadow: 0 10px 28px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.14);
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 48px; }
  /* 26px keeps "Весь ЕГЭ по русскому" on a single line at 375px
     viewport (content area ~327px) so the JSX <br/> drives a clean
     two-line title. */
  .hero-inner h1 { font-size: 26px; }
  .hero-inner .lede { font-size: 15px; }
  .container { padding-left: 24px; padding-right: 24px; }
}

/* =============================================================
   HOW IT WORKS — mobile vertical timeline
   ============================================================= */
@media (max-width: 768px) {
  .how-section .section-title { font-size: 30px; }
  .how-section > .container > div[style*="margin-bottom"] { margin-bottom: 48px !important; }

  .roadmap-track {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    padding-left: 36px;
    position: relative;
  }
  /* Vertical line: switch the existing absolute-positioned horizontal line
     to a vertical one anchored to the left of the track */
  .roadmap-line {
    top: 24px;
    bottom: 24px;
    left: 19px;
    width: 2px;
    height: auto;
    right: auto;
  }
  /* Fill becomes height-driven; override the inline width style from JSX */
  .roadmap-line-fill {
    width: 2px !important;
    height: var(--rm-fill, 0%);
    transition: height 0.5s ease;
  }
  .roadmap-node {
    width: 100%;
    text-align: left;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding-left: 0;
  }
  .roadmap-node > * { text-align: left; }
  .roadmap-dot {
    margin-left: -36px;
    flex: 0 0 40px;
  }
  .roadmap-step-num,
  .roadmap-step-title,
  .roadmap-step-sub {
    align-self: flex-start;
    margin-left: 0;
  }
  /* Visual mock cards (camera/upload/result) shrink and sit under the text */
  .roadmap-visual {
    width: 100%;
    margin-top: 16px;
    transform: scale(0.85);
    transform-origin: top left;
  }
}

/* =============================================================
   INTERACTIVE ESSAY MOCKUP — mobile
   ============================================================= */
@media (max-width: 768px) {
  .essay-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .essay-card.essay-card--wide { max-width: 100%; }
  .essay-doc-title { font-size: 14px; }
  .err-legend {
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
  }
  .err-pill {
    font-size: 11px;
    padding: 4px 8px;
  }
  .essay-body { font-size: 15px; line-height: 1.6; }
  .essay-comments { padding: 16px; }
  .comment-card { padding: 14px; }
  .comment-title { font-size: 15px; }
  .comment-body, .comment-rule { font-size: 13.5px; }
  .essay-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .total-score { font-size: 32px; }
  .essay-card .essay-comments > div[style*="textAlign: 'center'"] {
    font-size: 12px;
  }
}

/* =============================================================
   IOS SECTION — mobile single-phone carousel
   ============================================================= */

/* Desktop default: screen label is hidden (used only on mobile) */
.ios-screen-label { display: none; }

@media (max-width: 768px) {
  .ios-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ios-copy { text-align: left; }
  .ios-copy .feature-list { gap: 16px; }
  .ios-copy > div[style*="display: 'flex'"] {
    flex-direction: column;
    gap: 12px;
  }
  .ios-copy .btn-appstore,
  .ios-copy .btn { width: 100%; justify-content: center; }
}

/* =============================================================
   COMPARISON — mobile card-per-row layout
   ============================================================= */

/* Desktop default: ::before label is suppressed (only used on mobile) */
.cmp-v3-c::before { content: none; }

@media (max-width: 768px) {
  .cmp-v3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }
  /* Hide the table header row on mobile — labels go inside each card */
  .cmp-v3-head { display: none; }

  .cmp-v3-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: var(--ph-white);
    border: 1px solid rgba(48,56,116,0.10);
    border-radius: 16px;
    padding: 16px;
  }
  .cmp-v3-lbl {
    grid-column: 1;
    padding: 0 0 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ph-navy-900);
  }
  /* Each value cell becomes a mini-row: product name (::before) + value */
  .cmp-v3-c {
    grid-column: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: var(--ph-surface-subtle, #F5F6FA);
  }
  .cmp-v3-c::before {
    content: attr(data-product);
    font-size: 14px;
    color: var(--ph-gray-500);
    font-weight: 500;
  }
  /* Highlight the PhotoRus row — keeps source order:
     row label, then PhotoRus, ChatGPT, Репетитор */
  .cmp-v3-c--us {
    background: rgba(84,104,255,0.06);
    border: 1px solid rgba(84,104,255,0.20);
  }
  .cmp-v3-c--us::before {
    color: var(--ph-primary);
    font-weight: 700;
  }
  .cmp-v3-val { font-size: 14px; }
  .cmp-v3-val.is-text { font-size: 14px; }
}

/* =============================================================
   EXPERTS — mobile stack
   ============================================================= */
@media (max-width: 768px) {
  .experts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .expert-card { padding: 24px; }
  .expert-quote { font-size: 16px; line-height: 1.5; }
}

/* =============================================================
   PRICING — mobile horizontal scroll + indicator dots
   ============================================================= */
.pricing-dots {
  display: none; /* desktop: hidden */
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.pricing-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(48,56,116,0.20);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pricing-dot.is-active {
  background: var(--ph-primary);
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .pricing-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    gap: 16px;
    padding: 8px 24px 16px;
    margin: 0 -24px !important;
    max-width: none !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .price-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    margin: 0;
  }
  .pricing-dots { display: flex; }

  .pricing-tabs { width: 100%; }
}

/* =============================================================
   FAQ — mobile
   ============================================================= */
@media (max-width: 768px) {
  .faq-q {
    padding: 20px 16px;
    font-size: 15px;
  }
  .faq-a-inner { padding: 0 16px 20px; }
  .faq-a p { font-size: 14px; line-height: 1.55; }
}

/* =============================================================
   SCHOOLS — mobile form stack
   ============================================================= */
@media (max-width: 768px) {
  .schools-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .schools-section .section-title { font-size: 30px; }
  .schools-benefits li { font-size: 15px; }
  .school-form { padding: 24px; }
  .school-form h3 { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field input,
  .form-field textarea { font-size: 16px; /* prevent iOS zoom on focus */ }
}

/* =============================================================
   FOOTER — responsive grid
   ============================================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .footer-legal { text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   ROUND-2 FIXES — overflow, mobile-menu logo, pricing tabs,
   iOS arrows beside the screen
   ============================================================= */

/* Prevent stray horizontal scroll caused by absolute decorative
   elements or accidentally-wide rows on narrow viewports. */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  /* Hero — kill the desktop nowrap so the H1 wraps on narrow widths */
  .hero h1 { white-space: normal !important; }

  /* Mobile menu logo text on the dark navy panel must be white */
  .mobile-menu .logo { color: #fff; }

  /* Pricing tabs — distribute "Подписка" and "Пакеты проверок" so
     the second one sits on the right rather than clustered left */
  .pricing-tabs {
    display: flex;
    width: 100%;
  }
  .pricing-tab {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
  }

}

/* =============================================================
   ROUND-3 FIXES — hero right padding, vertical roadmap,
   iOS arrows centering, dots centering
   ============================================================= */
@media (max-width: 768px) {
  /* Hero — desktop adds padding-left: 80px on .hero-inner--left
     to align with the header logo column. On mobile we want it to
     match .container's padding so left and right gutters are equal. */
  .hero-inner.hero-inner--left {
    /* Shorthand to also clear desktop .hero-inner--left { padding-right: 0 }
       (line ~2470, outside any media query) which was leaving zero right gutter. */
    padding: 0 40px;
    max-width: 100%;
  }

  /* HowItWorks roadmap — desktop is `display: grid; grid-template-columns:
     repeat(3, 1fr)`, which on a narrow viewport squeezes 3 cards into a
     row that's clipped by html overflow-x: hidden. Flip to flex column. */
  .roadmap-track {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none;
    gap: 40px;
    align-items: stretch;
    padding-left: 36px;
    position: relative;
  }

}

/* =============================================================
   ROUND-4 FIXES — hero 480px padding, iOS reverted to desktop
   3D fan, roadmap proper vertical grid with line through dots
   ============================================================= */

@media (max-width: 480px) {
  /* At 480px viewport our .container shrinks to 24px each side;
     match it on .hero-inner-left so the gutters stay symmetric. */
  .hero-inner.hero-inner--left { padding: 0 24px; }
}

@media (max-width: 768px) {
  /* HowItWorks roadmap — per-node grid: dot in left column, the
     step's number/title/subtitle/visual stack in the right column.
     Continuous vertical line passes through dot centres. */
  .roadmap-track {
    align-items: stretch;
    padding-left: 0;
    gap: 32px;
  }
  /* Hide the desktop's single continuous line on mobile — it can't
     stop at the last dot when the last node's content extends below
     it. Use per-node ::before / ::after segments instead. */
  .roadmap-line { display: none; }

  .roadmap-node {
    display: grid;
    grid-template-columns: 76px 1fr;
    grid-template-areas:
      "dot  num"
      ".    title"
      ".    sub"
      ".    visual";
    column-gap: 20px;
    row-gap: 4px;
    width: 100%;
    flex-direction: unset;
    align-items: start;
    padding: 0;
    text-align: left;
  }
  /* Per-node rail segment: ::before is the gray base line that runs
     from this node's dot center down to the next node's dot center.
     ::after is the coloured fill which animates in via height once
     this node becomes is-active. The last node has no segment because
     there is no next dot to connect to. */
  .roadmap-node:not(:last-child)::before,
  .roadmap-node:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 38px;
    bottom: -70px;
    width: 6px;
    border-radius: 999px;
  }
  .roadmap-node:not(:last-child)::before {
    background: rgba(48,56,116,0.10);
    z-index: 0;
  }
  .roadmap-node:not(:last-child)::after {
    background: linear-gradient(180deg, var(--ph-primary), var(--ph-violet-accent, #7570FF));
    z-index: 1;
    bottom: auto;
    height: 0;
    transition: height 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .roadmap-node.is-active:not(:last-child)::after {
    /* node-height + 32 (gap) so the fill reaches the next dot's center */
    height: calc(100% + 32px);
  }
  .roadmap-node > * { text-align: left; }
  .roadmap-dot {
    grid-area: dot;
    width: 76px;
    height: 76px;
    margin: 0;
    flex: none;
  }
  .roadmap-step-num { grid-area: num; align-self: end; margin-bottom: 0; }
  .roadmap-step-title {
    grid-area: title;
    white-space: normal;
    font-size: 22px;
    margin: 0 0 6px;
  }
  .roadmap-step-sub {
    grid-area: sub;
    max-width: none;
    margin: 0 0 12px;
  }
  .roadmap-visual {
    grid-area: visual;
    width: 100%;
    margin-top: 8px;
    transform: none;
  }
}
