/* =========================================================
   Dr Liam Ngo – IELTS Melbourne
   ========================================================= */

:root {
  --navy-900: #0b1f36;
  --navy-800: #0f2a47;
  --navy-700: #173a63;
  --navy-600: #24518a;
  --gold-500: #e3ad3b;
  --gold-400: #efc366;
  --gold-100: #fbf0d6;
  --cream: #faf7f1;
  --tint: #f2f5f9;
  --white: #ffffff;
  --ink: #1b2333;
  --muted: #5a6476;
  --line: #e3e7ee;
  --danger: #c0392b;
  --success: #1f8a5b;

  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lora", Georgia, serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 71, .06), 0 2px 8px rgba(15, 42, 71, .05);
  --shadow: 0 10px 30px rgba(15, 42, 71, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 54, .22);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--navy-800); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold-500); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 18px rgba(227, 173, 59, .35); }
.btn--gold:hover { background: var(--gold-400); color: var(--navy-900); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); color: var(--white); box-shadow: var(--shadow); }
.btn--outline { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn--outline:hover { background: var(--navy-800); color: var(--white); }
.btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.16); color: var(--white); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-btn { background: none; border: 0; padding: 0; color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: transform .3s var(--ease); }

.topbar { background: var(--navy-900); color: rgba(255,255,255,.82); font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar__item svg { width: 15px; height: 15px; fill: var(--gold-500); }
a.topbar__item:hover { color: var(--white); }
.topbar__item--limited { color: var(--gold-400); font-weight: 600; }
.site-header.is-scrolled { transform: translateY(calc(-1 * var(--topbar-h, 37px))); }

.nav { position: relative; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.is-scrolled .nav { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-800); }
.brand__mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy-800); color: var(--gold-500); font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .5px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-head); font-size: 19px; }
.brand__text small { font-size: 12px; color: var(--muted); letter-spacing: .2px; }
.brand--light { color: var(--white); }
.brand--light .brand__mark { background: var(--gold-500); color: var(--navy-900); }
.brand--light .brand__text small { color: rgba(255,255,255,.65); }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 15px; position: relative; transition: color .2s;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__menu a:not(.btn):hover, .nav__menu a.is-current { color: var(--navy-800); }
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-current::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }

.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); padding: 72px 0 0; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  /* Photo: King's College Chapel, Cambridge – Unsplash License (unsplash.com/photos/FC1uuekWoZc) */
  --hero-photo: url("https://images.unsplash.com/photo-1623632306901-e509641e7191?auto=format&fit=crop&w=2000&q=70");
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(227,173,59,.18), transparent 60%),
    linear-gradient(100deg, rgba(11,31,54,.96) 0%, rgba(11,31,54,.88) 45%, rgba(15,42,71,.62) 100%),
    var(--hero-photo) center 35% / cover no-repeat,
    var(--navy-900);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(11,31,54,.95) 100%);
}
@media (max-width: 980px) {
  .hero__bg {
    --hero-photo: url("https://images.unsplash.com/photo-1623632306901-e509641e7191?auto=format&fit=crop&w=1000&q=65");
    background:
      linear-gradient(180deg, rgba(11,31,54,.72) 0%, rgba(11,31,54,.86) 55%, rgba(11,31,54,.96) 100%),
      var(--hero-photo) center top / cover no-repeat,
      var(--navy-900);
  }
}
.hero__inner { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.hl { color: var(--gold-500); position: relative; white-space: nowrap; }
.hero__lead { font-size: 1.12rem; color: rgba(255,255,255,.84); max-width: 600px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: rgba(255,255,255,.85); }
.hero__badges li { display: inline-flex; align-items: center; gap: 6px; }
.hero__badges svg { width: 18px; height: 18px; fill: var(--gold-500); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--navy-600); margin-bottom: 12px;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--gold-500); vertical-align: middle; margin-right: 10px; }
.eyebrow--light { color: var(--gold-400); }

.hero__card {
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg); position: relative;
}
.hero__card::before {
  content: ""; position: absolute; inset: -10px -10px auto auto; width: 90px; height: 90px; border-radius: 22px;
  background: var(--gold-500); z-index: -1; transform: rotate(12deg);
}
.profile__price {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream); border-radius: var(--radius); padding: 14px 16px;
}
.profile__price strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--navy-800); }
.price-sm { font-size: 14px; color: var(--muted); }

.hero__card-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy-600); }
.hero__card-title { font-size: 1.5rem; margin-bottom: 18px; }

