:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "DejaVu Sans", sans-serif;
  background: #080e18;
  color: #f7f5f0;
  --muted: #a9b8c8;
  --ice: #78d8ff;
  --amber: #ffb64c;
  --orange: #ff823b;
  --pink: #f75d9b;
  --surface: #101b2b;
  --edge: #293c51;
  --ink: #221207;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 290px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(144deg, transparent 72%, #15314a38 72%, #15314a38 76%, transparent 76%) top right / 590px 500px no-repeat,
    radial-gradient(ellipse at 80% 0, #12344c 0%, transparent 580px),
    #080e18;
}
main { width: min(100%, 626px); margin: auto; padding: 16px 16px 42px; }
main.wide { width: min(100%, 1100px); }

.hero, .brand-line {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #27445b;
  background: #040507;
}
.hero {
  isolation: isolate;
  height: clamp(170px, 50vw, 244px);
  margin-bottom: 22px;
  border-radius: 3px 3px 19px 3px;
}
.hero::before, .hero::after {
  position: absolute;
  z-index: 1;
  width: 72px;
  height: 42px;
  content: "";
  pointer-events: none;
}
.hero::before {
  top: 0;
  left: 0;
  background: linear-gradient(150deg, var(--orange), var(--pink));
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hero::after {
  right: 0;
  bottom: 0;
  background: linear-gradient(150deg, #204a79, var(--ice));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.hero img {
  position: absolute;
  top: 51%;
  left: 50%;
  width: auto;
  height: 145%;
  max-width: none;
  transform: translate(-50%, -50%);
}
.brand-line { width: 146px; height: 76px; margin-bottom: 18px; border-radius: 3px 3px 14px 3px; }
.brand-line img { width: 100%; height: auto; margin-top: -10px; }

.eyebrow {
  margin: 0 0 7px;
  color: var(--ice);
  font: 700 .72rem/1.35 var(--mono);
  letter-spacing: .13em;
}
h1 { margin: 0 0 18px; font-size: clamp(1.73rem, 6.5vw, 2.65rem); line-height: 1.02; letter-spacing: -.044em; }
h2 { margin: 0 0 7px; font-size: 1.24rem; line-height: 1.18; letter-spacing: -.02em; }
p { margin: 8px 0 14px; line-height: 1.45; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.text-link {
  flex: none;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: .8rem;
  font-weight: 700;
  text-underline-offset: 3px;
}
.text-link span { margin-left: 2px; }

.card {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--edge);
  border-radius: 4px 4px 14px 4px;
  background: var(--surface);
}
.access-card {
  border-left: 3px solid var(--ice);
  background: linear-gradient(126deg, #13263a 0%, #101b2b 72%);
}
.access-status { display: flex; align-items: center; }
.access-status::before {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--amber);
  content: "";
  transform: rotate(45deg);
}
.access-status[data-active="true"] { color: var(--ice); }
.access-status[data-active="true"]::before { background: var(--ice); box-shadow: 0 0 12px #78d8ff75; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.row, .toolbar { display: flex; align-items: center; gap: 8px; }
.row { flex-wrap: wrap; }
.toolbar { justify-content: space-between; margin-bottom: 12px; }
.toolbar p { margin: 0; }
.row + .row, button + .row, #instructions + .row { margin-top: 12px; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .9rem; }

button, input, .action { min-height: 43px; border-radius: 3px 3px 9px 3px; font: inherit; }
button, .action {
  padding: 8px 12px;
  border: 1px solid #ffd291;
  background: linear-gradient(113deg, #ffbb56 0%, #ff9c43 65%, #ff833b 100%);
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
}
button.secondary {
  border-color: #34506a;
  background: #122438;
  color: #e9f3fc;
  font-weight: 680;
}
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, input:focus-visible, .action:focus-visible, .text-link:focus-visible, select:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}
input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #34506a;
  background: #09121e;
  color: #f7f5f0;
}
.row input { flex-basis: 120px; }
.action { display: inline-flex; align-items: center; text-decoration: none; }
.badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #39596e;
  border-radius: 3px;
  background: #152b3c;
  color: var(--ice);
  font: 700 .72rem/1.35 var(--mono);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.grid .card { margin: 0; overflow-wrap: anywhere; }
dl { margin: 16px 0; }
dl div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--edge); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; text-align: right; }
#amount { color: var(--amber); }
#feedback { color: #ffcf91; overflow-wrap: anywhere; }
#feedback:empty { margin: 0; }

