/* Acme Invest — a fictional real estate fintech.
 * Distinct visual language from testdelegate.com:
 *   - Light, warm-paper theme (vs. testdelegate's dark)
 *   - Deep forest green accent (vs. testdelegate's indigo)
 *   - More serif-leaning hierarchy via weight + size, not a serif font
 * Same Inter / JetBrains Mono families so we don't over-engineer fonts.
 */

*{box-sizing:border-box;margin:0;padding:0}

:root{
  --bg:#faf8f3;
  --bg-alt:#f3f0e8;
  --surface:#ffffff;
  --surface-hi:#f7f5ef;
  --border:#e7e3d8;
  --border-hi:#d4cfbe;
  --text:#1a1a1a;
  --text-mid:#525252;
  --text-dim:#7a7568;

  /* Accent — institutional forest green */
  --accent:#0f5132;
  --accent-hi:#166c44;
  --accent-soft:#dcefe4;
  --accent-soft-border:#b8d9c4;

  /* Status */
  --ok:#0f5132;
  --warn:#92400e;
  --warn-soft:#fdf3e0;
  --warn-soft-border:#f0d9aa;
  --danger:#991b1b;
  --danger-soft:#fce8e8;
  --danger-soft-border:#f0c4c4;

  /* Subtle gold for premium accents */
  --gold:#a16207;
  --gold-soft:#fef6df;

  --mono:"JetBrains Mono",ui-monospace,monospace;
  --shadow-sm:0 1px 2px rgba(20,20,20,.04);
  --shadow-md:0 4px 14px rgba(20,20,20,.06),0 1px 4px rgba(20,20,20,.04);
  --shadow-lg:0 16px 40px rgba(20,20,20,.08),0 4px 12px rgba(20,20,20,.04);
}

html{scroll-behavior:smooth;overflow-x:hidden}
body{
  font-family:"Inter",-apple-system,sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  font-size:15px;
  line-height:1.6;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
  max-width:100vw;
}

a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
code{font-family:var(--mono);font-size:.88em;background:var(--bg-alt);padding:1px 6px;border-radius:4px;color:var(--text-mid);border:1px solid var(--border)}

/* Demo banner */
.demo-banner{
  background:#1a1a1a;
  color:#e9e7e1;
  padding:9px 24px;
  font-size:12px;
  text-align:center;
  font-family:var(--mono);
  letter-spacing:.005em;
  line-height:1.5;
}
.demo-banner strong{color:#dcefe4;font-weight:600}
@media(max-width:600px){.demo-banner{padding:8px 14px;font-size:11px}}

/* Topbar */
.topbar{
  border-bottom:1px solid var(--border);
  background:var(--surface);
}
.topbar-inner{
  max-width:1180px;
  margin:0 auto;
  padding:22px 32px;
  display:flex;
  align-items:center;
  gap:20px;
}
@media(max-width:600px){.topbar-inner{padding:18px 20px;gap:14px}}

.brand{display:flex;align-items:center;gap:11px;font-weight:700;letter-spacing:-.01em}
.brand-mark{
  width:32px;
  height:32px;
  border-radius:9px;
  background:var(--accent);
  background:linear-gradient(135deg,var(--accent),#1c6b43);
  color:#f5f5f0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:800;
  box-shadow:0 3px 10px rgba(15,81,50,.18);
  letter-spacing:0;
}
.brand-name{font-size:18px;color:var(--text);letter-spacing:-.015em}
.nav{display:flex;gap:6px;margin-left:auto;font-size:14px}
.nav a{padding:8px 14px;border-radius:7px;color:var(--text-mid);font-weight:500;transition:all .15s}
.nav a:hover{color:var(--text);background:var(--bg-alt)}
@media(max-width:720px){.nav{display:none}}

/* Container */
.main{
  flex:1;
  padding:56px 24px 64px;
  width:100%;
}
@media(max-width:600px){.main{padding:32px 16px 48px}}

.stage{
  width:100%;
  max-width:780px;
  margin:0 auto;
}

/* Progress dots */
.steps{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:36px}
.step-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--border-hi);
  transition:all .3s;
}
.step-dot.active{background:var(--accent);width:24px;border-radius:6px;box-shadow:0 0 0 4px var(--accent-soft)}
.step-dot.done{background:var(--accent)}
.step-line{flex:0 0 36px;height:1px;background:var(--border-hi)}
@media(max-width:600px){.step-line{flex:0 0 18px}}

/* Card */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:48px;
  box-shadow:var(--shadow-md);
  position:relative;
  overflow:hidden;
}
@media(max-width:600px){.card{padding:32px 24px;border-radius:12px}}

.eyebrow{
  display:inline-block;
  font-family:var(--mono);
  font-size:11px;
  color:var(--accent);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.1em;
  margin-bottom:20px;
  padding:5px 10px;
  background:var(--accent-soft);
  border:1px solid var(--accent-soft-border);
  border-radius:999px;
}

