/* ============ fonts ============ */
@font-face { font-family:'General Sans'; src:url('assets/GeneralSans-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'General Sans'; src:url('assets/GeneralSans-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'General Sans'; src:url('assets/GeneralSans-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'JetBrains Mono'; src:url('assets/JetBrainsMono-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'Caveat'; src:url('assets/Caveat.ttf') format('truetype'); font-weight:700; font-display:swap; }

/* ============ tokens ============ */
:root{
  --bg:#121110;
  --ember:#FF4500; --ember2:#D43500;
  --grad:linear-gradient(96deg,#FF5A17,#D43500);
  --text:#F6F3EF; --soft:#D6D0C7; --mid:#A39C92; --muted:#7A746B;
  --glass:rgba(255,255,255,.04); --glass2:rgba(255,255,255,.028);
  --line:rgba(255,255,255,.09); --line2:rgba(255,255,255,.055);
  --err:#FF6B4A; --ok:#5FD98A;
  --radius:14px; --radius-sm:10px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ -webkit-text-size-adjust:100%; }
html,body{
  background:var(--bg); color:var(--text);
  font-family:'General Sans',Helvetica,Arial,sans-serif;
  font-weight:500;
  min-height:100%;
  overflow-x:hidden;
}
body{ position:relative; }
a{ color:inherit; }
button{ font-family:inherit; }
ul,ol{ list-style:none; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ============ background ============ */
.bg-glow{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(255,69,0,.12), transparent 60%),
    radial-gradient(50% 34% at 5% 100%, rgba(212,53,0,.09), transparent 58%);
}

/* ============ topbar ============ */
.topbar{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:center;
  padding:16px 20px;
  background:rgba(18,17,16,.72);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line2);
}
.cobrand{ display:flex; align-items:center; gap:11px; }
.cobrand .lockup{ height:18px; width:auto; display:block; }
.cobrand .x{ font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--muted); }
.cobrand .asc{ height:15px; width:auto; display:block; opacity:.92; }

/* ============ layout ============ */
.wizard{
  position:relative; z-index:1;
  max-width:640px; margin:0 auto;
  padding:28px 20px 140px;
  scroll-margin-top:80px;
}

.progress-wrap{ margin-bottom:22px; }
.progress-meta{
  display:flex; justify-content:space-between; align-items:baseline;
  margin-bottom:9px; gap:12px;
}
.mono{ font-family:'JetBrains Mono',monospace; }
.step-counter{
  font-size:11px; font-weight:500; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ember); flex:none;
}
.step-name{
  font-size:11px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:var(--mid); text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.progress-track{
  height:3px; border-radius:3px; background:var(--line);
  overflow:hidden;
}
.progress-fill{
  height:100%; width:0%; border-radius:3px;
  background:var(--grad);
  transition:width .45s cubic-bezier(.4,0,.2,1);
}

.card{
  background:var(--glass); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 24px 30px;
  position:relative;
  overflow:hidden;
}

/* ============ step transitions ============ */
.step{ display:none; }
.step.active{
  display:block;
  animation:stepIn .38s cubic-bezier(.16,1,.3,1);
}
@keyframes stepIn{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}

/* ============ type ============ */
.kicker{
  font-family:'JetBrains Mono',monospace; font-weight:500; font-size:10.5px;
  letter-spacing:.22em; text-transform:uppercase; color:var(--ember);
  margin-bottom:12px;
}
h1{
  font-weight:600; font-size:30px; line-height:1.12; letter-spacing:-.026em; color:var(--text);
  outline:none;
}
h2{
  font-weight:600; font-size:23px; line-height:1.16; letter-spacing:-.022em; color:var(--text);
  outline:none;
}
.lead{
  font-size:14.5px; line-height:1.6; color:var(--mid); margin-top:9px; margin-bottom:22px;
  max-width:52ch;
}
p{ font-size:14px; line-height:1.6; color:var(--soft); }
strong{ font-weight:600; color:var(--text); }

/* ============ glass panels ============ */
.glass-panel{
  background:var(--glass2); border:1px solid var(--line2); border-radius:var(--radius-sm);
  padding:16px 18px; margin-bottom:18px;
}
.panel-label{
  font-family:'JetBrains Mono',monospace; font-size:10px; font-weight:500;
  letter-spacing:.14em; text-transform:uppercase; color:var(--mid);
  margin-bottom:10px;
}
.checklist li, .steps-list li{
  font-size:13.5px; line-height:1.5; color:var(--soft);
  padding-left:20px; position:relative; margin-bottom:7px;
}
.checklist li:last-child, .steps-list li:last-child{ margin-bottom:0; }
.checklist li::before{
  content:''; position:absolute; left:0; top:6px; width:5px; height:5px; border-radius:50%;
  background:var(--grad);
}
.steps-list{ counter-reset:step; }
.steps-list li{ counter-increment:step; }
.steps-list li::before{
  content:counter(step); position:absolute; left:0; top:0;
  font-family:'JetBrains Mono',monospace; font-size:10.5px; font-weight:500; color:var(--ember);
  width:16px;
}
.trust-panel{ border-color:rgba(255,69,0,.28); background:linear-gradient(180deg, rgba(255,69,0,.07), rgba(255,69,0,.01)); }
.trust-copy{ font-size:13.5px; line-height:1.55; color:var(--soft); }

.autosave-note{
  font-size:12.5px; color:var(--mid); line-height:1.5; margin-bottom:22px;
}

/* ============ buttons ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:var(--radius-sm); cursor:pointer;
  font-weight:600; font-size:14.5px; letter-spacing:-.006em;
  padding:13px 22px;
  transition:transform .15s ease, opacity .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color:transparent;
}
.btn:active{ transform:scale(.98); }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none; }
.btn-primary{
  background:var(--grad); color:#FFFFFF;
  box-shadow:0 4px 18px rgba(255,69,0,.22);
}
.btn-primary:hover:not(:disabled){ box-shadow:0 6px 22px rgba(255,69,0,.32); }
.btn-ghost{
  background:transparent; color:var(--soft); border:1px solid var(--line);
}
.btn-ghost:hover:not(:disabled){ border-color:var(--mid); color:var(--text); }
.btn-block{ width:100%; }
.btn-small{ padding:9px 16px; font-size:13px; margin-top:4px; }

/* ============ fields ============ */
.field{ margin-bottom:20px; }
.field-tight{ margin-top:10px; margin-bottom:0; }
.field > label, fieldset.field legend{
  display:block; font-weight:600; font-size:13.5px; color:var(--text);
  letter-spacing:-.006em; margin-bottom:8px;
}
.req{
  font-family:'JetBrains Mono',monospace; font-weight:500; font-size:9.5px;
  letter-spacing:.1em; text-transform:uppercase; color:var(--ember);
  margin-left:6px;
}
.helper{ font-size:12.5px; color:var(--mid); line-height:1.5; margin-top:-3px; margin-bottom:9px; }

input[type="text"], input[type="email"], input[type="tel"], textarea{
  width:100%; background:rgba(0,0,0,.22); border:1px solid var(--line);
  border-radius:var(--radius-sm); color:var(--text);
  font-family:'General Sans',sans-serif; font-weight:500; font-size:15px;
  padding:12px 14px;
  transition:border-color .15s ease, background .15s ease;
}
textarea{ resize:vertical; min-height:80px; line-height:1.5; }
input::placeholder, textarea::placeholder{ color:var(--muted); }
input:focus, textarea:focus{
  outline:none; border-color:var(--ember);
  background:rgba(0,0,0,.3);
  box-shadow:0 0 0 3px rgba(255,69,0,.16);
}
input:invalid.touched, textarea:invalid.touched{ border-color:var(--err); }

.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:480px){ .two-col{ grid-template-columns:1fr; } }

