/* ============================================
   YFA International — Landing Page Styles v3
   Pure CSS3 — No frameworks, no libraries
   ============================================ */

/* ---- Tokens ---- */
:root {
  --brand-teal: #0D7377;
  --dark-teal: #084D50;
  --light-teal: #E6F3F3;
  --cream: #FDFBF6;
  --white: #FFFFFF;
  --dark: #1A1A2E;
  --medium: #5A5A6E;
  --light: #A0A0B0;
  --border: #E5E5E8;
  --gold: #F0A030;
  --error: #D93025;
  --success: #188038;
  --whatsapp: #25D366;

  --page-x: clamp(16px, 4vw, 32px);
  --section-y: clamp(48px, 8vw, 88px);
  --card-pad: clamp(20px, 4vw, 30px);
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-focus: 0 0 0 3px rgba(13,115,119,0.25);

  --header-height: 76px;
  --dock-height: 76px;
  --content-max: 1140px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Author display rules (e.g. inline-flex buttons) otherwise override the
   UA [hidden] rule, leaving JS-hidden nav buttons visible. Force it. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ---- Shared section shells ---- */
.section-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-x);
}
.section-container--center { text-align: center; }
.section-heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--dark);
  text-align: center;
  margin-bottom: var(--gap-xl);
}
.section-heading--left { text-align: left; margin-bottom: 6px; }
.section-sub {
  font-size: 14px;
  color: var(--medium);
  max-width: 460px;
}
.section-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: var(--gap-sm);
}

/* Shared slider header + arrows */
.slider-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}
.slider-arrows { display: flex; gap: 10px; flex: 0 0 auto; }
/* Resting state: teal outline pill. Hover: filled teal pill. */
.slider-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--brand-teal);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
/* @media (hover:hover) — on touch, :hover sticks after a tap and would
   leave the arrow stuck in its filled state. */
@media (hover: hover) {
  .slider-arrow:hover:not(:disabled) {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: var(--white);
  }
}
.slider-arrow:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.slider-arrow:disabled { opacity: 0.3; pointer-events: none; }

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-teal);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 10000;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ============================================
   FLOATING HEADER — no background
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  pointer-events: none; /* only children are interactive — page scrolls freely under the transparent bar */
}
.header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo, .header__cta { pointer-events: auto; }
.header__logo { display: flex; align-items: center; }
.logo-svg { display: block; height: 44px; width: auto; }
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  background: var(--brand-teal);
  color: var(--white);
  padding: 10px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.header__cta:hover { background: var(--dark-teal); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.header__cta:active { transform: translateY(0); }
.header__cta:focus-visible { box-shadow: var(--shadow-focus); outline: none; }
.header__cta-text { display: none; } /* icon-only on mobile */

/* ============================================
   HERO + FORM GRID
   ============================================ */
.hero {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: var(--section-y);
}
.hero__grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-x);
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-lg);
}

