*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: Manrope, system-ui, sans-serif;
  background: #E8EEF4;
  color: #123A63;
  min-height: 100dvh;
  line-height: 1.5;
}

a { color: #1B5F8A; text-decoration: none; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #1B5F8A; outline-offset: 2px; }

.shell {
  width: min(430px, 100%);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-head {
  background: #fff;
  color: #123A63;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid #C9D6E3;
  box-shadow: 0 1px 0 #7EB6E0;
}

.site-head .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #123A63;
  font-weight: 800;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #123A63;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 4px 4px 4px 0;
}

.logo-text em {
  font-style: normal;
  color: #1B5F8A;
  font-weight: 700;
}

.age {
  font-size: 12px;
  font-weight: 800;
  color: #1B5F8A;
  background: #E8EEF4;
  border: 1px solid #C9D6E3;
  padding: 4px 8px;
  border-radius: 4px;
}

.hero {
  padding: 18px 0 8px;
}

.hero-grid {
  display: grid;
  gap: 14px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1B5F8A;
  margin-bottom: 8px;
}

h1 {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.lead { color: #5A7186; font-size: 0.92rem; }

.desk {
  background: #fff;
  border: 1px solid #C9D6E3;
  border-left: 5px solid #123A63;
  padding: 22px 20px 20px;
}

.desk-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1B5F8A;
  margin-bottom: 16px;
}

.field { margin-bottom: 18px; }

.field-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.lbl {
  font-size: 12px;
  font-weight: 800;
  color: #1B5F8A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.num {
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  font-weight: 800;
  white-space: nowrap;
}

.num.sm { font-size: 1.15rem; }

.row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.chip {
  min-height: 42px;
  border: 1px solid #C9D6E3;
  background: #E8EEF4;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  color: #123A63;
  border-radius: 4px;
}

.chip.is-on {
  background: #123A63;
  border-color: #123A63;
  color: #fff;
}

.chip:disabled { opacity: 0.45; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #1B5F8A var(--progress, 9%), #C9D6E3 var(--progress, 9%));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #123A63;
  border: 2px solid #fff;
}

input[type="range"]::-moz-range-track { height: 4px; background: #C9D6E3; border-radius: 99px; }
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #123A63;
  border: 2px solid #fff;
  border-radius: 50%;
}

.ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #5A7186;
}

.picked {
  background: #E8EEF4;
  padding: 10px 12px;
  font-size: 0.92rem;
  margin: 4px 0 10px;
  border-radius: 4px;
}

.almost {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 10px;
}

.note, .site-foot { color: #5A7186; font-size: 0.9rem; }
.note { margin-bottom: 14px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  background: #123A63;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  border-radius: 4px;
}

.btn.ghost {
  margin-top: 8px;
  background: transparent;
  border: 1px solid #C9D6E3;
  color: #123A63;
}

.btn:disabled { opacity: 0.5; }

.wait { text-align: center; font-weight: 800; padding-bottom: 12px; }

.load-ring {
  width: 52px;
  height: 52px;
  margin: 12px auto 14px;
  border-radius: 50%;
  background: conic-gradient(#1B5F8A 0 25%, #C9D6E3 25% 55%, #E8EEF4 55% 100%);
  animation: spin 1.1s linear infinite;
  display: grid;
  place-items: center;
}

.load-ring span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
}

.load-caption {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1B5F8A;
  margin-bottom: 12px;
}

.load-bar {
  height: 6px;
  background: #C9D6E3;
  overflow: hidden;
  margin: 0 2px 16px;
  border-radius: 99px;
}

.load-bar-fill {
  height: 100%;
  width: 8%;
  background: #123A63;
}

@keyframes spin { to { transform: rotate(360deg); } }

.load-steps {
  list-style: none;
  padding: 0 2px 8px;
}

.load-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #5A7186;
  opacity: 0.55;
  transform: translateY(4px);
  transition: color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.load-steps li i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #C9D6E3;
  background: #fff;
  position: relative;
}

.load-steps li.is-current {
  color: #123A63;
  opacity: 1;
  transform: none;
}

.load-steps li.is-current i {
  border-color: #1B5F8A;
  box-shadow: 0 0 0 4px rgba(27, 95, 138, 0.14);
  animation: pulse 1s ease-in-out infinite;
}

.load-steps li.is-done {
  color: #1B5F8A;
  opacity: 1;
  transform: none;
}

.load-steps li.is-done i {
  border-color: #1B5F8A;
  background: #1B5F8A;
}

.load-steps li.is-done i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 7px rgba(27, 95, 138, 0.06); }
}

.out { text-align: center; padding: 8px 0 0; }

.k {
  font-size: 12px;
  font-weight: 800;
  color: #1B5F8A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.code {
  margin: 10px 0 12px;
  padding: 14px;
  border: 2px solid #123A63;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.faq-wrap {
  padding: 12px 0 8px;
}

.faq-wrap h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.faq-item {
  background: #fff;
  border-bottom: 1px solid #C9D6E3;
}

.faq-q {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  color: #123A63;
}

.faq-a { display: none; padding: 0 14px 12px; color: #5A7186; font-size: 0.92rem; }
.faq-item.is-open .faq-a { display: block; }

.site-foot {
  padding: 28px 0 calc(32px + env(safe-area-inset-bottom));
  text-align: center;
}

.site-foot nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.legal { padding: 24px 0 8px; }
.legal h1 { font-size: 1.6rem; }
.paper {
  margin: 16px 0 32px;
  padding: 20px 18px;
  background: #fff;
  border-left: 5px solid #123A63;
}
.paper h2 { margin: 18px 0 8px; font-size: 1rem; color: #1B5F8A; }
.paper p, .paper li { color: #5A7186; }
.paper ul { padding-left: 18px; margin-top: 8px; }
.back { display: inline-block; margin-bottom: 10px; }
