/* =============================================================================
   NyayGo — design system
   Dark, premium, tight display type, bordered cards, green accent, pill buttons.
   Reproduces the reference design language; light theme supported via toggle.
   ============================================================================= */

:root {
  /* dark (default) — gold accent on green-tinted charcoal */
  --bg:        #0b0f0c;
  --bg-2:      #0e130f;
  --surface:   #121812;
  --surface-2: #171e18;
  --border:    rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text:      #fafafa;
  --text-2:    #a6a8a2;
  --text-3:    #71756d;
  --accent:    #d9a84a;      /* gold */
  --accent-2:  #c6952f;      /* deeper gold (hover) */
  --accent-ink:#1b1408;      /* dark ink on gold */
  --danger:    #f08a6a;
  --btn-primary-bg:  #d9a84a;
  --btn-primary-ink: #1b1408;
  --ring:      rgba(217, 168, 74, 0.45);
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.72);
  --grid-line: rgba(255, 255, 255, 0.035);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --gutter: 24px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  --bg:        #f7f6f2;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f4f2ec;
  --border:    rgba(20, 16, 8, 0.10);
  --border-strong: rgba(20, 16, 8, 0.18);
  --text:      #14110b;
  --text-2:    #57534a;
  --text-3:    #8a877d;
  --accent:    #9a6f14;      /* darker gold for contrast on light */
  --accent-2:  #7d5a0f;
  --accent-ink:#1b1408;
  --danger:    #c0492a;
  --btn-primary-bg:  #d9a84a;
  --btn-primary-ink: #1b1408;
  --ring:      rgba(154, 111, 20, 0.35);
  --shadow:    0 24px 50px -24px rgba(30, 24, 10, 0.22);
  --grid-line: rgba(20, 16, 8, 0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--btn-primary-bg); color: var(--btn-primary-ink);
  padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---- Typography -------------------------------------------------------------*/
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; color: var(--text-2); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-2); max-width: 46ch; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* ---- Pills / badges ---------------------------------------------------------*/
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-2); font-size: .82rem; font-weight: 500;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(217,168,74,.18); }

.chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border:1px solid var(--border); border-radius:var(--radius-pill); font-size:.75rem; color:var(--text-2); background:var(--surface-2); }
.chip.pos { color: var(--accent); }
.chip.neg { color: var(--danger); }

/* ---- Buttons ----------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font); font-size: .98rem; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-3); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 10px 16px; font-size: .88rem; }

/* ---- Header / nav -----------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; overflow: hidden;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .95rem;
}
.brand .mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-size: .94rem; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text-2);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text); cursor: pointer; }
.nav-mobile-cta { display: none; }

/* ---- Sections ---------------------------------------------------------------*/
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* subtle hero grid background */
.grid-bg { position: relative; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 30%, transparent 78%);
}
.grid-bg > .container { position: relative; z-index: 1; }

/* ---- Hero -------------------------------------------------------------------*/
.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-top: 20px; }
.hero .lead { margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; color: var(--text-3); font-size: .86rem; }
.hero-meta .sep { width: 1px; height: 14px; background: var(--border-strong); }

/* dashboard preview card (hero right) */
.preview {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.preview-head .dots { display: flex; gap: 6px; }
.preview-head .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); }
.preview-title { font-size: .84rem; color: var(--text-2); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px;
}
.stat .k { font-size: .74rem; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; }
.stat .v { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 6px 0 8px; letter-spacing: -0.02em; }
.preview-chart { margin-top: 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.preview-chart .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.preview-chart .row strong { font-size: .9rem; }
.preview-chart svg { width: 100%; height: auto; display: block; }

/* ---- Trust bar --------------------------------------------------------------*/
.trustbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trustbar .row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; padding: 22px 0; color: var(--text-3); font-size: .88rem; }
.trustbar .label { color: var(--text-3); }
.trustbar .item { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; }

/* ---- Cards / grids ----------------------------------------------------------*/
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-strong); }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* service cards (homepage) */
.service-card { display: flex; flex-direction: column; }
.service-card .tag { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.service-card h3 { margin: 12px 0 10px; }
.service-card p { flex: 1; }
.service-card .card-cta { margin-top: 18px; }

/* step / process */
.step { display: flex; gap: 16px; }
.step .num {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 700; color: var(--accent);
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }

/* feature list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); }
.checklist li svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* ---- CTA band ---------------------------------------------------------------*/
.cta-band {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px); text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ---- Breadcrumb -------------------------------------------------------------*/
.crumb { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--text-3); padding: 22px 0 0; }
.crumb a:hover { color: var(--text); }
.crumb .sep { color: var(--text-3); }

