/* Evora onboarding. Ink, porcelain and raspberry. */

:root {
  --bg: #f3f2f6;
  --surface: #ffffff;
  --surface-2: #ebe9f0;
  --ink: #16131c;
  --ink-2: #3f3a48;
  --muted: #6b6575;
  --line: #dcd9e3;
  --line-strong: #c4c0cd;
  --accent: #a1124b;
  --accent-hover: #850d3d;
  --accent-ink: #ffffff;
  --accent-soft: #f7e4ec;
  --gold: #a88450;
  --danger: #b42318;
  --danger-soft: #fdecea;

  --hero-bg: #16131c;
  --hero-ink: #f6f2f7;
  --hero-muted: #bdb5c7;
  --hero-accent: #f27ba6;
  --hero-line: rgba(242, 123, 166, 0.28);

  --shadow: 0 1px 2px rgba(22, 19, 28, 0.04), 0 12px 40px -12px rgba(22, 19, 28, 0.16);
  --ring: 0 0 0 3px rgba(161, 18, 75, 0.22);

  --f-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --gutter: 20px;
  --measure: 640px;
  --topbar-h: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c12;
    --surface: #18151f;
    --surface-2: #211d2a;
    --ink: #f3eff6;
    --ink-2: #d3ccdc;
    --muted: #9c95a8;
    --line: #2d2836;
    --line-strong: #433d4f;
    --accent: #f07aa5;
    --accent-hover: #f59bbc;
    --accent-ink: #23040f;
    --accent-soft: #2c1420;
    --gold: #c9a874;
    --danger: #ff8f85;
    --danger-soft: #2d1513;

    --hero-bg: #1b1724;
    --hero-ink: #f6f2f7;
    --hero-muted: #b5adc0;
    --hero-accent: #f27ba6;
    --hero-line: rgba(242, 123, 166, 0.22);

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 48px -16px rgba(0, 0, 0, 0.6);
    --ring: 0 0 0 3px rgba(240, 122, 165, 0.3);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

h1, h2, h3, h4, p { margin: 0; }
strong { font-weight: 650; color: var(--ink); }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 10px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .topbar { background: var(--bg); }
}
.topbar-in {
  max-width: 1080px; margin: 0 auto;
  height: var(--topbar-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: var(--f-display);
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.lang { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 10px 8px; min-height: 44px;
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  border-radius: 8px;
  transition: color 0.15s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-on { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang-sep { color: var(--line-strong); font-size: 0.875rem; }

/* ---------- status screens ---------- */

.screen-status {
  min-height: calc(100vh - var(--topbar-h) - 80px);
  display: grid; place-items: center;
  padding: 40px var(--gutter);
}
.status-card { max-width: 420px; text-align: center; display: grid; justify-items: center; gap: 20px; }
.status-mark {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent);
  font-family: var(--f-display); font-size: 2rem; line-height: 1;
}
.status-title { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1.15; letter-spacing: -0.01em; }
.status-text { color: var(--muted); }

.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2.5px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */

.hero { padding: 12px 12px 0; }
.hero-in {
  position: relative; overflow: hidden;
  max-width: 1080px; margin: 0 auto;
  background: var(--hero-bg); color: var(--hero-ink);
  border-radius: 28px;
  padding: 64px 24px 40px;
  isolation: isolate;
}
.hero-in::after {
  content: ""; position: absolute; inset: auto -20% -40% auto;
  width: 120%; height: 80%;
  background: radial-gradient(closest-side, rgba(242, 123, 166, 0.16), transparent 70%);
  z-index: -1; pointer-events: none;
}
.hero-30 {
  position: absolute; z-index: -1;
  right: -0.08em; top: -0.18em;
  font-family: var(--f-display);
  font-size: clamp(15rem, 72vw, 34rem);
  line-height: 1; letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--hero-line);
  user-select: none; pointer-events: none;
}
.hero-h {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.65rem, 11vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 13ch;
}
.hero-h em { font-style: italic; color: var(--hero-accent); }
.hero-p {
  margin-top: 24px;
  color: var(--hero-muted);
  font-size: 1.0625rem; line-height: 1.6;
  max-width: 34rem;
}
.btn-hero {
  margin-top: 32px;
  background: var(--hero-ink); color: var(--hero-bg);
}
.btn-hero:hover { background: #ffffff; }

/* ---------- buttons ---------- */

.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border-radius: 999px;
  font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.985); }
.btn:disabled { cursor: default; }
.btn-primary, .btn-next { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled), .btn-next:hover:not(:disabled) { background: var(--accent-hover); }
.btn-back {
  background: transparent; color: var(--ink-2);
  border: 1.5px solid var(--line-strong);
  padding: 0 22px;
}
.btn-back:hover:not(:disabled) { border-color: var(--ink-2); color: var(--ink); }
.btn-quiet {
  min-height: 48px; padding: 0 20px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line-strong);
  font-size: 0.975rem;
}
.btn-quiet:hover { border-color: var(--ink-2); }

