/* ==========================================================
   SKYHEX Interview — Apple design language
   Per DESIGN-apple.md: photography-first tiles, single Action
   Blue accent, SF Pro typography, no decorative chrome.
   Components: Tide Wave Loader + Spotlight (loading), Gradient
   Flow congrats banner, Confetti Checkbox, Submit Morph Button,
   Stepped Wizard (apply), Vault Door Password (result check).
   ========================================================== */

:root {
  --blue: #0066cc;          /* primary — the only interactive color */
  --blue-focus: #0071e3;
  --blue-on-dark: #2997ff;
  --ink: #1d1d1f;
  --ink-80: #333333;
  --ink-48: #7a7a7a;
  --body-muted-dark: #cccccc;
  --divider-soft: #f0f0f0;
  --hairline: #e0e0e0;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile-1: #272729;
  --tile-2: #2a2a2c;
  --tile-3: #252527;
  --black: #000000;
  --ok: 52, 211, 153;       /* status green (components only) */
  --err: 255, 99, 110;      /* status red (components only) */

  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Inter", system-ui, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Inter", system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --pill: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

/* ==========================================================
   Loading screen: Tide Wave Loader + Spotlight "Load Page"
   ========================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--canvas);
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.loader.done { opacity: 0; visibility: hidden; }

.tw-load {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 32px;
}
.tw-bar {
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, #2997ff, #0066cc);
  animation: tw-wave 1.2s ease-in-out infinite;
  transform-origin: center;
}
.tw-bar:nth-child(1) { animation-delay: 0s; }
.tw-bar:nth-child(2) { animation-delay: 0.1s; }
.tw-bar:nth-child(3) { animation-delay: 0.2s; }
.tw-bar:nth-child(4) { animation-delay: 0.3s; }
.tw-bar:nth-child(5) { animation-delay: 0.4s; }
@keyframes tw-wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Spotlight — a round spotlight crosses the text (radial mask) */
.tx-sp {
  position: relative;
  width: 280px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tx-sp-t {
  position: relative;
  color: rgba(29, 29, 31, 0.16);
  font: 800 26px/1 var(--font-display);
  letter-spacing: 0.04em;
}
.tx-sp-t::after {
  content: attr(data-tx);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  -webkit-mask: radial-gradient(70px circle at var(--x, 0%) 50%, #000 0%, #000 40%, transparent 80%);
  mask: radial-gradient(70px circle at var(--x, 0%) 50%, #000 0%, #000 40%, transparent 80%);
  animation: txSpMove 3s ease-in-out infinite;
  text-shadow: 0 0 16px rgba(0, 102, 204, 0.35);
}
@keyframes txSpMove {
  0% { --x: -10%; }
  50% { --x: 110%; }
  100% { --x: -10%; }
}
@property --x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -10%;
}

/* ==========================================================
   Gradient Flow — pass congratulations banner
   Hidden until a passing result; glow flows, snaps to a halt,
   then the text pops in.
   ========================================================== */
.congrats {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 30px 16px 34px;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  overflow: hidden;
}
.congrats.on { opacity: 1; }

.congrats-strip {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #7c5cff, #23d3ff, #5cffb6, #ffd166, #ff5ad1, #7c5cff);
  background-size: 300% 100%;
  filter: blur(20px);
  opacity: 0.4;
  animation: txGfSlide 4s linear infinite;
}
.congrats.stopped .congrats-strip { animation-play-state: paused; }
.congrats.show-text .congrats-strip { opacity: 0.12; transition: opacity 0.35s var(--ease); }

.tx-gf {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4px 10px;
}
.tx-gf-t {
  background: linear-gradient(90deg, #7c5cff, #23d3ff, #5cffb6, #ffd166, #ff5ad1, #7c5cff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 800 clamp(24px, 4.4vw, 36px)/1.15 var(--font-display);
  letter-spacing: 0.02em;
  animation: txGfSlide 4s linear infinite;
  visibility: hidden;
}
.congrats.show-text .tx-gf-t {
  visibility: visible;
  animation: txGfSlide 4s linear infinite, congrats-pop 0.55s var(--spring);
}
@keyframes txGfSlide {
  to { background-position: 300% 0; }
}
@keyframes congrats-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .congrats-strip, .tx-gf-t { animation: none !important; }
  .congrats .tx-gf-t { visibility: visible; }
}

/* ---------- Global nav (black, 44px) ---------- */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 44px;
  background: var(--black);
  display: flex;
  align-items: center;
}
.global-nav .nav-inner {
  width: min(1024px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.global-nav .brand {
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.global-nav .brand svg { width: 15px; height: 15px; display: block; }
.global-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}
.global-nav ul a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  letter-spacing: -0.12px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.global-nav ul a:hover { color: #fff; }
.lang-switch {
  display: flex;
  gap: 2px;
  align-items: center;
}
.lang-switch a, .lang-switch span {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.lang-switch .on { color: #fff; background: var(--ink); }
.lang-switch a:hover { color: #fff; }

/* ---------- Sub-nav (frosted parchment, 52px) ---------- */
.sub-nav {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 99;
  height: 52px;
  background: rgba(245, 245, 247, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
}
.sub-nav .nav-inner {
  width: min(1024px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sub-nav .page-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.231px;
  color: var(--ink);
  text-decoration: none;
}
.sub-nav .sub-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
}
.sub-nav .sub-links a {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.85;
}
.sub-nav .sub-links a:hover { opacity: 1; color: var(--blue); }
@media (max-width: 833px) {
  .global-nav ul { display: none; }
  .sub-nav .sub-links li:not(.cta) { display: none; }
}

/* ---------- Buttons: the two grammars ---------- */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.374px;
  line-height: 1;
  padding: 11px 22px;
  border: none;
  border-radius: var(--pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}
.btn-primary:active { transform: scale(0.95); }
.btn-primary:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: 2px; }
.btn-primary.small { font-size: 14px; letter-spacing: -0.224px; padding: 8px 16px; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--blue);
  font-size: 17px;
  letter-spacing: -0.374px;
  line-height: 1;
  padding: 10px 21px;
  border: 1px solid var(--blue);
  border-radius: var(--pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}
.btn-ghost:active { transform: scale(0.95); }
.btn-ghost:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: 2px; }

.text-link {
  color: var(--blue);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.tile-dark .text-link, .tile-dark2 .text-link, .tile-dark3 .text-link { color: var(--blue-on-dark); }

/* ---------- Tiles: full-bleed, color change is the divider ---------- */
.tile { padding: 80px 0; }
.tile-white { background: var(--canvas); color: var(--ink); }
.tile-parchment { background: var(--parchment); color: var(--ink); }
.tile-dark  { background: var(--tile-1); color: #fff; }
.tile-dark2 { background: var(--tile-2); color: #fff; }
.tile-dark3 { background: var(--tile-3); color: #fff; }

.wrap { width: min(980px, 92vw); margin: 0 auto; }
.wrap-wide { width: min(1200px, 92vw); margin: 0 auto; }

/* ---------- Typography ---------- */
.hero-display {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}
.lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.196px;
}
.tagline {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}
.caption { font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; }
.muted { color: var(--ink-48); }
.tile-dark .muted, .tile-dark2 .muted, .tile-dark3 .muted { color: var(--body-muted-dark); }

.tile-head { text-align: center; margin-bottom: 48px; }
.tile-head .lead { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 160px 0 96px; text-align: center; }
.hero .eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--ink-48);
  margin-bottom: 14px;
}
.hero .lead { margin: 18px auto 0; max-width: 640px; color: var(--ink-80); }
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Process (dark tile) ---------- */
.process-grid {
  display: grid;
  gap: 56px 40px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.process-step .step-no {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue-on-dark);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.19;
  margin: 10px 0 12px;
}
.process-step p { color: var(--body-muted-dark); font-size: 17px; }

.code-note {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--body-muted-dark);
  font-size: 14px;
  letter-spacing: -0.224px;
  text-align: center;
}
.code-note strong { color: #fff; font-weight: 600; }

/* ---------- Department cards (store-utility-card) ---------- */
.dept-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.dept-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dept-card .dept-glyph {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}
.dept-card h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.374px;
}
.dept-card .dept-en {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink-48);
}
.dept-card p {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
  color: var(--ink-80);
  flex: 1;
  margin-top: 6px;
}
.dept-card .text-link { font-size: 14px; letter-spacing: -0.224px; margin-top: 12px; }

/* ---------- Scoring / checklist (parchment tile) ---------- */
.two-col {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}
.panel {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}
.panel h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.231px;
  margin-bottom: 18px;
}
.score-list { list-style: none; }
.score-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--divider-soft);
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink-80);
}
.score-list li:last-child { border-bottom: none; }
.score-list .pts {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
  color: var(--ink-80);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.notice-panel { grid-column: 1 / -1; }
.notice-panel h3 { color: var(--ink); }

/* ---------- FAQ (hairline accordions) ---------- */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .chev {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--ink-48);
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary .chev { transform: rotate(180deg); }
.faq-list .answer {
  padding: 0 4px 24px;
  font-size: 17px;
  color: var(--ink-80);
  max-width: 760px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--parchment);
  color: var(--ink-80);
  padding: 48px 0 40px;
  border-top: 1px solid var(--hairline);
}
footer .foot-inner {
  width: min(980px, 92vw);
  margin: 0 auto;
}
footer .foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 14px;
  line-height: 2.41;
  letter-spacing: -0.224px;
}
footer .foot-links a { color: var(--ink-80); text-decoration: none; }
footer .foot-links a:hover { color: var(--blue); }
footer .legal {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.12px;
  color: var(--ink-48);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ==========================================================
   Result card (revealed after the vault opens)
   ========================================================== */
.foc-result {
  width: min(400px, 92vw);
  margin: 30px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: 24px;
  color: #fff;
  display: none;
}
.foc-result.show { display: block; animation: focr-in 0.5s var(--ease); }
@keyframes focr-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.foc-result .r-dept {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}
.foc-result .r-code {
  font-size: 12px;
  color: var(--body-muted-dark);
  margin-bottom: 18px;
}
.foc-result .r-stages { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foc-result .r-stages li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--body-muted-dark);
}
.r-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--pill);
}
.r-badge.pass { color: rgb(var(--ok)); background: rgba(var(--ok), 0.14); }
.r-badge.fail { color: rgb(var(--err)); background: rgba(var(--err), 0.14); }
.r-badge.wait { color: var(--body-muted-dark); background: rgba(255, 255, 255, 0.1); }

