/* Wecode — support.wecode.swiss */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #060608;
  --ink: #f5f6f7;
  --ink-2: #c9ccd2;
  --ink-3: #8d929b;
  --placeholder: #6d727b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --field: rgba(255, 255, 255, 0.04);
  --accent: #0066ff;
  --accent-hover: #1a75ff;
  --accent-2: #4d94ff;
  --accent-soft: rgba(0, 102, 255, 0.14);
  --accent-ring: rgba(0, 102, 255, 0.35);
  --urgent: #ff4d5e;
  --urgent-soft: rgba(255, 77, 94, 0.14);
  --danger: #ff6b78;
  --success: #34d399;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --font-display: "Onest", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 16px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; }

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

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.icon { width: 20px; height: 20px; flex: none; }

/* ── Atmosphere ─────────────────────────────────────────────── */

.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.glow { position: absolute; border-radius: 50%; }

.glow--blue {
  width: 90vmax; height: 90vmax;
  left: -30vmax; top: -45vmax;
  background: radial-gradient(circle, rgba(0, 76, 255, 0.5) 0%, rgba(0, 60, 220, 0.18) 38%, transparent 66%);
}

.glow--red {
  width: 80vmax; height: 80vmax;
  left: -38vmax; bottom: -48vmax;
  background: radial-gradient(circle, rgba(175, 0, 45, 0.42) 0%, rgba(120, 0, 60, 0.14) 40%, transparent 66%);
}

.grain {
  position: absolute; inset: -50%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Top bar ────────────────────────────────────────────────── */

.topbar {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  padding: 22px 24px;
  display: flex; align-items: center; gap: 12px;
}

.brand {
  font: 700 23px/1 var(--font-display);
  letter-spacing: -0.05em;
  color: var(--ink);
  text-decoration: none;
}
.brand-dot { color: var(--accent-2); }

.brand-tag {
  font: 600 12px/1 var(--font-ui);
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.topbar-link {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.topbar-link .icon { width: 17px; height: 17px; }
.topbar-link:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }

/* ── Layout ─────────────────────────────────────────────────── */

.shell {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
  padding: 20px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "panel" "aside";
  gap: 32px;
}
.intro { grid-area: intro; }
.panel { grid-area: panel; min-width: 0; }
.aside { grid-area: aside; }

@media (min-width: 1024px) {
  .shell {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro panel" "aside panel";
    column-gap: clamp(48px, 6vw, 104px);
    row-gap: 48px;
    padding-top: 56px;
  }
  .aside { align-self: start; position: sticky; top: 32px; }
}

/* ── Intro ──────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0;
  padding: 7px 14px 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font: 600 13px/1 var(--font-ui);
  color: var(--ink);
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(77, 148, 255, 0.18), 0 0 14px rgba(77, 148, 255, 0.9);
}

.intro h1 {
  margin: 22px 0 18px;
  font: 700 clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem)/1.02 var(--font-display);
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}
.accent {
  background: linear-gradient(100deg, #ffffff 0%, #a9c9ff 42%, #4d94ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
}

/* ── Card ───────────────────────────────────────────────────── */

.card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3.2vw, 40px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 40px 120px -40px rgba(0, 60, 210, 0.55),
    0 24px 64px -32px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.card-title {
  margin: 0;
  font: 600 1.55rem/1.15 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.card-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }

.alert {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 77, 94, 0.1);
  border: 1px solid rgba(255, 107, 120, 0.35);
  color: #ffd5d9;
  font-size: 14px;
}
.alert .icon { width: 18px; height: 18px; color: var(--danger); margin-top: 1px; }

/* ── Blocks & fields ────────────────────────────────────────── */

.block { border: 0; margin: 30px 0 0; padding: 0; min-width: 0; }
.block + .block { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }

/* Floated legend: laid out inside the fieldset content box instead of on its top border. */
.block-title {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 0; margin-bottom: 18px;
  font: 600 1.06rem/1.2 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.block-title + * { clear: both; }
.block-num {
  font: 600 11.5px/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
  color: var(--accent-2);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(77, 148, 255, 0.3);
}

.field + .field, .field + .switch, .switch + .field { margin-top: 20px; }

.field > label:not(.dropzone), .field > .label, .site-input > label {
  display: block;
  margin-bottom: 8px;
  font: 500 14px/1.3 var(--font-ui);
  color: var(--ink);
}
.optional { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--ink-3); }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font-ui);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  appearance: none;
  transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur);
}
textarea { min-height: 172px; resize: vertical; line-height: 1.55; }
::placeholder { color: var(--placeholder); opacity: 1; }

input:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.24); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(0, 102, 255, 0.06);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 107, 120, 0.16);
}
input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px #121419 inset;
  caret-color: var(--ink);
}

.field-error { margin: 8px 0 0; font-size: 13.5px; color: var(--danger); }
.field-meta { display: flex; align-items: flex-start; gap: 12px; }
.counter {
  margin-left: auto; padding-top: 8px;
  font-size: 12.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 16px; }
.grid-2 .field + .field { margin-top: 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Remember contact details ───────────────────────────────── */

.remember {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
}
.remember-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-2);
  cursor: pointer;
}
.remember-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.remember-box {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  color: #fff;
  transition: background var(--dur), border-color var(--dur);
}
.remember-box .icon { width: 12px; height: 12px; stroke-width: 3; opacity: 0; transition: opacity var(--dur); }
.remember-toggle input:checked ~ .remember-box { background: var(--accent); border-color: var(--accent); }
.remember-toggle input:checked ~ .remember-box .icon { opacity: 1; }
.remember-toggle input:focus-visible ~ .remember-box { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.remember-toggle:hover .remember-box { border-color: rgba(255, 255, 255, 0.3); }

.remember-note { margin: 0; font-size: 13px; color: var(--ink-3); }
.link-button {
  padding: 0; border: 0; background: none;
  color: var(--accent-2);
  font: inherit;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--ink); }
.link-button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* ── Site chip ──────────────────────────────────────────────── */

.site-toggle { position: absolute; opacity: 0; pointer-events: none; }

.site-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(0, 102, 255, 0.16), rgba(0, 102, 255, 0.04));
  border: 1px solid rgba(77, 148, 255, 0.35);
}
.site-chip .icon { width: 22px; height: 22px; color: var(--accent-2); }
.site-chip-text { min-width: 0; }
.site-chip-label { display: block; font-size: 12px; color: var(--ink-3); }
.site-chip strong { display: block; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.site-chip-edit {
  margin: 0 0 0 auto;
  flex: none;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px; color: var(--accent-2);
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.site-chip-edit:hover { background: var(--accent-soft); color: var(--ink); }
.site-toggle:focus-visible ~ .site-chip .site-chip-edit { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.site-input.is-collapsible { display: none; }
.site-toggle:checked ~ .site-chip { display: none; }
.site-toggle:checked ~ .site-input.is-collapsible { display: block; }

/* ── Category choices ───────────────────────────────────────── */

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 440px) { .choices { grid-template-columns: minmax(0, 1fr); } }

.choice {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: rgba(255, 255, 255, 0.26); background: var(--surface-2); transform: translateY(-1px); }

.choice-icon {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  transition: background var(--dur), color var(--dur), box-shadow var(--dur);
}
.choice-icon .icon { width: 19px; height: 19px; }
.choice-text { min-width: 0; }
.choice-title { display: block; font: 600 14.5px/1.25 var(--font-ui); color: var(--ink); }
.choice-hint { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }

.choice-check {
  flex: none; margin-left: auto;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  color: #fff;
  transition: background var(--dur), border-color var(--dur);
}
.choice-check .icon { width: 12px; height: 12px; stroke-width: 3; opacity: 0; transform: scale(0.4); transition: opacity var(--dur), transform var(--dur) var(--ease); }

.choice input:checked ~ .choice-icon { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(0, 102, 255, 0.9); }
.choice input:checked ~ .choice-check { background: var(--accent); border-color: var(--accent); }
.choice input:checked ~ .choice-check .icon { opacity: 1; transform: none; }
.choice:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.17), rgba(0, 102, 255, 0.05));
  box-shadow: inset 0 0 0 1px var(--accent), 0 14px 32px -18px rgba(0, 102, 255, 0.9);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.choice:has(input[aria-invalid="true"]) { border-color: rgba(255, 107, 120, 0.6); }