/* Trust row: avatars + label */
.hero__trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__avatars { display: flex; align-items: center; }
.hero__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  object-fit: cover;
  margin-left: -10px;
  position: relative;
}
.hero__avatar:first-child { margin-left: 0; z-index: 1; }
.hero__avatar:nth-child(2) { z-index: 2; }
.hero__avatar:nth-child(3) { z-index: 3; }
.hero__avatar--plus {
  z-index: 4;
  background: var(--brand-teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__trust-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--medium);
  line-height: 1.4;
}
.hero__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.hero__heading-line { display: block; }
.hero__heading-accent {
  display: block;
  background: linear-gradient(135deg, var(--brand-teal), var(--dark-teal));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientDrift 3s ease-in-out infinite alternate;
}
@keyframes gradientDrift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.hero__subtext {
  font-size: clamp(14px, 2.5vw, 17px);
  color: var(--medium);
  max-width: 440px;
}
.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  box-shadow: var(--shadow-sm);
}
.hero__rating-score { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; color: var(--dark); }
.hero__rating-text { font-size: 13px; line-height: 1.5; color: var(--medium); }
.hero__scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-teal);
  margin-top: 4px;
}
.hero__scroll-cta svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* Hero entrance */
.hero__trust, .hero__heading, .hero__subtext, .hero__rating, .hero__scroll-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
body.is-loaded .hero__trust { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
body.is-loaded .hero__heading { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
body.is-loaded .hero__subtext { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
body.is-loaded .hero__rating { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
body.is-loaded .hero__scroll-cta { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }

/* ============================================
   ASSESSMENT FORM (af-*)
   ============================================ */
/* Entrance is pure CSS (animation-fill-mode both) so the form is ALWAYS
   visible and clickable even if script.js is slow, cached-stale, or errors.
   Never gate form interactivity on a JS-added class. */
.assessment {
  animation: afRise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
}
@keyframes afRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.assessment__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--card-pad);
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

/* Stepper */
.af-progress { margin-bottom: var(--gap-lg); }
.af-steps { display: flex; align-items: center; justify-content: center; }
.af-dot {
  width: 32px; height: 32px; flex: 0 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--light-teal);
  color: var(--brand-teal);
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.af-dot.is-done { background: var(--brand-teal); color: var(--white); }
.af-dot.is-current { background: var(--brand-teal); color: var(--white); box-shadow: 0 0 0 4px rgba(13,115,119,0.15); }
.af-dot.is-done .af-dot-num { display: none; }
.af-dot.is-done::after { content: "\2713"; font-size: 14px; line-height: 1; }
.af-bar {
  flex: 1 1 auto; height: 3px; max-width: 44px;
  background: var(--light-teal);
  border-radius: var(--radius-full);
  transition: background 0.25s ease;
}
.af-bar.is-done { background: var(--brand-teal); }
.af-dot.is-hidden, .af-bar.is-hidden { display: none; }
.af-progress-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--medium);
  margin-top: 10px;
}

/* Steps container: min-height prevents card reflow (CLS) */
#afForm { position: relative; min-height: 340px; display: flex; flex-direction: column; }
.af-step { display: none; }
.af-step.is-active { display: block; animation: afFadeIn 0.3s ease; }
@keyframes afFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.af-pane { display: none; }
.af-pane.is-active { display: block; }

.af-q {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 3vw, 22px);
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 4px;
  outline: none;
}
.af-sub { font-size: 14px; color: var(--medium); margin-bottom: var(--gap-lg); }

/* Featured cards (Study Abroad + Spouse Visa) */
.af-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.af-card-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.af-card-opt:hover { border-color: var(--brand-teal); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.af-card-opt:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.af-card-opt.is-selected { border-color: var(--brand-teal); background: var(--light-teal); }
.af-card-ico {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: var(--radius-md);
  background: var(--light-teal);
  color: var(--brand-teal);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.af-card-opt.is-selected .af-card-ico { background: var(--brand-teal); color: var(--white); }
.af-card-ico svg { width: 100%; height: 100%; }
.af-card-txt { display: flex; flex-direction: column; min-width: 0; }
.af-card-txt strong {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.3;
}
.af-card-txt small { font-size: 12px; color: var(--medium); line-height: 1.4; }

/* Chips — flex-wrap, pills size to content */
.af-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.af-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-teal);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.af-chip:hover { border-color: var(--brand-teal); transform: translateY(-1px); }
.af-chip:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.af-chip.is-selected { background: var(--brand-teal); border-color: var(--brand-teal); color: var(--white); }
.af-flag {
  width: 20px; height: 20px; flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset;
}
.af-flag svg { width: 100%; height: 100%; display: block; }

/* Inputs */
.af-field { margin-bottom: var(--gap-md); }
.af-field--gap-top { margin-top: var(--gap-md); }
.af-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 6px;
}
.af-opt { font-weight: 400; color: var(--medium); }
.af-input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.4;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.af-input::placeholder { color: var(--light); }
.af-input:hover { border-color: var(--light); }
.af-input:focus { outline: none; border-color: var(--brand-teal); box-shadow: var(--shadow-focus); }
.af-input.is-invalid { border-color: var(--error); background: rgba(217,48,37,0.03); }
select.af-input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230D7377' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.af-textarea { resize: vertical; min-height: 74px; }
.af-phone-row { display: flex; gap: 8px; }
.af-cc { width: 112px; flex: 0 0 auto; padding: 12px 30px 12px 12px; font-size: 14px; }

/* Honeypot */
.af-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile */
.af-turnstile { margin-top: var(--gap-md); min-height: 66px; max-width: 100%; overflow: hidden; }
.af-turnstile iframe { max-width: 100% !important; }
.af-turnstile:empty { min-height: 0; }

/* Errors */
.af-error {
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
  margin: 7px 0 0;
}
.af-error:empty { margin: 0; }
.af-form-error { text-align: center; margin-top: 12px; }

