/* page/main.css */
:root {
  --ink: #0E1726;
  --muted: #5B6576;
  --faint: #98A1B0;
  --line: #E6E2DC;
  --paper: #FAF8F5;
  --card: #FFFFFF;
  --accent: #E5482A;
  --accent-deep: #C93A1E;
  --accent-soft: #FDEBE6;
  --radius: 16px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
body {
  font:
    17px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px 48px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
}
.mark {
  height: 30px;
  width: auto;
}
.back {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 0;
  font-size: 15px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.back:hover {
  color: var(--ink);
}
.back[hidden] {
  visibility: hidden;
  display: inline-flex;
}
.progress {
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}
.step-count {
  margin-top: 10px;
  font-size: 13px;
  color: var(--faint);
  letter-spacing: .02em;
}
.screen {
  padding-top: clamp(28px, 7vh, 72px);
  animation: enter .45s cubic-bezier(.2, .8, .2, 1);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 700;
}
.lead {
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 19px);
  margin: 0 0 34px;
  max-width: 34em;
}
.choices {
  display: grid;
  gap: 12px;
}
.choices.pills {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.choices.two {
  grid-template-columns: 1fr 1fr;
}
.choice {
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition:
    border-color .15s,
    transform .15s,
    box-shadow .15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.choice:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 23, 38, .06);
}
.choice.chosen {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.choice b {
  font-size: 18px;
  font-weight: 600;
}
.choice small {
  color: var(--muted);
  font-size: 14px;
}
.pills .choice {
  padding: 14px 16px;
}
.pills .choice b {
  font-size: 16px;
  font-weight: 500;
}
.choice.big {
  padding: 26px;
  align-items: flex-start;
}
.choice.big b {
  font-size: 22px;
}
.levels {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .levels {
    grid-template-columns: repeat(3, 1fr);
  }
}
.level {
  position: relative;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color .15s,
    transform .15s,
    box-shadow .15s;
}
.level:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 23, 38, .08);
}
.level.chosen {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.level .badge {
  position: absolute;
  top: -11px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.level .name {
  font-size: 20px;
  font-weight: 700;
}
.level .tagline {
  color: var(--muted);
  font-size: 14px;
  min-height: 2.6em;
}
.level .price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.level .per {
  color: var(--faint);
  font-size: 13px;
  margin-top: -4px;
}
.level ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 7px;
  font-size: 14px;
}
.level li {
  display: flex;
  gap: 8px;
}
.level li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23E5482A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.fields {
  display: grid;
  gap: 16px;
  max-width: 520px;
}
.fields.pair {
  grid-template-columns: 1fr 1fr;
}
.field label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.field input,
.field select {
  width: 100%;
  padding: 15px 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  font-size: 18px;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.field select {
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235B6576' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field input:focus,
.field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14, 23, 38, .08);
}
.hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}
.hint b {
  color: var(--ink);
}
.refusal {
  margin-top: 18px;
  color: var(--accent-deep);
  font-size: 15px;
}
.actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 16px 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background .15s,
    transform .15s,
    opacity .15s;
}
.primary:hover {
  background: #1D2A3F;
  transform: translateY(-1px);
}
.primary:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}
.primary.pay {
  background: var(--accent);
  min-width: 240px;
}
.primary.pay:hover {
  background: var(--accent-deep);
}
.enter {
  color: var(--faint);
  font-size: 13px;
}
.enter kbd {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  background: var(--card);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.review {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 8px 24px;
  max-width: 560px;
}
.review .line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.review .line:last-child {
  border-bottom: 0;
}
.review .line span:first-child {
  color: var(--muted);
}
.review .line span:last-child {
  text-align: right;
}
.review .total {
  font-weight: 700;
  font-size: 20px;
}
.review .total span:first-child {
  color: var(--ink);
}
.secure {
  color: var(--faint);
  font-size: 13px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.trust {
  margin-top: 44px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.trust span::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
  margin-right: 7px;
}
.done .tick {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
}
.done .tick svg {
  width: 64px;
  height: 64px;
}
.done .tick circle {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 2;
}
.done .tick path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw .6s .25s ease-out forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.facts {
  margin: 0 0 36px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 6px 24px;
  max-width: 560px;
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.facts div:last-child {
  border-bottom: 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}
@media (max-width: 520px) {
  .fields.pair,
  .choices.two {
    grid-template-columns: 1fr;
  }
  .enter {
    display: none;
  }
}
