:root { --white: #fff; --soft: rgba(255,255,255,.72); --faint: rgba(255,255,255,.5); --line: rgba(255,255,255,.16); --glass: rgba(18,22,21,.62); --fill: rgba(255,255,255,.07); --accent: #7b9baf; --ok: #8fd3a6; --bad: #ff9c94; --ease: cubic-bezier(.2,.75,.25,1); color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; min-height: 100vh; background: #0c0f0e; color: var(--white); font: 400 16px/1.5 Figtree, "Helvetica Neue", Arial, sans-serif; overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }

/* Background: the same film as the website, moving slowly */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0c0f0e url(/media/hero.jpg) center/cover; }
.bg video { width: 100%; height: 100%; object-fit: cover; display: block; animation: drift 34s ease-in-out infinite alternate; }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,11,.74) 0%, rgba(10,12,11,.46) 55%, rgba(10,12,11,.2) 100%), linear-gradient(180deg, rgba(10,12,11,.1) 0%, rgba(10,12,11,.45) 100%); transition: background .6s; }
body:not(.at-hero) .bg::after { background: linear-gradient(180deg, rgba(10,12,11,.58), rgba(10,12,11,.7)); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1%); } }

/* Glass bar, as on the website */
.nav { position: absolute; top: 20px; left: 50%; z-index: 5; width: min(1180px, calc(100% - 32px)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 24px; border-radius: 14px; background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: drop .8s var(--ease) both; }
.nav-logo img { display: block; height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link { font-weight: 500; text-decoration: none; opacity: .9; transition: opacity .2s; }
.nav-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -16px); } }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--white); font: 500 16px Figtree, "Helvetica Neue", Arial, sans-serif; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; }
.pill.solid { background: var(--accent); }
.pill.solid:hover:not(:disabled) { background: #8cacbf; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(123,155,175,.34); }
.pill.ghost { border-color: rgba(255,255,255,.7); }
.pill.ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.pill:active:not(:disabled) { transform: translateY(0) scale(.98); }
.pill:disabled { opacity: .7; cursor: default; }
.pill.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.arrow { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.pill:hover .arrow { transform: translateX(4px); }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

/* First screen */
.stage { width: min(1180px, calc(100% - 32px)); margin: 0 auto; min-height: 100vh; min-height: 100svh; padding: 112px 0 40px; display: flex; flex-direction: column; justify-content: center; }
.hero { max-width: 820px; padding: 0 24px; transition: opacity .3s, transform .3s; }
.hero.leaving { opacity: 0; transform: translateY(-20px); }
h1 { margin: 0 0 24px; font-size: clamp(40px, 6.2vw, 76px); line-height: 1.12; font-weight: 500; letter-spacing: -.02em; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word > span { display: inline-block; animation: word-up .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + .15s); }
@keyframes word-up { from { transform: translateY(110%); opacity: 0; } }
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.lead { margin: 0 0 32px; max-width: 640px; color: var(--soft); font-size: 18px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero-note { color: var(--faint); font-size: 14px; }

/* Steps */
.wizard { width: 100%; max-width: 860px; margin: 0 auto; padding: 32px; border-radius: 20px; background: var(--glass); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.wizard.enter { animation: rise .7s var(--ease) both; }
.steps { list-style: none; display: flex; justify-content: space-between; gap: 4px; margin: 0 0 16px; padding: 0; }
.steps button { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--faint); font: 500 14px Figtree, "Helvetica Neue", Arial, sans-serif; cursor: default; transition: color .3s; }
.steps li.past button { color: var(--soft); cursor: pointer; }
.steps li.past button:hover { color: #fff; }
.steps li.now button { color: #fff; }
.num { position: relative; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line); font-size: 13px; transition: background .3s, border-color .3s; }
.num svg { position: absolute; inset: 5px; display: none; }
.now .num { background: var(--accent); border-color: var(--accent); }
.past .num { background: rgba(143,211,166,.16); border-color: var(--ok); color: var(--ok); }
.past .num > span { display: none; }
.past .num svg { display: block; }
.step-count { display: none; margin-bottom: 10px; color: var(--soft); font-size: 14px; font-weight: 500; }
.track { height: 3px; margin-bottom: 32px; border-radius: 3px; background: var(--line); overflow: hidden; }
.track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--ok)); border-radius: 3px; transition: width .6s var(--ease); }
.panel.from-right { animation: from-right .5s var(--ease) both; }
.panel.from-left { animation: from-left .5s var(--ease) both; }
@keyframes from-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-28px); } }
.panel h2 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; outline: 0; }
.panel h2:last-child, .panel h2 + .grid, .panel h2 + .declaration { margin-top: 20px; }
.intro { margin: 0 0 24px; color: var(--soft); }

