/* Miles Dibsdall, The Expat Coach. Shared styles for the opt-in and walkthrough pages. */

:root {
  /* ---- BRAND: change this block for each client ---- */
  /* Ground: near-black with a hint of green, darkest first */
  --ground: #0b0d0b;
  --ground-2: #121512;
  --ground-3: #191d19;
  --ground-4: #222722;
  --ground-rgb: 11, 13, 11;
  --panel-top-rgb: 30, 36, 30;   /* top of form panels */
  --panel-rgb: 18, 21, 18;       /* bottom of form panels */
  /* Accent: the green from The Expat Coach logo (UAE flag green) */
  --accent: #1a861b;          /* Miles's Canva brand kit green */
  --accent-rgb: 26, 134, 27;
  --accent-hi: #63d46e;          /* lighter, for text on the dark ground */
  --accent-hi-rgb: 99, 212, 110;
  --accent-lo: #157a1b;          /* bottom of the button gradient */
  --accent-deep: #0c600c;
  --accent-shade-rgb: 8, 60, 8;
  --accent-ink: #ffffff;         /* text on accent buttons */
  --accent-ink-rgb: 255, 255, 255;
  /* Second brand colour: the logo red, used for the stroke under key phrases */
  --red: #dc3925;
  /* Text */
  --text: #f3f5f1;
  --text-2: #d3d9d1;
  --text-rgb: 243, 245, 241;
  --mute: #9ba59a;
  --placeholder: #7f897e;
  --ok: #8fd19e;
  --err: #ff8f7a;
  --line: rgba(var(--accent-rgb), 0.2);
  --line-strong: rgba(var(--accent-rgb), 0.4);
  --hair: rgba(var(--text-rgb), 0.09);
  /* Label on every gap the client still has to answer */
  --tbc-label: "Miles to confirm: ";
  /* ---- end BRAND (fonts are just below) ---- */

  --display: "Archivo", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(18px, 4.5vw, 48px);
  --wrap: 1180px;
  --section: clamp(84px, 11vw, 148px);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }
html { scrollbar-color: var(--ground-4) var(--ground); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--ground-4); border-radius: 99px; border: 3px solid var(--ground); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

img, video, iframe { display: block; max-width: 100%; }
a { color: var(--accent-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

.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;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 {
  font-size: clamp(38px, 5.3vw, 70px);
  line-height: 1.01;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
p { margin: 0; text-wrap: pretty; }
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34em;
}
.accent { color: var(--accent-hi); }
.muted { color: var(--mute); }

/* The brush stroke, in the logo red, swept in under one phrase per page */
.stroke {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.stroke::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -3%;
  bottom: -0.12em;
  height: 0.34em;
  background: url("img/brush.png") center / 100% 100% no-repeat;
  z-index: -1;
  opacity: 0.95;
  clip-path: inset(0 0 0 0);
}
.js .stroke::after { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease) 0.45s; }
.js .stroke.is-drawn::after { clip-path: inset(0 0 0 0); }

/* ---------- Header ---------- */

.top {
  position: relative;
  z-index: 3;
  padding-block: 22px 0;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 54px; height: 54px; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.brand-name span { display: block; color: var(--mute); font-family: var(--body); font-weight: 500; font-size: 13px; letter-spacing: 0; }
.top-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-2);
}
.top-note svg { color: var(--accent); flex: none; }

/* ---------- Hero ground: the triangle mark, drawn in ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 4% -12% auto auto;
  width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0) 70%);
  z-index: -2;
  pointer-events: none;
}
.mark-bg {
  position: absolute;
  z-index: -1;
  right: -40px; top: 70px;
  width: min(620px, 52vw);
  height: auto;
  color: var(--accent);
  opacity: 0.22;
  pointer-events: none;
}
.mark-bg path { fill: none; stroke: currentColor; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.js .mark-bg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) forwards; }
.js .mark-bg path:nth-child(2) { animation-delay: 0.25s; }
.js .mark-bg path:nth-child(3) { animation-delay: 0.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Buttons ---------- */