/* ---------- content blocks ---------- */

.content { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

.block { padding: 64px 0 0; }
.eyebrow {
  font-family: var(--f-display); font-style: italic;
  color: var(--gold); font-size: 1.15rem; line-height: 1;
  margin-bottom: 10px;
}
.block h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 7.4vw, 2.75rem);
  line-height: 1.04; letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.block h2.h-small { font-size: 1.75rem; margin-bottom: 14px; }
.lead { font-size: 1.125rem; color: var(--ink-2); line-height: 1.6; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0;
  width: 1.5px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.tl-n {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  font-family: var(--f-display); font-size: 1.35rem; line-height: 1;
  color: var(--accent);
}
.timeline li:first-child .tl-n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.timeline p { padding-top: 9px; color: var(--ink-2); }

/* feature list */
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li {
  padding: 18px 0 18px 28px; position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: 29px;
  width: 12px; height: 1.5px; background: var(--accent);
}
.feature-list strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* cards */
.card { border-radius: var(--r-lg); padding: 28px 24px; }
.card-you { margin-top: 32px; background: var(--surface-2); }
.card-you h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin-bottom: 18px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 36px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent);
}
.check-list li::after {
  content: ""; position: absolute; left: 8px; top: 7px;
  width: 6px; height: 11px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.you-end { margin-top: 18px; font-family: var(--f-display); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--accent); }

.card-money {
  background: var(--hero-bg); color: var(--hero-ink);
  position: relative; overflow: hidden;
  padding-top: 24px;
}
.card-money strong { color: var(--hero-ink); }
.money-big {
  font-family: var(--f-display);
  font-size: clamp(5rem, 26vw, 8rem);
  line-height: 0.9; letter-spacing: -0.03em;
  color: var(--hero-accent);
  margin-bottom: 12px;
}
.money-list { list-style: none; margin: 0; padding: 0; }
.money-list li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); color: var(--hero-muted); }
.money-example {
  margin-top: 8px; padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--hero-muted);
}

.block-pair { display: grid; gap: 40px; }
.pair-item { padding-top: 24px; border-top: 1.5px solid var(--ink); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.pair-item p { color: var(--ink-2); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; min-height: 56px;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.22s var(--ease);
}
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details[open] summary i { border-color: var(--accent); background: var(--accent-soft); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); }

/* ---------- form ---------- */

.form-wrap { padding: 80px 0 24px; scroll-margin-top: calc(var(--topbar-h) + 8px); outline: none; }
.form-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.3rem, 9vw, 3.3rem);
  line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.stepper {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 24px 20px 20px;
  margin: 0 -8px;
}