.ladder { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ladder li {
  display: flex; gap: 12px; align-items: center; margin-left: calc(var(--i) * 18px);
  background: var(--tint); border-radius: 12px; padding: 10px 14px; border-left: 3px solid var(--gold-500);
}
.ladder strong { display: block; color: var(--navy-800); font-size: 15px; line-height: 1.3; }
.ladder small { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; }
.ladder__num {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-500); font-weight: 700; font-size: 14px;
}

.limited { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #8a5a00; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--gold-500);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0; padding: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; backdrop-filter: blur(6px);
}
.stat { padding: 26px 20px; text-align: center; display: flex; flex-direction: column-reverse; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.stat dd { margin: 0; font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: var(--gold-500); line-height: 1.1; }
.stat dt { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: linear-gradient(170deg, var(--navy-800), var(--navy-900)); color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head--light .section-title { color: var(--white); }
.section-head--light .section-sub { color: rgba(255,255,255,.75); }

.section-sub em, .about__text em { font-style: italic; color: var(--navy-700); }

/* ---------- Method ---------- */
.journey {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: stretch;
  background: var(--cream); border: 1px solid #efe8da; border-radius: var(--radius-lg); padding: 32px;
}
.journey__stairs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; min-height: 260px; }
.stair {
  height: calc(90px + var(--i) * 40px); display: flex; flex-direction: column; justify-content: flex-start; gap: 8px;
  text-align: left; padding: 14px 12px; border: 0; border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #e9eef5, #dfe6f0); color: var(--navy-800); font-weight: 600; font-size: 14px; line-height: 1.3;
  transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.stair span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); color: var(--navy-800); font-family: var(--font-head); font-weight: 700;
}
.stair:hover { transform: translateY(-4px); }
.stair.is-passed { background: linear-gradient(180deg, var(--navy-600), var(--navy-700)); color: var(--white); }
.stair[aria-selected="true"] { background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); color: var(--white); box-shadow: var(--shadow); transform: translateY(-4px); }
.stair[aria-selected="true"] span, .stair.is-passed span { background: var(--gold-500); color: var(--navy-900); }

.journey__detail { background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.journey__step { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--navy-600); }
.journey__detail h3 { font-size: 1.45rem; }
.journey__detail > p:not(.journey__step) { color: #364055; flex: 1; animation: fadeUp .35s var(--ease); }
.journey__nav { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.journey__nav .btn { width: 40px; height: 40px; padding: 0; }
.journey__bar { flex: 1; height: 6px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.journey__bar span { display: block; height: 100%; width: 20%; background: var(--gold-500); border-radius: 99px; transition: width .35s var(--ease); }

.subhead { text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 72px 0 32px; }
.expertise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.exp { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s; }
.exp:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.exp__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-100); display: grid; place-items: center; margin-bottom: 16px; }
.exp__icon svg { width: 26px; height: 26px; fill: var(--navy-800); }
.exp h4 { font-size: 1.2rem; }
.exp p { margin: 0; color: var(--muted); font-size: 15px; }

.compare {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; margin-top: 72px;
  background: var(--navy-800); color: rgba(255,255,255,.85); border-radius: var(--radius-lg); padding: 40px;
}
.compare__head h3 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.compare__head h3::after { content: ""; display: block; width: 48px; height: 3px; background: var(--gold-500); margin-top: 14px; }
.compare__head p { margin: 0; }
.compare__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare__table th, .compare__table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); vertical-align: top; }
.compare__table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.6); }
.compare__table tbody th { color: rgba(255,255,255,.6); font-weight: 500; white-space: nowrap; }
.compare__table td { color: rgba(255,255,255,.6); }
.compare__table .is-us { color: var(--white); font-weight: 600; background: rgba(227,173,59,.12); }
.compare__table thead .is-us { color: var(--gold-400); border-radius: 10px 10px 0 0; }
.compare__table td.is-us::before { content: "✓"; color: var(--gold-500); margin-right: 8px; font-weight: 700; }

