/* Fynda Clinic — hair assessment form
   Tokens mirror fyndaportal.com (ink / paper / gold). */
:root {
  --ink: #0b1f3a;
  --ink-2: #10294c;
  --ink-3: #1c3a63;
  --paper: #f5f1e6;
  --surface: #ffffff;
  --surface-muted: #efece2;
  --surface-paper: #f8f4ea;
  --line: #e0dbcd;
  --line-strong: #c9c2ae;
  --text: #17202e;
  --text-soft: #55606f;
  --text-invert: #f6f2e8;
  --text-invert-soft: #b9c2d1;
  --gold: #c9a63d;
  --gold-ink: #7a5f14;
  --route: #b98f2a;
  --danger: #8b2f2f;
  --success: #2f6b4f;
  --focus: #1c3a63;

  --skin: #efd9c6;
  --skin-shade: #e2c3a8;
  --skin-line: #d6b597;
  --hair: #0b1f3a;
  --hair-line: rgba(255, 255, 255, .08);
  --avatar-bg: #f1ece0;

  --font-display: "Aptos Display", "Aptos", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Aptos", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Aptos Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(11, 31, 58, .05), 0 18px 48px -24px rgba(11, 31, 58, .45);
  --shadow-pop: 0 12px 40px -12px rgba(11, 31, 58, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--font-sans);
  color: var(--text);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--ink-3); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid #e6e1d4; position: relative; z-index: 5; }
.topbar__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; white-space: nowrap; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.topnav a:hover::after, .topnav a[aria-current]::after { transform: scaleX(1); }
.topbar .lang { margin-left: auto; }
.brand img { height: 34px; width: auto; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); transition: border-color .2s, background .2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--line-strong); background: var(--surface-paper); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-pop);
  min-width: 170px; animation: pop .18s var(--ease);
}
.lang li a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-size: 15px; }
.lang li a:hover { background: var(--surface-muted); }
.lang li a[aria-current] { color: var(--gold-ink); font-weight: 600; }

/* ---------- Stage ---------- */
.stage { position: relative; flex: 1; padding: clamp(28px, 6vw, 56px) 0 48px; }
.stage__bg {
  position: absolute; inset: 0 0 auto 0; height: clamp(260px, 38vw, 360px);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.stage__bg::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5;
}
.stage__in { position: relative; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Card ---------- */
.card {
  width: 100%; max-width: 760px; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: clamp(20px, 4vw, 40px); position: relative; overflow: hidden;
}
.card__head { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: 12px; }
.counter { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); margin-left: auto; }
.back {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  color: var(--ink-3); font-size: 14px; font-weight: 600; padding: 6px 8px 6px 0; border-radius: var(--radius-sm);
  transition: color .2s, transform .2s var(--ease);
}
.back .ic { width: 18px; height: 18px; }

.progress { height: 4px; background: var(--surface-muted); border-radius: 4px; overflow: hidden; margin-bottom: clamp(24px, 4vw, 36px); }
.progress span {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--route), var(--gold));
  transition: width .55s var(--ease);
}

/* ---------- Steps & transitions ---------- */
.steps { position: relative; transition: height .45s var(--ease); }
.step { display: none; }
.step.is-active { display: block; }
.step.is-enter { animation: stepIn .5s var(--ease) both; }
.step.is-leave { display: block; position: absolute; inset: 0 0 auto 0; animation: stepOut .32s var(--ease) both; pointer-events: none; }
.steps.is-back .step.is-enter { animation-name: stepInBack; }
.steps.is-back .step.is-leave { animation-name: stepOutBack; }

@keyframes stepIn     { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes stepOut    { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-36px); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes stepOutBack{ from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(36px); } }
@keyframes pop        { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.step__title {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; color: var(--ink);
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); line-height: 1.15; text-align: center; margin: 0 0 8px;
}
.step__sub { text-align: center; color: var(--text-soft); margin: 0 auto clamp(22px, 4vw, 32px); max-width: 520px; }