.tariff-section {
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid #355168;
  border-radius: 0;
  background: transparent;
}
.tariff-section .eyebrow { color: var(--amber); }
.tariff-section h2 { display: flex; align-items: center; font-size: 1.55rem; }
.tariff-section p.muted { margin: 7px 0 12px; font-size: .91rem; }
.tariff-mark {
  width: 22px;
  height: 16px;
  margin-left: 9px;
  background: linear-gradient(144deg, var(--amber) 0 45%, var(--orange) 45% 66%, var(--pink) 66%);
  clip-path: polygon(0 0, 100% 22%, 36% 100%, 40% 53%);
}
#tariffs { scroll-margin-top: 12px; }
.plan-fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 0 0; }
.plan-option {
  --fold-light: #81dcff;
  --fold-shadow: #1d669c;
  --fold-tint: #142d44;
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
}
.plan-option[data-term="3"] { --fold-light: #ffc66c; --fold-shadow: #e7682e; --fold-tint: #3d251a; }
.plan-option[data-term="6"] { --fold-light: #ff83b6; --fold-shadow: #b83274; --fold-tint: #38223b; }
.plan-option[data-term="12"] { --fold-light: #9ba9ff; --fold-shadow: #3854ab; --fold-tint: #232c4a; }
label.plan-option { cursor: pointer; }
.plan-detail {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 98px;
  align-content: space-between;
  gap: 8px;
  overflow: hidden;
  padding: 10px 11px;
  border: 1px solid #334659;
  border-left: 2px solid var(--fold-light);
  border-radius: 3px 3px 12px 3px;
  background: linear-gradient(127deg, var(--fold-tint), #101a2a 72%);
}
.plan-detail::before, .plan-detail::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 39px;
  height: 40px;
  content: "";
}
.plan-detail::before {
  background: var(--fold-light);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.plan-detail::after {
  background: var(--fold-shadow);
  clip-path: polygon(0 0, 100% 100%, 47% 74%);
}
.plan-period { display: flex; align-items: baseline; color: var(--fold-light); }
.plan-number { font: 750 1.45rem/1 var(--mono); letter-spacing: -.08em; }
.plan-unit { margin-left: 5px; font: 700 .63rem/1 var(--mono); text-transform: uppercase; }
.plan-price { color: #fffaf3; font-size: 1.23rem; line-height: 1.08; font-variant-numeric: tabular-nums; }
.plan-option input:checked + .plan-detail {
  border-color: var(--amber);
  background: linear-gradient(125deg, #493020, #1d1b25 82%);
  box-shadow: inset 0 0 0 1px var(--amber);
}
.plan-option input:checked + .plan-detail::after {
  z-index: 1;
  width: 27px;
  height: 22px;
  background: transparent;
  color: var(--ink);
  content: "✓";
  clip-path: none;
  font-size: .81rem;
  font-weight: 800;
  text-align: right;
  padding: 0 4px 0 0;
}
.plan-option input:focus-visible + .plan-detail { outline: 2px solid var(--ice); outline-offset: 2px; }
.primary-wide { width: 100%; margin-top: 14px; }
.client-choice { margin: 12px 0; }
.client-choice label { margin-bottom: 9px; }
.client-choice select {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #34506a;
  border-radius: 3px 3px 8px 3px;
  background: #09121e;
  color: #f5f4ff;
  font: inherit;
}
.sr-only {
  position: absolute; inline-size: 1px; block-size: 1px; min-height: 0; padding: 0;
  border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
[hidden] { display: none !important; }
@media (max-width: 365px) {
  main { padding-inline: 12px; }
  .card { padding: 14px; }
  .tariff-section { padding: 14px 0 0; }
  button, .action { padding-inline: 8px; font-size: .88rem; }
  .plan-detail { padding-inline: 9px; }
  .plan-detail::before, .plan-detail::after { width: 32px; height: 33px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