.notice { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--gold-100); border-left: 4px solid var(--gold-500); }
.notice strong { color: var(--navy-800); }
.notice p { margin: 4px 0 0; font-size: 15px; color: #4a4030; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.about__text > p { color: #364055; font-size: 1.04rem; }
.pillars { display: grid; gap: 18px; margin-top: 30px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar__icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--gold-100);
}
.pillar__icon svg { width: 24px; height: 24px; fill: var(--navy-800); }
.pillar h3 { font-size: 1.1rem; margin: 2px 0 4px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

.about__timeline { background: var(--cream); border-radius: var(--radius-lg); padding: 32px; border: 1px solid #efe8da; }
.timeline__title { font-size: 1.3rem; margin-bottom: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #e6dcc6; }
.timeline li { position: relative; padding-left: 34px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--gold-500);
}
.timeline__tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy-600); background: var(--white); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.timeline h4 { font-size: 1.08rem; margin: 0 0 2px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Formats ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.format {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.format:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.format--featured { border: 2px solid var(--gold-500); box-shadow: var(--shadow); }
.format__ribbon {
  position: absolute; top: 18px; right: 18px; background: var(--gold-500); color: var(--navy-900);
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.format__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--navy-800); display: grid; place-items: center; margin-bottom: 18px; }
.format__icon svg { width: 28px; height: 28px; fill: var(--gold-500); }
.format h3 { font-size: 1.35rem; margin-bottom: 4px; }
.format__price { color: var(--muted); margin-bottom: 18px; }
.format__price strong { font-family: var(--font-head); font-size: 2.3rem; color: var(--navy-800); }
.format__note { color: var(--gold-500); font-weight: 700; }
.format .checklist { flex: 1; }
.format .btn { margin-top: 20px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; font-size: 15px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f2a47' d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist--two { grid-template-columns: 1fr 1fr; gap: 12px 24px; }

.fineprint { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.fineprint--light { color: rgba(255,255,255,.6); text-align: center; margin-top: 24px; }

/* ---------- Programs / Tabs ---------- */
.programs { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px; background: var(--tint); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: 1 0 auto; border: 0; background: transparent; padding: 12px 18px; border-radius: 10px;
  font-weight: 600; font-size: 15px; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s;
}
.tabs [role="tab"]:hover { color: var(--navy-800); background: rgba(255,255,255,.6); }
.tabs [role="tab"][aria-selected="true"] { background: var(--white); color: var(--navy-800); box-shadow: var(--shadow-sm); }
.panel { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 40px; animation: fadeUp .4s var(--ease); }
.panel[hidden] { display: none; }
.panel h3 { font-size: 1.55rem; }
.panel__body > p { color: #364055; margin-bottom: 24px; }
.panel__side { background: var(--cream); border-radius: var(--radius); padding: 24px; align-self: start; }
.panel__meta { margin: 0 0 16px; font-weight: 600; color: var(--navy-800); }
.panel__meta span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Segmented control ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 6px; background: rgba(255,255,255,.07); border-radius: 14px; border: 1px solid rgba(255,255,255,.12); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 10px 8px; border-radius: 10px; font-weight: 600; font-size: 14px; line-height: 1.3; cursor: pointer;
  color: rgba(255,255,255,.8); transition: background .2s, color .2s; min-height: 48px;
}
.seg small { font-weight: 500; font-size: 12px; opacity: .8; }
.seg input:checked + span { background: var(--gold-500); color: var(--navy-900); }
.seg input:focus-visible + span { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.seg--light { background: var(--tint); border-color: var(--line); }
.seg--light span { color: var(--muted); }
.seg--light input:checked + span { background: var(--navy-800); color: var(--white); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.calc__controls { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 30px; display: grid; gap: 26px; }
.calc__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc__group legend, .range-label { font-weight: 600; margin-bottom: 10px; color: var(--white); padding: 0; }
.range-label { display: flex; justify-content: space-between; align-items: center; }
.range-label output { font-family: var(--font-head); font-size: 1.4rem; color: var(--gold-500); font-weight: 700; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: rgba(255,255,255,.15); outline: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-500);
  border: 4px solid var(--navy-800); box-shadow: 0 0 0 2px var(--gold-500); cursor: pointer; transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold-500); border: 4px solid var(--navy-800); box-shadow: 0 0 0 2px var(--gold-500); cursor: pointer; }

/* Tick dots under range sliders; offsets keep each dot centred under the 24px thumb */
.ticks { position: relative; height: 34px; margin-top: 8px; }
.tick {
  position: absolute; top: 0; left: calc(var(--p) * 1% + 12px - var(--p) * .24px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 2px;
  background: none; border: 0; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 600; line-height: 1;
}
.tick::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3);
  transition: background .2s, transform .2s;
}
.tick:hover { color: var(--white); }
.tick:hover::before { background: var(--white); transform: scale(1.3); }
.tick.is-reached::before { background: var(--gold-500); }
.tick.is-current { color: var(--gold-400); }
.tick.is-current::before { transform: scale(1.5); box-shadow: 0 0 0 3px rgba(227,173,59,.3); }

.calc__result {
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.calc__label { color: var(--muted); font-weight: 600; margin: 0; }
.calc__total { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 700; color: var(--navy-800); margin: 4px 0 18px; line-height: 1.1; transition: transform .2s; }
.calc__total.bump { transform: scale(1.05); }
.calc__breakdown { display: grid; gap: 0; margin: 0 0 18px; }
.calc__breakdown div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px dashed var(--line); }
.calc__breakdown dt { color: var(--muted); }
.calc__breakdown dd { margin: 0; font-weight: 700; color: var(--navy-800); }
.calc__note { font-size: 14px; color: var(--muted); flex: 1; }

/* ---------- Slot picker (form step 3) ---------- */
.picker__note { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 6px; }
.picker__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.picker__day {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 9px 2px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--tint);
  color: var(--navy-800); line-height: 1.2; transition: background .15s, border-color .15s, color .15s;
}
.picker__day strong { font-size: 14px; }
.picker__day small { font-size: 11px; color: var(--muted); }
.picker__day--weekend { background: var(--gold-100); border-color: #f0dfb4; }
.picker__day:hover { border-color: var(--navy-600); }
.picker__day[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.picker__day[aria-selected="true"] small { color: rgba(255,255,255,.7); }
.picker__badge {
  position: absolute; top: -7px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--gold-500); color: var(--navy-900); font-size: 11px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--white);
}
.picker__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; animation: fadeUp .25s var(--ease); }
.slot {
  border: 1.5px solid #cfe3d8; background: #eef8f2; color: #1d5b40; border-radius: 10px; padding: 10px 6px;
  font-size: 14px; font-weight: 600; line-height: 1.25; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.slot small { display: block; font-weight: 500; font-size: 11px; opacity: .8; }
.slot:hover { border-color: var(--success); transform: translateY(-1px); }
.slot[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.slot[aria-pressed="true"]::before { content: "✓ "; color: var(--gold-500); }
.picker__picked { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--cream); border: 1px dashed #e6dcc6; }
.picker__picked-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.picker__picked-head strong { color: var(--navy-800); }
.picker.has-error .picker__picked { border-color: var(--danger); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 28px 24px; border: 1px solid var(--line); position: relative; }
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 16px;
  background: var(--navy-800); color: var(--gold-500); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
}
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -20px; width: 16px; height: 16px;
  border-top: 2px solid var(--gold-500); border-right: 2px solid var(--gold-500); transform: rotate(45deg);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 1.04rem; color: var(--navy-800); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f2a47' d='M11 5h2v14h-2zM5 11h14v2H5z'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 24px 20px; color: #364055; }
.faq__body p { margin: 0; }

/* ---------- Register ---------- */
.hero__inner > *, .about > *, .register > *, .calc > *, .panel > *, .contact-list li > div { min-width: 0; }
.register { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.register__intro > p { color: #364055; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-800); display: grid; place-items: center; flex: none; }
.contact-list__icon svg { width: 20px; height: 20px; fill: var(--gold-500); }
.contact-list small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 24px); }

.progress { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: p; }
.progress li {
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
  padding-bottom: 12px; border-bottom: 3px solid var(--line); transition: color .3s, border-color .3s;
}
.progress span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); font-size: 13px; flex: none;
  transition: background .3s, color .3s;
}
.progress li.is-active { color: var(--navy-800); border-color: var(--gold-500); }
.progress li.is-active span { background: var(--gold-500); color: var(--navy-900); }
.progress li.is-done { color: var(--navy-800); border-color: var(--navy-800); }
.progress li.is-done span { background: var(--navy-800); color: var(--white); }