.hero-title{
  font-size:40px;
  font-weight:700;
  letter-spacing:-.025em;
  line-height:1.1;
  margin-bottom:14px;
  color:var(--text);
}
@media(max-width:720px){.hero-title{font-size:32px}}
@media(max-width:480px){.hero-title{font-size:26px}}

.hero-lede{
  font-size:16px;
  color:var(--text-mid);
  line-height:1.7;
  margin-bottom:28px;
  max-width:54ch;
}
.hero-lede .link{color:var(--accent);text-decoration:underline;text-decoration-color:var(--accent-soft-border);text-underline-offset:3px;font-weight:500}
.hero-lede .link:hover{color:var(--accent-hi);text-decoration-color:var(--accent)}

/* Form */
.form{display:flex;flex-direction:column;gap:14px;max-width:440px}
.field{display:flex;flex-direction:column;gap:6px}
.label{font-size:12px;color:var(--text-mid);font-weight:500;letter-spacing:.005em}
.input{
  width:100%;
  background:var(--surface);
  border:1px solid var(--border-hi);
  border-radius:9px;
  padding:11px 14px;
  font-size:15px;
  color:var(--text);
  font-family:inherit;
  outline:none;
  transition:all .15s;
}
.input::placeholder{color:var(--text-dim)}
.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
select.input{cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23525252' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px;appearance:none}

.btn{
  padding:12px 22px;
  border-radius:9px;
  font-size:14px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  border:1px solid transparent;
  transition:all .15s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  line-height:1;
  position:relative;
}
.btn-primary{
  background:var(--accent);
  color:#f5f5f0;
}
.btn-primary:hover{
  background:var(--accent-hi);
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(15,81,50,.22);
}
.btn-primary:disabled{
  background:var(--text-dim);
  cursor:wait;
  transform:none;
  box-shadow:none;
}
.btn-large{padding:15px 24px;font-size:15px}
.btn-secondary{
  background:var(--surface);
  border:1px solid var(--border-hi);
  color:var(--text);
}
.btn-secondary:hover{border-color:var(--text);background:var(--bg-alt)}
.btn-ghost{
  background:transparent;
  color:var(--text-mid);
  padding:10px 16px;
  font-weight:500;
}
.btn-ghost:hover{color:var(--text)}

.powered-by{
  font-family:var(--mono);
  font-size:10px;
  color:rgba(245,245,240,.7);
  font-weight:500;
  letter-spacing:.04em;
  margin-left:10px;
  padding-left:10px;
  border-left:1px solid rgba(245,245,240,.2);
}
.powered-by strong{color:#f5f5f0;font-weight:600}

.spinner{
  display:inline-block;
  width:14px;
  height:14px;
  border:2px solid rgba(245,245,240,.3);
  border-top-color:#f5f5f0;
  border-radius:50%;
  animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.form-foot{
  font-size:12px;
  color:var(--text-dim);
  margin-top:14px;
  line-height:1.55;
}

.error{
  background:var(--danger-soft);
  border:1px solid var(--danger-soft-border);
  color:var(--danger);
  padding:11px 14px;
  border-radius:8px;
  font-size:13px;
  margin-bottom:16px;
  line-height:1.5;
}

/* Step 2 two-column */
.step2-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:48px;align-items:start}
@media(max-width:880px){.step2-grid{grid-template-columns:1fr;gap:32px}}

.step2-text .hero-title{margin-bottom:14px}

.trust-list{
  list-style:none;
  padding:0;
  margin:24px 0 28px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.trust-list li{
  display:flex;
  align-items:flex-start;
  gap:14px;
  font-size:14px;
  color:var(--text-mid);
}
.trust-check{
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--accent-soft);
  border:1px solid var(--accent-soft-border);
  color:var(--accent);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  flex-shrink:0;
  margin-top:1px;
}
.trust-list strong{display:block;color:var(--text);font-weight:600;font-size:14px;margin-bottom:2px}
.trust-list span{display:block;color:var(--text-mid);font-size:13px;line-height:1.55}

.step2-text .btn-primary{margin-right:8px}

/* Side card */
.step2-side{display:flex;flex-direction:column;gap:14px}
.side-card{
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:12px;
  padding:18px 20px;
}
.side-card-head{
  font-size:11px;
  font-weight:600;
  color:var(--text-dim);
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:12px;
  font-family:var(--mono);
}
.side-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
  color:var(--text-mid);
  line-height:1.55;
}
.side-list li{display:flex;gap:9px;align-items:flex-start}
.side-list li::before{
  content:'✕';
  color:var(--text-dim);
  font-size:11px;
  flex-shrink:0;
  margin-top:2px;
}

.side-note{
  background:var(--warn-soft);
  border:1px solid var(--warn-soft-border);
  border-radius:12px;
  padding:14px 16px;
  font-size:12px;
  color:var(--text-mid);
  line-height:1.6;
}
.side-note strong{color:var(--warn);font-weight:600}

.sandbox-creds{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:10px;
  background:var(--surface);
  border:1px solid var(--warn-soft-border);
  border-radius:8px;
  padding:10px 12px;
  font-family:var(--mono);
  font-size:11px;
}
.sc-row{display:flex;gap:10px;align-items:center}
.sc-key{color:var(--text-dim);min-width:62px}
.sc-val{color:var(--text);font-weight:500}
.sc-val.highlight{color:var(--warn);font-weight:600;background:var(--warn-soft);padding:1px 6px;border-radius:4px}

/* Verifying state */
.verifying{padding:48px 0;text-align:center}
.verifying-spinner{
  width:48px;
  height:48px;
  border:3px solid var(--border);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin .8s linear infinite;
  margin:0 auto 18px;
}
.verifying-label{
  font-size:15px;
  color:var(--text);
  font-weight:500;
  margin-bottom:6px;
}
.verifying-sub{
  font-size:12px;
  color:var(--text-dim);
  font-family:var(--mono);
  letter-spacing:.02em;
}

/* Result cards */
.result-card{text-align:center}
.result-icon{
  width:84px;
  height:84px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:36px;
  font-weight:700;
  margin:0 auto 22px;
}
.result-icon.allow{
  background:var(--accent-soft);
  border:2px solid var(--accent);
  color:var(--accent);
}
.result-icon.review{
  background:var(--warn-soft);
  border:2px solid var(--warn);
  color:var(--warn);
}
.result-icon.block{
  background:var(--danger-soft);
  border:2px solid var(--danger);
  color:var(--danger);
}

.result-headline{
  font-size:30px;
  font-weight:700;
  letter-spacing:-.02em;
  margin-bottom:10px;
  line-height:1.2;
}
@media(max-width:600px){.result-headline{font-size:24px}}

.result-summary{
  font-size:16px;
  color:var(--text-mid);
  line-height:1.7;
  max-width:540px;
  margin:0 auto 28px;
}

/* Signals (allow path) */
.signals{
  background:var(--accent-soft);
  border:1px solid var(--accent-soft-border);
  border-radius:12px;
  padding:18px 22px;
  margin:0 auto 28px;
  max-width:520px;
  text-align:left;
}
.signals-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  font-size:11px;
  font-weight:600;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-family:var(--mono);
}
.signals-score{
  font-family:var(--mono);
  font-size:14px;
  font-weight:700;
  color:var(--accent);
}
.signals-list{display:flex;flex-direction:column;gap:10px}
.signal-row{display:flex;gap:10px;align-items:flex-start}
.signal-check{
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--accent);
  color:#f5f5f0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:700;
  flex-shrink:0;
  margin-top:2px;
}
.signal-text strong{
  display:block;
  color:var(--text);
  font-size:13px;
  font-weight:600;
  line-height:1.4;
  margin-bottom:2px;
}
.signal-text span{
  display:block;
  color:var(--text-mid);
  font-size:12px;
  line-height:1.55;
}

