/* Self-hosted fonts (SIL Open Font License; latin subset from Google Fonts) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/space-grotesk-latin-var.woff2) format('woff2'); }
/* Alpha A.I. Solution brand tokens (alpha-ai-brand-kit) */
:root {
  --bg: #050914;
  --card: #0c1324;
  --field: #0a1120;
  --panel: #151d33;
  --border: #26324d;
  --border-strong: #5b6b8c;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #22d3ee;
  --text: #f5f8fc;
  --muted: #b3c0d4;
  --success: #34d399;
  --error: #fca5a5;
  --radius: 0.9rem;
  --focus: 0 0 0 3px #050914, 0 0 0 6px #22d3ee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  background-image: radial-gradient(ellipse at 20% 0%, rgba(59,130,246,0.16) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 100%, rgba(34,211,238,0.10) 0%, transparent 50%);
  overflow-x: hidden;
}
a { color: var(--cyan); text-underline-offset: 2px; }
a:hover { color: #a5f3fc; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--cyan); color: #04101f; padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 1000; }
.skip-link:focus { top: 8px; }

.container { max-width: 980px; margin: 0 auto; padding: 24px 16px 64px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 24px; border-bottom: 1px solid var(--border); }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); min-height: 44px; }
.logo img { width: 72px; height: 72px; border-radius: 12px; background: #000; object-fit: cover; }
.wordmark { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.3rem; }
.grad, h1 {
  background: linear-gradient(90deg, #93c5fd, #38bdf8, #22d3ee, #a5f3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.portal-label { color: var(--muted); font-size: 0.95rem; }

.progress-wrap { margin: 28px 0; }
.progress-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-light), var(--cyan)); border-radius: 99px; transition: width 0.5s ease; }
.steps { list-style: none; display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 6px; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.steps li.done .step-dot, .steps li[aria-current="step"] .step-dot { background: var(--cyan); }
.steps li[aria-current="step"] { color: var(--text); font-weight: 600; }
.step-name { display: none; }
@media (min-width: 900px) { .step-name { display: inline; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.45); position: relative; }
.card.animate { animation: fadeUp 0.4s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
h1 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 2.2rem; font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
h1:focus { outline: none; }
h1:focus-visible { box-shadow: var(--focus); }
h2 { font-size: 1.15rem; margin-bottom: 12px; }
.subtitle { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.step-count { color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }

.form-group { margin-bottom: 20px; }
label, legend { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.req { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.hint { color: var(--muted); font-size: 0.85rem; margin: -4px 0 8px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; background: var(--field);
  border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text);
  font-size: 1rem; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #8a97ad; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.45); border-radius: 12px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: 0.9rem; margin-top: 6px; font-weight: 500; }
.field-error::before { content: "⚠ "; }
fieldset { border: 0; min-width: 0; }
fieldset[aria-invalid="true"] .checkboxes { outline: 2px solid var(--error); outline-offset: 6px; border-radius: 12px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-item {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; margin: 0;
  font-weight: 500; background: var(--field); border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.check-item:hover { border-color: var(--blue-light); }
.check-item:has(input:checked) { border-color: var(--cyan); background: rgba(34,211,238,0.08); }
.check-item:has(input:focus-visible) { box-shadow: var(--focus); }
/* Service cards with descriptions: the whole card is one label / tap target */
.check-item-desc { align-items: flex-start; min-height: 44px; padding: 14px 16px; }
.check-item-desc input[type="checkbox"] { margin-top: 1px; }
.svc-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.svc-name { font-weight: 700; color: var(--text); }
.svc-headline { font-weight: 600; font-size: 0.92rem; color: #dbe5f3; line-height: 1.4; }
.svc-desc { font-weight: 400; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; flex: 0 0 22px; padding: 0; accent-color: var(--cyan); cursor: pointer; }
input[type="checkbox"]:focus-visible { box-shadow: none; outline: 3px solid var(--cyan); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 14px; background: var(--field); border: 1px solid var(--border); border-radius: 12px; }
.consent input { margin-top: 2px; }
.consent label { font-weight: 400; font-size: 0.9rem; line-height: 1.55; margin: 0; cursor: pointer; }
.consent-note { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }

.btn-row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 32px; }
button, .btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer; border: none; text-decoration: none; transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s; }
.btn-primary { background: linear-gradient(90deg, #60a5fa, #22d3ee); color: #04101f; box-shadow: 0 4px 20px rgba(34,211,238,0.25); }
.btn-primary:hover { transform: translateY(-1px); color: #04101f; box-shadow: 0 8px 28px rgba(34,211,238,0.35); }
.btn-secondary { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--cyan); }
.btn-block { width: 100%; }
/* Visible keyboard focus ring on buttons (must come after the button box-shadows) */
.btn:focus-visible, button:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 3px solid #ffffff; outline-offset: 3px; box-shadow: none; /* white ring on dark card/page: 18.5:1 vs #0c1324 */
}
button[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.hero-media { display: block; width: 100%; max-width: 480px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto 20px; border-radius: 16px; background: #000; }
.intro { text-align: center; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

.package { background: var(--field); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.live-total p { font-weight: 700; font-size: 1.05rem; }
.package .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.package .row:last-child { border-bottom: 0; }
.package .discount { color: var(--success); }
.package .total { font-weight: 700; font-size: 1.2rem; }
.note { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.preview-banner { background: #2a2108; border: 1px solid #a16207; color: #fde68a; border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; margin-bottom: 20px; }

.alert { border-radius: 12px; padding: 16px; margin-top: 20px; }
.alert-error { background: #2a0f14; border: 1px solid #b91c1c; color: #fecaca; }
.alert-error a { color: #fff; font-weight: 700; }
.alert p + p { margin-top: 8px; }

.success { text-align: center; }
.badge { display: inline-block; background: rgba(52,211,153,0.14); color: var(--success); padding: 8px 16px; border-radius: 99px; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.success-msg { color: var(--muted); margin: 16px auto 24px; max-width: 560px; line-height: 1.6; }
.success img { width: 200px; height: 200px; border-radius: 16px; margin: 0 auto 16px; display: block; background: #000; }

.site-footer { text-align: center; margin-top: 48px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.site-footer p + p { margin-top: 6px; }
.site-footer a { display: inline-block; padding: 10px 2px; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.confetti span { position: absolute; top: -10px; width: 8px; height: 8px; border-radius: 2px; animation: fall 2s linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(360deg); opacity: 0; } }

@media (max-width: 640px) {
  .grid-2, .checkboxes { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  .card { padding: 28px 18px; }
  .site-header { flex-direction: column; text-align: center; }
  .btn-row { flex-direction: column-reverse; }
  .btn-row button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .confetti { display: none; }
}

/* Avoid layout shift: footer appears only after the wizard has rendered */
body:not(.ready) .site-footer { display: none; }

/* ---------- Sticky price bar (services step, <=820px: phones + tablets, where the in-flow total sits below the cards) ---------- */
:root { --bar-h: 64px; }
.sticky-total { display: none; }
@media (max-width: 820px) {
  .sticky-total {
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    min-height: var(--bar-h);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #0c1324; border-top: 1px solid var(--cyan);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.45);
    transition: transform 0.2s ease, visibility 0.2s;
  }
  .sticky-total.is-hidden { transform: translateY(110%); visibility: hidden; }
  .sticky-price { font-weight: 700; font-size: 1.05rem; color: var(--text); }
  .sticky-count { font-size: 0.85rem; color: var(--muted); }
  /* Keep the bottom of the step and any focused field clear of the bar */
  body.has-sticky-total .card { padding-bottom: calc(28px + var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  html:has(body.has-sticky-total) { scroll-padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 16px); }
  body.has-sticky-total .check-item { scroll-margin-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 16px); }
}

/* ---------- v12 free website promo hero (promo mode only; brand kit: navy card, blue->cyan) ---------- */
.promo-hero {
  margin: 0 0 20px; padding: 18px 20px; border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(34,211,238,0.10)), #0c1324;
  border: 1px solid rgba(34,211,238,0.45);
}
.promo-eyebrow { margin: 0 0 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #a5f3fc; }
.promo-heading {
  margin: 0 0 8px; font-family: "Space Grotesk", Inter, system-ui, sans-serif; font-size: 1.35rem; line-height: 1.25;
  color: #f8fafc;
}
.promo-text { margin: 0; color: #cbd5e1; }