.btn {
  --h: 60px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-lo));
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(var(--accent-shade-rgb), 0.35),
    0 12px 24px -10px rgba(0, 0, 0, 0.7),
    0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.2s;
}
.btn:hover { transform: translateY(-2px); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(var(--accent-shade-rgb), 0.35), 0 18px 30px -12px rgba(0, 0, 0, 0.8), 0 3px 8px rgba(0, 0, 0, 0.45); }
.btn:active { transform: translateY(0); filter: brightness(0.96); }
.btn svg { flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn[disabled] { cursor: progress; filter: saturate(0.6) brightness(0.85); transform: none; }
.btn-block { width: 100%; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  min-height: 52px; padding: 12px 24px;
  white-space: pre-wrap;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--display); font-weight: 600; font-size: 16px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); color: var(--accent-hi); }

/* ---------- Form panel ---------- */

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(var(--panel-top-rgb), 0.92), rgba(var(--panel-rgb), 0.96));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.panel-title {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 6px;
}
.panel-sub { color: var(--text-2); font-size: 15.5px; margin-bottom: 22px; }

.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label, .label {
  font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: 0.005em;
}
.input, .select, textarea.input {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--text-rgb), 0.14);
  background: rgba(var(--ground-rgb), 0.65);
  color: var(--text);
  font: 500 17px/1.3 var(--body);
  caret-color: var(--accent-hi);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--placeholder); }
.input:hover { border-color: rgba(var(--text-rgb), 0.24); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); background: rgba(var(--ground-rgb), 0.85); }
.input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(255, 143, 122, 0.14); }
.field-error { color: var(--err); font-size: 14px; font-weight: 500; }

.phone { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-size: 6px 6px, 6px 6px;
  background-position: right 19px center, right 13px center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.select option { background: var(--ground-2); color: var(--text); }

.form-foot {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 14px;
  font-size: 14.5px; line-height: 1.5; color: var(--text-2);
}
.form-foot svg { flex: none; margin-top: 3px; color: var(--accent); }

/* Social proof line: three faces and a count */
.proof-line { display: flex; align-items: center; gap: 14px; }
.faces { display: flex; }
.faces img {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--ground-2);
  object-fit: cover;
  background: var(--ground-3);
}
.faces img + img { margin-left: -11px; }
.stars { display: flex; gap: 2px; color: var(--accent); }
.proof-copy { font-size: 14.5px; line-height: 1.35; color: var(--text-2); }
.proof-copy strong { color: var(--text); font-weight: 700; }

/* ---------- To be confirmed by the client. Visible on purpose: this is a sample. ---------- */

/* Gaps for Miles show only on the preview (html.preview, set in site.js). On the live domain they are hidden,
   and so is any item that would be empty without one (data-needs-miles). */