/* Nav */
.af-nav { display: flex; gap: 12px; margin-top: auto; padding-top: var(--gap-lg); align-items: center; }
.af-nav:not(:has(.af-btn:not([hidden]))) { padding-top: 0; }

/* Final step on narrow screens: "Get Free Assessment" + "Back" are nowrap and
   flex:0 0 auto, so side by side they overflow the card (~327px of buttons in
   ~318px of space at 390px viewport). Stack them instead.
   column-reverse => DOM order (back, next, submit) renders as submit on TOP,
   back BELOW, without reordering the markup or hurting tab order. */
@media (max-width: 520px) {
  .af-nav.is-final {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .af-nav.is-final .af-btn {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}
.af-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 13px 26px;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.af-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--brand-teal);
  border: 1.5px solid var(--border);
  padding: 11px 18px;
  font-size: 14px;
}
.af-back[hidden] { display: none; }
.af-back:hover { border-color: var(--brand-teal); }
.af-next, .af-submit {
  background: var(--brand-teal);
  color: var(--white);
  margin-left: auto;
}
.af-next:hover:not(:disabled), .af-submit:hover:not(:disabled) { background: var(--dark-teal); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.af-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.af-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.af-btn .af-spin {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  animation: afSpin 1s linear infinite;
}
@keyframes afSpin { to { transform: rotate(360deg); } }

/* Consent */
.af-consent {
  font-size: 12px;
  color: var(--medium);
  line-height: 1.55;
  text-align: center;
  margin-top: 14px;
}
.af-consent a { color: var(--brand-teal); text-decoration: underline; text-underline-offset: 2px; }

/* Success */
.af-success { text-align: center; padding: 24px 0; }
.af-tick { width: 72px; height: 72px; margin: 0 auto 18px; }
.af-tick svg { width: 100%; height: 100%; }
.af-tick circle { stroke: var(--success); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: afDraw 0.6s ease forwards; }
.af-tick path { stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: afDraw 0.4s ease 0.5s forwards; }
@keyframes afDraw { to { stroke-dashoffset: 0; } }
.af-success .af-sub { max-width: 340px; margin-left: auto; margin-right: auto; }
/* ============================================
   DESTINATIONS — country slider
   ============================================ */
.destinations { background: var(--white); padding: var(--section-y) 0; }
.dslider__track {
  display: flex;
  gap: var(--gap-md);
  overflow-x: auto;
  /* `proximity`, not `mandatory`: with mandatory, a mostly-vertical swipe
     that starts on a card produces a tiny horizontal delta which the
     browser then force-snaps, so the slider visibly nudges while you're
     just scrolling the page. Proximity only snaps when you're genuinely
     near a snap point, so vertical scrolling is left alone. */
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--page-x);
  /* Keeps horizontal overscroll from chaining out to the page. */
  overscroll-behavior-x: contain;
  padding: 4px var(--page-x) 12px;
  margin: 0 calc(-1 * var(--page-x));
  scrollbar-width: none;
}
.dslider__track::-webkit-scrollbar { display: none; }
.dslider__track:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-md); }
.dslider__card {
  /* Mobile: one full-width card per view. Tablet/desktop override the
     basis to 300px below, so multiple cards show on larger screens. */
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
/* @media (hover:hover) — on touch devices :hover sticks after a tap, which
   made the card visibly lift/shift when swiping the slider. */
@media (hover: hover) {
  .dslider__card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(13,115,119,0.3);
  }
}
.dslider__flag {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset;
  margin-bottom: var(--gap-md);
  flex: 0 0 auto;
}
.dslider__flag svg { width: 100%; height: 100%; display: block; }
.dslider__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 4px;
}
.dslider__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--medium);
  margin-bottom: var(--gap-md);
}
.dslider__label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin: auto 0 var(--gap-sm);
}
.dslider__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dslider__chip {
  display: inline-block;
  background: var(--light-teal);
  color: var(--brand-teal);
  border-radius: var(--radius-full);
  padding: 5px 11px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

/* ============================================
   TESTIMONIALS — expanding accordion (3:4 active)
   ============================================
   Collapsed slides are narrow tabs with a rotated name; the active slide
   expands to a 3:4 card (width = height x 0.75, set in JS). The <video> is
   only created on click, so nothing media-heavy loads up front. */
.testimonials { background: var(--cream); padding: var(--section-y) 0; }

/* Head sits directly above the slider and shares its exact width (the
   .tslider__stage wrapper), so heading-left / arrows-right line up with
   the card edges instead of the full page container. */
.tslider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
}
.tslider__head .section-heading { margin-bottom: 0; }