.form-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.form-step.is-active { animation: fadeUp .35s var(--ease); }
.form-step[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field__label { font-weight: 600; font-size: 14px; color: var(--navy-800); }
.req { font-weight: 600; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1.5px solid #d5dbe5; border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235a6476' d='m7 10 5 5 5-5z'/%3E%3C/svg%3E") right 10px center/22px no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(36,81,138,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { display: none; margin: 0; color: var(--danger); font-size: 13px; }
.has-error > .field__error, .field__error.is-visible { display: block; }
.field__hint { margin: 0; font-size: 13px; color: var(--muted); }

.level { display: flex; flex-wrap: wrap; gap: 8px; }
.level label, .choice { position: relative; }
.level input, .choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.level span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #d5dbe5; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.level input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.level input:focus-visible + span, .choice input:focus-visible + .choice__body { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice__body {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px; border-radius: 12px; border: 1.5px solid #d5dbe5;
  cursor: pointer; transition: all .15s; font-size: 14px;
}
.choice__body strong { color: var(--navy-800); }
.choice__body small { color: var(--muted); }
.choice:hover .choice__body { border-color: var(--navy-600); }
.choice input:checked + .choice__body { border-color: var(--gold-500); background: var(--gold-100); box-shadow: inset 0 0 0 1px var(--gold-500); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; align-items: center; }
.chips__empty { color: var(--muted); font-size: 14px; font-style: italic; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px;
  background: var(--navy-800); color: var(--white); font-size: 13px; font-weight: 500;
}
.chip button { border: 0; background: rgba(255,255,255,.18); color: var(--white); width: 20px; height: 20px; border-radius: 50%; line-height: 1; padding: 0; font-size: 14px; }
.chip button:hover { background: var(--gold-500); color: var(--navy-900); }

.summary { background: var(--cream); border-radius: var(--radius); padding: 18px 20px; font-size: 14px; border: 1px solid #efe8da; }
.summary h4 { font-size: 1rem; margin-bottom: 10px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; color: var(--navy-800); }
.summary__est { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed #e6dcc6; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #364055; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy-800); flex: none; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.form-nav #btn-next, .form-nav #btn-submit { margin-left: auto; }
.form-status { margin: 14px 0 0; font-size: 14px; min-height: 1.4em; }
.form-status.is-error { color: var(--danger); }

.success { text-align: center; padding: 30px 10px; animation: fadeUp .4s var(--ease); }
.success[hidden] { display: none; }
.success__icon { width: 76px; height: 76px; border-radius: 50%; background: #e3f4ec; display: grid; place-items: center; margin: 0 auto 18px; }
.success__icon svg { width: 40px; height: 40px; fill: var(--success); }
.success p { color: var(--muted); max-width: 420px; margin-inline: auto; margin-bottom: 24px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold-500); padding: 56px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy-900); }
.cta-band p { margin: 0; color: var(--navy-800); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 72px 0 48px; }
.footer__brand p { margin-top: 18px; max-width: 340px; }
.footer__title { color: var(--white); font-family: var(--font-body); font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 18px; }
.footer__links, .footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold-400); }
.footer__prices { display: grid; gap: 6px; margin-top: 18px; padding: 14px 16px; background: rgba(255,255,255,.05); border-radius: var(--radius-sm); font-size: 14px; }
.footer__prices strong { color: var(--gold-500); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.footer__bottom p { margin: 0; }

/* ---------- Floating ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-800); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top svg { width: 26px; height: 26px; fill: var(--gold-500); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy-700); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--navy-900); color: var(--white); padding: 12px 20px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg);
  transition: opacity .3s, transform .3s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__menu a:not(.btn) { padding: 8px 9px; font-size: 14px; }
}

@media (max-width: 980px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 12px 16px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .25s, visibility .25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; padding: 14px; }

  .hero__inner, .about, .register, .calc { grid-template-columns: 1fr; }
  .hero__inner { gap: 40px; }
  .hero__card { max-width: 520px; }
  .formats { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .journey, .compare { grid-template-columns: 1fr; }
  .expertise { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .panel { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .form-card { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: 68px 0; }
  .topbar__inner { justify-content: center; font-size: 12px; gap: 4px 14px; }
  .brand__mark { width: 40px; height: 40px; font-size: 16px; }
  .brand__text strong { font-size: 17px; }
  .hero { padding-top: 48px; }
  .hl { white-space: normal; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__card { padding: 22px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .stat dd { font-size: 1.9rem; }
  .checklist--two { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .calc__controls, .calc__result { padding: 22px; }
  .seg { grid-auto-flow: row; grid-auto-columns: auto; }
  .seg--sm, .seg--light { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .picker__days { gap: 4px; }
  .picker__day strong { font-size: 13px; }
  .steps { grid-template-columns: 1fr; }
  .journey, .compare { padding: 22px; }
  .journey__stairs { grid-template-columns: 1fr; min-height: 0; align-items: stretch; }
  .stair { height: auto; flex-direction: row; align-items: center; margin-left: calc(var(--i) * 10px); border-radius: 10px; }
  .ladder li { margin-left: calc(var(--i) * 10px); }
  .compare__table { font-size: 14px; }
  .compare__table th, .compare__table td { padding: 10px 8px; }
  .compare__table tbody th { white-space: normal; }
  .topbar__item--limited { display: none; }
  .form-card { padding: 22px; }
  .progress li { flex-direction: column; text-align: center; gap: 6px; font-size: 12px; }
  .field-row, .choice-cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .cta-band__inner { text-align: center; justify-content: center; }
  .cta-band .btn { width: 100%; }
}