/* ============ radios / checkboxes ============ */
.radio-group{ }
.radio-row{ display:flex; flex-wrap:wrap; gap:10px; }
.radio-option{
  display:flex; align-items:center; gap:8px; cursor:pointer;
  background:var(--glass2); border:1px solid var(--line2); border-radius:999px;
  padding:9px 16px 9px 12px;
  transition:border-color .15s ease, background .15s ease;
}
.radio-option:has(input:checked){
  border-color:var(--ember); background:rgba(255,69,0,.1);
}
.radio-option input[type="radio"]{
  appearance:none; width:16px; height:16px; border-radius:50%;
  border:1.5px solid var(--mid); background:transparent; flex:none;
  display:grid; place-items:center; cursor:pointer;
}
.radio-option input[type="radio"]::after{
  content:''; width:8px; height:8px; border-radius:50%; background:var(--grad);
  transform:scale(0); transition:transform .12s ease;
}
.radio-option input[type="radio"]:checked::after{ transform:scale(1); }
.radio-option input[type="radio"]:checked{ border-color:var(--ember); }
.radio-option span{ font-size:13.5px; font-weight:500; color:var(--soft); }
.radio-option:has(input:checked) span{ color:var(--text); }

.checkbox-option{
  display:flex; align-items:center; gap:9px; cursor:pointer; margin-bottom:14px;
}
.checkbox-option input[type="checkbox"]{
  appearance:none; width:18px; height:18px; border-radius:5px;
  border:1.5px solid var(--mid); background:transparent; flex:none;
  display:grid; place-items:center; cursor:pointer;
}
.checkbox-option input[type="checkbox"]::after{
  content:''; width:9px; height:9px; border-radius:2px; background:var(--grad);
  transform:scale(0); transition:transform .12s ease;
}
.checkbox-option input[type="checkbox"]:checked::after{ transform:scale(1); }
.checkbox-option input[type="checkbox"]:checked{ border-color:var(--ember); }
.checkbox-option span{ font-size:13.5px; color:var(--soft); }

