/* Global Generation — Consultation onboarding (post-payment)
   Палитра + токены 1:1 с sat.global-generations-edu.com
*/

:root {
  /* Backgrounds */
  --c-bg: #f8fafc;
  --c-bg-card: #ffffff;
  --c-bg-muted: #f1f5f9;
  --c-border: #e2e8f0;
  --c-border-strong: #cbd5e1;

  /* Text */
  --c-text: #0f172a;
  --c-text-soft: #1e293b;
  --c-text-muted: #64748b;

  /* Brand: GG primary navy #13445d */
  --c-primary: #13445d;
  --c-primary-2: #1a5a7a;
  --c-primary-hover: #0f3a51;
  --c-primary-soft: rgba(19, 68, 93, 0.10);
  --c-primary-tint: rgba(19, 68, 93, 0.06);

  --c-success: #16a34a;
  --c-success-soft: rgba(22, 163, 74, 0.10);
  --c-amber: #fbbf24;
  --c-danger: #dc2626;

  /* Shadows / radius — SAT тонкие тени */
  --shadow-soft: 0 10px 26px rgba(2, 6, 23, 0.09);
  --shadow-lift: 0 16px 40px rgba(2, 6, 23, 0.12);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --radius: 1rem;          /* 16px */
  --radius-sm: 0.625rem;   /* 10px */
  --radius-xs: 0.375rem;   /* 6px */
  --radius-full: 9999px;

  --gradient-primary: linear-gradient(135deg, #13445d 0%, #1a5a7a 100%);
  --gradient-hero: radial-gradient(
    ellipse at center top,
    rgba(19, 68, 93, 0.14) 0%,
    rgba(26, 90, 122, 0.08) 45%,
    transparent 70%
  );

  --maxw: 1200px;          /* немного шире, чем SAT-portal стандарт */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { color-scheme: light; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.08px;
  color: var(--c-text-soft);
  background: var(--c-bg);
  font-feature-settings: 'rlig' 1, 'calt' 1;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

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

h1, h2, h3, h4 {
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 12px 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 12px 0; color: var(--c-text-muted); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .l1 {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.logo .l2 {
  font-size: 11px;
  color: var(--c-text-muted);
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a:not(.btn) {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  color: var(--c-text-muted);
  font-size: 14px;
  border: 1px solid transparent;
  text-decoration: none;
}
.nav-links a:not(.btn):hover {
  background: var(--c-bg-muted);
  color: var(--c-text);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(19, 68, 93, 0.28);
}
.btn-primary:hover {
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #0f3a51 0%, #155270 100%);
}
.btn-secondary {
  background: var(--c-bg-card);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-secondary:hover {
  background: var(--c-bg-muted);
  color: var(--c-text);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg-muted); color: var(--c-text); text-decoration: none; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.arrow { display: inline-block; }

/* ============ Pill / badge ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--c-text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.pill.success {
  background: var(--c-success-soft);
  border-color: rgba(22, 163, 74, 0.25);
  color: #15803d;
}
.pill.primary {
  background: var(--c-primary-soft);
  border-color: rgba(19, 68, 93, 0.20);
  color: var(--c-primary);
}

.check { font-weight: 800; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero-inner {
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Split hero (text-left, image-right) */
.hero-split { padding: 48px 0 40px; }
.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { text-align: left; }
.hero-text h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
.hero-text .lead { text-align: left; margin-left: 0; margin-right: 0; max-width: none; font-size: 16px; line-height: 1.55; }
.cta-row-left { justify-content: flex-start !important; margin-top: 22px !important; }

.hero h1 {
  margin: 18px 0 20px;
}
.hero h1 .gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--c-text-muted);
  max-width: 640px;
  margin: 0 auto 30px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

/* ============ Animated Zoom widget (hero right) ============ */
.zoom-widget {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  font-family: inherit;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  width: 100%;
}
.zw-titlebar {
  background: var(--c-bg-muted);
  color: var(--c-text-soft);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--c-border);
}
.zw-traf { display: inline-flex; gap: 5px; }
.zw-traf i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.zw-traf i:nth-child(1) { background: #ef4444; }
.zw-traf i:nth-child(2) { background: #f59e0b; }
.zw-traf i:nth-child(3) { background: #22c55e; }
.zw-title { flex: 1; color: var(--c-text-muted); font-weight: 500; letter-spacing: 0.02em; }
.zw-time {
  background: var(--c-bg-card);
  color: var(--c-text);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--c-border);
}
.zw-time::before { content: '●'; color: #ef4444; animation: zw-rec-pulse 1.5s ease-in-out infinite; font-size: 8px; }
@keyframes zw-rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.zw-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  min-height: 0;
  background: linear-gradient(135deg, #f0faff 0%, #ffffff 100%);
}

.zw-share {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.zw-share-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.zw-share-tag { background: var(--c-primary-soft); color: var(--c-primary); padding: 2px 6px; border-radius: 4px; }
.zw-slides { position: relative; flex: 1; min-height: 0; }
.zw-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex; flex-direction: column;
}
.zw-slide.active { opacity: 1; }
.zw-slide h4 { font-size: 13px; margin: 0 0 10px; color: var(--c-text); font-weight: 700; }
.zw-bars { display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: center; }
.zw-bar-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; font-size: 11px; color: var(--c-text-muted); }
.zw-prog { background: var(--c-bg-muted); height: 8px; border-radius: 4px; overflow: hidden; }
.zw-prog i { display: block; height: 100%; border-radius: 4px; animation: zw-bar-grow 1.2s ease-out; }
@keyframes zw-bar-grow { from { width: 0 !important; } }

.zw-vbars { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; flex: 1; padding: 6px 0 0; }
.zw-vbar { flex: 1; background: linear-gradient(to top, #9ec5e8, #6b9bbf); border-radius: 6px 6px 0 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4px; min-height: 30px; animation: zw-vbar-grow 1s ease-out; transform-origin: bottom; }
.zw-vbar.current { background: linear-gradient(to top, var(--c-primary), #1a5a7a); }
@keyframes zw-vbar-grow { from { transform: scaleY(0); } }
.zw-vbar span { color: white; font-size: 10px; font-weight: 700; }
.zw-vbar label { position: absolute; bottom: -16px; color: var(--c-text-muted); font-size: 9px; white-space: nowrap; }

.zw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: center; }
.zw-list li { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--c-text-soft); }
.zw-list li i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; background: var(--c-primary); color: white; font-style: normal; font-weight: 700; font-size: 10px; flex-shrink: 0; }
.zw-list li i.empty { background: transparent; border: 1.5px solid var(--c-border); }

.zw-dots { display: flex; gap: 5px; justify-content: center; margin-top: 6px; }
.zw-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c-border); display: inline-block; transition: background 0.3s ease; }
.zw-dots i.active { background: var(--c-primary); width: 16px; border-radius: 999px; }

.zw-tile {
  background: linear-gradient(135deg, #e0f0fa 0%, #c8e0f4 100%);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  position: relative;
  padding: 24px 16px;
  border: 2px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.zw-tile.speaking {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(19, 68, 93, 0.18);
}
.zw-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  color: white;
  box-shadow: 0 6px 16px rgba(19,68,93,0.18);
}
.zw-av-mentor { background: linear-gradient(135deg, #13445d, #1a5a7a); }
.zw-av-student { background: linear-gradient(135deg, #6b9bbf, #9ec5e8); color: #0c2c40; }
.zw-tile-label { font-size: 13px; color: var(--c-text); font-weight: 600; }
.zw-wave { display: flex; gap: 2px; align-items: flex-end; height: 10px; opacity: 0; transition: opacity 0.3s; }
.zw-tile.speaking .zw-wave { opacity: 1; }
.zw-wave i {
  width: 2px; background: var(--c-primary); border-radius: 2px;
  height: 30%;
  animation: zw-wave 0.7s ease-in-out infinite alternate;
}
.zw-wave i:nth-child(2) { animation-delay: 0.1s; height: 70%; }
.zw-wave i:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.zw-wave i:nth-child(4) { animation-delay: 0.3s; height: 60%; }
.zw-wave i:nth-child(5) { animation-delay: 0.4s; height: 40%; }
@keyframes zw-wave { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }

.zw-bar {
  background: var(--c-bg-muted);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px;
}
.zw-ctrl {
  width: 34px; height: 30px;
  background: var(--c-bg-card);
  color: var(--c-text-soft);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  border: 1px solid var(--c-border);
}
.zw-ctrl.on { background: var(--c-primary); border-color: var(--c-primary); color: white; width: auto; padding: 0 12px; font-weight: 600; font-size: 11px; }
.zw-ctrl.end { background: #dc2626; border-color: #dc2626; color: white; font-weight: 700; }

@media (max-width: 880px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-text { text-align: center; }
  .hero-text .lead { text-align: center; }
  .cta-row-left { justify-content: center !important; }
  .zoom-widget { aspect-ratio: 16 / 10; max-height: 340px; }
}

/* Mobile-only: kill expensive zoom-widget animations to keep scroll buttery */
@media (max-width: 640px) {
  .zw-time::before { animation: none; }
  .zw-wave i { animation: none; transform: scaleY(0.6); }
  .zw-tile { transition: none; }
  .zw-tile.speaking { box-shadow: 0 0 0 2px rgba(19,68,93,0.15); }
}
@media (prefers-reduced-motion: reduce) {
  .zw-time::before, .zw-wave i, .zw-tile { animation: none !important; transition: none !important; }
}

.price-card {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding: 14px 24px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.price-card .label {
  font-size: 12px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.price-card .amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-card .alt {
  font-size: 13px;
  color: var(--c-text-muted);
  border-left: 1px solid var(--c-border);
  padding-left: 20px;
}
.dolyami-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(251, 191, 36, 0.16);
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ============ Sections ============ */
section { padding: 72px 0; position: relative; }
section.alt { background: var(--c-bg-muted); }
section h2 { margin-bottom: 14px; text-align: center; }
section .subhead {
  font-size: 17px;
  color: var(--c-text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ============ Card grid (what's included) ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--c-border-strong);
}
.feature-card .card-img {
  margin: -24px -24px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 8px;
}
.feature-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.feature-card .icon-num {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.feature-card h3 {
  color: var(--c-text);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.55;
  margin: 0;
}

.disclaimer {
  text-align: center;
  margin-top: 36px;
  font-size: 13px;
  color: var(--c-text-muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============ Policy slider ============ */
.policy-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.policy-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong) transparent;
  mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.policy-track::-webkit-scrollbar { height: 6px; }
.policy-track::-webkit-scrollbar-track { background: transparent; }
.policy-track::-webkit-scrollbar-thumb { background: var(--c-border-strong); border-radius: 999px; }

.policy-card {
  flex: 0 0 460px;
  scroll-snap-align: start;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 180px;
}
.policy-card .policy-img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px;
}
.policy-card .policy-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.policy-card .policy-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--c-text);
}
.policy-card .policy-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-text-muted);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  font-family: inherit;
  line-height: 1;
  padding-bottom: 4px;
  z-index: 2;
}
.slider-nav:hover { background: var(--c-bg-muted); }
.slider-nav.prev { left: -8px; }
.slider-nav.next { right: -8px; }

@media (max-width: 540px) {
  .policy-card { flex-basis: 88vw; grid-template-columns: 100px 1fr; gap: 14px; }
  .policy-card .policy-img { width: 100px; height: 100px; }
  .slider-nav { display: none; }
}

/* ============ Steps timeline ============ */
.steps {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.step-row .num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--c-bg-muted);
  color: var(--c-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid var(--c-border);
}
.step-row .body h3 {
  font-size: 16px;
  color: var(--c-text);
  margin-bottom: 4px;
}
.step-row .body p { margin: 0; font-size: 14px; color: var(--c-text-muted); }
.step-row.now {
  background: rgba(19, 68, 93, 0.04);
  border-color: rgba(19, 68, 93, 0.25);
}
.step-row.now .num {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}
.step-row.now .body h3 { color: var(--c-primary); }

/* ============ CTA banner ============ */
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #13445d 100%);
  color: white;
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  margin: 0 auto;
  max-width: 720px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: white; margin-bottom: 12px; position: relative; }
.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-banner .btn-primary {
  background: white;
  color: var(--c-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}
.cta-banner .btn-primary:hover { color: var(--c-primary-hover); }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 36px 0;
  color: var(--c-text-muted);
  font-size: 13px;
  background: var(--c-bg-card);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ============ Form (apply.html) ============ */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.form-intro {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.form-intro strong { color: var(--c-text); }

.progress-wrap {
  position: sticky;
  top: 54px;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 0 6px;
  margin: 0 0 4px;
  z-index: 40;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--c-text-muted);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.progress-bar {
  height: 4px;
  background: var(--c-bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  border-radius: var(--radius-full);
}
.step { display: none; }
.step.active { display: block; }
.step h2 { margin: 0 0 4px; text-align: left; font-size: 22px; }
.step .step-sub { color: var(--c-text-muted); margin-bottom: 16px; font-size: 13px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text);
  margin-bottom: 8px;
}
.field label .opt {
  color: var(--c-text-muted);
  font-weight: 400;
  font-size: 12px;
  margin-left: 6px;
}
.field label .req { color: var(--c-danger); margin-left: 4px; }
.field .hint {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--c-text);
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(19, 68, 93, 0.12);
}
.field textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
.field.error input,
.field.error textarea,
.field.error select { border-color: var(--c-danger); }
.field .err-msg {
  color: var(--c-danger);
  font-size: 12px;
  margin-top: 6px;
  display: none;
}
.field.error .err-msg { display: block; }

.radio-group, .checkbox-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill, .check-pill { position: relative; cursor: pointer; }
.radio-pill input, .check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span, .check-pill span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  background: var(--c-bg-card);
  color: var(--c-text-soft);
  font-weight: 500;
}
.radio-pill input:checked + span,
.check-pill input:checked + span {
  background: var(--c-primary);
  color: white;
  border-color: var(--c-primary);
}
.radio-pill:hover span, .check-pill:hover span { border-color: var(--c-primary); }

.nav-buttons {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}
.btn-back {
  padding: 12px 18px;
  font-size: 14px;
}
.btn-next-main {
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  width: 100%;
}
.nav-buttons:has(.btn-back[style*="display: none"]),
.nav-buttons:has(.btn-back[style*="display:none"]) {
  grid-template-columns: 1fr;
}
.draft-saved { display: none; }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Source cards (channel pickers + IG/TG/Search/Other) */
.source-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  gap: 6px;
}
.source-card {
  position: relative;
  background: var(--c-bg-card);
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  padding: 8px 6px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  min-height: 70px;
}
.source-card input { position: absolute; opacity: 0; pointer-events: none; }
.source-card img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; margin-bottom: 4px;
}
.source-card .src-emoji {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-bg-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; margin-bottom: 4px;
}
.source-card .src-name { font-weight: 600; font-size: 11px; color: var(--c-text); line-height: 1.15; }
.source-card .src-meta { font-size: 9.5px; color: var(--c-text-muted); margin-top: 1px; line-height: 1.2; }
.source-card:hover { border-color: var(--c-border-strong); }
.source-card input:checked ~ * { /* no-op for flex parent */ }
.source-card:has(input:checked) {
  border-color: var(--c-primary);
  background: var(--c-primary-tint);
  box-shadow: 0 0 0 3px rgba(19,68,93,0.10);
}

/* Channel header above search */
.yt-channel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: white;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.yt-channel-header img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); flex-shrink: 0; }
.yt-channel-header .yt-channel-name { font-weight: 700; font-size: 13px; color: white; }
.yt-channel-header .yt-channel-meta { font-size: 11px; color: rgba(255,255,255,0.85); }

/* YT video grid (inline, scrollable) */
.yt-results {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  display: none;
}
.yt-results.open { display: block; }
.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.yt-result {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-bg-muted);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.yt-result:hover { border-color: var(--c-primary); }
.yt-result img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.yt-result .yt-r-title {
  font-size: 10px; color: var(--c-text); line-height: 1.3;
  padding: 4px 6px 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-empty { padding: 24px; color: var(--c-text-muted); font-size: 13px; text-align: center; grid-column: 1 / -1; }
.yt-loading { padding: 24px; color: var(--c-text-muted); font-size: 13px; text-align: center; grid-column: 1 / -1; }

@media (max-width: 540px) { .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.yt-selected {
  background: var(--c-primary-soft);
  border: 1px solid rgba(19,68,93,0.20);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
}
.yt-selected .yt-clear { margin-left: auto; cursor: pointer; color: var(--c-text-muted); background: none; border: none; font-size: 18px; padding: 0 4px; }

/* ============ Thanks ============ */
.thanks-wrap {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}
.thanks-icon {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 28px;
  box-shadow: 0 12px 32px rgba(19, 68, 93, 0.35);
}
.thanks-wrap h1 { font-size: 36px; margin-bottom: 14px; }
.thanks-wrap > p { font-size: 16px; color: var(--c-text-muted); }
.thanks-timeline {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  text-align: left;
  box-shadow: var(--shadow-soft);
}
.thanks-timeline h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: 18px;
  font-weight: 700;
}
.thanks-timeline ul { padding: 0; margin: 0; list-style: none; }
.thanks-timeline li {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 15px;
  color: var(--c-text-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.thanks-timeline li:last-child { border-bottom: none; }
.thanks-timeline li strong { color: var(--c-text); }
.thanks-timeline li .emoji { font-size: 18px; flex-shrink: 0; line-height: 1.4; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 28px; }
  section { padding: 44px 0; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 0; }
  .price-card { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
  .price-card .alt { border-left: none; border-top: 1px solid var(--c-border); padding-left: 0; padding-top: 12px; }
  .cta-banner { padding: 32px 20px; }
  h1 { font-size: 28px !important; }
  h2 { font-size: 22px !important; }
  section .subhead { font-size: 15px; margin-bottom: 28px; }
  .feature-card { padding: 18px; }
  .feature-card h3 { font-size: 15px; }
  .feature-card p { font-size: 13px; }
  .card-grid { gap: 12px; }
  .step-row { padding: 16px 18px; gap: 14px; }
  .step-row .body h3 { font-size: 15px; }
  .step-row .body p { font-size: 13px; }
  .site-header .container { padding-top: 8px; padding-bottom: 8px; }
  .logo .l1 { font-size: 13px; }
  .logo .l2 { font-size: 10px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; text-align: left; font-size: 12px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
  .form-wrap { padding: 0 16px 60px; }
  .source-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .source-card { min-height: 80px; padding: 10px 8px; }
  .source-card img, .source-card .src-emoji { width: 32px; height: 32px; }
  .source-card .src-name { font-size: 12px; }
  .source-card .src-meta { font-size: 10px; }
  .step h2 { font-size: 20px !important; }
  .yt-channel-header { padding: 10px 14px; }
  .yt-channel-header img { width: 36px; height: 36px; }
  .yt-channel-header .yt-channel-name { font-size: 14px; }
  .step-row.now { padding: 18px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .source-cards { grid-template-columns: repeat(2, 1fr); }
  .cta-row, .cta-row-left { width: 100%; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .nav-buttons { grid-template-columns: 1fr !important; gap: 10px; }
  .btn-back, .btn-next-main { width: 100%; justify-content: center; }
  section { padding: 36px 0; }
  .hero { padding: 24px 0 16px; }
  h1 { font-size: 24px !important; line-height: 1.18; }
  .step h2 { font-size: 18px !important; }
  .step .step-sub { font-size: 13px; margin-bottom: 14px; }
  .site-header .container { padding-top: 8px; padding-bottom: 8px; }
  .site-header .nav-links a.btn { display: none; }
  .form-wrap { padding: 0 14px 60px; }
  .feature-card .card-img img { width: 92%; height: 92%; }
  .feature-card .card-img { aspect-ratio: 5 / 3; padding: 4px; }
  .step-row { padding: 14px 16px; }
  .step-row .num { width: 28px; height: 28px; font-size: 13px; }
  .yt-channel-header .yt-channel-meta { font-size: 10px; }
  .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .yt-result .yt-r-title { font-size: 11px; }
  .zoom-widget { aspect-ratio: 4 / 3; max-height: 300px; }
  .zw-stage { padding: 8px; gap: 8px; }
  .zw-avatar { width: 52px; height: 52px; font-size: 20px; }
  .zw-tile-label { font-size: 11px; }
}