.progress { margin-bottom: 28px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 0.875rem; }
.progress-label { font-weight: 650; color: var(--accent); letter-spacing: 0.01em; }
.progress-name { color: var(--muted); text-align: right; }
.progress-track { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 14%; background: var(--accent); border-radius: 4px; transition: width 0.35s var(--ease); }

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-h {
  font-family: var(--f-display); font-weight: 400;
  font-size: 2rem; line-height: 1.05; letter-spacing: -0.01em;
  padding: 0; margin-bottom: 24px; outline: none;
}
.step-in { animation: stepIn 0.32s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 22px; }
.field > label, .field .label { display: block; font-weight: 600; font-size: 0.975rem; margin-bottom: 8px; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.help { margin-top: 8px; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.help-lock, .help-warn { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); }
.help-warn { border-left: 3px solid var(--gold); }

input[type="text"], input[type="email"], input[type="password"], input[type="date"] {
  display: block; width: 100%;
  min-height: 56px; padding: 14px 16px;
  font-size: 1.0625rem; /* 17px keeps iOS from zooming */
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  -webkit-appearance: none; appearance: none;
}
input[type="date"] { line-height: 1.3; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
input::placeholder { color: var(--muted); opacity: 0.7; }
input:hover { border-color: var(--line-strong); }
input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.mono { font-family: var(--f-mono); font-size: 0.98rem; letter-spacing: 0.01em; }
.sign-input { font-family: var(--f-display); font-style: italic; font-size: 1.5rem !important; }

.has-error input[type="text"], .has-error input[type="email"], .has-error input[type="password"], .has-error input[type="date"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 0.9rem; font-weight: 550; line-height: 1.45; }
.err:not(:empty) { margin-top: 8px; padding-left: 22px; position: relative; }
.err:not(:empty)::before {
  content: "!"; position: absolute; left: 0; top: 1px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--danger); color: var(--surface);
  font-size: 11px; font-weight: 800; line-height: 16px; text-align: center;
}
.err-center:not(:empty) { text-align: center; padding-left: 0; }
.err-center:not(:empty)::before { display: none; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 44px; min-width: 64px; padding: 0 12px;
  background: none; border: 0; cursor: pointer;
  color: var(--accent); font-weight: 650; font-size: 0.9rem;
  border-radius: 10px;
}

.skip-box {
  margin-top: 8px; padding: 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  display: grid; gap: 14px; justify-items: start;
  color: var(--ink-2);
}

/* chips */
.chips { display: grid; gap: 10px; }
.chips-days { grid-template-columns: repeat(3, 1fr); }
.chips-times { grid-template-columns: repeat(2, 1fr); }
.chip { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  transition: background-color 0.16s, border-color 0.16s, color 0.16s;
  user-select: none;
}
.chip:hover span { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { box-shadow: var(--ring); }
.has-error .chip span { border-color: var(--danger); }

/* photos */
.photo-grid { display: grid; gap: 4px; }
.photo-drop {
  position: relative; display: block; cursor: pointer;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--line-strong);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.15s, background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.photo-drop:hover { border-color: var(--accent); }
.photo-drop:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.has-error .photo-drop { border-color: var(--danger); }
.photo-round .photo-drop { aspect-ratio: 1 / 1; width: 200px; max-width: 100%; border-radius: 50%; }
.photo-empty, .photo-busy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; text-align: center;
  color: var(--accent); font-weight: 600; font-size: 0.95rem;
}
.photo-busy { color: var(--muted); background: var(--bg); }
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-change {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(22, 19, 28, 0.78); color: #fff;
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.photo-round .photo-change { bottom: 14px; }
.photo-drop[data-state="empty"] .photo-img,
.photo-drop[data-state="empty"] .photo-change,
.photo-drop[data-state="empty"] .photo-busy,
.photo-drop[data-state="busy"] .photo-empty,
.photo-drop[data-state="busy"] .photo-change,
.photo-drop[data-state="ready"] .photo-empty,
.photo-drop[data-state="ready"] .photo-busy { display: none; }
.photo-drop[data-state="ready"] { border-style: solid; border-color: var(--line); }

/* agreement */
.agreement {
  max-height: 52vh; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 22px 18px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.9rem; line-height: 1.6; color: var(--ink-2);
}
.agreement:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.agreement .agr-title { font-family: var(--f-body); font-weight: 750; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--ink); }
.agreement .agr-sub { color: var(--muted); margin-bottom: 14px; }
.agreement p { margin-bottom: 10px; }
.agreement h4 { font-size: 0.85rem; font-weight: 750; letter-spacing: 0.06em; color: var(--ink); margin: 22px 0 10px; }
.agreement .cl-n { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.agreement .items { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; }
.agreement .items li { margin-bottom: 6px; }
.agreement .it-l { color: var(--muted); }
.agreement .blank { display: inline-block; width: 7em; border-bottom: 1px solid var(--line-strong); vertical-align: baseline; height: 1em; }
.agreement .sig-intro { margin-top: 18px; }
.agreement .sig { display: grid; gap: 16px; margin-top: 8px; }
.agreement .sig-col { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.agreement .sig-col p { margin-bottom: 6px; }
.agreement .sig-h { font-weight: 750; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--ink); }

.dl-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin: 10px 0 18px;
  font-weight: 650; text-decoration: none;
}
.dl-link:hover span { text-decoration: underline; text-underline-offset: 4px; }

.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; cursor: pointer; font-weight: 550; line-height: 1.45; padding: 4px 0; }
.check input { position: absolute; opacity: 0; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.check-box {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1.5px solid var(--line-strong); background: var(--bg);
  position: relative; transition: background-color 0.15s, border-color 0.15s;
}
.check-box::after {
  content: ""; position: absolute; left: 9px; top: 4px;
  width: 7px; height: 13px;
  border: solid var(--accent-ink); border-width: 0 2.25px 2.25px 0;
  transform: rotate(45deg) scale(0.6); opacity: 0;
  transition: transform 0.15s var(--ease), opacity 0.15s;
}
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check-box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check-box { box-shadow: var(--ring); }
.has-error .check-box { border-color: var(--danger); }

.form-error:not(:empty) {
  margin: 4px 0 16px; padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--danger-soft); color: var(--danger);
  font-weight: 600;
}