/* ==========================================================
   Component: Confetti Checkbox  (ccf-*)
   ========================================================== */
.ccf-field {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 6px;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ccf-control {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
}
.ccf-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.ccf-box {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1.6px solid var(--hairline);
  background: var(--canvas);
  transition:
    background 200ms cubic-bezier(0.25, 0.1, 0.25, 1),
    border-color 200ms cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 220ms cubic-bezier(0.25, 0.1, 0.25, 1);
}
.ccf-field:hover .ccf-box { border-color: var(--ink-48); }
.ccf-check { width: 16px; height: 16px; overflow: visible; }
.ccf-check-path {
  stroke: #ffffff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 150ms cubic-bezier(0.4, 0, 0.7, 0.2);
}
.ccf-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(41, 151, 255, 0.6);
  opacity: 0;
  pointer-events: none;
}
.ccf-input:checked + .ccf-box {
  background: var(--blue);
  border-color: var(--blue);
  animation: ccf-pop 360ms var(--spring);
}
.ccf-input:checked + .ccf-box .ccf-check-path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 300ms cubic-bezier(0.2, 0.85, 0.3, 1) 55ms;
}
.ccf-input:checked + .ccf-box .ccf-ring { animation: ccf-ring 560ms ease-out; }
.ccf-input:focus-visible + .ccf-box {
  border-color: var(--blue-focus);
  box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.6), 0 0 0 4px rgba(0, 113, 227, 0.28);
}
.ccf-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.ccf-p {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
  border-radius: 1.5px;
}
.ccf-label {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.224px;
  line-height: 1.4;
  color: var(--ink-80);
  transition: color 220ms cubic-bezier(0.25, 0.1, 0.25, 1);
}
.ccf-field:has(.ccf-input:checked) .ccf-label { color: var(--ink-48); }
/* dark-context (wizard card) overrides */
.fsw-card .ccf-box { background: rgb(236 239 246 / 0.05); border-color: rgb(236 239 246 / 0.22); }
.fsw-card .ccf-field:hover .ccf-box { border-color: rgb(236 239 246 / 0.45); }
.fsw-card .ccf-input:checked + .ccf-box { background: rgb(41 151 255); border-color: rgb(41 151 255); }
.fsw-card .ccf-label { color: rgb(236 239 246 / 0.8); }
.fsw-card .ccf-field:has(.ccf-input:checked) .ccf-label { color: rgb(236 239 246 / 0.55); }
@keyframes ccf-pop {
  0% { transform: scale(1); }
  40% { transform: scale(0.84); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes ccf-ring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}
@media (prefers-reduced-motion: reduce) {
  .ccf-input:checked + .ccf-box { animation: none; }
  .ccf-input:checked + .ccf-box .ccf-ring { animation: none; opacity: 0; }
  .ccf-check-path,
  .ccf-input:checked + .ccf-box .ccf-check-path { transition-duration: 1ms; }
  .ccf-label { transition-duration: 1ms; }
}

/* ==========================================================
   Component: Submit Morph Button  (bsm-*)
   ========================================================== */
.bsm-cell { position: relative; display: inline-flex; }

.bsm-btn {
  position: relative;
  z-index: 2;
  width: 212px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  border: none;
  background: rgb(41 151 255);
  color: #fff;
  font-family: var(--font-text);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 12px 26px -12px rgb(41 151 255 / 0.85);
  transition:
    transform 0.42s var(--spring),
    background 0.45s var(--ease);
}
.bsm-btn:active { transform: scale(0.95); }
.bsm-btn:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: 3px; }
.bsm-btn[data-state="success"] {
  background: rgb(16, 150, 100);
  animation: bsm-pop 0.5s var(--spring);
}
.bsm-btn[data-state="error"] { background: rgb(200, 60, 70); }

