/* Luckwell — palette taken from the engine's ground (#07070B) and the Jupiter/Moon inks of the contact sheet. */
:root {
  --ground: #07070B;
  --water: #0A0D1A;
  --pool: #0E1430;
  --ink: #5B8DF0;        /* Jupiter blue: the well's own colour */
  --gold: #E3B757;       /* Jupiter accent / metal */
  --silver: #DCE1EC;     /* Moon ink: primary text */
  --mist: #8B8FA3;       /* secondary text */
  --line: rgba(220, 225, 236, 0.14);
  --line-strong: rgba(220, 225, 236, 0.32);
  --glow: #2F5BD0;
  --danger: #E8503F;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 16px;
  --col: 34rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--silver);
  font-family: var(--body); font-size: 17px; line-height: 1.55; font-weight: 300;
  min-height: 100dvh; overflow-x: hidden;
}
body::before { /* faint star-dust across every page */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(220,225,236,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, rgba(220,225,236,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 42%, rgba(91,141,240,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, rgba(220,225,236,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 66%, rgba(227,183,87,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 92%, rgba(220,225,236,.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 48%, rgba(220,225,236,.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 56% 14%, rgba(220,225,236,.5) 50%, transparent 51%);
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
::selection { background: rgba(91,141,240,.35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 7.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em, .em { font-style: italic; color: var(--gold); }
p { margin: 0; }
.mist { color: var(--mist); }
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mist);
}
.eyebrow.gold { color: var(--gold); }
.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: 64rem; }

/* header */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px var(--gutter); max-width: 64rem; margin: 0 auto; }
.brand { font-family: var(--display); font-size: 1.35rem; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.brand .ring { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--gold); position: relative; }
.brand .ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 8px var(--glow); }
.top nav { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--mist); }
.lang { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { background: none; border: 0; border-radius: 999px; padding: 4px 9px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--mist); cursor: pointer; }
.lang button[aria-pressed="true"] { background: rgba(220,225,236,.1); color: var(--silver); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-family: var(--body); font-weight: 400; font-size: 1rem; letter-spacing: .01em; transition: border-color .2s, background .2s, transform .2s; }
.btn:hover { border-color: var(--gold); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1A1406; font-weight: 500; }
.btn.primary:hover { background: #F0C96A; color: #1A1406; }
.btn.ghost { border-color: transparent; color: var(--mist); }
.btn.ghost:hover { color: var(--silver); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn .sub { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: inherit; opacity: .7; }
.btn.stack { flex-direction: column; gap: 2px; padding: 12px 20px; }

/* sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 10px; }
.section .lead { color: var(--mist); max-width: 32rem; }

/* landing */
.hero { position: relative; z-index: 1; padding: 24px var(--gutter) 0; max-width: 64rem; margin: 0 auto; text-align: center; }
.hero h1 { margin: 14px auto 18px; max-width: 14ch; }
.hero .sub { color: var(--mist); max-width: 34rem; margin: 0 auto 28px; font-size: 1.02rem; }
.hero .cta-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .hint { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--mist); }
.well { position: relative; width: min(92vw, 560px); aspect-ratio: 1 / 1; margin: 34px auto 0; }
.well canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; cursor: pointer; }
.well .drop { pointer-events: none; font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(220,225,236,.45); transition: opacity .6s; }
.well .rim { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-strong); pointer-events: none;
  box-shadow: inset 0 0 60px rgba(47,91,208,.25), 0 0 120px rgba(47,91,208,.18); }
.well .rim::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed rgba(220,225,236,.18); }
.well .rim::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(220,225,236,.08); }
.well .drop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.well-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px auto 0; max-width: 40rem; }
.chip { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(10,13,26,.6); color: var(--mist); cursor: pointer; transition: all .2s; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--c, var(--gold)); color: var(--c, var(--gold)); box-shadow: 0 0 18px color-mix(in srgb, var(--c, var(--gold)) 30%, transparent); }

.steps { display: grid; gap: 28px; margin-top: 28px; counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step::before { counter-increment: step; content: counter(step, upper-roman); position: absolute; left: 0; top: -2px; font-family: var(--display); font-size: 2rem; font-style: italic; color: var(--gold); width: 40px; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--mist); }
.made { display: grid; gap: 18px; margin-top: 28px; }
.made article { border-top: 1px solid var(--line); padding-top: 14px; }
.made h3 { font-size: 1.25rem; margin-bottom: 4px; }
.made p { color: var(--mist); font-size: .95rem; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 14px; }
.price { border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; text-align: center; }
.price .amt { font-family: var(--display); font-size: 2rem; color: var(--gold); line-height: 1; }
.price .per { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin-top: 6px; }

/* footer */
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 28px var(--gutter) 40px; max-width: 64rem; margin: 40px auto 0; color: var(--mist); font-size: .82rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
footer .disc { margin-top: 12px; max-width: 46rem; line-height: 1.5; }

/* flow pages */
.flow { position: relative; z-index: 1; padding: 20px var(--gutter) 60px; max-width: var(--col); margin: 0 auto; }
.flow header.ph { margin-bottom: 26px; }
.flow header.ph h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-top: 6px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-family: var(--display); font-size: 1.6rem; margin-bottom: 6px; }
.field .hint { color: var(--mist); font-size: .9rem; margin-bottom: 12px; }
.field input[type="text"], .field input[type="date"] {
  width: 100%; background: var(--water); color: var(--silver); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px 16px; font: inherit; font-size: 1.15rem; font-weight: 300; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,183,87,.15); }
