:root {
  color-scheme: dark;
  color: #f2f7ff;
  background: #091322;
  font: 16px/1.5 system-ui, sans-serif;
  --muted: #a4b6cf;
  --line: #2a405d;
  --cyan: #9befff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 80% 0%, #152a47 0, transparent 31rem), #091322; }
.shell { max-width: 43rem; margin: auto; padding: 1.1rem clamp(1rem, 5vw, 2.25rem) 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.15rem; }
.brand { font-weight: 850; font-size: .88rem; letter-spacing: .09em; }
.brand > span:last-child { color: #afc8e6; }
.brand-mark { color: var(--cyan); font-size: 1.2rem; vertical-align: -.08em; margin-right: .15rem; }
.top a { color: var(--muted); font-size: .79rem; text-decoration: none; padding: .45rem 0 .45rem .5rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(9.5rem, 27vw, 12.5rem); display: grid; align-items: end; border: 1px solid #355478; border-radius: 1.2rem; background: #10263f; }
.hero img { position: absolute; z-index: -2; top: 0; right: 0; width: 61%; height: 100%; object-fit: cover; object-position: 0 44%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #10243c 32%, #10243cee 43%, #10243c38 69%, #10243c20), linear-gradient(0deg, #081524b0, transparent 60%); }
.hero-copy { padding: clamp(.9rem, 4vw, 1.6rem); }
h1 { font-size: clamp(1.8rem, 7.5vw, 3.2rem); line-height: .95; letter-spacing: -.055em; margin: 0; }
h1 span { display: block; color: var(--cyan); }
.hero p { font-size: clamp(.73rem, 3.1vw, .95rem); color: #d2e3f9; margin: .7rem 0 0; }
#notice { margin: .85rem 0 0; border-left: 2px solid #6799c3; border-radius: .15rem .6rem .6rem .15rem; background: #13243a; color: #d5e5f8; padding: .68rem .8rem; font-size: .85rem; }
#notice:empty { display: none; }
.steps { display: flex; padding: 0; margin: 1.25rem 0 1rem; list-style: none; color: var(--muted); font-size: .82rem; font-weight: 650; }
.steps li { flex: 1; display: flex; align-items: center; gap: .65rem; }
.steps li + li::before { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps li + li { flex: 3; }
.steps [aria-current="step"] { color: var(--cyan); }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend, h2 { padding: 0; margin: 0 0 .65rem; font-size: 1.2rem; letter-spacing: -.015em; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.plan { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: .9rem; padding: .85rem; background: #122137; cursor: pointer; }
.plan:is(:hover,:has(:checked)) { border-color: #71cfee; background: #18314d; }
.plan > input { position: absolute; right: .62rem; top: .68rem; margin: 0; }
input { accent-color: #70dbf8; }
.plan-name { font-size: clamp(.94rem, 3.9vw, 1.2rem); font-weight: 750; padding-right: .8rem; }
.plan-days { color: var(--muted); font-size: .76rem; }
.plan-price { font-size: 1.12rem; font-weight: 800; color: var(--cyan); padding-top: .6rem; margin-top: auto; }
.plan-note { margin: .64rem 0; color: var(--muted); font-size: .81rem; }
.actions { position: sticky; bottom: 0; display: grid; gap: .5rem; padding: .7rem 0 max(.8rem, env(safe-area-inset-bottom)); margin-top: .45rem; background: #091322; border-top: 1px solid #1f3149; }
.button { display: block; width: 100%; min-height: 2.9rem; padding: .65rem .85rem; border: 1px solid transparent; border-radius: .7rem; color: inherit; font: inherit; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.button:disabled { opacity: .53; cursor: default; }
.primary { background: #91e9fa; color: #082331; }
.secondary { background: #14283f; border-color: #365471; }
.gate { display: grid; gap: .5rem; margin: 1rem 0; }
.text-button { width: auto; min-height: 0; margin: -.35rem 0 .45rem; padding-left: 0; color: var(--cyan); background: transparent; font-size: .82rem; }
.summary { display: flex; justify-content: space-between; align-items: center; padding: .78rem .9rem; border: 1px solid var(--line); background: #13243a; border-radius: .68rem; }
.summary small { display: block; color: var(--muted); }
.summary strong { color: var(--cyan); }
details, .accept { margin-top: .75rem; }
details summary { cursor: pointer; font-size: .86rem; }
#terms { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }
.accept { display: flex; align-items: center; gap: .6rem; font-size: .86rem; }
.accept input { width: 1.1rem; height: 1.1rem; margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
