/* its.kmill — shared styles
   One family (Geist), true black, white type, photographs carry the colour. */
:root {
  --bg: #000;
  --surface: #0e0e0e;
  --surface-2: #161616;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f2;
  --muted: #a1a19c;          /* 7.9:1 on black */
  --faint: #85857f;          /* 5.3:1 on black */
  --error: #f0a59a;
  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --col: 480px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.col { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* buttons: one pair, white primary and outlined secondary */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  border: 1px solid var(--text); border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: .35; cursor: default; transform: none; }

/* top bar with the way back */
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none; font-size: 15px;
  min-height: 44px;
}
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }

footer.site {
  padding: 56px 16px 44px;
  text-align: center; color: var(--muted); font-size: 15px;
}
footer.site a { color: var(--muted); text-decoration: none; margin: 0 12px; }
footer.site a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- application card (home + /apply) ----------
   Warm candle-light accent, taken from the gold of the photos. */
:root {
  --amber: #e7ce99;
  --amber-deep: #b89b62;
  --amber-soft: rgba(231,206,153, .14);
  --amber-line: rgba(231,206,153, .45);
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 34px; padding: 0 16px;
  border: 1px solid var(--amber-line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: #efe2c6;
  background: linear-gradient(90deg, rgba(231,206,153,.16), rgba(179,154,106,.06));
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(231,206,153,.6); } 70%,100% { box-shadow: 0 0 0 9px rgba(231,206,153,0); } }

.apply-head { text-align: center; }
.apply-head h2, .apply-head h1 { margin-top: 18px; font-size: clamp(36px, 10vw, 52px); letter-spacing: -0.035em; }
.apply-head p { margin: 12px auto 0; color: var(--muted); font-size: 17px; max-width: 34ch; }

.qcard {
  position: relative; isolation: isolate;
  margin-top: 32px; padding: 24px 22px 22px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(231,206,153,.16) 0%, rgba(179,154,106,.05) 40%, transparent 70%),
    linear-gradient(180deg, #141210 0%, #0a0908 100%);
  box-shadow: 0 40px 100px -50px rgba(220,195,140,.35), inset 0 1px 0 rgba(246,234,208,.08);
}
/* gradient hairline border */
.qcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(231,206,153,.6), rgba(255,255,255,.08) 40%, rgba(255,255,255,.06) 70%, rgba(179,154,106,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.qcard .qtop { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 500; color: #d9c3a3; }
.qcard .qtop b { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.qbar { height: 4px; margin-top: 14px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.qbar i {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber) 70%, #f3e4c4);
  box-shadow: 0 0 12px rgba(231,206,153,.7);
  transition: width .5s var(--ease);
}
.qcard .q {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline;
  margin: 32px 0 0; font-size: clamp(24px, 6.6vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em;
}
.qcard .q::before {
  content: attr(data-n); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--amber);
  transform: translateY(-3px);
}
.qcard .q:not([data-n])::before { display: none; }
.qcard .q:not([data-n]) { display: block; }
.qcard .hint { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.qcard .q[data-n] ~ .hint, .qcard .q[data-n] ~ .answer { margin-left: 0; }
.qcard .answer { margin-top: 24px; }
.qcard .foot { margin: 18px 0 0; text-align: right; color: var(--faint); font-size: 14px; }

.choices { display: grid; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-md);
  background: rgba(255,255,255,.025);
  cursor: pointer; font-size: 17px; line-height: 1.3;
  transition: border-color .18s ease, background .18s ease, transform .15s var(--ease), box-shadow .18s ease;
}
.choice label kbd {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); font: 600 13px var(--font); color: var(--muted);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.choice label:hover { border-color: var(--amber-line); background: rgba(231,206,153,.06); }
.choice label:hover kbd { border-color: var(--amber-line); color: var(--amber); }
.choice label:active { transform: scale(.99); }
.choice input:checked + label {
  border-color: var(--amber);
  background: linear-gradient(90deg, rgba(231,206,153,.18), rgba(179,154,106,.08));
  box-shadow: 0 0 0 3px rgba(231,206,153,.12), 0 10px 30px -12px rgba(220,195,140,.5);
}
.choice input:checked + label kbd { background: var(--amber); color: #1c160a; border-color: var(--amber); }
.choice input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- application steps ---------- */
.steps { position: relative; }
.step { display: none; }
.step.active { display: block; animation: rise .4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.answer input[type=text], .answer input[type=email], .answer textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0; font-size: 22px; border-radius: 0; outline: none; resize: none;
  transition: border-color .2s ease;
}
.answer textarea { font-size: 19px; line-height: 1.45; min-height: 3.2em; }
.answer input:focus, .answer textarea:focus { border-bottom-color: var(--amber); }
.answer input, .answer textarea { caret-color: var(--amber); }
.answer ::placeholder { color: var(--faint); }

.actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.actions .key { font-size: 14px; color: var(--faint); }
.err { min-height: 1.4em; margin: 10px 0 0; color: var(--error); font-size: 15px; }
.nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.qcard .foot { text-align: left; }
.nav button {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; display: grid; place-items: center;
}
.nav button[disabled] { opacity: .3; cursor: default; }
.done h2 { margin-top: 8px; font-size: clamp(30px, 8vw, 38px); }
.done p { margin: 14px 0 0; font-size: 17px; color: var(--muted); }
.qcard .btn:not(.ghost) { background: #ecd6a3; border-color: #ecd6a3; color: #1c160a; box-shadow: none; }   /* solid champagne */
.qcard .btn:not(.ghost):hover { background: #f3e1b5; border-color: #f3e1b5; }
.nav button:hover:not([disabled]) { border-color: var(--amber-line); color: var(--amber); }
.qcard .answer { margin-left: 0; }
.qcard .hidden { display: none !important; }
@media (max-width: 520px) { .actions .key { display: none; } }

/* what the 1:1 includes */
.included {
  list-style: none; margin: 26px auto 0; padding: 0; max-width: 620px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left;
}
.included li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 14px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025);
  font-size: 15.5px; line-height: 1.35; color: var(--text);
}
.included svg {
  flex: none; width: 22px; height: 22px; padding: 4px; margin-top: -1px; border-radius: 50%;
  color: #1c160a; background: var(--amber); stroke-width: 2.4;
}
@media (max-width: 480px) { .included { grid-template-columns: 1fr; gap: 8px; } .included li { padding: 12px 14px; } }

/* ---------- form polish v4 ---------- */
.qcard .q { display: block; }
.qcard .q::before { display: none; }
.qcard .qtop { font-size: 15px; }
.qcard .hint { font-size: 17px; line-height: 1.45; }
.choice label { font-size: 18px; min-height: 64px; }
.choice label kbd { width: 32px; height: 32px; font-size: 14px; }
.actions { gap: 16px; margin-top: 28px; }
.actions .key { font-size: 15px; }
.qcard .actions .btn { min-width: 200px; gap: 10px; padding: 0 30px; font-size: 17px; }
.qcard .actions .btn svg { transition: transform .2s var(--ease); }
.qcard .actions .btn:hover svg { transform: translateX(3px); }
.err { font-size: 16px; }
.qfoot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07);
}
.qfoot .foot { margin: 0; font-size: 15px; }
.qfoot .nav { margin: 0; flex: none; }
.qfoot .nav.hidden { display: none !important; }
@media (max-width: 520px) {
  .qcard .actions .btn { width: 100%; }
  .qfoot .foot { font-size: 15px; }
}
.qfoot .foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.qfoot .foot a:hover { color: var(--amber); text-decoration-color: currentColor; }
.qfoot .foot { line-height: 1.45; }

/* ---------- plain text pages (privacy) ---------- */
.legal { padding: 8px 0 24px; }
.legal h1 { font-size: clamp(34px, 9vw, 46px); letter-spacing: -0.035em; }
.legal .updated { margin: 12px 0 0; color: var(--faint); font-size: 15px; }
.legal h2 { margin-top: 40px; font-size: 21px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); font-size: 17px; line-height: 1.6; }
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--text); text-underline-offset: 3px; }

