:root {
  --bg: #0f0b2e;
  --panel: #1a1545;
  --panel-2: #241d5c;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f3ff;
  --muted: #c4b5fd;
  --cyan: #22d3ee;
  --purple: #7c3aed;
  --pink: #f472b6;
  --grad: linear-gradient(135deg, #22d3ee 0%, #7c3aed 55%, #f472b6 100%);
  --r: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 130px; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--cyan); }
img { max-width: 100%; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(15, 11, 46, 0.92); backdrop-filter: blur(8px); z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.top nav { display: flex; gap: 14px; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--text); }
.top .pill { background: var(--grad); color: #0f0b2e; font-weight: 700; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--grad); color: #0f0b2e;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.block { width: 100%; }

/* Hero */
.hero { padding: 56px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.8rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.sub { color: var(--muted); font-size: clamp(1.02rem, 2.4vw, 1.2rem); max-width: 620px; margin: 0 auto 28px; }
.hero .actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hero .actions .btn { width: 100%; max-width: 320px; }
.hero small { display: block; color: var(--muted); margin-top: 10px; }

section.block { padding: 40px 0; }
section.block h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 10px; }
section.block > .wrap > p.intro { color: var(--muted); margin: 0 0 26px; max-width: 680px; }

.steps { display: grid; gap: 14px; grid-template-columns: 1fr; }
.step-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.step-card .num { font-weight: 800; color: var(--pink); font-size: .9rem; }
.step-card h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .97rem; }

.pricing { display: grid; gap: 16px; grid-template-columns: 1fr; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; }
.plan .tag { position: absolute; top: -12px; right: 16px; background: var(--grad); color: #0f0b2e; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan .price { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.plan .price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan .setup { color: var(--muted); font-size: .92rem; }
.plan ul { padding-left: 18px; margin: 6px 0 12px; color: var(--muted); }
.plan .btn { margin-top: auto; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 8px 0 0; }

footer.site-foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; margin-top: 40px; }
footer.site-foot .wrap { display: flex; flex-direction: column; gap: 10px; }
footer.site-foot a { color: var(--muted); }

/* Wizard */
.wizard { display: grid; gap: 18px; padding: 20px 0 110px; grid-template-columns: 1fr; }
.wiz-head h1 { font-size: 1.5rem; margin: 0 0 4px; }
.wiz-head p { color: var(--muted); margin: 0; font-size: .95rem; }