/* ── Urgent switch ──────────────────────────────────────────── */

.switch {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px;
  padding: 13px 16px 13px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur);
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch:hover { border-color: rgba(255, 255, 255, 0.26); }

.switch-icon {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  color: var(--urgent);
  background: var(--urgent-soft);
  transition: background var(--dur), color var(--dur);
}
.switch-icon .icon { width: 19px; height: 19px; }
.switch-title { display: block; font: 600 14.5px/1.25 var(--font-ui); color: var(--ink); }
.switch-hint { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }

.switch-track {
  position: relative; flex: none; margin-left: auto;
  width: 44px; height: 26px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  transition: background var(--dur);
}
.switch-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform var(--dur) var(--ease);
}
.switch input:checked ~ .switch-icon { background: var(--urgent); color: #fff; }
.switch input:checked ~ .switch-track { background: var(--urgent); }
.switch input:checked ~ .switch-track .switch-thumb { transform: translateX(18px); }
.switch:has(input:checked) {
  border-color: rgba(255, 77, 94, 0.6);
  background: linear-gradient(180deg, rgba(255, 77, 94, 0.13), rgba(255, 77, 94, 0.04));
}
.switch:has(input:focus-visible) { outline: 2px solid var(--urgent); outline-offset: 2px; }

/* ── Dropzone ───────────────────────────────────────────────── */

.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 18px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: rgba(0, 102, 255, 0.07); }
.dropzone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.dropzone.is-invalid { border-color: var(--danger); }

.dropzone-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  transition: transform var(--dur) var(--ease), background var(--dur);
}
.dropzone:hover .dropzone-icon, .dropzone.is-dragover .dropzone-icon { transform: translateY(-2px); background: var(--accent); }
.dropzone-text { font-size: 14.5px; color: var(--ink); }
.dropzone-text strong { font-weight: 600; }
.dropzone-link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.dropzone-hint { font-size: 12.5px; color: var(--ink-3); }

.files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.files:empty { display: none; }
.file {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px 9px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
}
.file .icon { width: 17px; height: 17px; color: var(--accent-2); }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.file-remove {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  padding: 0;
  border: 0; border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.file-remove .icon { width: 16px; height: 16px; color: currentColor; }
.file-remove:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.file-remove:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }

/* ── Submit ─────────────────────────────────────────────────── */

.submit-row {
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column-reverse; align-items: stretch; gap: 16px;
}
@media (min-width: 640px) {
  .submit-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.legal { margin: 0; max-width: 40ch; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.legal a { color: var(--ink-2); text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  font: 600 15.5px/1 var(--font-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur), color var(--dur), border-color var(--dur);
}
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }

.btn--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.22), 0 12px 32px -12px rgba(0, 102, 255, 0.95);
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.22), 0 18px 42px -12px rgba(0, 102, 255, 1); }
.btn--primary:hover .btn-icon { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0) scale(0.99); }
.btn--primary[aria-busy="true"] { cursor: progress; background: #0052cc; }
.btn--primary[aria-busy="true"] .btn-icon { animation: nudge 1s var(--ease) infinite; }

.btn-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  opacity: 0;
  transition: transform 0.2s linear, opacity 0.2s;
}
.btn--primary[aria-busy="true"] .btn-progress { opacity: 1; }

