/* ==========================================================================
  DREAMVISION — main stylesheet
   Concept: a topographic trail map. The exam journey is the trail.
   Sections:  1 Tokens · 2 Base · 3 Layout · 4 Header · 5 Buttons
              6 Hero + trail map · 7 Components · 8 Forms · 9 Footer · 10 Utilities
   ========================================================================== */

/* 1 — TOKENS ------------------------------------------------------------- */
:root {
  --fiord: #172d49;
  --fiord-deep: #0d1d33;
  --pounamu: #a9531c;
  --pounamu-soft: #fff0e1;
  --kowhai: #f4a261;
  --kowhai-deep: #df8547;
  --pohutukawa: #e8a05a;
  --sky: #426486;
  --mist: #f5f7fa;
  --paper: #ffffff;
  --ink: #1c2b3d;
  --muted: #5c6979;
  --line: #dce3ea;

  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 8px;
  --shadow: 0 1px 2px rgba(13, 29, 51, .06), 0 12px 32px -12px rgba(13, 29, 51, .18);
  --header-h: 72px;
}

/* 2 — BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 .6em;
  color: var(--fiord);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); font-weight: 800; letter-spacing: 0; }
h2 { font-size: clamp(1.8rem, 1.25rem + 1.9vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); letter-spacing: 0; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
p, li, dd { max-width: 68ch; }
a { color: var(--pounamu); text-underline-offset: .18em; text-decoration-thickness: 1.5px; overflow-wrap: break-word; }
a:hover { color: var(--fiord); }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.topbar :focus-visible, .hero :focus-visible, .page-hero :focus-visible,
.site-footer :focus-visible, .section--fiord :focus-visible, .cta-band :focus-visible { outline-color: var(--kowhai); }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--kowhai); color: var(--fiord); padding: .7rem 1rem; border-radius: var(--r-s); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* icons (sprite in every page) */
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon--fill { fill: currentColor; stroke: none; }

