@font-face { font-family: "Unbounded"; src: url("/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --night: #0F1130;
  --dusk: #191C44;
  --dusk-2: #222658;
  --line: #31367A;
  --paper: #FFF9EC;       /* selected card / row — warm light, like the reference's white */
  --ink: #17183A;         /* text on paper */
  --ink-2: #5B5E86;
  --star: #FFC53D;        /* gold: CTA and the one loud colour */
  --star-hi: #FFD56E;
  --save: #FF4D6D;        /* saving pills */
  --prem: #9C82FF;        /* Premium accent */
  --text: #F1F2FF;
  --muted: #A2A6D8;
  --ok: #53D394;
  --bad: #FF7A85;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--night); color: var(--text); font: 500 16px/1.55 var(--body); }
a { color: #8CC8FF; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #8CC8FF; outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

/* Night sky with two big gold stars flanking the panel (where the reference has photos). */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1.5px 1.5px at 8% 14%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 22% 72%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 8%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 63% 90%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 79% 22%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 93% 64%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 46%, #fff4 50%, transparent 51%), radial-gradient(1.5px 1.5px at 31% 38%, #fff5 50%, transparent 51%),
    radial-gradient(55% 40% at 50% -6%, #33389A 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 55%, #3B2A6B55 0%, transparent 70%),
    radial-gradient(40% 50% at 100% 55%, #2A3F7A55 0%, transparent 70%);
}
.flank { position: absolute; top: 22vh; width: min(30vw, 440px); fill: url(#none); fill: var(--star); opacity: .14; filter: drop-shadow(0 0 60px #FFC53D66); }
.flank-l { left: max(-7vw, -120px); transform: rotate(-14deg); }
.flank-r { right: max(-7vw, -120px); transform: rotate(12deg); fill: var(--prem); filter: drop-shadow(0 0 60px #9C82FF66); }
@media (max-width: 1100px) { .flank { opacity: .07; } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; fill: var(--star); }
.top-nav { display: flex; gap: 18px; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.top-nav a:hover { color: var(--text); }

main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px 56px; }
.hero { text-align: center; font: 700 clamp(27px, 5.6vw, 46px)/1.08 var(--display); letter-spacing: -0.035em; margin: 22px auto 12px; max-width: 15em; text-wrap: balance; }
.hero-small { font-size: clamp(25px, 5vw, 32px); text-align: left; }
.lede { text-align: center; color: var(--muted); font-size: 17px; margin: 0 auto 28px; max-width: 46ch; }
.notice { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #FFC53D1C; border: 1px solid #FFC53D55; color: var(--star-hi); font-weight: 600; text-align: center; }

/* ---- product type cards ---- */
.types { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type { position: relative; display: grid; gap: 8px; padding: 18px 18px 20px; border-radius: 16px; cursor: pointer;
  background: var(--dusk); border: 2px solid var(--line); transition: background .15s, border-color .15s; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.type-title { font: 600 clamp(15px, 3.6vw, 20px)/1.2 var(--display); letter-spacing: -0.02em; }
.type-text { color: var(--muted); font-size: 14px; line-height: 1.4; }
.dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; }
.type:hover { border-color: #4A50A0; }
.type.is-on { background: var(--paper); border-color: var(--star); color: var(--ink); box-shadow: 0 10px 40px #FFC53D26; }
.type.is-on .type-text { color: var(--ink-2); }
.type.is-on .dot { border-color: var(--ink); }
.type.is-on .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.type[data-kind="premium"].is-on { border-color: var(--prem); box-shadow: 0 10px 40px #9C82FF30; }
.type:has(input:focus-visible) { outline: 3px solid #8CC8FF; outline-offset: 3px; }

/* ---- pack list ---- */
.packs { border: 0; padding: 0; margin: 0 auto; width: calc(100% - 28px); background: var(--dusk); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.packs-loading { margin: 0; padding: 22px; color: var(--muted); text-align: center; }
.pack { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; border-top: 1px solid var(--line); }
.pack:first-of-type { border-top: 0; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack .dot { width: 20px; height: 20px; }
.pack-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 700; font-size: 17px; }
.pack-name small { display: block; width: 100%; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.save { background: var(--save); color: #fff; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 5px; letter-spacing: .01em; }
.tag { border: 1px solid var(--star); color: var(--star); font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; }
.pack-price { text-align: right; white-space: nowrap; }
.pack-price b { font: 700 19px/1 var(--display); letter-spacing: -0.02em; }
.pack-price small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.pack:hover { background: var(--dusk-2); }
.pack.is-on { background: var(--paper); color: var(--ink); }
.pack.is-on .dot { border-color: var(--ink); }
.pack.is-on .dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.pack.is-on small { color: var(--ink-2); }
.pack.is-on .tag { color: #9A6A00; border-color: #D9A21E; }
.pack:has(input:focus-visible) { outline: 3px solid #8CC8FF; outline-offset: -3px; }

/* ---- who + pay ---- */
.who { margin: 22px auto 0; width: calc(100% - 28px); display: grid; gap: 8px; }
.field-label { font-weight: 700; font-size: 14px; margin-top: 6px; }
.optional { color: var(--muted); font-weight: 500; }
.who input[type=email], .input-at input, .track-form input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; background: var(--dusk-2); border: 1.5px solid var(--line); color: var(--text); font: 600 16.5px var(--body); }
.who input:focus, .track-form input:focus { outline: none; border-color: #8CC8FF; box-shadow: 0 0 0 3px #8CC8FF33; }
.who input[aria-invalid=true] { border-color: var(--bad); }
.input-at { position: relative; }
.input-at span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; font-size: 18px; }
.input-at input { padding-left: 36px; }
.hint { margin: 0; color: var(--muted); font-size: 13.5px; }
.confirm { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.confirm input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--star); flex: none; }
.msg { width: calc(100% - 28px); margin: 12px auto 0; color: var(--bad); font-weight: 700; font-size: 15px; }

.pay { display: block; width: calc(100% - 28px); margin: 18px auto 0; height: 58px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--star); color: #1F1600; font: 700 17px/1 var(--display); letter-spacing: -0.01em; transition: background .15s, transform .1s; }
.pay:hover:not(:disabled) { background: var(--star-hi); }
.pay:active:not(:disabled) { transform: translateY(1px); }
.pay:disabled { background: #3A3F78; color: #A2A6D8; cursor: not-allowed; }
.secure { width: calc(100% - 28px); margin: 12px auto 0; display: grid; justify-items: center; gap: 10px; }
.secure p { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; }
.secure svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2; }
.marks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.marks li { height: 34px; min-width: 64px; padding: 0 12px; border-radius: 7px; background: #fff; color: #1A1F36; display: grid; place-items: center;
  font: 800 13px/1 var(--body); letter-spacing: -0.01em; box-shadow: 0 1px 0 #0003; }
.marks img { height: 22px; width: auto; display: block; }

/* ---- payment method ---- */
.methods { border: 0; padding: 0; margin: 20px auto 0; width: calc(100% - 28px); display: grid; gap: 10px; }
.methods legend { padding: 0; margin-bottom: 8px; }
.method { position: relative; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 4px 12px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: var(--dusk); border: 2px solid var(--line); transition: background .15s, border-color .15s; }
.method[hidden] { display: none; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method .dot { width: 20px; height: 20px; }
.method-name { font-weight: 700; font-size: 16px; }
.method-name small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.method .marks { grid-column: 2; justify-content: flex-start; gap: 6px; margin-top: 6px; }
.method .marks li { height: 28px; min-width: 0; padding: 0 9px; font-size: 12px; }
.method .marks img { height: 18px; }
.method:hover { border-color: #4A50A0; }
.method.is-on { background: var(--paper); border-color: var(--star); color: var(--ink); }
.method.is-on small { color: var(--ink-2); }
.method.is-on .dot { border-color: var(--ink); }
.method.is-on .dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.method.is-on .marks li { box-shadow: 0 0 0 1px #1A1F3622; }
.method:has(input:focus-visible) { outline: 3px solid #8CC8FF; outline-offset: 3px; }

/* ---- comparison ---- */
.compare, .how, .faq, .track { margin-top: 48px; }
h2 { font: 600 clamp(19px, 4vw, 23px)/1.25 var(--display); letter-spacing: -0.02em; margin: 0 0 14px; }
.compare table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--dusk); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.compare th, .compare td { padding: 13px 14px; border-top: 1px solid var(--line); text-align: left; font-size: 15px; }
.compare thead th { border-top: 0; font: 600 15px/1.2 var(--display); }
.compare tbody th { font-weight: 600; }
.compare td { width: 84px; text-align: center; }
.compare .col-stars, .compare .col-prem { text-align: center; width: 84px; }
.compare .col-stars { color: var(--star); background: #FFC53D12; box-shadow: inset 0 3px 0 var(--star); }
.compare .col-prem { color: var(--prem); }
.compare tbody td:nth-of-type(1) { background: #FFC53D0A; }
.compare td.y::before { content: ""; display: inline-block; width: 18px; height: 10px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg) translate(2px, -3px); }
.compare td.n::before { content: "–"; font-size: 20px; color: #6A6FA6; font-weight: 700; }

.how ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 4px; }
.how li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 8px 0; }
.how li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--star); color: #1F1600; display: grid; place-items: center; font: 700 13px/1 var(--display); }
.how li b { font-size: 16px; }
.how li span { color: var(--muted); font-size: 14.5px; }

.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--star); font: 600 20px/1 var(--display); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: var(--muted); }

.track-form { display: flex; gap: 8px; }
.btn-quiet { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line);
  background: transparent; color: var(--text); font: 700 15px var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-quiet:hover { background: var(--dusk-2); }

/* ---- order page ---- */
.crumb { margin: 18px 0 0; }
.order-card { background: var(--dusk); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-product { margin: 0; font: 700 21px/1.2 var(--display); letter-spacing: -0.02em; }
.order-to { margin: 6px 0 0; color: var(--muted); }
.order-to b { color: var(--text); }
.state { flex: none; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; border: 1px solid var(--line); background: var(--dusk-2); }
.state[data-s=paid], .state[data-s=awaiting_payment] { color: var(--star); border-color: #FFC53D66; }
.state[data-s=processing] { color: #8CC8FF; border-color: #8CC8FF66; }
.state[data-s=completed] { color: var(--ok); border-color: #53D39466; }
.state[data-s=failed], .state[data-s=refunded], .state[data-s=cancelled], .state[data-s=expired] { color: var(--bad); border-color: #FF7A8566; }
.steps { list-style: none; padding: 0; margin: 26px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { position: relative; padding-top: 26px; font-size: 14px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--night); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 8px; left: 16px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-weight: 800; }
.steps span { font-size: 12.5px; }
.steps li.on::before { background: var(--ok); border-color: var(--ok); }
.steps li.on::after { background: var(--ok); }
.steps li.on b { color: var(--text); }
.steps li.now::before { background: var(--star); border-color: var(--star); box-shadow: 0 0 0 5px #FFC53D33; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px #FFC53D11; } }
.order-msg { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--dusk-2); }
.order-ref { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.order-ref span { font-family: var(--display); color: var(--text); letter-spacing: .04em; word-break: break-all; }
.link { background: none; border: 0; color: #8CC8FF; font: 700 14px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.foot { max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; color: #8287BF; font-size: 13.5px; text-align: center; }
.foot p { margin: 0 0 6px; }

/* entrance: one orchestrated moment on load */
.hero, .lede, .buy { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
.lede { animation-delay: .06s; } .buy { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 520px) {
  .top-nav a[href="#track"] { display: none; }
  .types { gap: 8px; }
  .type { padding: 14px 13px 16px; }
  .type-text { font-size: 12.5px; }
  .packs, .who, .pay, .secure, .msg, .methods { width: 100%; }
  .pack { padding: 14px 13px; gap: 10px; }
  .pack-name { font-size: 16px; }
  .compare th, .compare td { padding: 11px 10px; font-size: 14px; }
  .compare td, .compare .col-stars, .compare .col-prem { width: 62px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Custom Stars amount input — visible inside the existing pack row */
.pack .custom-stars-input {
  position: static;
  opacity: 1;
  pointer-events: auto;
  width: 90px;
  height: 32px;
  padding: 4px 8px;
  margin: 0 4px 0 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--dusk);
  color: inherit;
  font: 700 14px/1 var(--display);
  text-align: center;
  outline: none;
}

.pack .custom-stars-input:focus {
  border-color: #8CC8FF;
  box-shadow: 0 0 0 2px #8CC8FF33;
}

.pack.is-on .custom-stars-input {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.pack-name .custom-stars-input + * {
  color: inherit;
}

@media (max-width: 640px) {
  .pack .custom-stars-input {
    width: 78px;
  }
}