.field input::placeholder { color: rgba(139,143,163,.6); }
.field .err { color: var(--danger); font-size: .85rem; margin-top: 8px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: var(--danger); }
.intents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.intent { border: 1px solid var(--line); background: rgba(10,13,26,.6); border-radius: 12px; padding: 12px 8px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .2s; min-height: 78px; justify-content: center; }
.intent .sym { font-family: var(--display); font-size: 1.3rem; line-height: 1; color: var(--c); }
.intent .lab { font-size: .82rem; }
.intent:hover { border-color: var(--line-strong); }
.intent[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 28%, transparent); background: color-mix(in srgb, var(--c) 8%, var(--water)); }
.stepnav { display: flex; gap: 10px; justify-content: space-between; margin-top: 10px; }
.progress { display: flex; gap: 6px; margin-bottom: 18px; }
.progress i { height: 2px; flex: 1; background: var(--line); border-radius: 2px; }
.progress i.on { background: var(--gold); }
.qstep { display: none; }
.qstep.on { display: block; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* sigil stage */
.stage { position: relative; width: min(100%, 520px); aspect-ratio: 1/1; margin: 0 auto; }
.stage svg { width: 100%; height: 100%; border-radius: 50%; }
.stage.veil svg { filter: blur(3px) brightness(.85); }
.stage .halo { position: absolute; inset: -10%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--glow)) 22%, transparent), transparent 60%); }
.sigil-caption { text-align: center; margin-top: 18px; }
.sigil-caption .mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.sigil-caption h2 { margin-top: 8px; }

/* pay */
.plans { display: grid; gap: 12px; margin: 22px 0; }
.plan { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px; cursor: pointer; text-align: left; background: rgba(10,13,26,.5); transition: border-color .2s, box-shadow .2s; }
.plan .thumb { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--ground); }
.plan .thumb svg { width: 100%; height: 100%; }
.plan .t { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.plan .d { color: var(--mist); font-size: .85rem; margin-top: 3px; }
.plan .amt { font-family: var(--display); font-size: 1.7rem; color: var(--gold); }
.plan[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 26px rgba(227,183,87,.14); }
.payrow { display: grid; gap: 10px; }
.notice { border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 10px; padding: 12px 14px; color: var(--mist); font-size: .92rem; margin-top: 16px; display: none; }
.notice.on { display: block; }
.notice.err { border-left-color: var(--danger); }
.fine { color: var(--mist); font-size: .85rem; margin-top: 14px; text-align: center; }

/* me */
.me-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.me-head .meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); display: flex; gap: 14px; flex-wrap: wrap; }
@media (min-width: 640px) { .me-head { flex-direction: row; justify-content: space-between; align-items: baseline; } .me-head .meta { flex-direction: column; gap: 2px; text-align: right; } }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 16px; background: rgba(10,13,26,.5); }
.card .lab { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; }
.key { font-family: var(--display); font-size: clamp(1.5rem, 5.4vw, 2.1rem); line-height: 1.25; color: var(--gold); }
.key-say { font-family: var(--mono); font-size: .8rem; color: var(--silver); margin-top: 10px; line-height: 1.6; }
.key-mean { color: var(--mist); font-size: .9rem; margin-top: 8px; }
.buff { display: flex; align-items: center; gap: 14px; }
.buff .ring { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--c, var(--gold)); position: relative; flex: none; display: grid; place-items: center; font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--c, var(--gold)); box-shadow: 0 0 20px color-mix(in srgb, var(--c, var(--gold)) 30%, transparent); }
.buff .ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c, var(--gold)) 50%, transparent); }
.buff .t { font-family: var(--display); font-size: 1.3rem; }
.buff .d { color: var(--mist); font-size: .88rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share .btn { min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
details.made-of { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; }
details.made-of summary { cursor: pointer; padding: 16px 18px; font-family: var(--display); font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; }
details.made-of summary::after { content: "+"; color: var(--gold); }
details[open].made-of summary::after { content: "−"; }
details.made-of .body { padding: 0 18px 16px; display: grid; gap: 14px; }
.ex { border-top: 1px solid var(--line); padding-top: 12px; }
.ex .t { font-family: var(--display); font-size: 1.15rem; }
.ex .v { font-size: .92rem; margin-top: 2px; }
.ex .s { font-family: var(--mono); font-size: .68rem; color: var(--mist); margin-top: 4px; line-height: 1.5; }
.stage.faded svg { filter: grayscale(.8) brightness(.45); }
.empty { text-align: center; padding: 60px 0; }
.empty h2 { margin-bottom: 18px; }
.hide { display: none !important; }

/* legal */
.legal h1 { font-size: 2.4rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin: 26px 0 6px; }
.legal p, .legal li { color: var(--mist); font-size: .95rem; }
.legal [data-lang] { display: none; }
.legal [data-lang].on { display: block; }

/* share page */
.share-page .stage { width: min(100%, 440px); }
.share-page h1 { text-align: center; font-size: clamp(2rem, 7vw, 3rem); margin-top: 14px; }

@media (min-width: 640px) {
  .hero { padding-top: 40px; }
  .steps { gap: 36px; }
  .made { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section { padding: 84px 0; }
  .intents { grid-template-columns: repeat(4, 1fr); }
  .payrow { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