/* ---- Prose (legal pages) ----------------------------------------------------*/
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Alerts -----------------------------------------------------------------*/
.alert { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: .92rem; margin-bottom: 18px; }
.alert-error { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--text); }
.alert-success { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--text); }
.alert-info { background: var(--surface-2); color: var(--text-2); }

/* ---- FAQ accordion ----------------------------------------------------------*/
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s; }
.faq-item:hover, .faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-ic { flex: none; color: var(--text-3); transition: transform .2s; }
.faq-item[open] .faq-ic { transform: rotate(180deg); color: var(--accent); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0; color: var(--text-2); }

/* ---- Footer -----------------------------------------------------------------*/
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 { font-family: var(--font); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-2); font-size: .92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-about p { font-size: .92rem; max-width: 38ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .84rem; }
.disclaimer-note { color: var(--text-3); font-size: .8rem; max-width: 70ch; margin-top: 6px; }

/* =============================================================================
   Request wizard
   ============================================================================= */
.wizard { max-width: 780px; margin-inline: auto; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.wizard-steps .wstep { flex: 1; min-width: 80px; }
.wizard-steps .bar { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.wizard-steps .bar > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.wizard-steps .wstep.done .bar > span, .wizard-steps .wstep.active .bar > span { width: 100%; }
.wizard-steps .lbl { font-size: .72rem; color: var(--text-3); margin-top: 8px; display: block; }
.wizard-steps .wstep.active .lbl { color: var(--text); }
.wizard-steps .wstep.done .lbl { color: var(--text-2); }

.wpanel { display: none; }
.wpanel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wpanel h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.wpanel .sub { color: var(--text-2); margin-bottom: 24px; }

.field { margin-bottom: 18px; }
.field > label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.field .req { color: var(--accent); }
.field .hint { font-size: .8rem; color: var(--text-3); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; font-size: .96rem;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); outline: none; }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8a93' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }

/* choice cards (service select / radio groups) */
.choice-grid { display: grid; gap: 14px; }
.choice {
  position: relative; display: block; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 22px 22px 22px 58px;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--text-3); }
.choice input { position: absolute; opacity: 0; }
.choice .mark { position: absolute; left: 20px; top: 24px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); }
.choice .tag { color: var(--text-3); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.choice h3 { font-size: 1.1rem; margin: 6px 0; }
.choice p { font-size: .9rem; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.choice:has(input:checked) .mark { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); }
.choice input:focus-visible ~ .mark { outline: 2px solid var(--accent); outline-offset: 2px; }

.pill-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-choice { cursor: pointer; }
.pill-choice input { position: absolute; opacity: 0; }
.pill-choice span { display: inline-block; padding: 10px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); font-size: .9rem; color: var(--text-2); transition: all .15s; }
.pill-choice input:checked ~ span { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pill-choice input:focus-visible ~ span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* file upload */
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 30px; text-align: center; background: var(--bg-2); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone.drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); }
.dropzone svg { color: var(--text-3); margin-bottom: 10px; }
.dropzone .big { color: var(--text); font-weight: 500; }
.dropzone .small { color: var(--text-3); font-size: .82rem; margin-top: 4px; }
.file-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .88rem; }
.file-list li .fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li .fsize { color: var(--text-3); font-size: .78rem; }
.file-list li .rm { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 6px; }
.file-list li .rm:hover { color: var(--danger); }

.doc-help { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; margin: 16px 0; }
.doc-help li { color: var(--text-2); font-size: .88rem; display: flex; gap: 8px; }
.doc-help li::before { content: "•"; color: var(--accent); }

/* review */
.review-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.review-block .rhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.review-block .rhead h3 { font-size: 1rem; margin: 0; }
.review-block .edit { background: none; border: none; color: var(--accent); cursor: pointer; font-size: .85rem; font-weight: 600; }
.review-list { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: .9rem; }
.review-list dt { color: var(--text-3); }
.review-list dd { margin: 0; color: var(--text); word-break: break-word; }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin: 20px 0; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.consent label { font-size: .9rem; color: var(--text-2); }

.wnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wnav .spacer { flex: 1; }

/* success screen */
.success { max-width: 620px; margin-inline: auto; text-align: center; }
.success .tick { width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); display: grid; place-items: center; margin: 0 auto 24px; color: var(--accent); }
.success .refbox { display: inline-block; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 12px 22px; margin: 8px 0 24px; font-size: 1.05rem; }
.success .refbox strong { font-family: var(--font-display); letter-spacing: .02em; }