/* progress in bricks: one per question */
.qsegs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 14px; }
.qsegs i {
  position: relative; display: block; height: 6px; border-radius: 3px; overflow: hidden;
  background: rgba(255,255,255,.09);
}
.qsegs i::after {
  /* one gradient across the whole row: each brick shows its own slice of it */
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--k) * -1 * (100% + 6px));
  width: calc(var(--n) * 100% + (var(--n) - 1) * 6px);
  background: linear-gradient(90deg, var(--amber-deep), var(--amber) 70%, #f3e4c4);
  opacity: 0; transition: opacity .45s var(--ease);
}
.qsegs i.on::after { opacity: .8; }
.qsegs i.now::after { opacity: 1; }
.qsegs i.now { box-shadow: 0 0 14px rgba(231,206,153,.55); }

/* browser autofill: keep the field dark instead of the white/blue box */
.answer input:-webkit-autofill,
.answer input:-webkit-autofill:hover,
.answer input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--amber);
  -webkit-box-shadow: 0 0 0 1000px #12100e inset;
  box-shadow: 0 0 0 1000px #12100e inset;
  transition: background-color 9999s ease-out 0s;
  font-size: 22px;
}
.answer input:autofill { background: transparent; }

/* ---------- desktop: arrows on the sides of the card ---------- */
@media (min-width: 900px) {
  .qfoot .nav {
    /* pinned near the top of the card, so they never move when a question is taller or shorter */
    position: absolute; left: 0; right: 0; top: 170px; height: 56px; margin: 0 -84px;
    display: flex; justify-content: space-between; align-items: center;
    pointer-events: none;
  }
  .qfoot .nav button {
    pointer-events: auto;
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,.03); backdrop-filter: blur(6px);
    transition: border-color .2s ease, color .2s ease, transform .2s var(--ease), background .2s ease;
  }
  .qfoot .nav button:hover:not([disabled]) { background: rgba(231,206,153,.08); }
  .qfoot .nav #prev:hover:not([disabled]) { transform: translateX(-2px); }
  .qfoot .nav #next:hover:not([disabled]) { transform: translateX(2px); }
  .qfoot .nav button svg { width: 22px; height: 22px; }
}