.nav { display: flex; gap: 10px; margin-top: 8px; }
.btn-next { flex: 1; position: relative; overflow: hidden; }
.btn-next .btn-label { position: relative; z-index: 1; }
.btn-progress { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.btn-progress span { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, 0.18); transition: width 0.25s linear; }
.btn-next.is-sending { background: var(--accent-hover); }

/* ---------- done ---------- */

.screen-done {
  min-height: calc(100vh - var(--topbar-h) - 80px);
  display: grid; place-items: center;
  padding: 48px var(--gutter);
}
.done-in { max-width: 520px; text-align: center; display: grid; justify-items: center; }
.done-mark {
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  margin-bottom: 28px;
  animation: pop 0.5s var(--ease) both;
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.done-h {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 4rem);
  line-height: 1; letter-spacing: -0.02em;
  outline: none;
}
.done-signed { margin-top: 14px; font-weight: 600; color: var(--ink); }
.done-p { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; max-width: 26rem; }
.done-in .btn { margin-top: 32px; }
.done-in .err { margin-top: 14px; }

/* ---------- footer ---------- */

.footer { padding: 48px var(--gutter) 36px; text-align: center; }
.footer p { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- reveal ---------- */

.js-reveal .reveal { animation: none; }

/* ---------- larger screens ---------- */

@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .chips-days { grid-template-columns: repeat(6, 1fr); }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .agreement .sig { grid-template-columns: 1fr 1fr; }
  .stepper { padding: 32px 32px 28px; margin: 0; }
  .card { padding: 36px 32px; }
}

@media (min-width: 820px) {
  .hero { padding: 20px 20px 0; }
  .hero-in { padding: 112px 72px 72px; border-radius: 36px; }
  .hero-30 { font-size: 34rem; right: -0.02em; top: -0.12em; }
  .hero-p { font-size: 1.2rem; }
  .block { padding-top: 96px; }
  .block-pair { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-wrap { padding-top: 112px; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .spinner { animation: spin 1.6s linear infinite !important; animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}

/* ---------- agreement checkbox ---------- */
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 600; color: var(--ink); line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.check-box { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--surface); display: grid; place-items: center; transition: background 0.15s var(--ease), border-color 0.15s var(--ease); }
.check-box::after { content: ""; width: 6px; height: 12px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check:hover .check-box { border-color: var(--accent); }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check-box::after { opacity: 1; }
.check input:focus-visible + .check-box { outline: 2px solid var(--ring); outline-offset: 2px; }
.field.has-error .check-box { border-color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .check-box { transition: none; } }