.tslider { position: relative; width: 100%; max-width: 100%; }
.tslider__track {
  display: flex;
  gap: var(--gap-md);
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x proximity;   /* see .dslider__track note above */
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.tslider__track::-webkit-scrollbar { display: none; }

/* MOBILE = plain carousel: one full 3:4 card per view, no accordion.
   The tab/expand behaviour is added back at >=768px only. */
.tslide {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--dark);
  outline: none;
}
.tslide:focus-visible { box-shadow: var(--shadow-focus); }

.tslide__media { position: absolute; inset: 0; }
.tslide__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tslide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.88) 0%, rgba(26,26,46,0.18) 45%, rgba(26,26,46,0.38) 100%);
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

/* Rotated tab label — desktop accordion only */
.tslide__tab { display: none; }

/* Info card — always visible on mobile (one card per view) */
.tslide__info {
  display: flex;
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}
@keyframes tsRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.tslide__quote {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dark);
}
.tslide__who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tslide__name { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; color: var(--dark); }
.tslide__meta { font-size: 12.5px; color: var(--medium); }

.tslide__watch {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brand-teal);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px 9px 9px;
  border-radius: var(--radius-full);
  transition: background 0.2s ease, transform 0.15s ease;
}
.tslide__watch:hover { background: var(--dark-teal); transform: translateY(-1px); }
.tslide__watch:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.tslide__play {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tslide__play svg { width: 10px; height: 10px; fill: var(--white); margin-left: 1px; }

/* Playing state — video fills the card, poster/scrim/info hidden */
.tslide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.tslide.is-playing .tslide__poster,
.tslide.is-playing .tslide__scrim,
.tslide.is-playing .tslide__info,
.tslide.is-playing .tslide__tab { display: none; }

.tslide__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(26,26,46,0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.tslide__close:hover { background: rgba(26,26,46,0.85); }
.tslide__close:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* ============================================
   BENTO (Radical Honesty) — deterministic grid
   ============================================ */
.honesty { background: var(--white); padding: var(--section-y) 0; }
.bento {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, minmax(130px, 22vw));
  grid-template-areas:
    "a b"
    "a c"
    "d e"
    "d f";
}
.bento__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.bento__item:hover { box-shadow: var(--shadow-md); transform: scale(1.01); }
.bento__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bento__item--a { grid-area: a; }
.bento__item--b { grid-area: b; }
.bento__item--c { grid-area: c; }
.bento__item--d { grid-area: d; }
.bento__item--e { grid-area: e; }
.bento__item--f { grid-area: f; }

/* ============================================
   WHY YFA
   ============================================ */
.why { background: var(--cream); padding: var(--section-y) 0; }
.why__cards { display: flex; flex-direction: column; gap: var(--gap-lg); }
.why__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.why__card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.why__icon {
  width: 56px; height: 56px;
  background: var(--light-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: background 0.25s ease;
}
.why__card:hover .why__icon { background: #d4eaea; }
.why__card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--dark);
  margin: var(--gap-md) 0 var(--gap-sm);
}
.why__card-desc { font-size: 15px; color: var(--medium); }

/* ============================================
   WEBSITE CTA
   ============================================ */
.cta { background: var(--white); padding: var(--section-y) 0; }
/* Accurate, static teal ramp.
   Previously this used `background-size: 200% 200%` + an animated
   background-position: at 2x scale only a slice of the 135deg ramp was ever
   visible, so the card read as flat teal rather than teal -> dark teal, and
   the 8s drift kept shifting the brand colour. Animating background-position
   also repaints every frame (not compositor-accelerated), which cost CPU on
   mobile for no visual gain. */
.cta__card {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--dark-teal) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 6vw, 56px);
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Soft top-right sheen. The old rule sat at top:-50%/right:-50% with
   overflow:hidden, so only a lopsided corner of the circle showed. */