.meter { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.meter .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.meter .score { font-size: 1.8rem; font-weight: 800; }
.meter .bar { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin: 10px 0 8px; }
.meter .fill { height: 100%; width: 0; background: var(--grad); transition: width .3s ease; border-radius: 999px; }
.meter p { margin: 0; color: var(--muted); font-size: .9rem; }

.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--panel-2); }
.progress span.on { background: var(--grad); }
.stepcount { color: var(--muted); font-size: .9rem; margin-top: 8px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel > h2 { font-size: 1.35rem; margin: 0 0 6px; }
.panel > .hint { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field .lbl { font-weight: 700; font-size: .95rem; }
.field .sub { color: var(--muted); font-weight: 400; font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=url], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8b83b8; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
input[type=color] { width: 56px; height: 48px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; text-align: left;
}
.chip[aria-pressed=true] { background: var(--grad); color: #0f0b2e; border-color: transparent; font-weight: 700; }

.options { display: grid; gap: 12px; grid-template-columns: 1fr; }
.option {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; min-height: 64px; text-align: left; cursor: pointer;
}
.option strong { display: block; margin-bottom: 2px; }
.option span { color: var(--muted); font-size: .9rem; }
.option[aria-pressed=true] { border: 2px solid var(--cyan); background: var(--panel-2); }

.swatches { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.swatch { display: flex; align-items: center; gap: 12px; }
.swatch i { width: 36px; height: 36px; border-radius: 10px; display: inline-block; flex: 0 0 36px; }
.swatch i + i { margin-left: -22px; }

.svc-row { display: grid; gap: 8px; grid-template-columns: 1fr; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.svc-row label { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.svc-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--cyan); }

.check { display: flex; gap: 10px; align-items: center; padding: 10px 0; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--cyan); }

.review dl { display: grid; grid-template-columns: 1fr; gap: 6px 14px; margin: 0; }
.review dt { color: var(--muted); font-size: .85rem; }
.review dd { margin: 0 0 10px; }
.summary dt { color: var(--muted); font-size: .8rem; margin-top: 8px; }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.summary dt:first-child { margin-top: 0; }
.review .edit { font: inherit; font-size: .85rem; color: var(--cyan); background: none; border: 0; padding: 0; cursor: pointer; margin-left: 8px; }
.missing { background: rgba(244, 114, 182, 0.12); border: 1px solid rgba(244, 114, 182, 0.4); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.missing ul { margin: 6px 0 0; padding-left: 18px; }
.err { color: #fca5a5; font-weight: 600; min-height: 1.4em; margin: 0 0 8px; }

.nav-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  background: rgba(15, 11, 46, 0.96); border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.nav-bar .inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

.preview { display: grid; gap: 16px; padding: 20px 0 60px; }
.frame-wrap { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); height: 70vh; min-height: 420px; }
.frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar .btn { flex: 1 1 180px; }
.status { color: var(--muted); }

/* Desktop */
@media (min-width: 720px) {
  .hero .actions { flex-direction: row; justify-content: center; }
  .hero .actions .btn { width: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .options { grid-template-columns: repeat(2, 1fr); }
  .review dl { grid-template-columns: 180px 1fr; }
  .svc-row { grid-template-columns: 1fr 200px; align-items: center; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 960px) {
  .wizard { grid-template-columns: 300px 1fr; align-items: start; }
  .wizard aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
  .nav-bar { display: none; }
  .wizard .desk-nav { display: flex; gap: 10px; margin-top: 18px; }
  .wizard .desk-nav .btn { flex: 1; }
  .wizard { padding-bottom: 40px; }
  .frame-wrap { height: 80vh; }
  .preview { grid-template-columns: 1fr 300px; align-items: start; }
}
.desk-nav { display: none; }
@media (min-width: 960px) { .desk-nav { display: flex; } }

/* Small phones: keep the header to the brand and the Start button */
@media (max-width: 520px) {
  .top nav a:not(.pill) { display: none; }
}

/* Home page: white background, form beside the headline */
body.home {
  --bg: #ffffff;
  --panel: #f5f3ff;
  --panel-2: #ede9fe;
  --line: rgba(15, 11, 46, 0.12);
  --text: #0f0b2e;
  --muted: #4b4870;
}
body.home .top { background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
body.home .top nav a:not(.pill) { color: var(--muted); }
body.home .top nav a:not(.pill):hover { color: var(--text); }
body.home .top .brand { color: var(--text); }

.home-hero { padding: 40px 0 56px; }
.home-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--panel-2); color: var(--purple); font-weight: 700; font-size: .85rem; margin-bottom: 14px;
}
.home-copy h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; color: var(--text); }
.home-copy .sub { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--text); font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before {
  content: "✓"; display: inline-grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--grad); color: #0f0b2e; font-size: .8rem; font-weight: 800;
}

.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  box-shadow: 0 24px 60px -24px rgba(79, 70, 229, 0.28); position: relative; overflow: hidden;
}
.quote-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.quote-card h2 { margin: 4px 0 4px; font-size: 1.4rem; color: var(--text); }
.quote-card .hint { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.quote-card .field { margin-bottom: 14px; }
.quote-card textarea { min-height: 76px; }
.quote-card .row2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.quote-card .btn.block { margin-top: 6px; }
.quote-card .fine { margin: 10px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.quote-card .err { min-height: 0; margin: 0 0 8px; }

@media (min-width: 720px) {
  .quote-card .row2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .home-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .home-hero { padding: 64px 0 72px; }
}

/* Button text is white on the gradient buttons. Ghost (Back) buttons keep the dark text. */
.btn:not(.ghost), .top .pill, .top .pill:hover { color: #ffffff; text-shadow: 0 1px 2px rgba(15, 11, 46, .35); }

/* ---- Colour picker (start form) ---- */
.cw { display: grid; gap: 18px; }
.cw-targets { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.cw-target { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 2px solid #ddd9f5; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.cw-target i { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.cw-target strong { display: block; }
.cw-target small { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.cw-target[aria-pressed=true] { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
.cw-picker { display: grid; gap: 14px; background: #fff; border: 1px solid #ddd9f5; border-radius: 16px; padding: 16px; }
.cw-sv { position: relative; height: 190px; border-radius: 14px; touch-action: none; cursor: crosshair; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.cw-hue { position: relative; height: 30px; border-radius: 999px; touch-action: none; cursor: pointer; background: linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.cw-knob { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); transform: translate(-50%,-50%); pointer-events: none; }
.cw-hue .cw-knob { top: 50%; }
.cw-sliders { display: grid; gap: 8px; }
.cw-sliders label { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 10px; font-weight: 600; }
.cw-sliders input[type=range] { width: 100%; accent-color: #7c3aed; }
.cw-sliders output { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.cw-hex { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cw-hex label { font-weight: 600; }
.cw-hex input { width: 130px; padding: 10px 12px; border: 1px solid #c7c3e6; border-radius: 10px; font: 600 1rem ui-monospace, Menlo, Consolas, monospace; text-transform: lowercase; }
.cw-btn { border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; color: #fff; background: linear-gradient(120deg,#22d3ee,#7c3aed 60%,#f472b6); cursor: pointer; }
.cw-preview { display: grid; gap: 10px; }
.cw-mini { position: relative; border-radius: 18px; padding: 28px 22px 22px; display: grid; gap: 14px; justify-items: start; box-shadow: 0 16px 36px -18px rgba(79,70,229,.6); }
.cw-mini strong { font-size: 1.35rem; line-height: 1.2; }
.cw-mini-tag { position: absolute; top: -12px; right: 14px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; transform: rotate(3deg); }
.cw-mini-btn { padding: 11px 18px; border-radius: 999px; font-weight: 800; }
.cw-verdict { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
.cw-verdict.good { background: #ecfdf5; color: #065f46; }
.cw-verdict.ok { background: #fffbeb; color: #92400e; }
.cw-verdict.low { background: #fef2f2; color: #991b1b; }
@media (max-width: 480px) { .cw-sliders label { grid-template-columns: 84px 1fr 48px; } .cw-targets { grid-template-columns: 1fr; } }
.cw-fix { display: inline-block; margin: 6px 0 0; border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 800; color: #fff; background: #0f0b2e; cursor: pointer; }
.cw, .cw > *, .cw-picker > *, .cw-hex > *, .cw-sliders label { min-width: 0; max-width: 100%; }
.cw-mini, .cw-mini strong, .cw-verdict, .swatch span strong { overflow-wrap: anywhere; }
.cw-hex input { min-width: 0; width: 120px; }
.cw-btn, .cw-fix { font-family: inherit; }
