/* ==========================================================================
   MedicareSchool.com careers landing page
   1. Fonts
   2. Brand tokens + base type (from the MedicareSchool.com design system)
   3. Page primitives (layout, buttons, cards, pills)
   4. Sections
   5. Application form
   6. Motion + responsive
   ========================================================================== */

/* ---------- 1. Fonts ----------
   IBM Plex Sans is self-hosted. Domine (display serif) is loaded from Google
   Fonts in index.html; IBM Plex Serif is its local fallback. */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Variable.ttf') format('truetype-variations');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Serif';
  src: url('fonts/IBMPlexSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Serif';
  src: url('fonts/IBMPlexSerif-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Brand tokens + base type ---------- */
:root {
  --font-serif: 'IBM Plex Serif', 'Marion', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', 'Usual', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { font-size: 16px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: #4a4542;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: #4a4542;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 16px;
}
h3 { font-size: 24px; line-height: 1.3; font-weight: 600; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 600; }

p {
  font-size: 16px;
  line-height: 1.65;
  color: #4a4542;
  margin: 0 0 16px;
  text-wrap: pretty;
}

a {
  color: #1f6b62;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms var(--ease-out);
}
a:hover { color: #164d47; }

[hidden] { display: none !important; }

/* ---------- 3. Page primitives ---------- */
.page {
  --disp: 'Domine', 'IBM Plex Serif', Georgia, serif;
  --sh1: 0 1px 2px rgba(43,40,38,.04), 0 4px 14px rgba(43,40,38,.06);
  --sh2: 0 2px 6px rgba(43,40,38,.05), 0 16px 40px rgba(43,40,38,.10);
  --sh3: 0 4px 10px rgba(43,40,38,.06), 0 28px 64px rgba(43,40,38,.16);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #2b2826;
  font-family: var(--font-sans);
}
.page * { box-sizing: border-box; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px,4vw,40px); }
.sec { padding: clamp(64px,8vw,112px) 0; }
.bg-white { background: #ffffff; }
.bg-cream { background: #f8f2ed; }
.stack-44 { display: flex; flex-direction: column; gap: 44px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }

/* Eyebrow chip */
.eb { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9999px; background: #e8f6f4; color: #1f6b62; font-family: var(--font-sans); font-weight: 600; font-size: 13px; line-height: 1.2; margin: 0 0 20px; }
.eb-white { background: #ffffff; }

/* Headings + lead copy */
.h2 { font-family: var(--disp); font-weight: 400; font-size: clamp(30px,3.5vw,46px); line-height: 1.14; letter-spacing: -.02em; color: #2b2826; margin: 0 0 18px; text-wrap: balance; max-width: 24ch; }
.h2 em, .h1 em { font-style: normal; color: #2a8f82; }
.lead { font-family: var(--font-sans); font-weight: 400; font-size: clamp(17px,1.4vw,19px); line-height: 1.6; color: #5f5651; margin: 0; max-width: 60ch; text-wrap: pretty; }
.lead.mb-12 { margin: 0 0 12px; }
.accent { color: #2a8f82; }

/* Buttons */
.btn-apply { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; background: #1f7a6d; color: #ffffff; font-family: var(--font-sans); font-weight: 600; font-size: 16px; text-decoration: none; border: none; cursor: pointer; box-shadow: 0 1px 2px rgba(31,107,98,.2), 0 8px 20px rgba(31,107,98,.26); transition: background 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out); }
.btn-apply:hover { background: #1a665b; color: #ffffff; box-shadow: 0 2px 4px rgba(31,107,98,.2), 0 14px 28px rgba(31,107,98,.32); transform: translateY(-1px); }
.btn-apply:active { transform: translateY(0); }
.btn-apply[disabled] { opacity: .6; cursor: default; transform: none; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 18px; margin-top: 6px; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 12px; background: #ffffff; color: #2b2826; border: 1px solid #e0d3ca; font-family: var(--font-sans); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: var(--sh1); transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.btn-ghost:hover { border-color: #2a8f82; color: #1f6b62; box-shadow: var(--sh2); }
.btn-text { background: none; border: none; border-radius: 10px; min-height: 44px; padding: 0 10px; font-family: var(--font-sans); font-weight: 500; font-size: 14px; color: #5f5651; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-text:hover { color: #1f6b62; }
.page a:focus-visible, .page button:focus-visible, .page input:focus-visible, .page [tabindex]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(54,178,161,.55); }

/* Cards, tiles, pills */
.card { background: #ffffff; border: 1px solid #eadfd7; border-radius: 18px; box-shadow: var(--sh1); transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out), border-color 220ms var(--ease-out); }
.card:hover { box-shadow: var(--sh2); transform: translateY(-3px); border-color: #cfeae5; }
.tile { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #e8f6f4; color: #1f7a6d; display: inline-flex; align-items: center; justify-content: center; }
.tile-white { background: #ffffff; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px 6px 10px; border-radius: 9999px; background: #ffffff; border: 1px solid #eadfd7; box-shadow: var(--sh1); font-family: var(--font-sans); font-weight: 500; font-size: 14px; line-height: 1.25; color: #2b2826; }
.pill svg { flex: none; color: #1f7a6d; }
.chip { display: inline-flex; padding: 4px 10px; border-radius: 9999px; background: #f6efea; font-size: 12px; font-weight: 600; color: #4a4542; }
.badge-yellow { display: inline-flex; padding: 6px 12px; border-radius: 9999px; background: #ffbf63; color: #2b2826; font-size: 12px; font-weight: 600; }

/* Placeholder media blocks (portrait / video placeholders in the design) */
.ph { background: #f6efea; border: 1.5px dashed #c9b9ae; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #4a4542; position: relative; overflow: hidden; }
.ph-k { display: inline-flex; padding: 5px 10px; border-radius: 9999px; background: #ffffff; font-family: var(--font-sans); font-weight: 600; font-size: 12px; color: #4a4542; }
.ph-d { font-family: var(--font-sans); font-size: 14px; line-height: 1.45; color: #4a4542; max-width: 30ch; }
.play { width: 64px; height: 64px; border-radius: 9999px; border: none; background: #1f7a6d; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(31,107,98,.35); transition: transform 200ms var(--ease-out), background 200ms var(--ease-out); }
.play:hover { transform: scale(1.06); background: #1a665b; }
.scn { min-height: 44px; padding: 8px 16px; border-radius: 9999px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08); color: #ffffff; font-family: var(--font-sans); font-weight: 600; font-size: 14px; cursor: pointer; transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.scn:hover { background: rgba(255,255,255,.18); border-color: #ffffff; }

/* ---------- 4. Sections ---------- */

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #f0e7e0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo-link { display: inline-flex; align-items: center; padding: 8px 0; }
.logo-link img { height: 38px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-family: var(--font-sans); font-weight: 500; font-size: 15px; color: #4a4542; text-decoration: none; padding: 12px 4px; }
.nav-link:hover { color: #1f6b62; }
.hdr-apply { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(48% 60% at 88% 8%, #d9f1ed 0%, rgba(217,241,237,0) 70%), radial-gradient(40% 50% at 0% 100%, #fbeee4 0%, rgba(251,238,228,0) 70%), #ffffff; padding: clamp(48px,6vw,88px) 0 clamp(64px,7vw,104px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: clamp(48px,5vw,72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.eb-dot { width: 8px; height: 8px; border-radius: 9999px; background: #36b2a1; }
.h1 { font-family: var(--disp); font-weight: 400; font-size: clamp(38px,4.8vw,62px); line-height: 1.08; letter-spacing: -0.025em; color: #2b2826; margin: 0 0 22px; text-wrap: balance; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.hero-media { position: relative; }
.hero-media-bg { position: absolute; inset: 20px -14px 20px 22px; border-radius: 28px; background: #d9f1ed; }
.hero-img { position: relative; display: block; width: 100%; height: clamp(340px, 38vw, 500px); object-fit: cover; object-position: 55% 30%; border-radius: 24px; box-shadow: var(--sh3); }
.hero-quote { position: absolute; right: -18px; top: 28px; background: #ffffff; border: 1px solid #eadfd7; border-radius: 16px; padding: 14px 16px; box-shadow: var(--sh2); max-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.hero-quote-text { font-family: var(--disp); font-size: 15px; line-height: 1.45; color: #2b2826; }
.hero-quote-by { font-size: 12px; color: #5f5651; }
.vp-wrap { margin-top: clamp(40px,5vw,72px); }
.vp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.vp .pill { min-height: 44px; padding: 8px 18px 8px 14px; font-size: 15px; justify-content: center; text-align: left; }

/* Earning potential + calculator */
#earning { padding-top: clamp(40px,5vw,72px); }
.calc { position: relative; overflow: hidden; background: radial-gradient(55% 70% at 100% 0%, rgba(54,178,161,0.55) 0%, rgba(54,178,161,0) 65%), radial-gradient(45% 60% at 0% 100%, rgba(42,143,130,0.6) 0%, rgba(42,143,130,0) 70%), #195a52; color: #ffffff; border-radius: 28px; padding: clamp(22px,3.6vw,48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: clamp(28px,4vw,56px); align-items: end; box-shadow: 0 30px 70px rgba(25,90,82,0.28); }
.calc-left { display: flex; flex-direction: column; gap: 26px; }
.calc-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.calc-title { font-family: var(--disp); font-weight: 400; font-size: clamp(32px,3.8vw,50px); line-height: 1.12; letter-spacing: -0.02em; color: #ffffff; margin: 0; text-wrap: balance; }
.calc-slider { display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: 18px; padding: 18px 20px; }
.calc-slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc-slider label { font-size: 15px; font-weight: 500; color: #ffffff; }
.calc-num { font-family: var(--disp); font-weight: 500; font-size: 34px; line-height: 1; color: #ffffff; font-variant-numeric: tabular-nums; }
.rng { width: 100%; height: 44px; accent-color: #ffbf63; cursor: pointer; margin: 0; }
.calc-range { display: flex; justify-content: space-between; font-size: 13px; color: #e3f4f1; }
.calc-result { background: #ffffff; color: #2b2826; border-radius: 22px; padding: clamp(22px,3vw,36px); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 24px 60px rgba(11,48,44,0.35); }
.calc-result-live { display: flex; flex-direction: column; gap: 8px; }
.calc-result-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 30px; font-size: 14px; font-weight: 500; color: #5f5651; }
.calc-total { font-family: var(--disp); font-weight: 400; font-size: clamp(52px,6.4vw,88px); line-height: 1; letter-spacing: -0.03em; color: #2b2826; font-variant-numeric: tabular-nums; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { display: inline-flex; padding: 4px 9px; border-radius: 9999px; background: #f6efea; font-size: 12px; font-weight: 500; color: #4a4542; white-space: nowrap; }
.calc-disc { grid-column: 1 / -1; font-size: 13px; line-height: 1.6; color: #e3f4f1; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.25); }
.comp-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 28px 56px; align-items: center; background: #e8f6f4; border-radius: 24px; padding: clamp(26px,3.6vw,44px); }
.comp-band-text { display: flex; gap: 18px; align-items: flex-start; }
.comp-band h3 { font-family: var(--font-sans); font-weight: 600; font-size: clamp(20px,1.9vw,24px); line-height: 1.3; color: #2b2826; margin: 0 0 10px; text-wrap: balance; }
.comp-band p { font-size: 16px; line-height: 1.6; color: #4a4542; margin: 0 0 14px; max-width: 56ch; }
.comp-band-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.comp-band-cta span { font-size: 14px; color: #4a4542; }

/* Feature cards ("We invest in your success") */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; }
.feature { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature .tile { margin-bottom: 6px; }
.feature h3, .video-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 20px; line-height: 1.3; color: #2b2826; margin: 0; }
.feature p { font-size: 16px; line-height: 1.6; color: #5f5651; margin: 0; }

/* Training (Marvin Musick) */
.training-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: clamp(48px,6vw,88px); align-items: center; }
.training-media { position: relative; }
.training-media-bg { position: absolute; inset: 22px 22px -16px -16px; border-radius: 28px; background: #d9f1ed; }
.training-ph { position: relative; aspect-ratio: 4 / 4.6; max-height: 600px; width: 100%; background: #ffffff; border-radius: 24px; box-shadow: var(--sh3); }
.training-ph .ph-k { background: #e8f6f4; color: #1f6b62; }
/* Marvin video: 1:1 when the section is stacked, 9:16 beside the copy on wide screens */
.training-video { position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 24px; overflow: hidden; background: #195a52; box-shadow: var(--sh3); }
.training-video img, .training-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.training-video img { object-fit: cover; }
.training-video .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; background: rgba(31,122,109,.92); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.training-video .play:hover { background: #1a665b; }
.training-video .play:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
@media (min-width: 941px) {
  .training-media { width: min(100%, 400px); justify-self: center; }
  .training-video { aspect-ratio: 9 / 16; }
}
.training-copy { display: flex; flex-direction: column; align-items: flex-start; }
.lead.mb-28 { margin: 0 0 28px; }
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; width: 100%; margin-bottom: 30px; }
.mstat { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: #e8f6f4; }
.mstat-warm { background: #f6efea; }
.mstat-num { font-family: var(--disp); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; color: #2b2826; }
.mstat-label { font-size: 14px; line-height: 1.4; color: #4a4542; }

/* Reviews carousel */
.reviews-wrap { display: flex; flex-direction: column; gap: 28px; }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.reviews-head .lead a { font-weight: 500; }
.reviews-nav { display: flex; gap: 8px; }
.round { width: 46px; height: 46px; border-radius: 12px; border: 1px solid #e0d3ca; background: #ffffff; color: #2b2826; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--sh1); transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.round:hover { border-color: #2a8f82; color: #1f6b62; }
.track { display: flex; align-items: stretch; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.rcard { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; margin: 0; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; border-radius: 20px; }
.rcard-theme { display: inline-flex; padding: 5px 12px; border-radius: 9999px; background: #e8f6f4; color: #1f6b62; font-size: 13px; font-weight: 600; line-height: 1.3; }
.rcard-agent { display: flex; align-items: center; gap: 14px; }
.rcard-initials { flex: none; width: 52px; height: 52px; border-radius: 9999px; background: #1f7a6d; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; }
.rcard-agent-text { display: flex; flex-direction: column; gap: 2px; }
.rcard-role { font-size: 13px; font-weight: 500; color: #5f5651; }
.rcard-name { font-family: var(--disp); font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; color: #2b2826; }
.stars { display: inline-flex; gap: 3px; }
.rcard blockquote { margin: 0; font-family: var(--font-sans); font-weight: 400; font-size: 17px; line-height: 1.6; color: #2b2826; text-wrap: pretty; flex-grow: 1; }
.rcard figcaption { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid #f0e7e0; }
.rcard-reviewer { font-weight: 500; font-size: 15px; color: #4a4542; }
.rcard-source { display: inline-flex; padding: 4px 10px; border-radius: 9999px; background: #f6efea; font-size: 13px; font-weight: 500; color: #4a4542; }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: -8px; }
.cdot { width: 32px; height: 44px; padding: 0; border: none; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.cdot span { display: block; height: 8px; border-radius: 9999px; transition: width 220ms var(--ease-out), background 220ms var(--ease-out); }
.dot-off { width: 8px; background: #b8a79c; }
.dot-on { width: 24px; background: #1f7a6d; }
.imagine { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px 56px; align-items: center; background: #ffffff; border: 1px solid #eadfd7; border-radius: 24px; padding: clamp(26px,3.6vw,44px); box-shadow: var(--sh1); margin-top: 12px; }
.imagine-quote { font-family: var(--disp); font-weight: 400; font-size: clamp(22px,2.3vw,30px); line-height: 1.3; letter-spacing: -0.02em; color: #2b2826; margin: 0 0 12px; text-wrap: balance; }
.imagine-cta { margin-top: 24px; }
.imagine-img { display: block; width: 100%; height: clamp(240px, 24vw, 320px); object-fit: cover; object-position: 62% 40%; border-radius: 18px; }

/* Agent video stories */
.video-grid, .trait-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); gap: 20px; }
.video-card { overflow: hidden; display: flex; flex-direction: column; border-radius: 20px; padding: 10px; }
.video-ph { aspect-ratio: 4 / 3; border-radius: 14px; background: #e8f6f4; border-color: #9fd6cd; }
.video-player { aspect-ratio: 4 / 3; border-radius: 14px; background: #195a52; color: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.video-player .badge-yellow { padding: 5px 10px; }
/* Agent videos are square footage inside a 16:9 file: the card is square and the player is
   widened so the baked-in side bars fall outside it (1280 / 704 ≈ 182%). */
.agent-video { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #195a52; }
.agent-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-video iframe { position: absolute; top: 0; left: 50%; height: 100%; width: 182%; translate: -50% 0; border: 0; pointer-events: none; }
.av-toggle { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.av-toggle:focus-visible { outline: 3px solid #ffffff; outline-offset: -6px; border-radius: 14px; }
.av-toggle .play { pointer-events: none; opacity: 0; transition: opacity 200ms var(--ease-out); }
.agent-video.is-paused .av-toggle .play, .agent-video.is-loading .av-toggle .play { opacity: 1; }
.agent-video.is-loading .av-toggle .play { opacity: .6; }
.av-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.3); pointer-events: none; }
.av-bar span { display: block; height: 100%; width: 0; background: #ffffff; transition: width 250ms linear; }
.agent-video .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: rgba(31,122,109,.92); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.agent-video .play:hover { background: #1a665b; }
.agent-video .play:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.video-player-text { font-size: 15px; line-height: 1.5; color: #ffffff; max-width: 28ch; }
.video-body { padding: 20px 16px 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.video-body p { font-size: 15px; line-height: 1.6; color: #5f5651; margin: 0; }
.video-body .video-eb { display: inline-block; padding: 5px 12px; border-radius: 14px; background: #e8f6f4; font-size: 12px; line-height: 1.4; font-weight: 600; color: #1f6b62; margin-bottom: 4px; }
.video-body h3 { margin-bottom: 2px; }
.video-body .video-by { margin: -8px 0 4px; font-size: 14px; font-weight: 600; color: #1f6b62; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-row span { font-size: 15px; color: #5f5651; }

/* Benefits band */
.benefits-sec { background: #ffffff; padding: 0 0 clamp(64px,8vw,112px); }
.benefits-band { background: #e8f6f4; border-radius: 28px; padding: clamp(32px,5vw,64px) clamp(20px,4vw,56px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.benefits-band .eb { margin: 0; }
.benefits-band .h2 { margin: 0; max-width: 26ch; }
.benefits-band .lead { max-width: 64ch; }
.benefits { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 880px; }
.benefits .pill { min-height: 44px; padding: 8px 18px 8px 12px; font-size: 15px; border-color: #cfeae5; }

/* Who thrives */
.thrives-sec { padding-top: 0; }
.h2.w-26 { max-width: 26ch; }
.trait-grid { gap: 16px; }
.trait { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.trait .tile { margin-bottom: 4px; }
.trait h3 { font-family: var(--font-sans); font-weight: 600; font-size: 19px; line-height: 1.3; color: #2b2826; margin: 0; }
.trait p { font-size: 15px; line-height: 1.6; color: #5f5651; margin: 0; }
.thrives-close { display: flex; flex-direction: column; gap: 6px; }
.thrives-close-line { font-family: var(--disp); font-weight: 400; font-size: clamp(22px,2.4vw,30px); line-height: 1.25; letter-spacing: -0.02em; color: #2b2826; margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px 56px; align-items: start; }
.faq-grid .h2 { margin: 0; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #ffffff; border: 1px solid #eadfd7; border-radius: 16px; padding: 0 22px; box-shadow: var(--sh1); transition: box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out); }
.faq-item:hover { border-color: #cfeae5; box-shadow: var(--sh2); }
.faq-item h3 { margin: 0; }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; min-height: 64px; background: none; border: none; border-radius: 10px; cursor: pointer; text-align: left; font-family: var(--font-sans); font-weight: 600; font-size: 17px; line-height: 1.35; color: #2b2826; }
.faq-btn:hover { color: #1f6b62; }
.faq-icon { width: 32px; height: 32px; border-radius: 10px; transition: transform 220ms var(--ease-out); transform: rotate(0deg); }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 16px; line-height: 1.65; color: #5f5651; margin: 0; padding: 0 44px 22px 0; max-width: 62ch; }
.fade-in, .faq-a { animation: fadeUp 260ms var(--ease-out) both; }

/* Footer + sticky mobile CTA */
.site-footer { flex-grow: 1; background: #ffffff; border-top: 1px solid #f0e7e0; padding: 30px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer img { height: 34px; width: auto; display: block; }
.site-footer span { font-size: 14px; color: #5f5651; }
.sticky-cta { display: none; }

/* ---------- 5. Application form ---------- */
.apply-sec { background: radial-gradient(40% 55% at 22% 0%, rgba(255,191,99,0.38) 0%, rgba(255,191,99,0) 70%), radial-gradient(45% 60% at 92% 12%, rgba(54,178,161,0.9) 0%, rgba(54,178,161,0) 70%), radial-gradient(50% 60% at 5% 100%, rgba(54,178,161,0.6) 0%, rgba(54,178,161,0) 70%), #1c6a60; padding: clamp(56px,8vw,112px) 0; }
.apply-card { scroll-margin-top: 88px; background: #ffffff; border-radius: 24px; max-width: 780px; margin: 0 auto; padding: clamp(22px,4.4vw,56px); display: flex; flex-direction: column; gap: 28px; box-shadow: 0 30px 80px rgba(8,40,36,0.35); }
.ap-form { display: flex; flex-direction: column; gap: 28px; }
.ap-head { display: flex; flex-direction: column; gap: 22px; }
.ap-title-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ap-title-col { display: flex; flex-direction: column; gap: 10px; flex: 1 1 320px; }
.ap-title { font-family: var(--disp); font-weight: 400; font-size: clamp(28px,3.6vw,42px); line-height: 1.12; letter-spacing: -0.025em; color: #2b2826; margin: 0; text-wrap: balance; }
.ap-progress { display: flex; flex-direction: column; gap: 10px; }
.ap-step-text { font-size: 14px; font-weight: 600; color: #1f6b62; margin: 0; }
.segs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.segs li { display: flex; flex-direction: column; gap: 8px; }
.seg { display: block; height: 6px; border-radius: 9999px; background: #eadfd7; transition: background 300ms var(--ease-out); }
.seg-on { background: #1f7a6d; }
.seg-l { font-family: var(--font-sans); font-size: 13px; line-height: 1.3; font-weight: 500; color: #5f5651; }
.seg-l-on { color: #1f6b62; font-weight: 600; }

.ap-step { display: flex; flex-direction: column; gap: 24px; }
.ap-step-head { display: flex; flex-direction: column; gap: 8px; }
.ap-step-head h3 { font-family: var(--disp); font-weight: 400; font-size: clamp(24px,2.6vw,30px); line-height: 1.2; letter-spacing: -0.02em; color: #2b2826; margin: 0; }
.ap-step-head p { font-size: 16px; line-height: 1.6; color: #5f5651; margin: 0; }
.ap-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.ap-q { display: flex; flex-direction: column; gap: 10px; }
.ap-q h4 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; line-height: 1.35; color: #2b2826; margin: 0; }
.ap-q [role="radiogroup"] { display: flex; flex-direction: column; gap: 8px; }
.ap-optional { font-weight: 400; color: #5f5651; }

.lbl { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 1.4; color: #2b2826; margin: 0 0 6px; }
.inp { width: 100%; min-height: 52px; padding: 13px 15px; font-family: var(--font-sans); font-size: 16px; color: #2b2826; background: #ffffff; border: 1.5px solid #d1bdb2; border-radius: 12px; outline: none; transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.inp:focus { border-color: #1f7a6d; box-shadow: 0 0 0 3px rgba(54,178,161,.3); }
.inp::placeholder { color: #8f8079; }
.inp-err { border-color: #b8542a; }
textarea.inp { min-height: 120px; resize: vertical; line-height: 1.5; }
select.inp { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b5d56' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
select.inp:invalid, select.inp option[value=""] { color: #8f8079; }
.err { font-family: var(--font-sans); font-size: 14px; line-height: 1.45; font-weight: 500; color: #9a3d14; margin: 6px 0 0; }

.opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #e0d3ca; background: #ffffff; font-family: var(--font-sans); font-weight: 500; font-size: 16px; line-height: 1.35; color: #2b2826; text-align: left; cursor: pointer; transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), transform 200ms var(--ease-out); }
.opt:hover { border-color: #2a8f82; background: #f4fbfa; }
.opt[aria-checked="true"], .opt[aria-checked="true"]:hover { border-color: #1f7a6d; background: #e8f6f4; font-weight: 600; }
.radio-dot { flex: none; width: 22px; height: 22px; border-radius: 9999px; border: 1.5px solid #b8a79c; background: #ffffff; transition: border 200ms var(--ease-out); }
.opt[aria-checked="true"] .radio-dot { border: 7px solid #1f7a6d; }

.license-note { display: flex; gap: 14px; align-items: flex-start; background: #e8f6f4; border-radius: 16px; padding: 18px 20px; }
.license-note-title { font-weight: 600; font-size: 16px; line-height: 1.4; color: #2b2826; margin: 0 0 4px; }
.license-note-body { font-size: 15px; line-height: 1.6; color: #4a4542; margin: 0; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; border: 2px dashed #9fd6cd; background: #f4fbfa; border-radius: 20px; padding: 36px 20px; transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out); }
.drop-on { border-color: #1f7a6d; background: #e8f6f4; }
.drop .tile { width: 56px; height: 56px; border-radius: 16px; background: #ffffff; box-shadow: var(--sh1); }
.drop-title { font-weight: 600; font-size: 17px; color: #2b2826; margin: 0; }
.drop-hint { font-size: 14px; color: #5f5651; margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vh:focus-visible + .browse { box-shadow: 0 0 0 3px rgba(54,178,161,.55); }
.browse { width: auto; min-height: 48px; }
.file-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border: 1.5px solid #1f7a6d; background: #e8f6f4; border-radius: 16px; padding: 16px 18px; }
.file-meta { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; }
.file-name { font-weight: 600; font-size: 16px; color: #2b2826; overflow-wrap: anywhere; }
.file-size { font-size: 14px; color: #4a4542; }
.err-resume { margin: -12px 0 0; }
.turnstile-box:empty { display: none; }
.submitting { display: flex; flex-direction: column; gap: 8px; }
.submitting-msg { font-size: 14px; font-weight: 500; color: #4a4542; }
.loadtrack { display: block; height: 8px; border-radius: 9999px; background: #eadfd7; overflow: hidden; }
.loadbar { display: block; height: 100%; border-radius: 9999px; background: #1f7a6d; width: 94%; animation: load 900ms ease-out both; }
.submit-err { margin: 0; padding: 14px 16px; border-radius: 12px; background: #fdf0e6; }
.ap-privacy { font-size: 14px; line-height: 1.6; color: #5f5651; margin: 0; }

.ap-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #f0e7e0; }
.ap-footer-left { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.ap-footer .btn-ghost { width: auto; }

/* Confirmation screen */
.ap-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.done-check { width: 56px; height: 56px; border-radius: 9999px; background: #e8f6f4; color: #1f7a6d; display: inline-flex; align-items: center; justify-content: center; }
.done-title { font-family: var(--disp); font-weight: 400; font-size: clamp(26px,3vw,36px); line-height: 1.15; letter-spacing: -0.02em; color: #2b2826; margin: 0; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9999px; background: #fff7e6; border: 1px solid #e0a94a; color: #6b4a12; font-size: 14px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 9999px; background: #c98f2b; }
.assess { width: 100%; background: #f8f2ed; border-radius: 20px; padding: clamp(22px,3.4vw,36px); display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
.assess-title { font-family: var(--font-sans); font-weight: 600; font-size: clamp(19px,2vw,22px); line-height: 1.3; color: #2b2826; margin: 0; text-wrap: balance; }
.assess-body { font-size: 16px; line-height: 1.6; color: #4a4542; margin: 0; max-width: 52ch; }
.assess-email { font-size: 16px; line-height: 1.6; color: #2b2826; font-weight: 600; margin: 6px 0 0; max-width: 52ch; }
.assess-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.assess-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: #2b2826; }
.assess-list li.strong { font-weight: 600; }
.assess-list .tile { width: 34px; height: 34px; border-radius: 10px; background: #ffffff; }
.ap-ref { font-size: 13px; color: #5f5651; margin: 0; }

/* ---------- 6. Motion + responsive ---------- */
@keyframes load { from { width: 8%; } to { width: 94%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @supports (animation-timeline: view()) {
    .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .page * { transition: none !important; animation: none !important; }
}

@media (min-width: 941px) {
  .tags { flex-wrap: nowrap; }
}
@media (max-width: 1000px) {
  .rcard { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 940px) {
  .calc-left { display: contents; }
  .calc-head { order: 1; } .calc-result { order: 2; } .calc-slider { order: 3; } .calc-disc { order: 4; }
}
@media (max-width: 720px) {
  .vp { gap: 10px; } /* matches the export: stays one column; cards stack icon-over-label */
  .vp .pill { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; border-radius: 16px; padding: 16px; font-weight: 600; font-size: 15px; line-height: 1.3; }
  .vp .pill svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #e8f6f4; }
  .seg-l { display: none; }
  .mstats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mstats > div:last-child { grid-column: 1 / -1; }

  .sticky-cta { display: block; position: sticky; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid #eadfd7; }
  .sticky-cta .btn-apply { width: 100%; }
  .nav-link { display: none; }
  .btn-apply, .btn-ghost { width: 100%; }
  .page .hdr-apply, .page .browse, .page .ap-footer .btn-ghost { width: auto; }
  .hide-sm { display: none !important; }
}
@media (max-width: 640px) {
  .rcard { flex-basis: 100%; }
}
.page .done-title:focus, .page .done-title:focus-visible { outline: none; box-shadow: none; }

/* ===================== Interview booking page (/interview) ===================== */
.bk-main { flex-grow: 1; }
.bk-card { gap: 26px; }
.bk-state { display: flex; flex-direction: column; gap: 24px; }
.bk-state[hidden] { display: none; }
.bk-card .ap-step-head { align-items: flex-start; }
.bk-card .eb { margin: 0 0 4px; }
.bk-h { font-family: var(--disp); font-weight: 400; font-size: clamp(28px,3.4vw,40px); line-height: 1.15; letter-spacing: -0.02em; color: #2b2826; margin: 0; text-wrap: balance; }
.bk-h em { font-style: normal; color: #1f7a6d; }
.bk-muted { font-size: 14px; line-height: 1.55; color: #6b5d56; margin: 0; }
.bk-days { display: flex; flex-direction: column; gap: 22px; }
.bk-day { display: flex; flex-direction: column; gap: 10px; }
.bk-day-h { font-family: var(--font-sans); font-weight: 600; font-size: 15px; letter-spacing: .01em; color: #4a4542; margin: 0; }
.bk-list { display: flex; flex-direction: column; gap: 8px; }
.bk-opt { align-items: center; }
.bk-opt-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk-opt-main strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-opt-sub { font-size: 14px; font-weight: 400; color: #6b5d56; }
.bk-seats { flex-shrink: 0; padding: 4px 10px; border-radius: 9999px; background: #f9eeda; color: #8a5a12; font-size: 12px; font-weight: 600; }
.bk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 22px; border-top: 1px solid #f0e7e0; }
.bk-actions .bk-muted { flex: 1 1 240px; }
.bk-home { align-self: flex-start; }
.bk-details { margin: 0; display: grid; gap: 0; border: 1px solid #eadfd7; border-radius: 16px; overflow: hidden; }
.bk-details > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 18px; border-top: 1px solid #f0e7e0; }
.bk-details > div:first-child { border-top: 0; }
.bk-details > div[hidden] { display: none; }
.bk-details dt { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8f8079; padding-top: 2px; }
.bk-details dd { margin: 0; font-size: 16px; line-height: 1.5; color: #2b2826; overflow-wrap: anywhere; }
.bk-details a { color: #1f7a6d; }
@media (max-width: 540px) { .bk-details > div { grid-template-columns: 1fr; gap: 2px; } }