/* Fields */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field.wide { grid-column: 1 / -1; }
.field.appear { animation: appear .45s var(--ease) both; }
@keyframes appear { from { opacity: 0; transform: translateY(-8px); } }
.field.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.label em { margin-left: 6px; color: var(--faint); font-size: 13px; font-style: normal; font-weight: 400; }
.hint { margin: 2px 0 0; color: var(--faint); font-size: 14px; }
input[type=text], input[type=email], input[type=date], select, textarea { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--fill); color: #fff; font: inherit; -webkit-appearance: none; appearance: none; transition: border-color .2s, background .2s, box-shadow .2s; }
input[type=text]:hover, input[type=email]:hover, input[type=date]:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.34); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(123,155,175,.3); }
textarea { resize: vertical; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid var(--soft); border-bottom: 1.6px solid var(--soft); transform: rotate(45deg); pointer-events: none; }
select { padding-right: 38px; text-overflow: ellipsis; }
select option { background: #1b201e; color: #fff; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.long { display: grid; grid-template-columns: minmax(0, 1fr); }
.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--fill); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.choice:hover { border-color: rgba(255,255,255,.4); transform: translateY(-1px); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); transition: border-color .2s, border-width .2s var(--ease); }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(123,155,175,.2); }
.choice input:checked + .dot { border: 6px solid #fff; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(123,155,175,.4); }

/* Documents */
.docs { display: grid; gap: 12px; }
.tile { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px dashed rgba(255,255,255,.26); border-radius: 12px; background: var(--fill); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.tile:hover { border-color: rgba(255,255,255,.5); }
.tile.over { border-color: var(--accent); background: rgba(123,155,175,.2); transform: scale(1.01); }
.tile.done { border-style: solid; border-color: rgba(143,211,166,.55); background: rgba(143,211,166,.08); }
.tile-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.08); }
.tile-icon svg { width: 24px; height: 24px; }
.tile.done .tile-icon { color: var(--ok); background: rgba(143,211,166,.14); }
.tile-text { flex: 1; min-width: 0; }
.tile .label { margin: 0; cursor: pointer; }
.tile .add { flex: none; position: relative; pointer-events: none; }
.tile:hover .add { background: rgba(255,255,255,.12); }
.file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.tile:has(.file:focus-visible) { box-shadow: 0 0 0 3px rgba(123,155,175,.4); }
.picked { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.picked li { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; animation: appear .35s var(--ease) both; }
.picked svg { flex: none; width: 16px; height: 16px; color: var(--ok); }
.fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked small { flex: none; color: var(--faint); }
.remove { flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font: inherit; line-height: 1; cursor: pointer; transition: background .2s; }
.remove:hover { background: rgba(255,255,255,.26); }
.draw { stroke-dasharray: 24; animation: draw .45s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

/* Declaration */
.declaration { margin: 20px 0 24px; padding: 0; list-style: none; color: var(--soft); }
.declaration li { position: relative; padding: 0 0 12px 20px; }
.declaration li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.panel > .field { margin-bottom: 12px; }
.tick { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--fill); cursor: pointer; transition: border-color .2s, background .2s; }
.tick:hover { border-color: rgba(255,255,255,.4); }
.tick:has(input:checked) { border-color: var(--accent); background: rgba(123,155,175,.18); }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 6px; transition: background .2s, border-color .2s; }
.box svg { display: none; width: 16px; height: 16px; }
.tick input:checked + .box { background: var(--accent); border-color: var(--accent); }
.tick input:checked + .box svg { display: block; }
.tick input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(123,155,175,.4); }

.bad input[type=text], .bad input[type=email], .bad input[type=date], .bad select, .bad textarea, .bad .choice, .bad .tile, .bad .tick { border-color: var(--bad); }
.err, .send-err { margin: 8px 0 0; color: var(--bad); font-size: 14px; }
.send-err { margin: 16px 0 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
#ts:not(:empty) { margin-top: 16px; }
.step-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 32px; }

/* Thank you */
.thanks { padding: 40px 8px; text-align: center; animation: rise .7s var(--ease) both; }
.thanks-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: rgba(143,211,166,.16); color: var(--ok); animation: pop .6s var(--ease) both; }
.thanks-mark svg { width: 40px; height: 40px; }
.thanks-mark .draw { animation-delay: .25s; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.thanks h2 { margin: 0 0 8px; font-size: 36px; font-weight: 500; }
.thanks p { max-width: 460px; margin: 0 auto; color: var(--soft); }

@media (max-width: 860px) {
  .steps { display: none; }
  .step-count { display: block; }
}
@media (max-width: 640px) {

  .nav { top: 12px; padding: 6px 8px 6px 14px; }
  .nav-logo img { height: 40px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 14px; }
  .nav .pill { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .stage { padding: 84px 0 16px; }
  .hero { padding: 0 8px; }
  .lead { font-size: 16px; }
  .hero-cta .pill { width: 100%; }
  .wizard { padding: 20px 16px; border-radius: 16px; }
  .panel h2 { font-size: 26px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .choices { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tile { flex-wrap: wrap; }
  .tile .add { width: 100%; }
  .step-nav .pill { flex: 1; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
