/* Stesso linguaggio visivo della home artusihabibot.com: notte navy-viola, oro, ciano, Syne + Space Grotesk. */
:root {
  --navy: #0A0A24; --navy-2: #1A1142; --gold: #C9A84C; --gold-2: #E2C06A;
  --cyan: #22D3F0; --day: #FF9E3D; --twi: #7A4BE0; --mag: #D14FA6;
  --ink: rgba(255,255,255,.92); --muted: rgba(255,255,255,.58); --faint: rgba(255,255,255,.4);
  --glass: rgba(255,255,255,.05); --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.07);
  --ok: #5EE6A8; --ok-bg: rgba(94,230,168,.10); --err: #FF9C8A; --err-bg: rgba(242,104,58,.14);
  --radius: 1.3rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(122,75,224,.26), transparent 62%),
    radial-gradient(ellipse 60% 40% at 85% 35%, rgba(209,79,166,.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 60%, rgba(34,211,240,.07), transparent 60%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(255,158,61,.16), transparent 66%),
    linear-gradient(180deg, #171338 0%, #0B1026 55%, #1A1540 100%);
  background-attachment: fixed;
}
a { color: var(--cyan); }
::selection { background: rgba(201,168,76,.35); }

.shell { max-width: 780px; margin: 0 auto; padding: 28px 16px 32px; }

/* Barra brand come la nav della home */
.brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 28px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(201,168,76,.5)); }
.brand b { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.05rem; display: block; line-height: 1.2; }
.brand b em { font-style: normal; color: var(--gold-2); }
.brand small { display: block; font-size: .6rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; font-weight: 600; }

.hero { margin: 0 0 22px; }
.kick { display: inline-flex; align-items: center; gap: .5rem; font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: .74rem; letter-spacing: .18em; color: var(--cyan); text-transform: uppercase; margin: 0 0 .6rem; }
.kick::before { content: ''; width: 24px; height: 2px; background: var(--cyan); opacity: .7; }
h1 { margin: 0; font-family: 'Syne', sans-serif; font-weight: 800; line-height: 1.06; letter-spacing: -.01em;
  font-size: clamp(1.9rem, 6vw, 2.9rem); }
h1 em, h2 em { font-style: normal; color: var(--gold-2); }
h2 { margin: 0 0 8px; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; margin: 24px 0 8px; color: var(--gold-2); }
.card h2 { margin-top: 22px; }
.card h2:first-child { margin-top: 0; }
strong { color: #fff; }

/* Card in vetro con filo ciano→oro, come il form della home */
.card {
  position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
@media (max-width: 560px) { .card { padding: 1.3rem; } }

.muted { color: var(--muted); margin: 0 0 18px; }
.small { font-size: .84rem; }

label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); margin: 16px 0 7px; }
.opt { font-weight: 500; color: var(--faint); text-transform: none; letter-spacing: 0; }
input, textarea, select {
  width: 100%; font: inherit; font-size: .97rem; color: #fff; background: rgba(255,255,255,.05);
  border: 1px solid var(--line); border-radius: .6rem; padding: .78rem .95rem; min-height: 48px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: rgba(34,211,240,.5); box-shadow: 0 0 0 3px rgba(34,211,240,.12); }
input[readonly] { opacity: .7; }
::placeholder { color: rgba(255,255,255,.28); }
textarea { resize: vertical; line-height: 1.55; }
.otp { font-family: 'Syne', sans-serif; font-size: 2rem; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; }

button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; transform: none !important; }
.primary {
  display: block; width: 100%; margin-top: 1.4rem; min-height: 52px; padding: .95rem; border: 0; border-radius: .7rem;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; color: #1a1305; text-align: center; text-decoration: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); box-shadow: 0 10px 30px rgba(201,168,76,.35);
  transition: transform .2s, box-shadow .2s;
}
.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(201,168,76,.45); }
.link { background: none; border: 0; padding: 8px 0; color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(34,211,240,.4); }
.link:hover { text-decoration-color: var(--cyan); }
.btn { display: inline-block; }
.row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.hint { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }

.alert { border-radius: .8rem; padding: 12px 16px; margin-bottom: 16px; background: var(--err-bg); color: var(--err); border: 1px solid rgba(242,104,58,.35); }
.alert[data-kind="info"] { background: var(--ok-bg); color: var(--ok); border-color: rgba(94,230,168,.3); }

.foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: .8rem; color: var(--faint); text-align: center; }
.big { margin: 0 0 6px; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(34,211,240,.15); color: var(--cyan); font-size: 1.6rem; border: 1px solid rgba(34,211,240,.4); }

/* Avanzamento a pillole */
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; flex-wrap: wrap; counter-reset: s; }
.steps li { counter-increment: s; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  padding: .32rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); }
.steps li::before { content: counter(s) " · "; }
.steps li.current { color: var(--cyan); border-color: rgba(34,211,240,.45); background: rgba(34,211,240,.10); }
.steps li.done { color: #1a1305; background: var(--gold); border-color: transparent; }

/* Scorecard */
.score { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.score td { padding: 12px 8px; border-top: 1px solid var(--line-2); vertical-align: top; }
.score td.w, .criteria-box .w { font-family: 'Syne', sans-serif; font-weight: 800; color: var(--gold-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

fieldset.card { margin: 18px 0; min-width: 0; }
legend { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; padding: 0; float: left; width: 100%; margin-bottom: 6px; }
legend + * { clear: both; }
fieldset.complete { border-color: rgba(94,230,168,.45); }
fieldset.complete legend::after { content: " ✓"; color: var(--ok); }
.prompt { margin: 4px 0 12px; }
.criteria-box { background: rgba(10,10,36,.45); border: 1px solid var(--line-2); border-radius: .8rem; padding: 10px 14px; margin: 8px 0 6px; font-size: .9rem; }
.criteria-box summary { cursor: pointer; font-weight: 700; color: var(--gold-2); }
.criteria-box ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
.criteria-box li { margin: 6px 0; color: var(--muted); }
.counter { font-size: .76rem; color: var(--faint); margin: 4px 0 0; text-align: right; }
.counter.ok { color: var(--ok); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.sticky { position: sticky; top: 8px; z-index: 5; padding: 14px 18px; margin-bottom: 14px; background: rgba(16,14,48,.82); }
.progress-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--gold)); transition: width .3s; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.check input { width: 16px; height: 16px; min-height: 0; margin-top: 4px; accent-color: var(--cyan); flex-shrink: 0; }

.receipt { background: rgba(10,10,36,.45); border: 1px dashed rgba(201,168,76,.45); border-radius: .9rem; padding: 14px 18px; margin: 18px 0; }
.receipt p { margin: 2px 0; }
.receipt-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: .05em; color: var(--gold-2); }

.admin-link { text-align: center; margin: 18px 0 0; }
.admin-card { margin: 14px 0; }
.badge { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--ink); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.answer { white-space: pre-wrap; background: rgba(10,10,36,.45); border: 1px solid var(--line-2); border-radius: .6rem; padding: 10px 12px; font-size: .9rem; margin: 4px 0 10px; }
details > summary { cursor: pointer; font-weight: 700; margin: 8px 0; }

#clerk-captcha:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .primary { transition: none; } }
select option { background: var(--navy-2); color: #fff; }
.plan { margin: 0 0 18px; padding-left: 1.1rem; color: var(--muted); }
.plan li { margin: 8px 0; line-height: 1.55; }
.plan strong { color: var(--gold-2); }
