:root {
  --accent: #ff1053;
  --accent-dark: #e00a47;
  --green: #6dc05b;
  --purple: #87469a;
  --yellow: #f8bf14;
  --ink: #2f3640;
  --text: #333;
  --muted: #777;
  --line: #e4e6ea;
  --bg: #f6f7f9;
  --card: #fff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .05), 0 6px 24px rgba(20, 24, 31, .06);
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Mulish', 'Muli', system-ui, sans-serif;
  --font-btn: 'Montserrat', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 500; line-height: 1.25; margin: 0; }
a { color: var(--accent); }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

/* ---------- Hero (woww.co.za rainbow) */
.hero { position: relative; color: #fff; padding-bottom: 90px;
  background: conic-gradient(from 200deg at 62% 70%, #e8334a, #f2662f, #f6a623, #f4e03a, #7ac943, #2fb39a, #3aa0e0, #4c7fd8, #8e4fb3, #d43a6a, #e8334a); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 62% 70%, rgba(255,255,255,.18), transparent 55%), linear-gradient(90deg, rgba(0,0,0,.18), transparent 60%); pointer-events: none; }
.hero > * { position: relative; }
.hero-bar { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.logo img { display: block; height: 36px; width: auto; }
.hero-copy { padding-top: 40px; }
.hero-copy > * { max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); text-transform: capitalize; }
.hero p { font-size: 18px; line-height: 1.8; margin: 16px 0 0; max-width: 620px; opacity: .95; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px; }

/* ---------- Buttons */
.btn { font: 600 15px/1 var(--font-btn); border-radius: 4px; padding: 17px 34px; border: 2px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 16, 83, .3); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline-light:hover { background: #fff; color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; align-items: start; margin-top: -40px; position: relative; padding-bottom: 60px; }
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px; margin-bottom: 22px; }
.step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 15px/36px var(--font-btn); text-align: center; }
.step-head h2 { font-size: 26px; }
.step-head p { margin: 6px 0 0; color: var(--muted); }
.step h3 { font-size: 17px; font-weight: 500; margin: 26px 0 10px; }
.step h3:first-of-type { margin-top: 4px; }
.sub { margin: -6px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.grid-2.tight { gap: 16px 20px; }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); }