/* staggered reveal of choices */
.step.is-enter .choice { animation: rise .5s var(--ease) both; }
.step.is-enter .choice:nth-child(2) { animation-delay: .04s; }
.step.is-enter .choice:nth-child(3) { animation-delay: .08s; }
.step.is-enter .choice:nth-child(4) { animation-delay: .12s; }
.step.is-enter .choice:nth-child(5) { animation-delay: .16s; }
.step.is-enter .choice:nth-child(6) { animation-delay: .2s; }
.step.is-enter .choice:nth-child(7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Choices ---------- */
.choices { display: grid; gap: 14px; }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; gap: clamp(14px, 3vw, 28px); }
.choices--levels { display: flex; flex-wrap: wrap; justify-content: center; }
.choices--levels .choice { flex: 0 1 calc(25% - 11px); min-width: 0; }
.choices--list { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 10px; }

.choice {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  padding: 16px 12px 14px; text-align: center; user-select: none;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease), background .2s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--surface-paper); box-shadow: 0 0 0 3px rgba(201,166,61,.25); }
.choice__label { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.25; }
.choice__tick {
  position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--gold);
  transform: scale(0); transition: transform .3s var(--ease);
}
.choice__tick .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.choice:has(input:checked) .choice__tick { transform: scale(1); }

.choice--avatar { padding: 22px 16px 18px; }
.choice--avatar .choice__art { width: min(140px, 100%); aspect-ratio: 1; }
.choice--avatar .choice__label { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }

.choice--scalp .choice__art { width: 100%; max-width: 104px; aspect-ratio: 120 / 140; }
.choice--scalp .choice__label { font-size: 14px; }

.choice--row { flex-direction: row; justify-content: flex-start; text-align: left; padding: 16px 18px; gap: 14px; }
.choice__icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-muted); color: var(--ink-3); transition: background .2s, color .2s;
}
.choice--row:has(input:checked) .choice__icon { background: var(--ink); color: var(--gold); }
.choice--row .choice__tick { position: static; margin-left: auto; }

/* ---------- Years ---------- */
.years { max-width: 520px; margin: 0 auto; text-align: center; }
.years__value {
  display: inline-block; font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem);
  color: var(--ink); font-weight: 500; margin-bottom: 18px; min-width: 6ch;
}
.years__value.bump { animation: bump .3s var(--ease); }
@keyframes bump { 50% { transform: scale(1.06); color: var(--gold-ink); } }
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) 0 var(--p, 22%), var(--surface-muted) var(--p, 22%) 100%);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink);
  border: 4px solid var(--surface); box-shadow: 0 0 0 1.5px var(--ink), 0 6px 14px -4px rgba(11,31,58,.5);
  transition: transform .2s var(--ease);
}
.range::-webkit-slider-thumb:hover { transform: scale(1.1); }
.range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.years__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-soft); margin-top: 10px; }
.years__type { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--text-soft); }
.years__type input {
  width: 84px; padding: 10px 12px; font-size: 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  text-align: center; background: var(--surface); transition: border-color .2s;
}
.years__type input:focus { border-color: var(--ink); outline: none; }

/* ---------- Photos ---------- */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo {
  position: relative; aspect-ratio: 3 / 4; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
  background: var(--surface-paper); transition: border-color .2s, background .2s, transform .25s var(--ease);
}
.photo__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; font-weight: 600; padding: 0 8px; text-align: center; }
.photo__empty .ic { width: 28px; height: 28px; }
.photo__img { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .3s; }
.photo__label {
  position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 5px 8px; border-radius: 6px; text-align: center;
  font-size: 12px; font-weight: 600; background: rgba(255,255,255,.92); color: var(--ink);
}
.photo.has-file { border-style: solid; border-color: var(--ink); }
.photo.has-file .photo__img { opacity: 1; }
.photo.has-file .photo__empty { opacity: 0; }
.photo__remove {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center;
}
.photo__remove .ic { width: 14px; height: 14px; }
.hint { text-align: center; font-size: 13px; color: var(--text-soft); margin: 14px 0 0; }
.hint:empty { display: none; }
[data-photo-error] { color: var(--danger); }