.tbc, [data-needs-miles] { display: none !important; }
html.preview [data-needs-miles] { display: revert !important; }
html.preview .tbc { display: inline !important; }
.tbc {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px dashed rgba(var(--accent-hi-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-hi);
  font-size: 0.92em;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.tbc::before { content: var(--tbc-label); font-weight: 700; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 18px; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }
.rule { border: 0; height: 1px; margin: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* Results ledger: real figures from the client's own words */
.ledger { border-block: 1px solid var(--line); background: var(--ground-2); }
.ledger-track {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(18px, 2.4vw, 30px) clamp(16px, 3vw, 32px);
}
/* Spotlight cards: a soft green glow that follows the mouse (ReactBits "Spotlight Card", in plain CSS and JS) */
.ledger-item {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center;
  padding: clamp(20px, 2.4vw, 28px) clamp(18px, 2.2vw, 26px);
  background: var(--ground-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .3s ease, transform .3s ease;
}
.ledger-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(var(--accent-hi-rgb), 0.16), transparent 60%);
  opacity: .55; transition: opacity .3s ease;
}
.ledger-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(var(--accent-hi-rgb), 0.7), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.ledger-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ledger-item:hover::before { opacity: 1; }
.ledger-item:hover::after { opacity: 1; }
.ledger-fig {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--accent-hi);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(var(--accent-hi-rgb), 0.25);
}
/* "Hundreds" has no number to count, so a light sheen runs across it instead (ReactBits "Shiny Text") */
.ledger-shine {
  background: linear-gradient(110deg, var(--accent-hi) 40%, #e9ffe9 50%, var(--accent-hi) 60%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  animation: ledger-shine 3.2s linear infinite;
}
@keyframes ledger-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.ledger-who { font-size: 15px; line-height: 1.4; color: var(--text-2); }
@media (max-width: 760px) {
  .ledger-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-item { padding: 18px 14px; }
  .ledger-fig { font-size: clamp(19px, 5.4vw, 26px); white-space: nowrap; }
  .ledger-who { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ledger-shine { animation: none; }
  .ledger-item, .ledger-item:hover { transform: none; }
}

/* The room: the client's own photo band */
.room {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.room img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
  z-index: -2;
  transform: scale(1.06);
  transition: transform 1.8s var(--ease);
}
.room.in img { transform: scale(1); }
.room::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--ground-rgb), 0.55) 0%, rgba(var(--ground-rgb), 0) 26%),
    linear-gradient(0deg, rgba(var(--ground-rgb), 0.97) 6%, rgba(var(--ground-rgb), 0.72) 38%, rgba(var(--ground-rgb), 0) 70%);
}
.room-copy { padding-block: clamp(48px, 7vw, 90px); }
.room-copy h2 { max-width: 15ch; }
.room-copy p { margin-top: 18px; max-width: 36em; color: var(--text-2); font-size: clamp(17px, 1.5vw, 19px); }
.count { font-variant-numeric: tabular-nums; }

/* Named reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px 26px 24px;
  border-radius: var(--radius);
  background: var(--ground-2);
  border: 1px solid var(--hair);
}
.review blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 19.5px;
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--text);
  flex: 1;
}
.review blockquote mark { background: none; color: var(--accent-hi); font-weight: 600; }
.who { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--hair); }
.who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.who strong { display: block; font-size: 16px; line-height: 1.2; }
.who span { font-size: 14px; color: var(--mute); }

/* Next steps: a path, not cards */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.path::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 23px; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--line-strong) 60%, rgba(var(--accent-rgb), 0.1));
}
.path li { position: relative; padding-right: clamp(18px, 3vw, 40px); }
.path .dot {
  position: relative;
  display: grid; place-items: center;
  width: 47px; height: 47px; border-radius: 50%;
  background: var(--ground);
  border: 1px solid var(--accent);
  color: var(--accent-hi);
  font-family: var(--display); font-weight: 700; font-size: 18px;
  margin-bottom: 22px;
}
.path li:first-child .dot { background: var(--accent); color: var(--accent-ink); }
.path h3 { margin-bottom: 8px; }
.path p { color: var(--text-2); font-size: 16px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 24px 2px;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-hi); }
.faq .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--accent); transition: transform 0.4s var(--ease), background 0.3s; }
.faq details[open] .plus { transform: rotate(45deg); background: rgba(var(--accent-rgb), 0.1); }
.faq .answer { padding: 0 2px 26px; color: var(--text-2); max-width: 62ch; }
.faq .answer p + p { margin-top: 12px; }

/* Closing call */
.close {
  text-align: center;
  padding-block: clamp(40px, 6vw, 80px) clamp(90px, 12vw, 160px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.close::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.14), transparent 70%); z-index: -1;
}
.close h2 { max-width: 16ch; margin-inline: auto; }
.close p { margin: 18px auto 34px; max-width: 32em; color: var(--text-2); }

/* Footer */
.foot { border-top: 1px solid var(--hair); padding-block: 44px 56px; color: var(--mute); font-size: 13.5px; text-align: center; }
.foot img { width: 64px; height: 64px; margin: 0 auto 18px; opacity: 0.9; }
.foot p + p { margin-top: 10px; }
.foot .legal { max-width: 760px; margin-inline: auto; font-size: 12.5px; line-height: 1.6; }
.foot nav { margin-top: 16px; display: flex; justify-content: center; gap: 18px; }
.foot nav a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.foot nav a:hover { color: var(--accent-hi); }

