/* ============================================================
   SiteVolt design system v1 — private prototype
   Warm white · deep charcoal · electric blue
   ============================================================ */

:root {
  --paper: #FAF7F1;
  --surface: #FFFFFF;
  --ink: #1D1B18;
  --ink-soft: #45423C;
  --muted: #6F6A60;
  --line: #E7E0D3;
  --blue: #1D4ED8;
  --blue-bright: #2E6BFF;
  --blue-deep: #16389E;
  --blue-tint: #E9EFFF;
  --green: #1E7E46;
  --orange: #EA580C;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 27, 24, .05), 0 10px 30px rgba(29, 27, 24, .08);
  --shadow-sm: 0 1px 2px rgba(29, 27, 24, .06), 0 4px 14px rgba(29, 27, 24, .06);
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* ---------- accessibility scaffolding ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top .15s ease;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout helpers ---------- */
.container {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 1.75rem;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- prototype banner ---------- */
.proto-banner {
  background: var(--ink);
  color: #F5F1E8;
  font-size: .85rem;
  text-align: center;
  padding: .55rem 1rem;
}
.proto-banner strong { color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; }
.brand .volt { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-login {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .55rem .4rem;
}
.nav-login:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .55rem .7rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  min-height: 48px;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(29, 78, 216, .28);
}
.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}
.btn-sm { padding: .6rem 1.2rem; min-height: 44px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(42rem 22rem at 78% 18%, rgba(46, 107, 255, .10), transparent 60%),
    radial-gradient(30rem 18rem at 12% 30%, rgba(29, 78, 216, .06), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-bright);
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .4rem; }
.hero-note { margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }

/* CSS browser mock for the hero */
.mock-browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #F4F0E7;
}
.mock-bar i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #D8D1C2;
}
.mock-bar i:first-child { background: #E5A19A; }
.mock-bar i:nth-child(2) { background: #EBCB8B; }
.mock-bar i:nth-child(3) { background: #A8C3A0; }
.mock-url {
  margin-left: .6rem;
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--muted);
  padding: .3rem .9rem;
}
.mock-body { padding: 1.6rem; }
.mock-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.4rem;
}
.mock-logo { width: 92px; height: 16px; border-radius: 4px; background: var(--ink); }
.mock-links { display: flex; gap: .6rem; }
.mock-links span { width: 44px; height: 10px; border-radius: 4px; background: var(--line); }
.mock-hero {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-tint), #F6F1E6);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}
.mock-hero .m-h1 { width: 72%; height: 20px; border-radius: 5px; background: var(--ink); margin-bottom: .7rem; }
.mock-hero .m-sub { width: 88%; height: 11px; border-radius: 4px; background: #B9B2A3; margin-bottom: 1rem; }
.mock-hero .m-cta { display: flex; gap: .6rem; }
.mock-hero .m-cta span:first-child { width: 96px; height: 30px; border-radius: 999px; background: var(--blue); }
.mock-hero .m-cta span:last-child { width: 96px; height: 30px; border-radius: 999px; border: 2px solid var(--ink); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.mock-cards div {
  height: 74px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
}

/* ---------- trust strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.6rem 0;
}
.strip-item {
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: .95rem; color: var(--ink-soft);
}
.strip-item strong { display: block; color: var(--ink); font-size: 1rem; }
.strip-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--blue-tint);
  display: grid; place-items: center;
  color: var(--blue);
  font-weight: 800;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--blue);
  display: block;
  margin-bottom: .9rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- packages ---------- */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
.package {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.package.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
}
.package-flag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.package h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.package .pkg-price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: .6rem 0 .2rem;
}
.package .pkg-per { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.package ul {
  list-style: none; margin: 0 0 1.6rem; padding: 0;
  display: grid; gap: .65rem;
  font-size: .97rem; color: var(--ink-soft);
}
.package ul li { padding-left: 1.7rem; position: relative; }
.package ul li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--blue);
  font-weight: 800;
}
.package .btn { margin-top: auto; }
.price-note {
  margin-top: 1.6rem;
  font-size: .9rem;
  color: var(--muted);
}
.care-plan {
  margin-top: 2rem;
  background: var(--blue-tint);
  border: 1px solid #C9D8FF;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: .98rem;
}
.care-plan strong { display: block; margin-bottom: .2rem; }

/* ---------- examples ---------- */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
}
.example-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.example-preview {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.example-preview .shot {
  position: absolute; inset: 10%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(29,27,24,.14);
  border: 1px solid rgba(29,27,24,.08);
}
/* four distinct abstract demo shots */
.shot-barber   { background: linear-gradient(135deg, #23211D 55%, #3A352C 55%); }
.shot-barber::after { content: ""; position: absolute; inset: 18% 12%; border-radius: 6px;
  background: linear-gradient(180deg, transparent 42%, #E9E2D2 42%, #E9E2D2 52%, transparent 52%),
              linear-gradient(180deg, transparent 60%, #2E6BFF 60%, #2E6BFF 66%, transparent 66%); }
.shot-detailer { background: linear-gradient(120deg, #101418 60%, #1D4ED8 160%); }
.shot-detailer::after { content: ""; position: absolute; inset: 22% 14% 22% 44%; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #7EA2FF, #1D4ED8 70%); }
.shot-home     { background: linear-gradient(180deg, #F1EAD9 62%, #22301F 62%); }
.shot-home::after { content: ""; position: absolute; left: 14%; right: 14%; top: 30%; height: 34%; border-radius: 6px 6px 0 0;
  background: #2E6BFF; }
.shot-fitness  { background: linear-gradient(135deg, #1D1B18 50%, #E9EFFF 50%); }
.shot-fitness::after { content: ""; position: absolute; left: 16%; top: 26%; width: 22%; height: 48%; border-radius: 6px;
  background: #1D1B18; box-shadow: 34px 0 0 #2E6BFF; }
.example-body { padding: 1.4rem 1.5rem 1.6rem; }
.demo-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-tint);
  border-radius: 999px;
  padding: .28rem .8rem;
  margin-bottom: .7rem;
}
.example-body h3 { margin-bottom: .35rem; }
.example-body p { margin: 0 0 .9rem; color: var(--ink-soft); font-size: .97rem; }
.example-link { color: var(--blue); font-weight: 700; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 2.2rem auto 0; display: grid; gap: .8rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: .9rem 0 0; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.2rem;
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .4rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 107, 255, .18);
  background: #fff;
}
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.field .error { font-size: .85rem; color: #B3261E; margin-top: .3rem; display: none; }
.form-note {
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
}
.form-success {
  display: none;
  background: #EAF6EE;
  border: 1px solid #BFE3C9;
  color: #14532D;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #F5F1E8;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: clip;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(46,107,255,.35), transparent 65%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CFC8B8; max-width: 56ch; margin: 0 auto 1.8rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-secondary { color: #fff; border-color: #8f887a; }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.footer-grid a:hover { color: var(--blue); }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- login page ---------- */
.login-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
}
.login-card {
  width: min(430px, 100% - 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card .brand { justify-content: center; margin: 0 0 1.4rem; }
.login-card h1 { font-size: 1.6rem; }
.login-card p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .packages { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .package.featured { order: -1; }
  .examples-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: .6rem 1.25rem 1.2rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav { position: relative; flex-wrap: wrap; }
  .nav-cta .nav-login { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { order: 3; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- inner pages ---------- */
.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.page-hero .lede { margin-inline: auto; }
.narrow { max-width: 780px; margin-inline: auto; }
.tick-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .7rem;
  font-size: 1rem; color: var(--ink-soft);
}
.tick-list li { padding-left: 1.7rem; position: relative; }
.tick-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--blue);
  font-weight: 800;
}
.detail-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.detail-block h3 { margin-bottom: .6rem; }
.detail-block p { color: var(--ink-soft); margin: 0 0 .8rem; }
.detail-block p:last-child { margin-bottom: 0; }

/* ---------- questionnaire ---------- */
.q-shell { max-width: 720px; margin-inline: auto; }
.q-progress { margin-bottom: 2rem; }
.q-progress-track {
  height: 8px; background: var(--line);
  border-radius: 999px; overflow: hidden;
}
.q-progress-fill {
  height: 100%; background: var(--blue);
  width: 25%; border-radius: 999px;
  transition: width .3s ease;
}
.q-progress-label {
  font-size: .85rem; color: var(--muted);
  margin-top: .5rem;
  display: flex; justify-content: space-between; gap: 1rem;
}
.q-panel { display: none; }
.q-panel.active { display: block; animation: qfade .25s ease; }
@keyframes qfade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.q-panel-title { font-size: 1.5rem; margin-bottom: .4rem; }
.q-panel-sub { color: var(--ink-soft); margin-bottom: 1.6rem; }
.q-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.option-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .8rem; margin-top: .5rem;
}
.option-card { position: relative; }
.option-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-card span {
  display: block; padding: 1rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: .98rem;
  transition: border-color .12s ease, box-shadow .12s ease;
  height: 100%;
}
.option-card span small {
  display: block; font-weight: 400;
  color: var(--muted); font-size: .85rem; margin-top: .2rem;
}
.option-card input:checked + span {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 107, 255, .15);
}
.option-card input:focus-visible + span {
  outline: 3px solid var(--blue-bright); outline-offset: 2px;
}
.check-grid { display: grid; gap: .6rem; margin-top: .5rem; }
.check-item {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; cursor: pointer; font-size: .97rem;
}
.check-item input {
  margin-top: .25rem; width: 18px; height: 18px;
  accent-color: var(--blue); flex: none;
}
.review-block {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem; margin-bottom: 1rem;
}
.review-block h4 {
  margin: 0 0 .6rem; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.review-block h4 button {
  background: none; border: none; color: var(--blue);
  font-weight: 700; cursor: pointer; font-size: .9rem; font-family: inherit;
  padding: .3rem .5rem;
}
.review-block dl { margin: 0; display: grid; gap: .35rem; }
.review-block dt {
  font-size: .78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.review-block dd { margin: 0 0 .5rem; font-size: .98rem; }
.review-block dd:last-child { margin-bottom: 0; }
.q-saved-note { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 1rem; }
.q-success { text-align: center; padding: 2rem 0; }
.q-success .big-check {
  width: 72px; height: 72px; border-radius: 50%;
  background: #EAF6EE; color: var(--green);
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 800;
  margin: 0 auto 1.2rem;
}
@media (max-width: 560px) {
  .option-grid { grid-template-columns: 1fr; }
  .q-nav .btn { flex: 1; }
}

/* ---------- customer portal ---------- */
.stage-tracker {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: .4rem; margin: 1.6rem 0 2rem;
}
.stage {
  text-align: center; font-size: .78rem; color: var(--muted);
  padding-top: 1.6rem; position: relative; font-weight: 600;
}
.stage::before {
  content: ""; position: absolute; top: .5rem; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--line); border: 2px solid var(--line);
}
.stage::after {
  content: ""; position: absolute; top: calc(.5rem + 6px); left: calc(-50% + 10px); right: calc(50% + 10px);
  height: 2px; background: var(--line);
}
.stage:first-child::after { display: none; }
.stage.done { color: var(--ink-soft); }
.stage.done::before { background: var(--blue); border-color: var(--blue); }
.stage.done::after { background: var(--blue); }
.stage.now { color: var(--blue-deep); }
.stage.now::before {
  background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(46, 107, 255, .18);
}
.next-step {
  background: var(--blue-tint);
  border: 1px solid #C9D8FF;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.6rem;
  font-size: 1rem;
}
.next-step strong { display: block; margin-bottom: .25rem; color: var(--blue-deep); }
.portal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem; margin-top: 1.2rem;
}
.portal-card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.portal-card h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.portal-card p, .portal-card li { font-size: .95rem; color: var(--ink-soft); }
.portal-card ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.kv { display: grid; gap: .5rem; font-size: .95rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.pill {
  display: inline-block; font-size: .78rem; font-weight: 700;
  padding: .25rem .8rem; border-radius: 999px;
}
.pill-paid { background: #EAF6EE; color: #14532D; }
.pill-wait { background: #FFF4E0; color: #8A5A00; }
.thread { display: grid; gap: .9rem; }
.thread-msg {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; font-size: .93rem;
}
.thread-msg .who { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.thread-msg.owner { background: var(--paper); }
@media (max-width: 860px) {
  .portal-grid { grid-template-columns: 1fr; }
  .stage-tracker { grid-template-columns: repeat(3, 1fr); row-gap: 1.2rem; }
  .stage:nth-child(4)::after { display: none; }
}

/* ---------- creator hub (owner-only, demo) ---------- */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--ink); color: #F5F1E8;
  padding: 1.5rem 1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { color: #fff; margin-bottom: .4rem; }
.admin-side .side-note { font-size: .78rem; color: #8f887a; margin-bottom: 1.6rem; }
.admin-nav { display: grid; gap: .25rem; }
.admin-nav button {
  background: none; border: none; color: #CFC8B8;
  font: inherit; text-align: left;
  padding: .7rem .9rem; border-radius: 8px; cursor: pointer;
  font-size: .95rem; font-weight: 500;
  display: flex; align-items: center; gap: .6rem;
}
.admin-nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav button.active { background: var(--blue); color: #fff; }
.admin-main { padding: 2rem clamp(1.25rem, 4vw, 3rem); min-width: 0; }
.admin-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap;
}
.admin-top h1 { font-size: 1.7rem; margin: 0; }
.demo-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #FFF4E0; color: #8A5A00;
  font-size: .82rem; font-weight: 700;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid #EBD9A8;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: qfade .25s ease; }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-bottom: 1.6rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.stat .lbl { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.demo-tag {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; background: #FFF4E0; color: #8A5A00;
  padding: .18rem .55rem; border-radius: 999px;
  margin-left: .5rem; vertical-align: middle; white-space: nowrap;
}
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.admin-table {
  width: 100%; border-collapse: collapse; font-size: .93rem;
  background: var(--surface); min-width: 640px;
}
.admin-table th, .admin-table td {
  text-align: left; padding: .8rem 1rem;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.admin-table thead th {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); background: #F4F0E7;
}
.admin-table tbody tr:last-child th, .admin-table tbody tr:last-child td { border-bottom: none; }
.empty {
  text-align: center; padding: 2.5rem 1.5rem; color: var(--muted);
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: var(--surface); font-size: .95rem;
}
.empty strong { display: block; color: var(--ink); margin-bottom: .3rem; font-size: 1.02rem; }
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.admin-card h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.auth-note {
  background: var(--blue-tint); border: 1px solid #C9D8FF;
  border-radius: var(--radius-sm); padding: .9rem 1.1rem;
  font-size: .9rem; color: var(--blue-deep); margin-bottom: 1.4rem;
}
.inline-form { display: grid; gap: .8rem; }
.inline-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.saved-flash {
  display: none; font-size: .85rem; font-weight: 600; color: var(--green);
  margin-top: .6rem;
}
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 1rem; }
  .admin-nav { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-form .row { grid-template-columns: 1fr; }
}

/* Owner gate (Creator Hub) */
.gate { position: fixed; inset: 0; background: var(--ink); display: flex; align-items: center; justify-content: center; padding: 1.5rem; z-index: 100; }
.gate[hidden] { display: none; }
.gate-card { background: var(--paper); border-radius: 18px; padding: 2.2rem; width: min(420px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.gate-card h1 { font-size: 1.4rem; margin-bottom: .6rem; }
.gate-note { color: var(--muted); margin-bottom: 1.2rem; }
.gate-fineprint { color: var(--muted); font-size: .8rem; margin-top: 1.2rem; }

/* Revision thread */
.rev { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .7rem; background: #fff; }
.rev p { margin-top: .4rem; }
.rev-customer { border-left: 4px solid var(--blue); }
.rev-owner { border-left: 4px solid var(--orange, #EA580C); background: #FFF9F4; }