.cta__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 82% 8%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.cta__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.25;
  color: var(--white);
  margin-bottom: var(--gap-sm);
  position: relative;
}
.cta__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto var(--gap-lg);
  position: relative;
}
.cta__button {
  display: inline-block;
  background: var(--white);
  color: var(--brand-teal);
  border-radius: var(--radius-full);
  padding: 14px 28px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.cta__button:hover { background: var(--cream); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.cta__button:active { transform: translateY(0) scale(0.98); }
.cta__button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.4); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); padding: var(--section-y) 0 calc(28px + var(--dock-height)); }
.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-x);
  text-align: center;
}
.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
}
.footer__link {
  font-size: 13px;
  line-height: 1.6;
  color: var(--light);
  transition: color 0.2s ease;
}
.footer__link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__link:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); padding: 2px 4px; }
.footer__sep { color: var(--medium); font-size: 13px; }
.footer__copyright { font-size: 12px; color: var(--medium); margin-top: var(--gap-lg); }

/* ============================================
   FLOAT DOCK — consultation pill + WhatsApp
   ============================================ */
.float-dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.float-dock.is-hidden {
  transform: translate(-50%, calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}
.float-dock__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-teal);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(8,77,80,0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.float-dock__cta:hover { background: var(--dark-teal); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(8,77,80,0.4); }
.float-dock__cta:active { transform: scale(0.98); }
.float-dock__cta:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.float-dock__cta.is-submitted { background: var(--success); pointer-events: none; }
.float-dock__ico {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-dock__wa {
  width: 50px; height: 50px;
  flex: 0 0 auto;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.float-dock__wa:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(37,211,102,0.4); }
.float-dock__wa:active { transform: scale(0.95); }
.float-dock__wa:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,211,102,0.4); }

@media (max-width: 379px) {
  .float-dock__label { font-size: 12.5px; }
  .float-dock__cta { padding-left: 14px; gap: 8px; }
}

/* ============================================
   SCROLL REVEALS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__trust, .hero__heading, .hero__subtext, .hero__rating,
  .hero__scroll-cta, .assessment, .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ============================================
   TABLET (>=768px)
   ============================================ */
@media (min-width: 768px) {
  :root { --header-height: 86px; }
  body { font-size: 16px; }

  .logo-svg { height: 54px; }
  .header__cta { padding: 10px 20px; }
  .header__cta-text { display: inline; }

  .assessment__card { max-width: 620px; }

  /* Exactly 3 cards per view — no partially-visible 4th card.
     3 cards + 2 gaps == 100% of the track's content box. */
  .dslider__card { flex: 0 0 calc((100% - 2 * var(--gap-md)) / 3); }

  /* DESKTOP = expanding accordion. The stage is fit-content and centred,
     so the head (heading left / arrows right) spans exactly the same width
     as the cards below it. */
  .tslider__stage { width: fit-content; max-width: 100%; margin: 0 auto; }
  .tslider__track {
    height: min(64vh, 560px);
    gap: 10px;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .tslide {
    width: 64px;
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: auto;
    cursor: pointer;
    /* Width is the only animated property — layout-scoped and cheap. */
    transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .tslide.is-active { width: var(--expanded-w, 420px); cursor: default; }

  .tslide__scrim { opacity: 0.9; }
  .tslide.is-active .tslide__scrim { opacity: 0.4; }

  .tslide__tab {
    display: block;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    pointer-events: none;
  }
  .tslide.is-active .tslide__tab { display: none; }

  .tslide__info { display: none; left: 16px; right: 16px; bottom: 16px; padding: 20px 22px; }
  /* :not(.is-playing) — this rule sits later than the .is-playing hide rule
     at equal specificity, so without it the info card would re-appear on
     top of a playing video. */
  .tslide.is-active:not(.is-playing) .tslide__info { display: flex; animation: tsRise 0.45s ease 0.2s both; }
  .tslide__quote { font-size: 15px; }

  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(180px, 21vw)) minmax(220px, 24vw);
    grid-template-areas:
      "a b d"
      "a c d"
      "e f f";
  }

  .why__cards { flex-direction: row; gap: var(--gap-lg); }
  .why__card { flex: 1; }
}

/* ============================================
   DESKTOP (>=1024px)
   ============================================ */
@media (min-width: 1024px) {
  /* Hero: 2-col lead-gen layout */
  .hero { padding-top: calc(var(--header-height) + 48px); }
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
  }
  .hero__content {
    align-items: flex-start;
    text-align: left;
  }
  .hero__trust { flex-direction: row; align-items: center; gap: 12px; }
  .hero__subtext { max-width: 480px; }
  .hero__scroll-cta { display: none; } /* form is beside the copy */
  .assessment__card { max-width: none; }

}

/* Small phones: featured goal cards stack */
@media (max-width: 400px) {
  .af-featured { grid-template-columns: 1fr; }
  .af-card-opt { padding: 12px; }
}