.bsm-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 68%);
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}
.bsm-btn[data-state="success"] .bsm-ripple { animation: bsm-ripple 0.85s var(--ease); }

.bsm-sheen {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.22) 48%, transparent 60%);
  transform: translateX(-130%);
  pointer-events: none;
}
.bsm-btn[data-state="idle"] .bsm-sheen { animation: bsm-sheen 4.6s var(--ease) infinite; }

.bsm-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
}
.bsm-face {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    opacity 0.34s var(--ease),
    transform 0.48s var(--spring),
    filter 0.34s var(--ease);
}
.bsm-txt {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.bsm-arrow {
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.42s var(--spring);
}
.bsm-btn:hover .bsm-arrow { transform: translateX(3px); }

.bsm-spinner {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: conic-gradient(from 90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 32%,
    rgba(255, 255, 255, 1) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.6px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.6px), #000 0);
}
.bsm-btn[data-state="loading"] .bsm-spinner { animation: bsm-spin 0.8s linear infinite; }

.bsm-txt-shim {
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0.5) 22%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(255, 255, 255, 0.5) 78%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bsm-btn[data-state="loading"] .bsm-txt-shim { animation: bsm-shim 1.35s linear infinite; }

.bsm-check { color: #fff; }
.bsm-check-p { stroke-dasharray: 24; stroke-dashoffset: 24; }
.bsm-btn[data-state="success"] .bsm-check-p { animation: bsm-draw 0.48s 0.06s var(--ease) forwards; }

.bsm-face-idle { opacity: 1; transform: none; filter: none; }
.bsm-face-load { opacity: 0; transform: scale(0.74) translateY(7px); filter: blur(1.5px); }
.bsm-face-done { opacity: 0; transform: scale(0.55); filter: blur(1px); }
.bsm-face-err  { opacity: 0; transform: scale(0.74); filter: blur(1px); }

.bsm-btn[data-state="loading"] .bsm-face-idle { opacity: 0; transform: translateY(-9px) scale(0.88); filter: blur(2px); }
.bsm-btn[data-state="loading"] .bsm-face-load { opacity: 1; transform: none; filter: none; }
.bsm-btn[data-state="success"] .bsm-face-idle { opacity: 0; }
.bsm-btn[data-state="success"] .bsm-face-load { opacity: 0; transform: translateY(9px) scale(0.88); filter: blur(2px); }
.bsm-btn[data-state="success"] .bsm-face-done { opacity: 1; transform: none; filter: none; }
.bsm-btn[data-state="error"] .bsm-face-idle { opacity: 0; }
.bsm-btn[data-state="error"] .bsm-face-load { opacity: 0; }
.bsm-btn[data-state="error"] .bsm-face-err { opacity: 1; transform: none; filter: none; }

.bsm-spark-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.bsm-spark {
  position: absolute;
  left: -2.5px;
  top: -2.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(41, 151, 255, 0.9);
  opacity: 0;
  transform: rotate(var(--bsm-a)) translateY(0) scale(0.5);
}
.bsm-spark-ok { background: rgba(var(--ok), 0.95); }
.bsm-cell:has(.bsm-btn[data-state="success"]) .bsm-spark { animation: bsm-spark 0.7s 0.04s var(--ease) forwards; }

.bsm-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.bsm-note {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: rgb(236 239 246 / 0.55);
  min-height: 18px;
  text-align: center;
  margin-top: 10px;
}
.bsm-note.err { color: rgb(255, 120, 130); }

@keyframes bsm-spin { to { transform: rotate(360deg); } }
@keyframes bsm-shim { from { background-position: 220% 0; } to { background-position: -220% 0; } }
@keyframes bsm-sheen {
  0% { transform: translateX(-130%); }
  24% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}
@keyframes bsm-ripple {
  0% { opacity: 0.55; transform: scale(0.3); }
  70% { opacity: 0.2; }
  100% { opacity: 0; transform: scale(5.6); }
}
@keyframes bsm-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  70% { transform: scale(0.985); }
  100% { transform: scale(1); }
}
@keyframes bsm-draw { to { stroke-dashoffset: 0; } }
@keyframes bsm-spark {
  0% { opacity: 0; transform: rotate(var(--bsm-a)) translateY(6px) scale(0.5); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--bsm-a)) translateY(-34px) scale(0.32); }
}
@media (prefers-reduced-motion: reduce) {
  .bsm-btn[data-state="idle"] .bsm-sheen { animation: none; opacity: 0; }
  .bsm-btn[data-state="loading"] .bsm-spinner { animation: none; }
  .bsm-btn[data-state="loading"] .bsm-txt-shim {
    animation: none;
    -webkit-text-fill-color: currentColor;
    background: none;
    color: rgba(255, 255, 255, 0.9);
  }
  .bsm-btn[data-state="success"] { animation: none; }
  .bsm-btn[data-state="success"] .bsm-ripple { animation: none; opacity: 0; }
  .bsm-cell:has(.bsm-btn[data-state="success"]) .bsm-spark { animation: none; opacity: 0; }
  .bsm-btn[data-state="success"] .bsm-check-p { animation: none; stroke-dashoffset: 0; }
  .bsm-face { transition-duration: 0.16s, 0.16s, 0.16s; }
  .bsm-btn, .bsm-arrow { transition-duration: 0.16s; }
}