/* ---------- Fields ---------- */
.fields { display: grid; gap: 16px; max-width: 520px; margin: 0 auto; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .2s, box-shadow .2s; min-height: 50px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,58,99,.12); }
.phone { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 8px; }
.phone select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; text-overflow: ellipsis;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c3a63' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.field__err { display: block; color: var(--danger); font-size: 13px; min-height: 0; margin-top: 4px; }
.field__err:empty { display: none; }

.field .check, .check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 400 !important; color: var(--text-soft) !important; cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check__box {
  flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 5px; margin-top: 1px;
  display: grid; place-items: center; color: transparent; transition: background .2s, border-color .2s, color .2s;
}
.check__box .ic { width: 14px; height: 14px; stroke-width: 3; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.field--check.is-invalid .check__box { border-color: var(--danger); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { display: flex; justify-content: center; }
.form-error { text-align: center; color: var(--danger); font-size: 14px; margin: 16px 0 0; }
.form-error:empty { display: none; }

/* ---------- Buttons ---------- */
.actions { display: flex; justify-content: center; margin-top: clamp(24px, 4vw, 32px); }
.actions--split { justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; padding: 14px 26px; min-height: 50px;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: var(--text-invert); }
.btn--primary:hover { background: var(--ink-2); box-shadow: 0 10px 24px -14px rgba(11,31,58,.8); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-paper); }
.btn--wide { width: 100%; max-width: 520px; }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn.is-loading .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Done ---------- */
.step--done { text-align: center; padding: 12px 0 8px; }
.done__mark { width: 84px; height: 84px; margin: 0 auto 22px; }
.done__mark svg { width: 100%; height: 100%; }
.done__mark circle { fill: var(--ink); stroke: var(--gold); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.done__mark path { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.step--done.is-active .done__mark circle { animation: draw .6s var(--ease) forwards; }
.step--done.is-active .done__mark path { animation: draw .45s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Trust row ---------- */
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--text-soft); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--gold-ink); width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface-paper); font-size: 13px; color: var(--text-soft); }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.foot a { color: var(--text-soft); }
.foot__in { display: grid; grid-template-columns: 1fr auto 1fr; padding-top: 10px; padding-bottom: 10px; }
.foot__privacy { justify-self: end; }
.foot__badge { display: block; opacity: .9; transition: opacity .2s; }
.foot__badge:hover { opacity: 1; }
.foot__badge img { width: 120px; height: auto; }
@media (max-width: 520px) {
  .foot__in { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
  .foot__privacy { justify-self: center; }
}

/* ---------- Consent ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin: 0 auto;
  background: var(--ink); color: var(--text-invert); border-radius: var(--radius-md); padding: 16px 18px;
  box-shadow: var(--shadow-pop); display: flex; gap: 14px; align-items: center; animation: pop .3s var(--ease);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 13px; color: var(--text-invert-soft); }
.consent a { color: var(--gold); }
.consent__btns { display: flex; gap: 8px; flex: none; }
.consent .btn--ghost { color: var(--text-invert); border-color: rgba(255,255,255,.3); }
.consent .btn--ghost:hover { background: rgba(255,255,255,.08); }
.consent .btn--primary { background: var(--gold); color: var(--ink); }

/* ---------- Privacy page ---------- */
.prose { max-width: 760px; }
.prose h1 { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); margin: 0 0 20px; }
.prose p { color: var(--text); margin: 0 0 14px; }

/* ---------- Events panel ---------- */
.stage__main { width: 100%; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.events { width: 100%; max-width: 760px; margin-top: 28px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px 18px 18px; }
.events__title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--ink); margin: 0 0 4px; padding: 0 6px; }
.events__intro { margin: 0 0 14px; padding: 0 6px; color: var(--text-soft); font-size: 14px; line-height: 1.45; }
.events__list { display: flex; flex-direction: column; gap: 10px; }