/* ---------- Client type pills + services */
.pills { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.pill { position: relative; padding: 8px 20px; border-radius: 999px; cursor: pointer; font: 500 14px var(--font-btn); color: var(--muted); }
.pill input, .card input, .service input { position: absolute; opacity: 0; pointer-events: none; }
.pill.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 600; color: var(--ink); transition: .15s; }
.service svg { width: 28px; height: 28px; color: var(--muted); flex: none; }
.service:hover { border-color: #c9ccd2; }
.service.is-on { border-color: var(--accent); background: #fff5f8; }
.service.is-on svg { color: var(--accent); }
.service .tick { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.service.is-on .tick { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--accent); }
:focus-visible { outline: 3px solid rgba(255, 16, 83, .35); outline-offset: 2px; }
.service:has(input:focus-visible), .card:has(input:focus-visible), .pill:has(input:focus-visible), .check:has(input:focus-visible) { outline: 3px solid rgba(255, 16, 83, .35); outline-offset: 2px; }

/* ---------- Option cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: .15s; background: #fff; }
.card:hover { border-color: #c9ccd2; }
.card.is-on { border-color: var(--accent); background: #fff5f8; box-shadow: 0 4px 14px rgba(255, 16, 83, .1); }
.card-title { font: 500 15px/1.35 var(--font-head); color: var(--ink); }
.card-price { font: 600 22px/1.3 var(--font-head); color: var(--ink); margin-top: 4px; }
.card-price small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.card-sub { font: 600 13px var(--font-btn); color: var(--accent); }
.card-sub.good { color: #3e9a2c; }
.card-sub.warn { color: #d9480f; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
details.more { margin-top: 12px; border-radius: 8px; background: var(--bg); padding: 12px 16px; font-size: 14.5px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details.more ul { margin: 6px 0 0; padding-left: 20px; }
details.more p { margin: 8px 0 0; }

/* ---------- Page rows + steppers */
.pages { border: 1px solid var(--line); border-radius: var(--radius); }
.page-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.page-row:first-child { border-top: 0; }
.page-row.single { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; grid-template-columns: 1fr auto; }
.page-info strong { display: block; color: var(--ink); font-weight: 700; }
.page-info span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.page-rate { font: 500 13px var(--font-btn); color: var(--muted); white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button { width: 36px; height: 38px; border: 0; background: var(--bg); font-size: 18px; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: #eceef1; color: var(--accent); }
.stepper input { width: 52px; height: 38px; border: 0; text-align: center; font: 600 16px var(--font-body); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fixed-line { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--bg); }
.fixed-line strong { display: block; color: var(--ink); }
.fixed-line span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.fixed-line b { font: 600 20px var(--font-head); color: var(--ink); white-space: nowrap; }

/* ---------- Toggle switches (gfsp_ios style) */
.checks { display: grid; gap: 2px; }
.check { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 4px; cursor: pointer; border-radius: 6px; }
.check:hover { background: var(--bg); }
.check input, .toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 38px; height: 22px; border-radius: 22px; background: #d5d8dd; position: relative; transition: .2s; flex: none; display: inline-block; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.check.is-on .switch, .toggle input:checked + .switch { background: var(--accent); }
.check.is-on .switch::after, .toggle input:checked + .switch::after { left: 19px; }
.check-label { color: var(--ink); font-size: 15px; }
.check .price { font: 500 13px var(--font-btn); color: var(--muted); white-space: nowrap; }
.check.is-on .price { color: var(--accent); }
.toggle { position: relative; cursor: pointer; }

/* ---------- Notes, acks, fields */
.note { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border-radius: 8px; padding: 12px 16px; margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: #555; }
.note svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 1px; }
.ack { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #ffd2de; background: #fff5f8; border-radius: 8px; padding: 12px 16px; margin-top: 14px; font-size: 14px; line-height: 1.55; cursor: pointer; }
.ack input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.ack em { font-style: normal; font-weight: 700; color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.grid-2.tight .field { margin-top: 0; }
.field-label { font: 500 14px var(--font-btn); color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  font: 15px/1.5 var(--font-body); color: var(--text); border: 1px solid #d5d8dd; border-radius: 6px; padding: 11px 13px; background: #fff; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 16, 83, .12); }
.check-inline { display: flex; align-items: center; gap: 10px; min-height: 46px; font-size: 15px; }
.check-inline input { width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.submit-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.form-msg { margin: 14px 0 0; font-size: 14.5px; }
.form-msg.error { color: #c92a2a; }

/* ---------- Estimate panel */
.estimate { position: sticky; top: 20px; }
.estimate-inner { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; max-height: calc(100vh - 40px); overflow: auto; }
.est-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.est-head h2 { font-size: 20px; }
.est-close { display: none; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.est-total { background: linear-gradient(135deg, var(--accent), #c2185b 60%, var(--purple)); color: #fff; border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.est-label { font: 500 13px var(--font-btn); text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.est-amount { font: 600 34px/1.2 var(--font-head); margin-top: 4px; }
.est-vat { font-size: 13px; opacity: .9; }
.est-recurring { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.est-recurring div { background: var(--bg); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; }
.est-recurring span { font: 500 12px var(--font-btn); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.est-recurring b { font: 600 18px var(--font-head); color: var(--ink); }
.est-breakdown { margin: 14px 0 6px; }
.est-sec { border-bottom: 1px solid var(--line); }
.est-sec summary { display: flex; justify-content: space-between; cursor: pointer; padding: 10px 0; font: 500 14.5px var(--font-head); color: var(--ink); list-style: none; }
.est-sec summary::-webkit-details-marker { display: none; }
.est-sec summary span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: .15s; }
.est-sec[open] summary span::before { transform: rotate(45deg); }
.est-breakdown ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 14px; }
.est-breakdown li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 3px 0; color: #555; }
.est-breakdown li small { display: block; color: #999; font-size: 12px; }
.est-breakdown li b { font-weight: 600; white-space: nowrap; color: var(--ink); }
.est-adj { padding: 8px 0 0 !important; border-bottom: 1px solid var(--line); }
.est-adj li { font-weight: 600; }
.empty { color: var(--muted); font-size: 14px; }
.est-foot { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 10px 0 14px; }

/* ---------- Thanks */
.thanks { grid-column: 1 / -1; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px; text-align: center; }
.thanks h2 { font-size: 32px; }
.thanks p { max-width: 560px; margin: 14px auto 0; color: #555; }
.thanks .submit-row { justify-content: center; }
#app.is-done #quote-form { display: none; }
#app.is-done .estimate { position: static; }
#app.is-done #thanks { order: -1; }
#app.is-done .estimate [data-action="goto-contact"] { display: none; }

.site-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-foot a { color: var(--muted); }

/* ---------- Mobile */
.mobile-bar { display: none; }
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
  .estimate { position: fixed; inset: auto 0 0 0; top: auto; z-index: 50; transform: translateY(105%); transition: transform .3s; }
  .estimate-inner { border-radius: 16px 16px 0 0; max-height: 82vh; box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
  body.est-open .estimate { transform: none; }
  .est-close { display: block; }
  .mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
  .mobile-bar button { width: 100%; display: flex; align-items: baseline; gap: 10px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; padding: 14px 18px; font: 500 14px var(--font-btn); cursor: pointer; }
  .mobile-bar strong { font: 600 20px var(--font-head); margin-left: auto; }
  .mobile-bar small { font-size: 12px; opacity: .9; }
  body { padding-bottom: 80px; }
  #app.is-done ~ .mobile-bar { display: none; }
  #app.is-done .estimate { position: static; transform: none; }
}
@media (max-width: 720px) {
  .step { padding: 22px 18px; }
  .services { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-row { grid-template-columns: 1fr auto; }
  .page-rate { grid-column: 1; grid-row: 2; margin-top: -10px; }
  .page-row .stepper, .page-row .toggle { grid-column: 2; grid-row: 1 / span 2; }
  .step-head h2 { font-size: 22px; }
  .hero { padding-bottom: 70px; }
  .hero-copy { padding-top: 16px; }
}
@media (max-width: 420px) { .services { grid-template-columns: 1fr; } .pills { display: flex; } .pill { flex: 1; text-align: center; padding-inline: 8px; } }

/* ---------- Print: estimate only */
@media print {
  .hero, #quote-form, .mobile-bar, .site-foot, [data-action], .thanks { display: none !important; }
  body { background: #fff; }
  .layout { display: block; margin: 0; }
  .estimate { position: static !important; transform: none !important; }
  .estimate-inner { box-shadow: none; max-height: none; }
  .est-sec { break-inside: avoid; }
  .est-total { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .estimate::before { content: 'Woww website estimate'; font: 600 22px var(--font-head); display: block; margin-bottom: 12px; }
}