/* ==========================================================
   Component: Stepped Wizard  (fsw-*) — full-screen apply form
   ========================================================== */
.wizard-tile {
  min-height: 100vh;
  background:
    radial-gradient(90% 60% at 50% 0%, #31343c 0%, var(--tile-1) 60%),
    var(--tile-1);
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fsw-root {
  --fsw-fg: 236 239 246;
  --fsw-accent: 41 151 255;
  --fsw-ok: 52 211 153;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--font-text);
  color: rgb(var(--fsw-fg) / 0.9);
  -webkit-font-smoothing: antialiased;
}
.fsw-root *,
.fsw-root *::before,
.fsw-root *::after { box-sizing: border-box; }

.fsw-card {
  position: relative;
  width: min(600px, 100%);
  padding: 28px 28px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgb(var(--fsw-fg) / 0.055), rgb(var(--fsw-fg) / 0.02));
  border: 1px solid rgb(var(--fsw-fg) / 0.1);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgb(var(--fsw-fg) / 0.07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
}
.fsw-card::before {
  content: "";
  position: absolute;
  inset: -44% -18% auto -18%;
  height: 72%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(58% 100% at 50% 0%, rgb(var(--fsw-accent) / 0.2), rgb(var(--fsw-accent) / 0) 72%);
  opacity: 0.7;
  animation: fsw-breathe 6s ease-in-out infinite;
}

.fsw-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.fsw-eyebrow {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: rgb(var(--fsw-fg) / 0.92);
}
.fsw-count {
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--fsw-fg) / 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fsw-count b { color: rgb(var(--fsw-accent) / 1); font-weight: 700; }

.fsw-steps {
  position: relative;
  display: flex;
  margin-bottom: 20px;
}
.fsw-track {
  position: absolute;
  left: 16.667%;
  right: 16.667%;
  top: 17px;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: rgb(var(--fsw-fg) / 0.1);
  overflow: hidden;
}
.fsw-track-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgb(var(--fsw-accent) / 0.5), rgb(var(--fsw-accent) / 1));
  box-shadow: 0 0 12px rgb(var(--fsw-accent) / 0.45);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fsw-track-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(var(--fsw-fg) / 0) 0%, rgb(var(--fsw-fg) / 0.55) 50%, rgb(var(--fsw-fg) / 0) 100%);
  transform: translateX(-100%);
  animation: fsw-shimmer 2.4s ease-in-out infinite;
}

.fsw-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.fsw-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgb(var(--fsw-fg) / 0.14);
  background: rgb(var(--fsw-fg) / 0.04);
  color: rgb(var(--fsw-fg) / 0.55);
  display: grid;
  place-items: center;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.fsw-num, .fsw-tick { grid-area: 1/1; }