.ev { border: 1.5px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color .2s; }
.ev.is-open { border-color: var(--ink); }
.ev__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; background: none; border: 0; cursor: pointer; text-align: left; }
.ev__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev__name { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.ev__date { display: flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 13px; line-height: 1.3; }
.ev__date .ic { width: 15px; height: 15px; color: var(--gold-ink); }
.ev__chev { color: var(--ink-3); transition: transform .3s var(--ease); }
.ev.is-open .ev__chev { transform: rotate(180deg); }
.ev__wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.ev.is-open .ev__wrap { grid-template-rows: 1fr; }
.ev__body { overflow: hidden; min-height: 0; font-size: 14px; }
.ev__inner { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.ev__desc { margin: 0; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.ev__loc { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.ev__loc .ic { width: 17px; height: 17px; color: var(--gold-ink); margin-top: 2px; }
.ev__map { width: 100%; height: 170px; border: 0; border-radius: var(--radius-sm); background: var(--surface-muted); display: block; }
.ev__maplink { font-size: 13px; font-weight: 600; }
.ev__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin: 0; }
.ev__note { margin: 0; font-size: 12px; color: var(--text-soft); }

.day { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.day + .day { margin-top: 6px; }
.day__btn { width: 100%; display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 9px 10px; background: var(--surface); border: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); text-align: left; }
.day.is-open .day__btn { background: var(--surface-paper); }
.day__btn[disabled] { cursor: not-allowed; color: var(--text-soft); background: var(--surface-muted); font-weight: 400; }
.day__full { font-size: 11px; white-space: nowrap; color: var(--danger); font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px; }
.slot { padding: 8px 0; min-height: 38px; font-size: 13px; font-weight: 600; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: background .15s, color .15s, border-color .15s; }
.slot[disabled] { cursor: not-allowed; color: #a9a699; background: var(--surface-muted); border-color: var(--surface-muted); text-decoration: line-through; font-weight: 400; }

/* ---------- Booking dialog ---------- */
.bk { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: var(--radius-lg); padding: 28px 24px 24px; box-shadow: var(--shadow-pop); color: var(--text); overflow-y: auto; }
.bk[open] { animation: pop .25s var(--ease); }
.bk::backdrop { background: rgba(11, 31, 58, .55); }
.bk__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--text-soft); border-radius: 50%; }
.bk__title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--ink); margin: 0 36px 8px 0; }
.bk__summary { margin: 0 0 18px; color: var(--text-soft); font-size: 14px; overflow-wrap: anywhere; }
.bk__summary strong { color: var(--ink); }
.bk__code { text-align: center; font-size: 26px !important; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.bk__links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 6px; color: var(--ink-3); text-decoration: underline; cursor: pointer; font-size: 14px; }
.bk__done { text-align: center; }
.bk__done .bk__title { margin-right: 0; }
.bk__done .done__mark circle { animation: draw .6s var(--ease) forwards; }
.bk__done .done__mark path { animation: draw .45s .45s var(--ease) forwards; }

.phone.phone--flag { grid-template-columns: auto minmax(0, 1fr); }
.cc { position: relative; }
.cc__btn { display: flex; align-items: center; gap: 8px; height: 100%; min-height: 50px; padding: 0 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc__btn:focus-visible, .cc__btn[aria-expanded=true] { border-color: var(--ink); }
.cc img { width: 22px; height: 16.5px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11,31,58,.12); flex: none; }
.cc__pop { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: min(320px, calc(100vw - 72px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); padding: 8px; animation: pop .15s var(--ease); }
.cc__pop input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; }
.cc__pop input:focus { outline: none; border-color: var(--ink); }
.cc__pop ul { list-style: none; margin: 6px 0 0; padding: 0; max-height: 210px; overflow-y: auto; }
.cc__pop button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 8px; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; text-align: left; font-size: 14px; }
.cc__pop button:hover, .cc__pop button:focus-visible { background: var(--surface-muted); }
.cc__pop small { margin-left: auto; color: var(--text-soft); font-size: 13px; font-variant-numeric: tabular-nums; }

@media (hover: hover) {
  .slot:not([disabled]):hover { background: var(--ink); border-color: var(--ink); color: var(--text-invert); }
  .ev__head:hover { background: var(--surface-paper); }
}
@media (min-width: 1120px) {
  .stage__in.has-events { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  /* events.js keeps this box exactly as tall as the form card, which changes height per step. */
  .stage__in.has-events .events { margin-top: 37px; display: flex; flex-direction: column; overflow: hidden; }
  .stage__in.has-events .events__title, .stage__in.has-events .events__intro { flex: none; }
  .stage__in.has-events .events__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; padding-right: 4px; }
  .stage__in.has-events .ev { flex: none; }
}

