/* Codetratives funnel: shared styles for all four pages.
   Layout concept: a single long-form reading column (a sales letter), broken by
   a few full-width "exhibits": the video, the DCL review record, and the CTA. */

@font-face {
  font-family: "Europa";
  src: url("assets/fonts/Europa-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* colour (brand) */
  --bg: #000;
  --surface: #0f0f0f;
  --surface-2: #161616;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f2f0ef;
  --muted: #a8a6a3;
  --faint: #75736f;
  --yellow: #fec60b;
  --yellow-soft: rgba(254, 198, 11, 0.12);
  --on-yellow: #0a0a0a;
  /* type */
  --display: "Europa", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* layout */
  --read: 680px;
  --wide: 1040px;
  --radius: 18px;
  --section: clamp(64px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--on-yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout ---------- */
.read, .wide {
  width: 100%;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.read { max-width: calc(var(--read) + 40px); }
.wide { max-width: calc(var(--wide) + 40px); }
.section { padding-block: var(--section) 0; }
.stack > * + * { margin-top: 1.1em; }

/* ---------- header / footer ---------- */
.top {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.top .wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top__logo img { height: 34px; width: auto; }
.top__note { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.top__note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
@media (max-width: 520px) { .top__note { display: none; } }

.foot {
  margin-top: var(--section);
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--faint);
}
.foot .wide { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b { color: var(--yellow); font-weight: 600; }
.h1 {
  font-family: var(--display);
  font-size: clamp(36px, 6.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h1 em { font-style: normal; color: var(--yellow); }
.nw { white-space: nowrap; }
.h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h3 { font-family: var(--display); font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 15px; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }
.mark { color: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 16px 30px;
  border-radius: 999px; border: 0;
  background: var(--yellow); color: var(--on-yellow);
  font: 600 18px/1.2 var(--body);
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: 0 10px 40px -12px rgba(254, 198, 11, 0.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(254, 198, 11, 0.7); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.cta-block { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-block--center { align-items: center; text-align: center; }
.cta-note { font-size: 14px; color: var(--faint); }
@media (max-width: 520px) { .btn { width: 100%; font-size: 16.5px; padding: 16px 20px; gap: 8px; } .cta-block { align-items: stretch; } .cta-note { text-align: center; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px) 0; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 520px; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, rgba(254, 198, 11, 0.10), transparent 70%);
}
.hero .read { position: relative; display: grid; gap: 22px; }

/* ---------- video ---------- */
.video {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -40px rgba(254, 198, 11, 0.25);
}
.video button {
  all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center;
}
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .play {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(254, 198, 11, 0.18);
  transition: transform .2s ease;
}
.video button:hover .play { transform: scale(1.06); }
.video button:focus-visible .play { outline: 2px solid var(--text); outline-offset: 6px; }
.video .play svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--on-yellow); }
.video button::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent); pointer-events: none;
}
.video .label {
  position: absolute; left: 18px; bottom: 14px; right: 18px; z-index: 1;
  font-size: 14px; font-weight: 500; color: var(--text);
}
@media (max-width: 520px) { .video .label { font-size: 12.5px; left: 12px; bottom: 10px; } .video .play { width: 68px; height: 68px; } }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- lists ---------- */
.signs { display: grid; gap: 12px; }
.signs li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.signs li::before {
  content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  border: 1.5px solid var(--yellow);
  background: radial-gradient(circle, var(--yellow) 0 4px, transparent 5px);
}

/* ---------- review record (DCL) ---------- */
.record {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.record__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px;
  padding: 22px clamp(20px, 4vw, 36px);
  border-bottom: 1px dashed var(--line-strong);
}
.record__client { font-family: var(--display); font-size: clamp(40px, 7vw, 64px); line-height: 1; color: var(--yellow); letter-spacing: -0.02em; }
.record__tag { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.record__rows { display: grid; }
.record__row {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 28px;
  padding: 20px clamp(20px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}
.record__row:last-child { border-bottom: 0; }
.record__row dt { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.record__row dd { margin: 0; min-width: 0; max-width: 62ch; }
.record__row--result { background: var(--yellow-soft); }
.record__row--result dd { font-family: var(--display); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.3; }
@media (max-width: 640px) { .record__row { grid-template-columns: 1fr; } }

.steps { display: grid; gap: 0; counter-reset: step; }
.steps li {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding-bottom: 22px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 18px/1 var(--display); color: var(--on-yellow); background: var(--yellow);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line-strong);
}
.steps strong { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; margin-top: 8px; }
.steps p { color: var(--muted); font-size: 16.5px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips span { font-size: 13.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }

/* ---------- client profile ---------- */
.client {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.client__name { font-family: var(--display); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 14px; }
.client__name span { color: var(--yellow); }
.client__facts { display: grid; gap: 0; margin: 24px 0 0; }
.client__facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.client__facts dt { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.client__facts dd { margin: 0; font-size: 16px; }
.client__about { display: grid; gap: 16px; align-content: start; font-size: 17px; }
.client__projects { display: grid; gap: 10px; }
.client__projects li { position: relative; padding-left: 22px; font-size: 16px; color: var(--text); }
.client__projects li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); }
.client__why { padding: 16px 18px; border-radius: 12px; background: var(--yellow-soft); border: 1px solid rgba(254, 198, 11, 0.3); font-size: 16.5px; }
@media (max-width: 820px) { .client { grid-template-columns: 1fr; } }

/* ---------- proof: clip + gallery ---------- */
.clip { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.clip video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.clip figcaption {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(0, 0, 0, 0.66); color: var(--text); backdrop-filter: blur(6px);
}
.clip .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); }
.gallery a { display: block; cursor: zoom-in; }
.gallery a:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; border-radius: 14px; }
.gallery img { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery__wide { grid-column: 1 / -1; }
.gallery__wide img { aspect-ratio: 21 / 9; object-position: 50% 78%; }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 28px 14px 12px; font-size: 13.5px; font-weight: 500; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); color: var(--text);
}
.gallery figure::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; pointer-events: none;
  background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f0ef' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0; transition: opacity .2s ease;
}
.gallery figure:hover::after, .gallery figure:focus-within::after { opacity: 1; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery__wide img { aspect-ratio: 16 / 9; }
  .gallery figcaption { font-size: 12px; padding: 22px 10px 8px; }
  .gallery figure::after { opacity: 1; width: 28px; height: 28px; top: 8px; right: 8px; background-size: 14px; }
}

/* lightbox */
.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0.94); color: var(--text); overflow: hidden;
}
.lb::backdrop { background: rgba(0, 0, 0, 0.7); }
.lb[open] { display: grid; place-items: center; }
.lb__stage {
  margin: 0; display: grid; gap: 12px; justify-items: center;
  padding: calc(64px + env(safe-area-inset-top, 0px)) max(72px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(72px, env(safe-area-inset-left, 0px));
}
.lb__stage img { max-width: min(1400px, 100%); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 12px; touch-action: pan-y; user-select: none; }
.lb__stage figcaption { display: flex; gap: 14px; align-items: baseline; font-size: 15px; }
.lb__count { color: var(--faint); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lb__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(20, 20, 20, 0.8); color: var(--text); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.lb__btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb__prev { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb__next { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb__close { right: max(16px, env(safe-area-inset-right, 0px)); top: calc(16px + env(safe-area-inset-top, 0px)); }
@media (max-width: 720px) {
  .lb__stage { padding-inline: max(12px, env(safe-area-inset-left, 0px)); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .lb__stage img { max-height: calc(100dvh - 220px); }
  .lb__prev, .lb__next { top: auto; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lb__prev { left: calc(50% - 64px); }
  .lb__next { right: calc(50% - 64px); }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

/* ---------- method ---------- */
.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.method > div { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.method .verb { font-family: var(--display); font-size: 28px; line-height: 1.05; letter-spacing: -0.02em; }
.method .verb span { color: var(--yellow); }
.method p { color: var(--muted); font-size: 16px; margin-top: 12px; }
@media (max-width: 820px) { .method { grid-template-columns: 1fr; } }

/* ---------- fit ---------- */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fit > div { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.fit > div:first-child { border-color: rgba(254, 198, 11, 0.45); background: var(--yellow-soft); }
.fit ul { display: grid; gap: 12px; margin-top: 16px; }
.fit li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16.5px; }
.fit li::before { content: "✓"; color: var(--yellow); font-weight: 700; }
.fit .no li::before { content: "–"; color: var(--faint); }
.fit .no li { color: var(--muted); }
@media (max-width: 720px) { .fit { grid-template-columns: 1fr; } }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.product img { width: 100%; aspect-ratio: 16 / 10; height: auto; max-width: 100%; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.product div { padding: 16px 18px 18px; }
.product strong { font-family: var(--display); font-weight: 700; font-size: 18px; display: block; }
.product p { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
@media (max-width: 820px) {
  .products { grid-template-columns: 1fr; }
  /* Image fills a fixed-width column whose height follows the text, so long screenshots can't stretch the card. */
  .product { position: relative; min-height: 112px; }
  .product img { position: absolute; left: 0; top: 0; bottom: 0; width: 132px; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top; border-bottom: 0; border-right: 1px solid var(--line); }
  .product div { margin-left: 132px; }
}

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.founder img { width: 100%; height: auto; aspect-ratio: 822 / 1000; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.founder .sign { font-family: var(--display); color: var(--yellow); font-size: 20px; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 200px; } }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font: 400 26px/1 var(--body); color: var(--yellow); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 20px 20px; color: var(--muted); font-size: 16.5px; }

/* ---------- final cta ---------- */
.final {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line-strong); background: var(--surface);
}
.final::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 760px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(254, 198, 11, 0.16), transparent 70%); pointer-events: none;
}
.final > * { position: relative; }
.final .h2 { max-width: 20ch; margin-inline: auto; }
.final .lede { max-width: 48ch; margin: 16px auto 28px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .read > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero .read > *:nth-child(2) { animation-delay: .06s; }
  .hero .read > *:nth-child(3) { animation-delay: .12s; }
  .hero .read > *:nth-child(4) { animation-delay: .18s; }
  .hero .read > *:nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .video .play::after {
    content: ""; position: absolute; inset: -10px; border-radius: 50%;
    border: 2px solid rgba(254, 198, 11, 0.5); animation: ring 2.4s ease-out infinite;
  }
  @keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .btn .arrow { transition: none; } }

/* =========================================================
   Page 2: application
   ========================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.progress { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--faint); }
.progress li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); }
.progress li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--display); background: var(--surface-2); color: var(--muted); }
.progress li.is-current { color: var(--text); border-color: rgba(254, 198, 11, 0.5); }
.progress li.is-current span { background: var(--yellow); color: var(--on-yellow); }
.progress li.is-done span { background: var(--surface-2); color: var(--yellow); }
.progress em { font-style: normal; white-space: nowrap; }
@media (max-width: 480px) { .progress li:not(.is-current) { padding: 4px; } .progress li:not(.is-current) em { display: none; } .progress li { font-size: 13px; } }

.apply { padding-block: clamp(40px, 7vw, 80px) 0; position: relative; }
.apply::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 420px; pointer-events: none;
  background: radial-gradient(560px 260px at 30% 0%, rgba(254, 198, 11, 0.08), transparent 70%);
}
.apply__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.apply__main { display: grid; gap: 18px; min-width: 0; }
.apply__title { font-size: clamp(34px, 5vw, 52px); }
.apply__aside { display: grid; gap: 14px; position: sticky; top: calc(24px + env(safe-area-inset-top, 0px)); }
@media (max-width: 920px) {
  .apply__grid { grid-template-columns: 1fr; }
  .apply__aside { position: static; }
}

/* form */
.form { display: grid; gap: 14px; margin-top: 18px; }
.form__group {
  margin: 0; min-width: 0; display: grid; gap: 16px;
  padding: clamp(20px, 3vw, 28px); border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.form__group legend {
  float: left; width: 100%; padding: 0; margin-bottom: 2px;
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--display); font-size: 20px; line-height: 1.3; letter-spacing: -0.01em;
}
.form__group legend + * { clear: both; }
.qnum {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-top: -1px;
  font: 700 14px/1 var(--display); color: var(--on-yellow); background: var(--yellow);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 15px; font-weight: 500; color: var(--text); }
.field .opt { font-weight: 400; color: var(--faint); font-size: 13px; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; min-width: 0; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #050505; color: var(--text);
  font: 400 16px/1.5 var(--body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.field__hint { font-size: 13.5px; color: var(--faint); }
.field__error { font-size: 14px; color: #ff8a7a; }
[aria-invalid="true"] { border-color: #ff8a7a !important; }

.choices { display: grid; gap: 10px; }
.choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) { .choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: #050505;
  font-size: 16px; transition: border-color .15s ease, background .15s ease;
}
.choices--4 .choice span { justify-content: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.choices--stack .choice span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong);
}
.choice:hover span { border-color: rgba(254, 198, 11, 0.5); }
.choice input:checked + span { border-color: var(--yellow); background: var(--yellow-soft); }
.choices--stack .choice input:checked + span::before { border-color: var(--yellow); background: radial-gradient(circle, var(--yellow) 0 4px, transparent 5px); }
.choice input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.choices.is-invalid .choice span { border-color: rgba(255, 138, 122, 0.6); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: grid; gap: 10px; justify-items: start; margin-top: 8px; }
.form__submit .btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.form__status { font-size: 14.5px; color: var(--muted); min-height: 1.4em; }
.form__status.is-error { color: #ff8a7a; }
@media (max-width: 520px) { .form__submit { justify-items: stretch; } }

/* aside */
.aside-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 16px; }
.steps--compact li { grid-template-columns: 32px 1fr; gap: 12px; padding-bottom: 16px; }
.steps--compact li::before { width: 32px; height: 32px; font-size: 14px; }
.steps--compact li:not(:last-child)::after { left: 15px; top: 36px; }
.steps--compact strong { font-size: 16px; margin-top: 4px; }
.steps--compact p { font-size: 14.5px; }
.aside-card--person { grid-template-columns: 64px 1fr; align-items: center; gap: 14px; }
.aside-card--person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; }
.aside-name { font-family: var(--display); font-size: 17px; }
.aside-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.aside-photo img { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.aside-photo figcaption { position: absolute; inset: auto 0 0; padding: 26px 14px 12px; font-size: 13px; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); }
@media (max-width: 920px) { .aside-photo { display: none; } }

/* =========================================================
   Page 3: booking
   ========================================================= */
.booking {
  position: relative; margin-top: 8px; min-height: 720px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden;
}
.booking__widget { min-width: 0; }
.booking__widget .calendly-inline-widget, .booking__widget iframe { width: 100%; min-height: 720px; border: 0; display: block; }
.booking__loading {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--muted); font-size: 15.5px; text-align: center; padding: 24px; z-index: 1; background: var(--surface);
}
.booking__loading a { color: var(--yellow); }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--yellow); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.booking__fallback a { color: var(--yellow); }
@media (max-width: 720px) {
  .booking, .booking__widget .calendly-inline-widget, .booking__widget iframe { min-height: 1040px; }
}
.check-list { display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; color: var(--muted); }
.check-list li::before { content: "✓"; color: var(--yellow); font-weight: 700; }
.aside-card--note { background: var(--yellow-soft); border-color: rgba(254, 198, 11, 0.35); font-size: 15px; color: var(--muted); }
.aside-card--person a, .apply__aside a { color: var(--yellow); }
.progress li.is-done span { font-size: 12px; }
.eyebrow--line { display: block; line-height: 1.6; }
[hidden] { display: none !important; }

/* =========================================================
   Page 4: confirmed
   ========================================================= */
.done .read { justify-items: start; }
.done__badge {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); box-shadow: 0 0 0 10px var(--yellow-soft);
}
.done__badge svg { width: 30px; height: 30px; fill: none; stroke: #000; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done__help {
  display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 20px; align-items: center;
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
}
.done__help p + p { margin-top: 6px; }
.done__help a { color: var(--yellow); }
.done__help img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: top; }
@media (max-width: 480px) { .done__help { grid-template-columns: minmax(0, 1fr) 64px; padding: 20px; } .done__help img { width: 64px; height: 64px; } }
