:root {
  --ink: #0E1A24;
  --frost: #5BA3B5;
  --ice: #E8F1F4;
  --card: #FFFFFF;
  --muted: #5A6B73;
  --line: #C9D8DE;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--ice);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--frost);
  text-decoration: none;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--frost);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip:focus {
  top: 10px;
}

.nav {
  background: var(--ink);
  padding-top: var(--safe-top);
}

.nav-inner,
.hero,
.ice,
.bits,
.how,
.faq,
.foot,
.legal-hero,
.legal-wrap {
  width: min(448px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
}

.age {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(91, 163, 181, 0.18);
  color: #9FD0DC;
  font-size: 12px;
  font-weight: 800;
}

.hero {
  padding-top: 22px;
  padding-bottom: 8px;
}

.kicker {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frost);
}

.hero h1,
.legal-hero h1,
.how h2,
.faq h2 {
  font-size: clamp(1.45rem, 6.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-text {
  margin-top: 8px;
  color: var(--muted);
}

.ice {
  margin: 16px auto 28px;
  padding: 20px 16px 18px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(14, 26, 36, 0.06);
}

.cap {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frost);
}

.big,
.mid {
  margin: 6px 0 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.big {
  font-size: clamp(1.55rem, 7vw, 2rem);
}

.mid {
  font-size: clamp(1.2rem, 5.4vw, 1.5rem);
}

.bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 6px;
  height: 72px;
  margin-bottom: 10px;
}

.bar {
  height: 100%;
  border: 0;
  border-radius: 8px 8px 4px 4px;
  background: #D5E6EB;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
}

.bar:nth-child(1) { height: 28%; align-self: end; }
.bar:nth-child(2) { height: 42%; align-self: end; }
.bar:nth-child(3) { height: 56%; align-self: end; }
.bar:nth-child(4) { height: 70%; align-self: end; }
.bar:nth-child(5) { height: 84%; align-self: end; }
.bar:nth-child(6) { height: 100%; align-self: end; }

.bar.is-on {
  background: var(--frost);
  color: #fff;
}

.bar:disabled {
  opacity: 0.45;
}

.pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.pill {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ice);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.pill.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pill: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: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--frost) var(--progress, 17%), var(--line) var(--progress, 17%));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid #fff;
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  background: var(--ink);
  border-radius: 50%;
}

.ends {
  display: flex;
  justify-content: space-between;
  margin: 2px 0 16px;
  font-size: 0.74rem;
  color: var(--muted);
}

.amt-max {
  font-weight: 700;
  white-space: nowrap;
}

.note {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn-ice {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.5;
}

.load,
.result {
  text-align: center;
  padding: 10px 0 4px;
}

.spin {
  width: 36px;
  height: 36px;
  margin: 8px auto 14px;
  border: 3px solid var(--line);
  border-top-color: var(--frost);
  border-radius: 50%;
  animation: turn 0.8s linear infinite;
}

@keyframes turn {
  to { transform: rotate(360deg); }
}

.load-t,
.result-k {
  font-weight: 800;
}

.load-s {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-k {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frost);
}

.code {
  margin: 6px 0 14px;
  font-size: clamp(2.2rem, 12vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  text-align: center;
}

.rows {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.rows p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rows span {
  color: var(--muted);
}

.bits {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.bits article {
  padding: 14px 16px;
  background: var(--card);
  border-radius: 16px;
}

.bits h2,
.how h2,
.faq h2 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.bits p,
.how p {
  color: var(--muted);
  font-size: 0.92rem;
}

.how {
  margin-bottom: 28px;
}

.how ol {
  list-style: none;
  display: grid;
  gap: 12px;
}

.how li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
}

.how i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #9FD0DC;
  font-style: normal;
  font-weight: 800;
}

.faq {
  margin-bottom: 12px;
}

.faq-item {
  margin-bottom: 8px;
  background: var(--card);
  border-radius: 16px;
}

.faq-q {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-item.is-open .faq-a {
  display: block;
}

.foot {
  padding: 24px 16px calc(36px + var(--safe-bottom));
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.foot-brand {
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--ink);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 14px;
}

.legal-page {
  background: var(--ice);
}

.legal-hero {
  padding-top: 22px;
}

.back {
  display: inline-block;
  margin-bottom: 10px;
}

.legal-wrap {
  padding-bottom: 48px;
}

.legal-paper {
  padding: 22px 18px;
  background: var(--card);
  border-radius: 20px;
}

.legal-paper h2 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.legal-paper p,
.legal-paper li {
  color: var(--muted);
}

.legal-paper p + p,
.legal-paper ul {
  margin-top: 10px;
}

.legal-paper ul {
  padding-left: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }
}