/* ---------- Designed About page (ab-* blocks from the editor) ---------- */
.about { width: 100%; max-width: 1080px; }
.about__title { font-family: var(--font-display); font-weight: 500; color: var(--text-invert); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin: 0 0 22px; }
.rich--about { font-size: 16.5px; }
.rich--about > section { margin: 0 0 22px; }
.rich--about h2 { margin: 0 0 14px; }
.rich--about .ab-section { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: clamp(22px, 4vw, 40px); }
.rich--about .ab-section > h2 { position: relative; padding-top: 16px; }
.rich--about .ab-section > h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; background: var(--gold); border-radius: 2px; }
.rich--about .ab-intro { color: var(--text-soft); max-width: 760px; }

.rich--about .ab-hero { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: clamp(24px, 5vw, 48px); }
.rich--about .ab-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 12px; }
.rich--about .ab-hero h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.2; max-width: 820px; }
.rich--about .ab-lead { font-size: 1.15rem; color: var(--ink); max-width: 820px; }
.rich--about .ab-stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rich--about .ab-stats li { margin: 0; background: var(--ink); color: var(--text-invert-soft); border-radius: var(--radius-md); padding: 18px 18px 16px; font-size: 14px; line-height: 1.4; }
.rich--about .ab-stats strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.1rem; line-height: 1.1; color: var(--gold); margin-bottom: 6px; }

.rich--about .ab-features, .rich--about .ab-split, .rich--about .ab-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rich--about .ab-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; background: var(--surface-paper); }
.rich--about .ab-card h3 { margin-top: 0; }
.rich--about .ab-card p:last-child, .rich--about .ab-card ul:last-child { margin-bottom: 0; }
.rich--about .ab-card ul { columns: 2; column-gap: 18px; font-size: 15px; }
.rich--about .ab-section:has(.ab-split) { background: none; box-shadow: none; padding: 0; }
.rich--about .ab-card--dark { background: var(--ink); border-color: var(--ink); color: var(--text-invert-soft); padding: clamp(22px, 4vw, 36px); background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; }
.rich--about .ab-card--dark h2 { color: var(--gold); }

.rich--about .ab-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rich--about .ab-grid li { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; font-size: 15px; color: var(--text-soft); line-height: 1.55; }
.rich--about .ab-grid strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.rich--about .ab-grid--check li { padding-left: 50px; position: relative; }
.rich--about .ab-grid--check li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a63d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.rich--about .ab-note { font-size: 13px; color: var(--text-soft); margin: 16px 0 0; font-style: italic; }

.rich--about .ab-offices { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rich--about .ab-offices li { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 18px 18px 46px; position: relative; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
.rich--about .ab-offices li::before { content: ""; position: absolute; left: 16px; top: 20px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5f14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.rich--about .ab-offices strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.rich--about .ab-offices .ab-hq { background: var(--ink); border-color: var(--ink); color: var(--text-invert-soft); }
.rich--about .ab-offices .ab-hq strong { color: var(--gold); font-size: 18px; }

.rich--about .ab-band { background: var(--ink); color: var(--text-invert-soft); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 48px); text-align: center; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 40px 40px; }
.rich--about .ab-band h2 { color: var(--text-invert); }
.rich--about .ab-band p { max-width: 760px; margin-left: auto; margin-right: auto; }
.rich--about .ab-big { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 2rem + 4vw, 4.6rem); line-height: 1; color: var(--gold); margin: 0 0 8px; }
.rich--about .ab-tagline { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 18px auto 0; }

.rich--about .ab-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.rich--about .ab-steps li { counter-increment: step; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 18px 18px; font-size: 15px; color: var(--text-soft); line-height: 1.55; position: relative; }
.rich--about .ab-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; color: var(--gold-ink); margin-bottom: 8px; }
.rich--about .ab-steps strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

.rich--about li > strong + p { margin: 0; }
.rich--about .ab-quote { font-family: var(--font-display); font-style: normal; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.35; color: var(--ink); border-left: 3px solid var(--gold); padding: 4px 0 4px 22px; margin: 0 0 18px; }