/* Reveal: content is visible by default, JS only adds the motion */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  .js .stroke::after { clip-path: inset(0 0 0 0); transition: none; }
  .js .mark-bg path { animation: none; stroke-dashoffset: 0; }
  .room img { transform: none; transition: none; }
}

/* Where they are in the funnel: watched, applied, book, done */
.journey { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--mute); }
.journey li { display: inline-flex; align-items: center; gap: 8px; }
.journey li + li::before { content: ""; width: clamp(14px, 3vw, 34px); height: 1px; background: var(--line-strong); margin-right: 2px; }
.journey .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; font-family: var(--display); }
.journey .done { color: var(--text-2); }
.journey .done .n { background: rgba(var(--accent-rgb), 0.14); border-color: transparent; color: var(--accent-hi); }
.journey .now { color: var(--text); }
.journey .now .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) { .journey { font-size: 12.5px; gap: 6px; } .journey .label-long { display: none; } }

.enter { animation: paneIn 0.55s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .enter { animation: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .reviews { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .path { grid-template-columns: 1fr; gap: 30px; }
  .path::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line-strong) 60%, rgba(var(--accent-rgb), 0.1)); }
  .path li { display: grid; grid-template-columns: 47px 1fr; column-gap: 20px; padding-right: 0; }
  .path .dot { margin-bottom: 0; grid-row: span 2; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .brand img { width: 44px; height: 44px; }
  .top-note { display: none; }
  .btn { --h: 58px; font-size: 17px; padding-inline: 22px; }
  .review blockquote { font-size: 18px; }
  .mark-bg { right: -200px; top: -10px; width: 560px; opacity: 0.16; }
}

/* ---------- Miles, The Expat Coach: overrides ---------- */

/* Tick-all-that-apply answers get a square box, not a round one */
.opt input[type=checkbox] + span::before { border-radius: 5px; }
.opt input[type=checkbox]:checked + span::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: none;
}

/* His client videos are vertical phone videos */
.stories { max-width: 980px; margin-inline: auto; }
.story-media { aspect-ratio: 9 / 16; }
div.story-media { cursor: default; }

/* Before and afters: a tidy grid, not a masonry wall */
.wall { columns: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shot { margin: 0; }
.shot img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* His story band: a portrait photo beside the copy, not a full-bleed room shot */
.room.split { min-height: 0; display: block; background: var(--ground-2); border-block: 1px solid var(--line); }
.room.split::after { display: none; }
.room.split .wrap {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(56px, 8vw, 110px);
}
.room.split img {
  position: static; z-index: auto; transform: none;
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 16px; box-shadow: 0 0 0 1px var(--hair);
}
.room.split .room-copy { padding: 0; }
.room.split .room-copy h2 { max-width: 18ch; }
.room.split .room-copy p + p { margin-top: 14px; }
@media (max-width: 760px) {
  .room.split .wrap { grid-template-columns: minmax(0, 1fr); }
  .room.split img { max-width: 420px; }
}

/* The opt-in video poster is 4:3, like the VSL */
.locked { aspect-ratio: 4 / 3; }
.vsl { max-width: 820px; aspect-ratio: 4 / 3; }

/* Faces never squash under a long proof line */
.faces { flex: none; }
/* The opt-in headline shares its row with the form, so it runs a touch smaller */
.hero-copy h1 { font-size: clamp(34px, 2.85vw, 41px); }
/* Page styles set stories to 16:9; his are vertical, so win on specificity */
.stories .story-media { aspect-ratio: 9 / 16; }
@media (max-width: 560px) { .stories .story-media { max-width: 260px; } }
/* "UAE +971" needs a little more room than "UK +44" */
.phone { grid-template-columns: 128px 1fr; }