/* Next-steps list (review/block) */
.next-steps{
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:540px;
  margin:0 auto 28px;
  text-align:left;
}
.next-step{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:14px 18px;
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:10px;
}
.next-step-num{
  width:24px;
  height:24px;
  border-radius:7px;
  background:var(--surface);
  border:1px solid var(--border-hi);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--mono);
  font-size:12px;
  font-weight:600;
  color:var(--text);
  flex-shrink:0;
  margin-top:1px;
}
.next-step strong{
  display:block;
  font-size:14px;
  color:var(--text);
  font-weight:600;
  margin-bottom:2px;
  line-height:1.4;
}
.next-step span{
  display:block;
  font-size:13px;
  color:var(--text-mid);
  line-height:1.55;
}

.result-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.behind{
  margin:24px auto 0;
  max-width:540px;
  padding:14px 18px;
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:10px;
  font-size:12px;
  color:var(--text-mid);
  line-height:1.6;
  text-align:left;
}
.behind strong{color:var(--text);font-weight:600}
.behind a{color:var(--accent);text-decoration:underline;text-decoration-color:var(--accent-soft-border);text-underline-offset:2px}
.behind a:hover{color:var(--accent-hi)}
.behind code{font-size:11px}

/* Footer */
.footer{
  border-top:1px solid var(--border);
  background:var(--bg-alt);
  padding:32px 24px;
  margin-top:auto;
}
.footer-inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
  font-size:12px;
  color:var(--text-dim);
  line-height:1.55;
}
.footer-disclaimer{max-width:480px}
.footer-links{display:flex;gap:20px;flex-wrap:wrap;font-family:var(--mono);font-size:12px}
.footer-links a{color:var(--text-mid);transition:color .15s}
.footer-links a:hover{color:var(--accent)}

/* Animations */
.fade-in{animation:fadeIn .4s ease both}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