.about__cta { margin: 6px 0 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px clamp(22px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.about__cta p { margin: 0; color: var(--text-soft); max-width: 600px; }

@media (max-width: 900px) {
  .rich--about .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rich--about .ab-offices, .rich--about .ab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rich--about .ab-features, .rich--about .ab-split, .rich--about .ab-services, .rich--about .ab-offices, .rich--about .ab-steps { grid-template-columns: 1fr; }
  .rich--about .ab-card ul { columns: 1; }
  .rich--about .ab-stats strong { font-size: 1.7rem; }
}

/* Hover lift only on real pointers — on touch it sticks after a tap. */
@media (hover: hover) {
  .choice:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(11,31,58,.5); }
  .choice--row:hover { transform: translateX(3px); }
  .photo:hover { border-color: var(--ink-3); transform: translateY(-2px); }
  .btn:hover .ic { transform: translateX(3px); }
  .back:hover { color: var(--ink); transform: translateX(-2px); }
}

/* ---------- Content pages: about & blog ---------- */
.stage__bg--short { height: 150px; }
.stage__bg--blog { height: clamp(230px, 30vw, 260px); }
.rich { color: var(--text); font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich p { margin: 0 0 16px; }
.rich h2 { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 1.5rem; line-height: 1.25; margin: 30px 0 12px; }
.rich h3 { font-weight: 600; color: var(--ink); font-size: 1.15rem; margin: 24px 0 10px; }
.rich ul, .rich ol { margin: 0 0 16px; padding-left: 22px; }
.rich li { margin: 0 0 6px; }
.rich blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); color: var(--text-soft); font-style: italic; }
.rich a { color: var(--ink-3); text-underline-offset: 3px; }
.rich img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 22px 0; }
.rich figure { margin: 24px 0; }
.rich figure img { margin: 0; }
.rich figcaption { margin-top: 8px; font-size: 14px; color: var(--text-soft); text-align: center; }
.rich table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.rich th { background: var(--surface-paper); color: var(--ink); }
.muted { color: var(--text-soft); }
.prose .actions { justify-content: flex-start; }

.bloghead { width: 100%; max-width: 1000px; color: var(--text-invert); margin-bottom: 28px; }
.bloghead h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin: 0 0 6px; color: var(--text-invert); }
.bloghead p { margin: 0; color: var(--text-invert-soft); }
.posts { width: 100%; max-width: 1000px; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.pcard { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.pcard__img { display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pcard__ph { width: 100%; height: 100%; display: grid; place-items: center; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
.pcard__ph img { width: 48px; height: 48px; border-radius: 10px; transform: none !important; }
.pcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.3; margin: 0 0 8px; }
.pcard h2 a { color: var(--ink); text-decoration: none; }
.pcard__excerpt { margin: 0 0 14px; color: var(--text-soft); font-size: 15px; flex: 1; }
.pcard__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-3); text-decoration: none; font-size: 15px; }
.pcard__more .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.post__date { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 8px; }
.post__back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 600; text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.post__back .ic { width: 16px; height: 16px; }
.post__cover { width: 100%; height: auto; border-radius: var(--radius-md); margin: 4px 0 24px; }
@media (hover: hover) {
  .pcard:hover .pcard__img img { transform: scale(1.03); }
  .pcard__more:hover .ic { transform: translateX(3px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .choices--levels .choice { flex-basis: calc(50% - 7px); }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .photo { aspect-ratio: 1 / 1; }
  .brand img { height: 28px; }
  .topbar__in { height: 60px; gap: 16px; }
  .topnav { gap: 14px; }
  .topnav a { font-size: 14px; }
}
@media (max-width: 520px) {
  .choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { grid-template-columns: minmax(0, 42%) 1fr; }
  .consent { flex-direction: column; align-items: stretch; }
  .consent__btns > * { flex: 1; }
  .actions--split { flex-direction: column-reverse; }
  .actions--split .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 400px) {
  .brand img { height: 22px; }
  .topbar__in { gap: 12px; }
  .topnav { gap: 12px; }
  .topnav a { font-size: 13px; }
  .lang summary { padding: 7px 8px; }
}