/* =============================================================================
   Chatbot
   ============================================================================= */
.cbot-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 28px -6px rgba(217,168,74,.5), var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cbot-launch::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(217,168,74,.45); animation: cbotPulse 2.6s ease-out infinite;
}
.cbot.open .cbot-launch::before { animation: none; }
@keyframes cbotPulse { 0% { box-shadow: 0 0 0 0 rgba(217,168,74,.45); } 70%,100% { box-shadow: 0 0 0 16px rgba(217,168,74,0); } }
.cbot-launch:hover { transform: scale(1.06); }
.cbot-launch svg { width: 26px; height: 26px; position: relative; }
.cbot-launch .close-i { display: none; }
.cbot.open .cbot-launch .chat-i { display: none; }
.cbot.open .cbot-launch .close-i { display: block; }

/* one-time greeting nudge */
.cbot-greet {
  position: fixed; right: 92px; bottom: 34px; z-index: 89;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: .84rem; max-width: 210px;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(6px) scale(.96); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.cbot-greet.show { opacity: 1; transform: none; pointer-events: auto; }
.cbot.open .cbot-greet { opacity: 0 !important; pointer-events: none; }
.cbot-greet button { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-3); cursor: pointer; font-size: 12px; line-height: 1; display: grid; place-items: center; }

.cbot-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 90;
  width: 372px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 130px);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.cbot.open .cbot-panel { opacity: 1; transform: none; pointer-events: auto; }

/* gold gradient header bar */
.cbot-head {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
}
.cbot-head .avatar { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; background: rgba(255,255,255,.9); display: grid; place-items: center; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.cbot-head .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbot-head .who { line-height: 1.25; }
.cbot-head .who strong { font-size: .96rem; display: block; }
.cbot-head .who .status { font-size: .74rem; opacity: .85; display: inline-flex; align-items: center; gap: 5px; }
.cbot-head .who .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f7a3d; box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.cbot-head .actions { margin-left: auto; display: flex; gap: 2px; }
.cbot-head button { background: none; border: none; color: var(--accent-ink); opacity: .7; cursor: pointer; padding: 6px; border-radius: 8px; }
.cbot-head button:hover { opacity: 1; background: rgba(0,0,0,.08); }

.cbot-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; background: var(--bg-2); }
.cbot-msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5; animation: cbotIn .22s ease; }
@keyframes cbotIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cbot-msg.bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; align-self: flex-start; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.cbot-msg.user { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-bottom-right-radius: 5px; align-self: flex-end; font-weight: 500; }
.cbot-msg ul { margin: 6px 0 0; padding-left: 18px; }
.cbot-msg li { margin: 2px 0; }
.cbot-msg a { color: inherit; text-decoration: underline; }

.cbot-options { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface); max-height: 46%; overflow-y: auto; }
.cbot-opt { text-align: left; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 14px; color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.cbot-opt:hover { border-color: var(--accent); background: var(--surface-2); }
.cbot-opt:active { transform: scale(.99); }
.cbot-opt.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.cbot-opt.back { color: var(--text-3); border-style: dashed; text-align: center; }
.cbot-foot { padding: 8px 16px; text-align: center; font-size: .68rem; color: var(--text-3); background: var(--surface); border-top: 1px solid var(--border); letter-spacing: .02em; }

/* =============================================================================
   Retro cursor (subtle pixel trail) — canvas overlay
   ============================================================================= */
#retro-cursor { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9998; }

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-preview-wrap { order: 2; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-actions { margin-left: auto; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow); padding: 8px var(--gutter) 16px; gap: 0; margin: 0;
  }
  .nav-links.open a { padding: 15px 6px; text-align: left; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav-links.open a.is-active { background: transparent; color: var(--accent); }
  .nav-mobile-cta { display: block; margin-top: 14px; text-align: center !important; background: var(--accent); color: var(--accent-ink) !important; font-weight: 700; border-radius: var(--radius-pill) !important; border-bottom: none !important; }
  .nav-toggle { display: grid; place-items: center; }
  .nav .btn-primary.nav-cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .field-2 { grid-template-columns: 1fr; }
  .doc-help { grid-template-columns: 1fr; }
  .review-list { grid-template-columns: 1fr; gap: 2px 0; }
  .review-list dt { margin-top: 8px; }
  .cbot-panel { right: 12px; left: 12px; width: auto; bottom: 84px; height: min(74vh, 540px); }
  .cbot-launch { right: 16px; bottom: 16px; }
  .cbot-greet { display: none; }
  .wizard-steps .lbl { display: none; }
}
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .stat-grid { grid-template-columns: 1fr; }
}