.fsw-num {
  font-size: 13px;
  font-weight: 650;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fsw-tick {
  width: 16px; height: 16px;
  opacity: 0;
  transform: scale(0.4) rotate(-8deg);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fsw-tick path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.fsw-dot.is-active {
  border-color: rgb(var(--fsw-accent) / 0.9);
  background: rgb(var(--fsw-accent) / 0.14);
  color: rgb(var(--fsw-accent) / 1);
  box-shadow: 0 0 0 4px rgb(var(--fsw-accent) / 0.12), 0 8px 20px -8px rgb(var(--fsw-accent) / 0.6);
  transform: scale(1.08);
}
.fsw-dot.is-done {
  border-color: rgb(var(--fsw-accent) / 0.55);
  background: rgb(var(--fsw-accent) / 0.18);
  color: rgb(var(--fsw-accent) / 1);
}
.fsw-dot.is-done .fsw-num { opacity: 0; transform: scale(0.4); }
.fsw-dot.is-done .fsw-tick { opacity: 1; transform: scale(1) rotate(0); }
.fsw-dot.is-active::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid rgb(var(--fsw-accent) / 0.7);
  animation: fsw-ping 1.9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.fsw-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(var(--fsw-accent) / 0.45);
}

.fsw-label {
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: rgb(var(--fsw-fg) / 0.5);
  transition: color 0.3s ease;
}
.fsw-step.is-active .fsw-label { color: rgb(var(--fsw-fg) / 0.88); }
.fsw-step.is-done .fsw-label { color: rgb(var(--fsw-fg) / 0.68); }

.fsw-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.fsw-slides {
  display: flex;
  width: 400%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fsw-slide {
  flex: 0 0 25%;
  min-height: 200px;
  padding: 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  opacity: 0.18;
  transform: scale(0.955);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fsw-slide.is-active { opacity: 1; transform: none; }

.fsw-s-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.01em;
  color: rgb(var(--fsw-fg) / 0.95);
}
.fsw-s-sub {
  margin: -3px 0 3px;
  font-size: 12.5px;
  letter-spacing: 0;
  color: rgb(var(--fsw-fg) / 0.6);
}
.fsw-s-note {
  margin: 1px 0 0;
  font-size: 11.5px;
  letter-spacing: 0;
  color: rgb(var(--fsw-fg) / 0.5);
}

.fsw-field { display: flex; flex-direction: column; gap: 6px; }
.fsw-flabel {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgb(var(--fsw-fg) / 0.62);
}
.fsw-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgb(var(--fsw-fg) / 0.12);
  background: rgb(var(--fsw-fg) / 0.04);
  color: rgb(var(--fsw-fg) / 0.92);
  font: inherit;
  font-size: 13.5px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.fsw-input::placeholder { color: rgb(var(--fsw-fg) / 0.46); }
.fsw-input:focus,
.fsw-input:focus-visible {
  outline: none;
  border-color: rgb(var(--fsw-accent) / 0.8);
  background: rgb(var(--fsw-accent) / 0.06);
  box-shadow: 0 0 0 3px rgb(var(--fsw-accent) / 0.18);
}
.fsw-input.fsw-invalid { border-color: rgb(255 99 110 / 0.75); }
select.fsw-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23aab4c2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
select.fsw-input option { color: var(--ink); background: #fff; }
textarea.fsw-input { min-height: 92px; resize: vertical; line-height: 1.5; }

.fsw-chips {
  display: flex;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.fsw-chip { position: relative; flex: 1; display: block; }
.fsw-chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.fsw-chip-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 6px;
  border-radius: 15px;
  border: 1px solid rgb(var(--fsw-fg) / 0.12);
  background: rgb(var(--fsw-fg) / 0.04);
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fsw-chip-ic { width: 21px; height: 21px; color: rgb(var(--fsw-fg) / 0.68); transition: color 0.25s ease; }
.fsw-chip-ic * { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fsw-chip-t { font-size: 12px; font-weight: 620; letter-spacing: 0; color: rgb(var(--fsw-fg) / 0.78); transition: color 0.25s ease; }
.fsw-chip input:hover + .fsw-chip-body { border-color: rgb(var(--fsw-fg) / 0.22); background: rgb(var(--fsw-fg) / 0.06); }
.fsw-chip input:checked + .fsw-chip-body {
  border-color: rgb(var(--fsw-accent) / 0.8);
  background: rgb(var(--fsw-accent) / 0.13);
  box-shadow: 0 0 0 3px rgb(var(--fsw-accent) / 0.12), 0 8px 18px -10px rgb(var(--fsw-accent) / 0.55);
  transform: translateY(-1px);
}
.fsw-chip input:checked + .fsw-chip-body .fsw-chip-ic,
.fsw-chip input:checked + .fsw-chip-body .fsw-chip-t { color: rgb(var(--fsw-accent) / 1); }
.fsw-chip input:focus-visible + .fsw-chip-body {
  outline: none;
  box-shadow: 0 0 0 3px rgb(var(--fsw-accent) / 0.45);
}

.fsw-rows { display: flex; flex-direction: column; gap: 8px; }
.fsw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 13px;
  background: rgb(var(--fsw-fg) / 0.04);
  border: 1px solid rgb(var(--fsw-fg) / 0.08);
}
.fsw-row-k { font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: rgb(var(--fsw-fg) / 0.56); }
.fsw-row-v { font-size: 12.5px; font-weight: 650; letter-spacing: 0; color: rgb(var(--fsw-fg) / 0.92); }

.fsw-consents { display: flex; flex-direction: column; gap: 2px; }

.fsw-success { align-items: center; text-align: center; gap: 9px; }
.fsw-success .fsw-s-title { font-size: 16px; }
.fsw-badge { display: grid; place-items: center; margin-bottom: 2px; }
.fsw-succ-ic { width: 58px; height: 58px; overflow: visible; filter: drop-shadow(0 6px 18px rgb(var(--fsw-ok) / 0.35)); }
.fsw-succ-ic circle {
  fill: none;
  stroke: rgb(var(--fsw-ok) / 0.85);
  stroke-width: 2;
  stroke-dasharray: 158;
  stroke-dashoffset: 158;
}
.fsw-succ-ic path {
  fill: none;
  stroke: rgb(var(--fsw-ok) / 1);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.fsw-slide.is-active .fsw-succ-ic circle { animation: fsw-draw-c 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.fsw-slide.is-active .fsw-succ-ic path { animation: fsw-draw-p 0.46s 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

.fsw-footer { display: flex; align-items: center; gap: 10px; margin-top: 17px; }
.fsw-footer .bsm-cell { flex: 1; display: none; }
.fsw-footer .bsm-cell.show { display: inline-flex; }
.fsw-footer .bsm-btn { width: 100%; }
.fsw-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 640;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, filter 0.2s ease;
}
.fsw-btn:active { transform: scale(0.96); }
.fsw-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(var(--fsw-accent) / 0.45); }

.fsw-back {
  flex: 0 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  background: rgb(var(--fsw-fg) / 0.05);
  border-color: rgb(var(--fsw-fg) / 0.12);
  color: rgb(var(--fsw-fg) / 0.75);
}
.fsw-back:hover { background: rgb(var(--fsw-fg) / 0.09); }
.fsw-back:disabled { opacity: 0.45; cursor: default; pointer-events: none; }

.fsw-next {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgb(var(--fsw-accent) / 1);
  border-color: rgb(var(--fsw-accent) / 1);
  color: #04122b;
  box-shadow: 0 12px 26px -12px rgb(var(--fsw-accent) / 0.85);
}
.fsw-next:hover { filter: brightness(1.06); box-shadow: 0 14px 30px -10px rgb(var(--fsw-accent) / 0.95); }
.fsw-next.hide { display: none; }
.fsw-next-arrow { width: 17px; height: 17px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.fsw-next-arrow path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fsw-next:hover .fsw-next-arrow { transform: translateX(3px); }

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

@keyframes fsw-shimmer { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
@keyframes fsw-ping { 0% { transform: scale(1); opacity: 0.65; } 70% { opacity: 0; } 100% { transform: scale(1.95); opacity: 0; } }
@keyframes fsw-breathe { 0%, 100% { opacity: 0.5; transform: translateY(0); } 50% { opacity: 0.82; transform: translateY(3px); } }
@keyframes fsw-draw-c { to { stroke-dashoffset: 0; } }
@keyframes fsw-draw-p { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fsw-card::before { animation: none; opacity: 0.6; }
  .fsw-track-fill { transition: width 0.01s linear; }
  .fsw-track-fill::after { animation: none; opacity: 0; }
  .fsw-dot.is-active::after { animation: none; opacity: 0.45; }
  .fsw-dot { transition: border-color 0.2s, background 0.2s, color 0.2s; transform: none; }
  .fsw-dot.is-active { transform: none; }
  .fsw-slides { transition: transform 0.12s ease; }
  .fsw-slide { transition: opacity 0.2s ease; transform: none; }
  .fsw-slide:not(.is-active) { transform: none; }
  .fsw-succ-ic circle, .fsw-succ-ic path { animation: none; stroke-dashoffset: 0; }
  .fsw-next-arrow, .fsw-next:hover .fsw-next-arrow { transition: none; transform: none; }
}

/* ==========================================================
   Component: Vault Door Password  (vdp-*) — result-check gate
   ========================================================== */
.vdp-root {
  --vdp-steel-hi: #4c5563;
  --vdp-steel: #2b323d;
  --vdp-steel-lo: #171c23;
  --vdp-line: rgba(210, 226, 246, 0.1);
  --vdp-amber: #e8a33d;
  --vdp-amber-soft: rgba(232, 163, 61, 0.55);
  --vdp-err: #e05252;
  position: relative;
  padding: 20px 26px 34px;
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.vdp-msg {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0;
  color: #8b96a5;
  min-height: 18px;
  text-align: center;
}
.vdp-msg.err { color: var(--vdp-err); }
.vdp-msg.ok { color: rgb(var(--ok)); }

.vdp-scene {
  position: relative;
  width: 316px;
  height: 216px;
  perspective: 1000px;
}

.vdp-vault {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background:
    linear-gradient(160deg, #333b47 0%, #232a34 42%, #2b323d 68%, #14181f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -2px 6px rgba(0, 0, 0, 0.5),
    0 22px 44px rgba(2, 4, 8, 0.55);
}

.vdp-shadow {
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 270px;
  height: 18px;
  margin-left: -135px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(2, 4, 8, 0.5), rgba(2, 4, 8, 0) 72%);
}

/* ---------- interior (behind the door) ---------- */
.vdp-interior {
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #191412 0%, #0e0b09 70%);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.85);
}

.vdp-room {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, rgba(0, 0, 0, 0) 1px 22px);
}

.vdp-bars {
  position: absolute;
  right: 22px;
  bottom: 16px;
  width: 128px;
  height: 62px;
  filter: brightness(0.32);
  transition: filter 1s cubic-bezier(0.3, 0.6, 0.3, 1) 0.25s;
}
.vdp-bar {
  position: absolute;
  width: 58px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f0c968 0%, #cf9c3a 46%, #8f671f 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 240, 190, 0.75),
    inset 0 -2px 2px rgba(60, 38, 6, 0.55),
    0 3px 5px rgba(0, 0, 0, 0.5);
}
.vdp-bar::after {
  content: "";
  position: absolute;
  inset: 3px 7px;
  border-radius: 2px;
  border: 1px solid rgba(90, 60, 12, 0.4);
}
.vdp-bar-1 { left: 2px;  bottom: 0; }
.vdp-bar-2 { left: 64px; bottom: 0; }
.vdp-bar-3 { left: 20px; bottom: 20px; transform: rotate(-1.2deg); }
.vdp-bar-4 { left: 66px; bottom: 20px; width: 54px; transform: rotate(1.6deg); }
.vdp-bar-5 { left: 40px; bottom: 40px; transform: rotate(-2deg); }

.vdp-barsweep {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 130px;
  background: linear-gradient(115deg, rgba(255, 244, 214, 0) 34%, rgba(255, 244, 214, 0.5) 50%, rgba(255, 244, 214, 0) 66%);
  mix-blend-mode: screen;
  transform: translateX(-170px);
  opacity: 0;
}

.vdp-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 120% at 82% 50%, rgba(238, 178, 82, 0.5) 0%, rgba(238, 178, 82, 0.14) 42%, rgba(238, 178, 82, 0) 68%);
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.3, 0.6, 0.3, 1);
}

.vdp-granted {
  position: absolute;
  right: 22px;
  top: 20px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(238, 190, 110, 0.4);
  background: rgba(24, 16, 6, 0.72);
  color: #f2cf8d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 0.84, 0.3, 1);
}

/* ---------- the door slab ---------- */
.vdp-door {
  position: absolute;
  inset: 10px;
  transform-style: preserve-3d;
  transform-origin: 0% 50%;
  transform: rotateY(0.001deg);
  transition: transform 1.15s cubic-bezier(0.52, 0.02, 0.26, 1);
  z-index: 2;
}

.vdp-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    radial-gradient(120% 90% at 30% 12%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(160deg, var(--vdp-steel-hi) 0%, var(--vdp-steel) 40%, #242b35 72%, var(--vdp-steel-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    inset -10px 0 18px rgba(0, 0, 0, 0.28);
  backface-visibility: hidden;
}

.vdp-edge {
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 0;
  width: 17px;
  transform-origin: 100% 50%;
  transform: rotateY(90deg);
  background: linear-gradient(180deg, #39414c 0%, #21262e 55%, #14181e 100%);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.55);
  border-radius: 2px;
}

.vdp-rivet {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5d6675, #2a313b 62%, #171c22);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.55), inset 0 -1px 1px rgba(0, 0, 0, 0.4);
}
.vdp-rv1 { left: 12px; top: 12px; }
.vdp-rv2 { left: 12px; bottom: 12px; }
.vdp-rv3 { right: 30px; top: 12px; }
.vdp-rv4 { right: 30px; bottom: 12px; }
.vdp-rv5 { left: 12px; top: 50%; margin-top: -5px; }
.vdp-rv6 { right: 30px; top: 50%; margin-top: -5px; }

/* ---------- handwheel ---------- */
.vdp-wheel {
  position: absolute;
  right: 34px;
  top: 50%;
  width: 96px;
  height: 96px;
  margin-top: -48px;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.45));
}
.vdp-wheel-rot {
  transform-origin: 48px 48px;
  transform: rotate(var(--vdp-wrot, 0deg));
}

.vdp-root.p-jam .vdp-wheel-rot {
  animation: vdp-jam 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes vdp-jam {
  0%   { transform: rotate(0deg); }
  22%  { transform: rotate(84deg); }
  34%  { transform: rotate(78deg); }
  58%  { transform: rotate(6deg); }
  70%  { transform: rotate(14deg); }
  82%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}
.vdp-root.p-jam .vdp-hubcap {
  animation: vdp-hubflick 0.82s steps(1);
}
@keyframes vdp-hubflick {
  0%, 100% { fill: url(#vdp-hub); }
  24% { fill: #7a3f3f; }
  30% { fill: url(#vdp-hub); }
  40% { fill: #6e3939; }
  48% { fill: url(#vdp-hub); }
}

/* ---------- bolts ---------- */
.vdp-bolts {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 20px;
  height: 150px;
  margin-top: -75px;
}
.vdp-slot {
  position: absolute;
  right: 0;
  width: 20px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #14181e, #1f242c);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
}
.vdp-slot-1 { top: 6px; }
.vdp-slot-2 { top: 68px; }
.vdp-slot-3 { top: 130px; }

.vdp-bolt {
  position: absolute;
  left: -8px;
  top: 2px;
  width: 34px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(180deg, #626c7a 0%, #3d454f 48%, #262c34 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.6);
  transform: translateX(12px);
  transition: transform 0.24s cubic-bezier(0.5, 0.05, 0.3, 1.25);
}
.vdp-bolt::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.35);
}

.vdp-root.p-b1 .vdp-slot-1 .vdp-bolt,
.vdp-root.p-b2 .vdp-slot-2 .vdp-bolt,
.vdp-root.p-b3 .vdp-slot-3 .vdp-bolt {
  transform: translateX(-21px);
}
.vdp-root.p-b1 .vdp-slot-1 .vdp-bolt { animation: vdp-boltflash 0.3s ease; }
.vdp-root.p-b2 .vdp-slot-2 .vdp-bolt { animation: vdp-boltflash 0.3s ease; }
.vdp-root.p-b3 .vdp-slot-3 .vdp-bolt { animation: vdp-boltflash 0.3s ease; }
@keyframes vdp-boltflash {
  0% { filter: brightness(1); }
  30% { filter: brightness(1.9); }
  100% { filter: brightness(1); }
}

.vdp-root.s-shiver1 .vdp-vault { animation: vdp-shiver1 0.26s ease; }
.vdp-root.s-shiver2 .vdp-vault { animation: vdp-shiver2 0.3s ease; }
.vdp-root.s-shiver3 .vdp-vault { animation: vdp-shiver3 0.44s cubic-bezier(0.3, 0.9, 0.4, 1.4); }
@keyframes vdp-shiver1 {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-1px); }
  70% { transform: translateX(0.6px); }
}
@keyframes vdp-shiver2 {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-2px) rotate(-0.12deg); }
  62% { transform: translateX(1.2px); }
}
@keyframes vdp-shiver3 {
  0%, 100% { transform: translate(0, 0); }
  24% { transform: translate(-3px, 0) rotate(-0.2deg); }
  48% { transform: translate(1.8px, 1.4px); }
  74% { transform: translate(-0.6px, 2px); }
  88% { transform: translate(0, 1.2px); }
}

/* ---------- open sequence states ---------- */
.vdp-root.p-open .vdp-door { transform: rotateY(-62deg); }
.vdp-root.p-open .vdp-glow { opacity: 1; }
.vdp-root.p-open .vdp-bars { filter: brightness(1); }

.vdp-root.p-reveal .vdp-barsweep {
  animation: vdp-sweep 1.5s cubic-bezier(0.4, 0.1, 0.3, 1) forwards;
}
@keyframes vdp-sweep {
  0% { transform: translateX(-150px); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateX(150px); opacity: 0; }
}
.vdp-root.p-reveal .vdp-granted { opacity: 1; transform: translateY(0); }

.vdp-root.p-close .vdp-door {
  transform: rotateY(0.001deg);
  transition: transform 0.92s cubic-bezier(0.62, 0.02, 0.34, 1);
}
.vdp-root.p-close .vdp-glow { opacity: 0; transition: opacity 0.55s ease 0.3s; }
.vdp-root.p-close .vdp-bars { filter: brightness(0.32); transition: filter 0.5s ease; }
.vdp-root.p-close .vdp-granted { opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease; }

/* ---------- form ---------- */
.vdp-form {
  position: absolute;
  left: 26px;
  top: 34px;
  width: 138px;
}
.vdp-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b96a5;
}
.vdp-input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 4px 2px 7px;
  border: 0;
  background: transparent;
  color: #e6ebf2;
  font-size: 19px;
  letter-spacing: 0.22em;
  font-family: inherit;
  caret-color: var(--vdp-amber);
  outline: none;
}
.vdp-input::placeholder { color: rgba(230, 235, 242, 0.32); letter-spacing: 0.22em; }
.vdp-input:-webkit-autofill,
.vdp-input:-webkit-autofill:hover,
.vdp-input:-webkit-autofill:focus,
.vdp-input:-webkit-autofill:active {
  transition: background-color 100000s ease-in-out 0s;
  -webkit-text-fill-color: #e6ebf2;
  caret-color: var(--vdp-amber);
}

.vdp-underline {
  height: 2px;
  border-radius: 1px;
  background: rgba(210, 226, 246, 0.14);
  position: relative;
  overflow: hidden;
}
.vdp-underline::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1px;
  background: var(--vdp-amber);
  box-shadow: 0 0 8px var(--vdp-amber-soft);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vdp-root.is-focus .vdp-underline::after { transform: scaleX(1); }
.vdp-root.p-jam .vdp-underline::after { background: var(--vdp-err); box-shadow: 0 0 8px rgba(224, 82, 82, 0.5); transform: scaleX(1); }

.vdp-root.p-jam .vdp-form { animation: vdp-formshake 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes vdp-formshake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  65% { transform: translateX(3px); }
}

/* ---------- gear train ---------- */
.vdp-gearbox {
  margin-top: 10px;
  width: 100px;
  height: 42px;
  padding: 4px;
  border-radius: 9px;
  background: linear-gradient(180deg, #141920, #1b212a);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.65),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.vdp-gearbox svg { display: block; }
.vdp-g { transition: transform 0.3s cubic-bezier(0.3, 1.9, 0.45, 1); }
.vdp-g1 { transform: translate(18px, 17px) rotate(var(--vdp-a1, 0deg)); }
.vdp-g2 { transform: translate(44px, 17px) rotate(var(--vdp-a2, 22deg)); }
.vdp-g3 { transform: translate(64px, 17px) rotate(var(--vdp-a3, 8deg)); }
.vdp-root.g-loose .vdp-g { transition-timing-function: cubic-bezier(0.2, 2.6, 0.4, 0.9); }
.vdp-tooth { fill: #434c59; }
.vdp-g rect { rx: 1.4; }

/* ---------- submit ---------- */
.vdp-submit {
  margin-top: 12px;
  padding: 7px 16px 8px;
  border: 1px solid rgba(210, 226, 246, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(233, 239, 247, 0.07), rgba(233, 239, 247, 0.02));
  color: #cfd7e2;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.16s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.vdp-submit:hover { background: linear-gradient(180deg, rgba(233, 239, 247, 0.11), rgba(233, 239, 247, 0.04)); border-color: rgba(210, 226, 246, 0.24); }
.vdp-submit:active { transform: translateY(1px) scale(0.97); }
.vdp-submit:focus { outline: none; }
.vdp-submit:focus-visible { outline: 2px solid var(--vdp-amber); outline-offset: 3px; }
.vdp-input:focus-visible { outline: none; }

.vdp-root.is-playing .vdp-submit { pointer-events: none; opacity: 0.55; }
.vdp-root.is-playing .vdp-input { pointer-events: none; }

.vdp-vault { transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); }
.vdp-root:not(.is-playing):hover .vdp-vault { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .vdp-door, .vdp-glow, .vdp-bars, .vdp-bolt, .vdp-g, .vdp-granted { transition: none !important; animation: none !important; }
  .vdp-root .vdp-vault { animation: none !important; }
}