.btn--secondary { color: var(--ink); background: #26282e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn--secondary:hover { background: #30333a; transform: translateY(-1px); }

.btn--ghost { color: var(--ink-2); background: transparent; border: 1px solid var(--line-strong); }
.btn--ghost:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.3); background: var(--surface); }

.btn--sm { padding: 9px 14px; gap: 8px; font-size: 13.5px; }
.btn--sm .icon { width: 15px; height: 15px; }

@media (max-width: 639px) { .submit-row .btn--primary { width: 100%; } }

/* ── Success ────────────────────────────────────────────────── */

.card--success {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(36px, 5vw, 60px) clamp(22px, 4vw, 52px);
  text-align: center;
  outline: none;
}

.success-badge {
  display: grid; place-items: center;
  width: 84px; height: 84px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.2), transparent 70%);
}
.success-badge svg { width: 64px; height: 64px; }
.success-ring, .success-tick { fill: none; stroke: var(--success); stroke-linecap: round; stroke-linejoin: round; }
.success-ring { stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.7s var(--ease) 0.1s forwards; }
.success-tick { stroke-width: 3.2; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.45s var(--ease) 0.6s forwards; }

.success-title {
  margin: 0 0 10px;
  font: 700 clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem)/1.08 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.success-lead { margin: 0 0 28px; max-width: 40ch; color: var(--ink-2); }

.ticket {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 100%; max-width: 420px;
  margin-bottom: 24px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}
.ticket-label { font: 600 11.5px/1 var(--font-ui); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.ticket-number {
  font: 700 clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem)/1 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.success-note { margin: 0 0 28px; max-width: 46ch; font-size: 14px; color: var(--ink-3); }

/* ── Aside ──────────────────────────────────────────────────── */

.steps { list-style: none; margin: 0 0 22px; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: "";
  position: absolute; left: 17.5px; top: 42px; bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}
.step-num {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font: 600 14px/1 var(--font-display);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
}
.step:first-child .step-num { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 26px rgba(0, 102, 255, 0.6); }
.step h3 { margin: 7px 0 4px; font: 600 15.5px/1.3 var(--font-ui); color: var(--ink); }
.step p { margin: 0; max-width: 38ch; font-size: 14px; color: var(--ink-3); }

.aside-contact {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--dur), background var(--dur);
}
.aside-contact .icon { width: 38px; height: 38px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.aside-contact-label { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.aside-contact:hover { border-color: var(--line-strong); background: var(--surface-2); }

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
  padding: 22px 24px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}
.footer a { text-underline-offset: 3px; }
.footer a:hover { color: var(--ink); }

/* ── Small screens ──────────────────────────────────────────── */

@media (max-width: 639px) {
  .topbar { padding: 16px; }
  .topbar-link span { display: none; }
  .topbar-link { padding: 9px; border-color: var(--line-strong); }
  .shell { padding: 12px 16px 56px; gap: 28px; }
  .card { border-radius: 22px; }
  .footer { padding: 20px 16px 28px; }
}

/* ── Motion ─────────────────────────────────────────────────── */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nudge { 50% { transform: translateX(4px); } }

@media (prefers-reduced-motion: no-preference) {
  .intro > *, .panel, .aside { animation: rise 0.8s var(--ease) both; }
  .intro > :nth-child(2) { animation-delay: 0.06s; }
  .intro > :nth-child(3) { animation-delay: 0.12s; }
  .panel { animation-delay: 0.1s; }
  .aside { animation-delay: 0.2s; }
  .file { animation: rise 0.35s var(--ease) both; }
  .card--success:not([hidden]) > * { animation: rise 0.6s var(--ease) both; }
  .card--success > :nth-child(2) { animation-delay: 0.15s; }
  .card--success > :nth-child(3) { animation-delay: 0.22s; }
  .card--success > :nth-child(4) { animation-delay: 0.3s; }
  .card--success > :nth-child(5) { animation-delay: 0.36s; }
  .card--success > :nth-child(6) { animation-delay: 0.42s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .success-ring, .success-tick { stroke-dashoffset: 0; }
}