.reveal{
  border-left:2px solid rgba(255,69,0,.35); padding-left:16px; margin:4px 0 20px;
  animation:stepIn .3s cubic-bezier(.16,1,.3,1);
}

/* ============ dropzones ============ */
.dz-block{ margin-bottom:26px; }
.dz-label{ font-weight:600; font-size:14px; color:var(--text); letter-spacing:-.006em; margin-bottom:4px; }
.dz-help{ font-size:12.5px; color:var(--mid); line-height:1.5; margin-bottom:10px; }

.dropzone{
  border:1.5px dashed var(--line); border-radius:var(--radius-sm);
  background:var(--glass2);
  padding:22px 16px;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone:focus-visible{ border-color:var(--mid); }
.dropzone.dragover{ border-color:var(--ember); background:rgba(255,69,0,.08); }
.dz-inner{ display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; }
.dz-icon{
  width:34px; height:34px; border-radius:50%; background:var(--glass);
  border:1px solid var(--line); display:grid; place-items:center;
  color:var(--ember); font-size:16px; font-weight:600;
}
.dz-text strong{ font-size:13.5px; font-weight:600; color:var(--soft); }

.dz-list{ margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.dz-row{
  display:flex; align-items:center; gap:10px;
  background:rgba(0,0,0,.2); border:1px solid var(--line2); border-radius:var(--radius-sm);
  padding:10px 12px;
}
.dz-row-info{ flex:1; min-width:0; }
.dz-row-name{
  font-size:12.5px; font-weight:600; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.dz-row-size{ font-size:11px; color:var(--mid); margin-top:1px; }
.dz-row-bar{
  height:3px; border-radius:3px; background:var(--line); margin-top:6px; overflow:hidden;
}
.dz-row-bar-fill{ height:100%; background:var(--grad); width:0%; transition:width .2s ease; }
.dz-row-status{ flex:none; display:flex; align-items:center; gap:8px; }
.dz-tick{
  width:20px; height:20px; border-radius:50%; background:var(--ok); color:#0d1a10;
  display:grid; place-items:center; font-size:12px; font-weight:700; flex:none;
}
.dz-row-error{ font-size:11.5px; color:var(--err); margin-top:3px; }
.dz-btn{
  background:none; border:1px solid var(--line); border-radius:8px; color:var(--mid);
  font-size:11.5px; font-weight:600; padding:5px 10px; cursor:pointer;
  transition:border-color .15s ease, color .15s ease;
}
.dz-btn:hover{ color:var(--text); border-color:var(--mid); }
.dz-btn.retry{ color:var(--ember); border-color:rgba(255,69,0,.4); }

/* ============ banners ============ */
.banner{
  border-radius:var(--radius-sm); padding:12px 16px; font-size:13px; line-height:1.5;
  margin-bottom:18px; font-weight:500;
}
.banner-info{ background:rgba(255,69,0,.09); border:1px solid rgba(255,69,0,.3); color:var(--soft); }
.banner-error{ background:rgba(255,107,74,.1); border:1px solid rgba(255,107,74,.35); color:var(--text); }
.banner-error .banner-retry{ margin-top:10px; }

/* ============ colours ============ */
.color-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
@media (max-width:480px){ .color-grid{ grid-template-columns:1fr; } }
.color-row{ display:flex; align-items:center; gap:10px; }
.swatch{
  width:38px; height:38px; border-radius:9px; flex:none;
  border:1px solid var(--line); background:var(--glass2);
}
.color-row input{ flex:1; font-family:'JetBrains Mono',monospace; font-size:13px; }
#colorGrid.disabled{ opacity:.4; pointer-events:none; }

/* ============ chips ============ */
.chip-group{ display:flex; flex-wrap:wrap; gap:8px; margin-top:2px; }
.chip{
  background:var(--glass2); border:1px solid var(--line2); border-radius:999px;
  color:var(--soft); font-size:13px; font-weight:500; padding:8px 15px; cursor:pointer;
  transition:border-color .15s ease, background .15s ease, color .15s ease;
}
.chip:hover{ border-color:var(--mid); }
.chip.selected{
  border-color:var(--ember); background:rgba(255,69,0,.14); color:var(--text); font-weight:600;
}

/* ============ repeatable rows ============ */
.repeat-row{
  background:var(--glass2); border:1px solid var(--line2); border-radius:var(--radius-sm);
  padding:14px 16px; margin-bottom:10px; position:relative;
}
.repeat-row input{ margin-bottom:8px; }
.repeat-row textarea{ min-height:60px; }
.repeat-row-remove{
  position:absolute; top:10px; right:10px;
  background:none; border:none; color:var(--muted); font-size:16px; cursor:pointer;
  width:22px; height:22px; line-height:1; display:grid; place-items:center;
}
.repeat-row-remove:hover{ color:var(--err); }
.repeat-row-label{
  font-family:'JetBrains Mono',monospace; font-size:9.5px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--mid); margin-bottom:8px;
}

.angle-card textarea{ background:rgba(0,0,0,.22); border:1px solid var(--line); }

/* ============ nav ============ */
.nav-row{
  position:fixed; left:0; right:0; bottom:0; z-index:15;
  display:flex; gap:12px; justify-content:space-between;
  padding:14px 20px calc(14px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg, rgba(18,17,16,0), rgba(18,17,16,.92) 30%, var(--bg) 70%);
}
.nav-row .btn{ flex:1; max-width:260px; }
.nav-row .btn-ghost{ flex:none; max-width:none; min-width:96px; }
@media (min-width:640px){
  .nav-row{
    max-width:640px; margin:0 auto; left:0; right:0;
  }
}

/* ============ success ============ */
.success{ text-align:left; }
.calendly-wrap{ margin-top:20px; border-radius:var(--radius-sm); overflow:hidden; }
.mobile-cta{ margin-top:8px; }

/* ============ misc ============ */
::selection{ background:rgba(255,69,0,.35); color:var(--text); }

@media (max-width:480px){
  h1{ font-size:26px; }
  h2{ font-size:20px; }
  .card{ padding:22px 18px 26px; }
  .wizard{ padding-left:16px; padding-right:16px; }
}

/* ============ focus visibility ============ */
/* One consistent, on-brand ring for every interactive control, since a
   custom dark theme can't rely on the browser's default outline reading
   clearly against --bg on every platform. */
.btn:focus-visible,
.chip:focus-visible,
.dropzone:focus-visible,
.dz-btn:focus-visible,
a:focus-visible,
.repeat-row-remove:focus-visible{
  outline:2px solid var(--ember);
  outline-offset:2px;
}
.radio-option:has(input:focus-visible),
.checkbox-option:has(input:focus-visible){
  outline:2px solid var(--ember);
  outline-offset:2px;
}