/* 3 — LAYOUT ------------------------------------------------------------- */
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 6.5vw, 6.25rem); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.section--mist { background: var(--mist); }
.section--fiord { background: var(--fiord); color: #edf2f8; }
.section--fiord h2, .section--fiord h3 { color: #fff; }
.section--fiord a { color: var(--kowhai); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.section--fiord .section-head p { color: #c5d2df; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.stack > * + * { margin-top: 1rem; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 46rem; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.tick-list li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--pounamu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* 4 — HEADER ------------------------------------------------------------- */
.topbar { background: var(--fiord-deep); color: #c5d2df; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; align-items: center; }
.topbar a { color: #edf2f8; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; }
.topbar a:hover { color: var(--kowhai); }
.topbar__links { display: flex; gap: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-width: 0; }
.topbar .wrap { min-width: 0; }
.topbar__links::-webkit-scrollbar { display: none; }
@media (max-width: 480px) { .topbar .wrap { justify-content: flex-start; } .topbar__links { gap: 1rem; } }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--fiord); font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: 0; line-height: 1; }
.brand:hover { color: var(--fiord); }
.brand__mark { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 6px; background: var(--kowhai); color: var(--fiord-deep); display: grid; place-items: center; font: 800 1.5rem/1 var(--font-display); }
.brand__logo { display: block; width: 3rem; height: 3rem; flex: none; object-fit: contain; }
.brand__name { font: 800 1.1rem/1 var(--font-display); color: var(--fiord); }
.brand__text { display: flex; flex-direction: column; gap: .2rem; }
.brand small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .68rem; letter-spacing: .08em; color: var(--muted); margin-top: .22rem; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav__btn {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 999px;
  font: 600 .98rem var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  white-space: nowrap;
}
.nav { flex-wrap: nowrap; }
.nav a:hover, .nav__btn:hover { background: var(--mist); color: var(--fiord); }
.nav a[aria-current="page"] { color: var(--pounamu); background: var(--pounamu-soft); }
.has-sub > .nav__btn[aria-current="true"] { color: var(--pounamu); }
.nav .btn { margin-left: .5rem; }
.nav .btn:hover { background: var(--kowhai-deep); color: var(--fiord); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + .35rem); left: 0; min-width: 17rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-m); box-shadow: var(--shadow); padding: .5rem; display: none; z-index: 50;
}
.has-sub.is-open .sub { display: block; }
.sub a { display: flex; flex-direction: column; align-items: flex-start; gap: 0; border-radius: 10px; padding: .65rem .8rem; }
.sub a small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.nav__btn .icon { width: .95em; height: .95em; transition: transform .15s; }
.has-sub.is-open .nav__btn .icon { transform: rotate(180deg); }
.nav-toggle { display: none; background: var(--mist); border: 0; border-radius: 12px; width: 2.9rem; height: 2.9rem; cursor: pointer; color: var(--fiord); place-items: center; }
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }

@media (max-width: 1100px) {
  .topbar__tagline { display: none; }
  .topbar .wrap { justify-content: center; }
  .nav-toggle { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    padding: .75rem 1.25rem 1.25rem; flex-direction: column; align-items: stretch; gap: .15rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    box-shadow: 0 20px 30px -20px rgba(13, 29, 51, .3);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a, .nav__btn { padding: .8rem .9rem; border-radius: 12px; justify-content: space-between; width: 100%; }
  .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 .25rem .75rem; min-width: 0; }
  .has-sub.is-open .sub { display: block; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
}

/* 5 — BUTTONS ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
  line-height: 1.2; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--kowhai { background: var(--kowhai); color: var(--fiord); }
.btn--kowhai:hover { background: var(--kowhai-deep); color: var(--fiord); }
.btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.btn--line { border-color: var(--fiord); color: var(--fiord); background: transparent; }
.btn--line:hover { background: var(--fiord); color: #fff; }
.btn--jade { background: var(--kowhai); color: var(--fiord-deep); }
.btn--jade:hover { background: var(--fiord); color: #fff; }
.btn--small { padding: .6rem 1.1rem; font-size: .93rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }

/* 6 — HERO + TRAIL MAP ---------------------------------------------------- */
.topo { background-color: var(--fiord); background-image: url("../img/topo.svg"); background-size: cover; background-position: center; }
.hero { position: relative; color: #e9eff6; padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; max-width: 14ch; }
.hero .lead { color: #d2deea; }
.hero__proof { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .5rem; color: #e9eff6; font-size: .98rem; }
.hero__proof li { display: flex; gap: .6rem; align-items: flex-start; }
.hero__proof .icon { color: var(--kowhai); margin-top: .25em; }
.trail { margin: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-l); background: rgba(6, 30, 38, .55); padding: 1rem 1rem .75rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.trail svg { width: 100%; height: auto; overflow: visible; }
.trail__path-bg { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.trail__path { fill: none; stroke: var(--kowhai); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.4s .35s cubic-bezier(.45, .05, .3, 1) forwards; }
.trail__node { opacity: 0; animation: pop .5s ease-out forwards; }
.trail__node circle { stroke-width: 3; }
.trail__node--kna circle { fill: var(--kowhai); stroke: var(--fiord-deep); }
.trail__node--you circle { fill: var(--fiord); stroke: #b9c7d6; }
.trail__node .n { font: 800 17px var(--font-display); text-anchor: middle; }
.trail__node--kna .n { fill: var(--fiord); }
.trail__node--you .n { fill: #e9eff6; }
.trail__label { font: 700 21px var(--font-display); fill: #fff; }
.trail__sub { font: 500 15px var(--font-body); fill: #b7c7d9; }
.trail__kiwi { color: #fff; }
.trail__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .75rem .25rem 0; font-size: .86rem; color: #c5d2df; }
.trail__legend span { display: inline-flex; align-items: center; gap: .5rem; }
.trail__legend i { width: .95rem; height: .95rem; border-radius: 50%; border: 2px solid #b9c7d6; display: inline-block; }
.trail__legend i.k { background: var(--kowhai); border-color: var(--kowhai); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.trail__node { transform-box: fill-box; transform-origin: center; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
}
@media (prefers-reduced-motion: reduce) {
  .trail__path { animation: none; stroke-dashoffset: 0; }
  .trail__node { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* inner-page hero */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.25rem, 4vw, 3.75rem); color: #e9eff6; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); max-width: 22ch; margin-bottom: .4em; }
.page-hero .lead { color: #d2deea; }
.crumbs { font-size: .9rem; margin-bottom: 1.25rem; color: #b7c7d9; }
.crumbs a { color: #e9eff6; }
.crumbs a:hover { color: var(--kowhai); }
.crumbs span { margin-inline: .45rem; opacity: .6; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.page-hero__meta li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: .35rem .85rem; border-radius: 999px; font-size: .9rem; color: #fff; max-width: none; }

/* 7 — COMPONENTS ---------------------------------------------------------- */

/* chooser */
.chooser { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.chooser__q { padding: clamp(1.5rem, 3vw, 2.5rem); }
.chooser__q h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.chooser__opts { display: grid; gap: .6rem; margin-top: 1.25rem; }
.chooser__opt {
  display: flex; align-items: center; gap: .85rem; text-align: left; width: 100%; padding: .85rem 1rem; border-radius: var(--r-m);
  border: 1.5px solid var(--line); background: #fff; font: 600 1rem/1.35 var(--font-body); color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chooser__opt:hover { border-color: var(--pounamu); background: var(--mist); }
.chooser__opt::before { content: ""; width: 1.15rem; height: 1.15rem; border: 2px solid #c3ccd6; border-radius: 50%; flex: none; transition: all .15s; }
.chooser__opt[aria-pressed="true"] { border-color: var(--pounamu); background: var(--pounamu-soft); }
.chooser__opt[aria-pressed="true"]::before { border-color: var(--pounamu); background: var(--pounamu); box-shadow: inset 0 0 0 3px var(--pounamu-soft); }
.chooser__out { background: var(--fiord); color: #e9eff6; padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; min-height: 18rem; }
.chooser__out h3 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.chooser__out p { color: #d2deea; }
.chooser__out .kicker { font-weight: 600; color: var(--kowhai); font-size: .95rem; margin-bottom: .5rem; }
@media (max-width: 860px) { .chooser { grid-template-columns: 1fr; } .chooser__out { min-height: 0; } }

/* course rows (home + courses) */
.routes { list-style: none; padding: 0; margin: 0; }
.route { --c: var(--pounamu); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 1rem 3rem; align-items: start; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.routes--steps .route { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.route::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 4px; background: var(--c); }
.route:last-child { border-bottom: 1px solid var(--line); }
.route--iqn { --c: var(--pounamu); }
.route--osce { --c: var(--pohutukawa); }
.route--oet { --c: var(--sky); }
.route h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: .3em; }
.route__for { color: var(--muted); font-size: .98rem; margin: 0; }
.route p { margin-bottom: .75rem; }
.route__facts { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.route__facts li { font-size: .88rem; font-weight: 600; padding: .3rem .75rem; border-radius: 6px; background: var(--mist); color: var(--fiord); border-left: 3px solid var(--c); max-width: none; }
.route .btn { align-self: center; white-space: nowrap; }
@media (max-width: 900px) { .route, .routes--steps .route { grid-template-columns: 1fr; } .route .btn { justify-self: start; } }

/* definition-style feature list (method) */
.defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); margin: 0; }
.defs > div { padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.section:not(.section--fiord) .defs > div { border-top-color: var(--line); }
.defs dt { font: 700 1.3rem var(--font-display); color: #fff; margin-bottom: .3rem; letter-spacing: 0; }
.section:not(.section--fiord) .defs dt { color: var(--fiord); }
.defs dd { margin: 0; color: #c5d2df; }
.section:not(.section--fiord) .defs dd { color: var(--muted); }
@media (max-width: 760px) { .defs { grid-template-columns: 1fr; } }

/* facts table-like list */
.facts { margin: 0; border-top: 2px solid var(--fiord); }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 1rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--fiord); }
.facts dd { margin: 0; max-width: none; }
@media (max-width: 640px) { .facts > div { grid-template-columns: 1fr; gap: .2rem; } }

/* vertical timeline (sequence → numbers are meaningful) */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.35rem; top: 1rem; bottom: 1rem; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 14px); }
.timeline > li { counter-increment: step; position: relative; padding: 0 0 2.25rem 4.25rem; max-width: none; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.1rem var(--font-display); background: #fff; color: var(--fiord); border: 2.5px solid var(--fiord);
}
.timeline > li.is-kna::before { background: var(--kowhai); border-color: var(--fiord); }
.timeline h3 { margin-bottom: .25em; }
.timeline p { margin-bottom: .6rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .65rem; border-radius: 6px; margin-right: .4rem; }
.tag--kna { background: var(--kowhai); color: var(--fiord); }
.tag--you { background: var(--mist); color: var(--fiord); border: 1px solid var(--line); }

/* notes */
.note { border-left: 4px solid var(--sky); background: #edf2f8; padding: 1rem 1.25rem; border-radius: 0 var(--r-m) var(--r-m) 0; margin-block: 1.5rem; color: var(--ink); }
.note p:last-child { margin: 0; }
.note--warn { border-left-color: var(--pohutukawa); background: #fff0e1; }
.note--jade { border-left-color: var(--pounamu); background: var(--pounamu-soft); }
.note strong:first-child { color: var(--fiord); }

/* accordion */
.accordion { border-top: 2px solid var(--fiord); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 1.15rem 3rem 1.15rem 0; font: 700 1.15rem var(--font-display); color: var(--fiord); position: relative; letter-spacing: 0; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after, .accordion summary::before { content: ""; position: absolute; right: .5rem; top: 50%; width: 1rem; height: 2.5px; background: var(--pounamu); border-radius: 2px; transition: transform .2s; }
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] summary::after { transform: rotate(0); }
.accordion summary:hover { color: var(--pounamu); }
.accordion .answer { padding: 0 0 1.4rem; color: var(--ink); }
.accordion .answer p:last-child { margin-bottom: 0; }
.faq-group { margin-top: 3rem; }
.faq-group:first-of-type { margin-top: 0; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: .75rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .98rem; }
th, td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--fiord); color: #fff; font: 700 .95rem var(--font-display); letter-spacing: .01em; }
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--fiord); background: var(--mist); }

/* pills for course identity */
.pill { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; padding: .25rem .7rem; border-radius: 6px; background: var(--mist); border-left: 3px solid var(--c, var(--pounamu)); color: var(--fiord); }
.pill--iqn { --c: var(--pounamu); } .pill--osce { --c: var(--pohutukawa); } .pill--oet { --c: var(--sky); }

/* tool (OET checker) */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2.25rem); }
.tool__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin: 1.25rem 0; }
.tool__field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; color: var(--fiord); }
.tool__field small { display: block; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.tool__result { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tool__result li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem 1rem; border-radius: var(--r-s); background: var(--mist); font-weight: 600; max-width: none; }
.tool__result li.ok { background: var(--pounamu-soft); }
.tool__result li.short { background: #fff0e1; }
.tool__result .verdict { font-size: .9rem; }
.tool__result li.ok .verdict { color: var(--pounamu); }
.tool__result li.short .verdict { color: var(--pohutukawa); }
.tool__summary { margin-top: 1rem; font-weight: 600; color: var(--fiord); }
@media (max-width: 640px) { .tool__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* story placeholders + quotes */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.story { border: 1.5px dashed #c3ccd6; border-radius: var(--r-m); padding: 1.5rem; background: #fff; display: flex; flex-direction: column; gap: 1rem; }
.story:nth-child(2) { margin-top: 1.75rem; }
.story blockquote { margin: 0; font: 500 1.08rem/1.55 var(--font-body); color: var(--muted); }
.story__who { display: flex; gap: .8rem; align-items: center; font-size: .92rem; color: var(--muted); margin-top: auto; }
.avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--pounamu-soft); color: var(--pounamu); display: grid; place-items: center; font: 800 1rem var(--font-display); flex: none; }
.story__who b { display: block; color: var(--fiord); }
@media (max-width: 900px) { .stories { grid-template-columns: 1fr; } .story:nth-child(2) { margin-top: 0; } }

/* team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.team li { max-width: none; }
.team .avatar { width: 4.5rem; height: 4.5rem; font-size: 1.4rem; margin-bottom: .9rem; border-radius: 20px; }
.team h3 { font-size: 1.15rem; margin-bottom: .1em; }
.team p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.post { display: flex; flex-direction: column; border-top: 4px solid var(--c, var(--pounamu)); padding-top: 1rem; }
.post h3 { font-size: 1.35rem; }
.post h3 a { color: var(--fiord); text-decoration: none; }
.post h3 a:hover { color: var(--pounamu); }
.post p { color: var(--muted); }
.post__meta { font-size: .88rem; color: var(--muted); margin-bottom: .5rem; }
.post--soon { opacity: .6; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.9rem; margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose li { margin-bottom: .4rem; }

/* CTA band */
.cta-band { background: var(--fiord); color: #e9eff6; padding-block: clamp(3rem, 5vw, 4.5rem); }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #c5d2df; margin: 0; }
.cta-band .btn-row { margin: 0; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band__grid { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; margin-top: 1rem; } }

/* contact blocks */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; max-width: none; }
.contact-list .ic { width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--pounamu-soft); color: var(--pounamu); display: grid; place-items: center; flex: none; }
.contact-list li > div { min-width: 0; }
.contact-list b { display: block; color: var(--fiord); }
.contact-list a { color: var(--ink); overflow-wrap: anywhere; }

/* 8 — FORMS -------------------------------------------------------------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form__full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; color: var(--fiord); }
.field .opt { font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%; font: 500 1rem var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid #c3ccd6; border-radius: 10px; padding: .75rem .9rem; min-height: 3rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--pounamu); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(244, 162, 97, .35); border-color: var(--pounamu); }
input:user-invalid, select:user-invalid { border-color: var(--pohutukawa); }
.form__foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form__foot p { margin: 0; font-size: .88rem; color: var(--muted); max-width: 40ch; }
.form__status { margin-top: 1rem; font-weight: 600; color: var(--pounamu); }
.form__status:empty { display: none; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }

/* 9 — FOOTER ------------------------------------------------------------- */
.site-footer { background: var(--fiord-deep); color: #b7c7d9; padding-top: clamp(3rem, 5vw, 4.5rem); font-size: .97rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand small { color: #b7c7d9; }
.site-footer .brand__mark { background: var(--kowhai); color: var(--fiord-deep); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #e2eaf3; text-decoration: none; overflow-wrap: anywhere; }
.site-footer li { overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--kowhai); text-decoration: underline; }
.footer__about { margin-top: 1rem; max-width: 30ch; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.social a:hover { background: var(--kowhai); border-color: var(--kowhai); color: var(--fiord); }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.5rem 5.5rem; font-size: .85rem; }
.footer__legal p { max-width: 90ch; margin-bottom: .75rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.footer__bottom ul { display: flex; gap: 1.25rem; }
.footer__cookie-settings { padding: 0; border: 0; color: #e2eaf3; background: none; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.footer__cookie-settings:hover { color: var(--kowhai); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* cookie consent */
.cookie-consent { position: fixed; z-index: 120; right: 0; bottom: 0; left: 0; padding: 1.25rem max(1.25rem, calc((100vw - 1180px) / 2)); color: #fff; background: #172d49; box-shadow: 0 -8px 32px rgba(13, 29, 51, .2); }
.cookie-consent__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; max-width: 1180px; margin: 0 auto; }
.cookie-consent__copy { flex: 1 1 32rem; }
.cookie-consent__copy h2 { margin: 0 0 .45rem; color: #fff; font-size: 1.2rem; }
.cookie-consent__copy p { max-width: 72ch; margin: 0; color: #edf2f8; line-height: 1.5; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.cookie-consent__button { min-height: 3rem; padding: .7rem 1.35rem; border: 1px solid transparent; border-radius: 999px; color: #fff; background: #0756b5; font: 700 .96rem var(--font-body); cursor: pointer; }
.cookie-consent__button:hover { background: #064998; }
.cookie-consent__button--manage { background: #0d2861; }
.cookie-consent__button--manage:hover { background: #0a2050; }
.cookie-consent__preferences { flex: 1 0 100%; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.cookie-consent__preferences[hidden] { display: none; }
.cookie-consent__preferences h3 { margin-bottom: .5rem; color: #fff; font-size: 1.05rem; }
.cookie-consent__preferences p { color: #d7e1ef; }
.cookie-consent__choices { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 0 0 1rem; padding: 0; border: 0; }
.cookie-consent__choices legend { margin-bottom: .5rem; color: #d7e1ef; font-weight: 600; }
.cookie-consent__choice { display: inline-flex; align-items: center; gap: .5rem; color: #fff; }
.cookie-consent__choice input { width: 1.1rem; height: 1.1rem; accent-color: #f4a261; }
.cookie-consent__error { margin: .65rem 0 0; color: #ffd2b4; }
.cookie-consent__error[hidden] { display: none; }
@media (max-width: 620px) {
  .cookie-consent { padding: 1rem; }
  .cookie-consent__actions { width: 100%; }
  .cookie-consent__button { flex: 1 1 auto; }
}

/* floating WhatsApp */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90; display: inline-flex; align-items: center; gap: .55rem; background: var(--kowhai); color: var(--fiord-deep); padding: .8rem 1.15rem; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .3); }
.wa-float:hover { background: var(--kowhai-deep); color: var(--fiord-deep); }
.wa-float .icon { width: 1.35rem; height: 1.35rem; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: .9rem; } }

/* guided website assistant */
.site-assistant { position: fixed; right: 1.1rem; bottom: 5.8rem; z-index: 91; font-family: var(--font-body); }
.assistant-launcher {
  display: inline-flex; align-items: center; gap: .65rem; padding: .85rem 1.15rem; border: 0; border-radius: 999px;
  background: var(--fiord); color: #fff; font: 700 1rem var(--font-body); cursor: pointer;
  box-shadow: 0 0 0 0 rgba(244, 162, 97, .55), 0 10px 28px -8px rgba(0, 0, 0, .35);
  animation: assistant-glow 2.5s ease-out infinite;
}
.assistant-launcher:hover { background: var(--fiord-deep); color: #fff; }
.assistant-launcher .icon { width: 1.35rem; height: 1.35rem; }
.assistant-launcher__status { width: .55rem; height: .55rem; border-radius: 50%; background: #86d6a2; }
@keyframes assistant-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 162, 97, .42), 0 10px 28px -8px rgba(0, 0, 0, .35); }
  55% { box-shadow: 0 0 0 10px rgba(244, 162, 97, 0), 0 10px 28px -8px rgba(0, 0, 0, .35); }
}
.assistant-panel {
  position: absolute; right: 0; bottom: calc(100% + .85rem); width: min(390px, calc(100vw - 2rem));
  max-height: min(660px, calc(100vh - 8rem)); display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 55px rgba(13, 29, 51, .28);
}
.assistant-panel[hidden] { display: none; }
.assistant-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: var(--fiord); color: #fff; }
.assistant-panel__head h2 { margin: 0; color: #fff; font-size: 1.05rem; }
.assistant-panel__head p { margin: .15rem 0 0; color: #d4dfeb; font-size: .82rem; }
.assistant-close { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; }
.assistant-disclaimer { margin: 0; padding: .55rem 1rem; background: var(--mist); color: var(--muted); font-size: .78rem; line-height: 1.4; }
.assistant-messages { min-height: 120px; flex: 1; overflow-y: auto; padding: 1rem; scroll-behavior: smooth; }
.assistant-message { width: fit-content; max-width: 92%; margin: 0 0 .75rem; padding: .7rem .85rem; border-radius: 14px 14px 14px 4px; background: var(--mist); color: var(--ink); font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message--user { margin-left: auto; border-radius: 14px 14px 4px 14px; background: #e8f0f8; }
.assistant-message a { display: inline-block; margin-top: .35rem; }
.assistant-quick { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1rem .85rem; }
.assistant-quick button { padding: .45rem .7rem; border: 1px solid #cbd6e1; border-radius: 999px; background: #fff; color: var(--fiord); font: 600 .84rem var(--font-body); cursor: pointer; }
.assistant-quick button:hover { border-color: var(--pounamu); background: var(--pounamu-soft); }
.assistant-composer { display: flex; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.assistant-composer input { min-width: 0; min-height: 2.8rem; padding: .55rem .75rem; }
.assistant-send { flex: none; padding: .55rem .85rem; border: 0; border-radius: 10px; background: var(--kowhai); color: var(--fiord-deep); font: 700 .95rem var(--font-body); cursor: pointer; }
@media (max-width: 560px) {
  .site-assistant { right: 1rem; bottom: 5.2rem; }
  .assistant-launcher { padding: .8rem 1rem; }
  .assistant-panel { position: fixed; right: 1rem; bottom: 5rem; width: min(390px, calc(100vw - 2rem)); max-height: min(74vh, 660px); }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-launcher { animation: none; }
  .assistant-messages { scroll-behavior: auto; }
}

/* 10 — UTILITIES --------------------------------------------------------- */
.topo.hero {
  min-height: min(690px, calc(100svh - 160px));
  padding-block: 0;
  display: flex;
  align-items: center;
  background-color: var(--fiord-deep);
  background-image: linear-gradient(90deg, rgba(13, 29, 51, .9) 0%, rgba(13, 29, 51, .74) 52%, rgba(13, 29, 51, .2) 100%), url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=2200&q=85");
  background-size: cover;
  background-position: center 44%;
}
.topo.hero .hero__grid { width: min(1180px, 100% - 2.5rem); grid-template-columns: 1fr; padding-block: clamp(3rem, 6vh, 4.5rem); margin-inline: auto; }
.topo.hero .hero__grid > div:first-child { width: min(100%, 46rem); }
.topo.hero h1 { max-width: 12ch; font-size: 4.5rem; }
.topo.hero .lead { max-width: 39rem; color: #f1f4f5; }
.topo.hero .hero__proof { max-width: 39rem; padding: 0; }
.topo.hero .hero__proof li { position: relative; padding-left: 1.35rem; }
.topo.hero .hero__proof li::before { content: ""; position: absolute; left: 0; top: .67em; width: .48rem; height: .48rem; border-radius: 50%; background: var(--kowhai); }
.topo.hero .eyebrow { color: #ffc15e; }
.topo.hero .trail { display: none; }
.home-services .section-head { max-width: 48rem; }
.metrics-section { padding-block: clamp(2.5rem, 4vw, 3.75rem); }
.metrics-section .section-head { margin-bottom: 1.5rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.metric { min-width: 0; padding: 1.25rem clamp(.75rem, 2vw, 1.5rem); border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric dt { color: var(--fiord); font: 800 clamp(1.65rem, 3vw, 2.5rem)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.metric dd { margin: .4rem 0 0; color: var(--muted); font-weight: 600; }
.eyebrow { margin-bottom: .65rem; color: var(--pounamu); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-width: 0; min-height: 15rem; display: flex; flex-direction: column; padding: 1.5rem; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .18s, box-shadow .18s, transform .18s; }
.service-card:hover { position: relative; z-index: 1; background: #fffaf3; color: var(--ink); box-shadow: 0 10px 28px rgba(23, 37, 54, .1); transform: translateY(-2px); }
.service-card__num { color: var(--kowhai-deep); font: 800 .9rem var(--font-display); }
.service-card h3 { margin: 1.15rem 0 .5rem; font-size: 1.25rem; }
.service-card p { color: var(--muted); font-size: 1rem; margin-bottom: 1.25rem; }
.service-card__link { display: flex; justify-content: space-between; gap: .75rem; margin-top: auto; color: var(--pounamu); font-size: .93rem; font-weight: 700; }
.approach-list { margin: 0; }
.approach-list > div { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.approach-list dt { color: var(--fiord); font: 700 1.15rem var(--font-display); }
.approach-list dd { margin: .35rem 0 0; color: var(--muted); }
.app-launch { overflow: hidden; background: var(--fiord); color: #e9eff6; padding-block: clamp(3.5rem, 6vw, 5rem); }
.app-launch__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(15rem, .65fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.app-launch__content { max-width: 44rem; }
.app-launch__content h2 { color: #fff; }
.app-launch__content > p:not(.eyebrow) { color: #c5d2df; max-width: 42rem; }
.app-launch .eyebrow { color: var(--kowhai); }
.app-launch__mark { width: min(100%, 19rem); aspect-ratio: 1; justify-self: center; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .24); border-radius: 8px; background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); box-shadow: 0 24px 60px rgba(0, 0, 0, .2); text-align: center; transform: rotate(3deg); }
.app-launch__mark span { color: #d2deea; font: 700 .68rem var(--font-display); letter-spacing: .08em; }
.app-launch__mark strong { margin-top: .3rem; color: var(--kowhai); font: 800 5rem/.95 var(--font-display); }
.app-launch__mark b { color: #fff; font: 700 1.25rem var(--font-display); }
.app-launch__mark small { margin-top: 1.25rem; padding: .35rem .7rem; border: 1px solid rgba(244, 162, 97, .65); border-radius: 999px; color: #ffd0a7; font: 700 .7rem var(--font-body); letter-spacing: .08em; }
.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal-visible { opacity: 1; transform: translateY(0); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
.site-footer .brand__mark { background: var(--kowhai); color: var(--fiord-deep); }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .topo.hero { min-height: 600px; background-position: 58% center; background-image: linear-gradient(90deg, rgba(13, 29, 51, .9), rgba(13, 29, 51, .58)), url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1200&q=85"); }
  .topo.hero .hero__grid { padding-block: 3.5rem; }
  .topo.hero h1 { font-size: 2.8rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3), .metric:nth-child(4) { border-bottom: 0; }
  .metric:nth-child(3) { padding-left: 0; }
  .app-launch__grid { grid-template-columns: 1fr; }
  .app-launch__mark { width: min(72vw, 16rem); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-visible { transition: none; }
  .reveal-pending { opacity: 1; transform: none; }
}
.brand { letter-spacing: 0; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media print { .site-header, .topbar, .wa-float, .cta-band, .site-footer { display: none; } }
