/* EUDR Scope Wizard — Agilex+ brand styling */
:root {
  --navy: #0D1F3C;
  --navy-mid: #132A4F;
  --navy-card: #17315A;
  --amber: #E8A020;
  --amber-soft: #f4bf5e;
  --blue: #1A5FB4;
  --blue-soft: #3d82d8;
  --text: #EAF0F8;
  --text-dim: #A9BAD4;
  --border: #294c7d;
  --green: #34c77b;
  --green-bg: rgba(52, 199, 123, .12);
  --red: #f0705a;
  --red-bg: rgba(240, 112, 90, .12);
  --amber-bg: rgba(232, 160, 32, .12);
  --radius: 14px;
  --shadow: 0 10px 34px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(26, 95, 180, .28), transparent 60%),
    radial-gradient(760px 520px at 8% 4%, rgba(232, 160, 32, .10), transparent 55%),
    var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, .brand-name, .vcard-headline, .step-title {
  font-family: "DM Sans", "Inter", sans-serif;
  line-height: 1.2;
}

a { color: var(--amber-soft); }

.wrap { width: min(960px, 100%); margin: 0 auto; padding: 0 20px; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 50;
  background: var(--amber); color: var(--navy); padding: 8px 14px;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 31, 60, .72);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: block; }
.brand-name { font-weight: 700; font-size: 1.16rem; letter-spacing: .2px; }
.brand-sub { color: var(--amber); font-weight: 600; }
.header-tag { color: var(--text-dim); font-size: .85rem; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding: 54px 0 20px; max-width: 720px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.6px; font-size: .74rem;
  font-weight: 600; color: var(--amber); margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 16px; font-weight: 700; }
.lede { font-size: 1.12rem; color: #d4deef; margin: 0 0 22px; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 9px; }
.hero-points li { display: flex; align-items: center; gap: 11px; color: var(--text-dim); }
.tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-bg); color: var(--green);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit; font-size: .95rem; font-weight: 600;
  border-radius: 10px; padding: 12px 22px; cursor: pointer;
  border: 1px solid transparent; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.btn-primary { background: var(--amber); color: #241200; box-shadow: 0 6px 18px rgba(232, 160, 32, .28); }
.btn-primary:hover { background: var(--amber-soft); }
.btn-primary:disabled { background: #5c5236; color: #9a8d6b; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--navy-mid); border-color: var(--blue); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Progress ---------- */
.progress { margin: 34px 0 22px; }
.progress-bar { height: 8px; background: var(--navy-mid); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-soft)); border-radius: 99px; transition: width .35s ease; }
.progress-label { margin: 9px 0 0; font-size: .82rem; color: var(--text-dim); font-weight: 500; }

/* ---------- Wizard ---------- */
.wizard { padding-bottom: 40px; }
.step { border: 0; padding: 0; margin: 0; }
.step-title { font-size: clamp(1.4rem, 3.6vw, 1.85rem); margin: 0 0 8px; }
.step-sub { color: var(--text-dim); margin: 0 0 22px; max-width: 640px; }

.opt-grid { display: grid; gap: 12px; }
.opt-grid-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.opt { display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-body {
  display: flex; align-items: center; gap: 14px;
  background: var(--navy-mid); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 15px 17px;
  transition: border-color .15s ease, background .15s ease, transform .08s ease;
}
.opt:hover .opt-body { border-color: var(--blue); background: var(--navy-card); }
.opt.is-selected .opt-body { border-color: var(--amber); background: var(--navy-card); box-shadow: inset 0 0 0 1px var(--amber); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.opt-icon { font-size: 1.55rem; flex: none; }
.opt-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.opt-label { font-weight: 600; color: var(--text); }
.opt-sub { font-size: .84rem; color: var(--text-dim); }
.opt-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; font-size: .74rem; color: var(--text-dim); text-align: right; }
.scope-pill { font-size: .68rem; font-weight: 700; letter-spacing: .3px; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.scope-in { background: var(--green-bg); color: var(--green); }
.scope-out { background: var(--red-bg); color: var(--red); }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }

/* ---------- Results ---------- */
.results { padding: 40px 0; }
.results-head { margin-bottom: 26px; }
.results-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 4px 0 10px; }
.results-sub { color: var(--text-dim); font-size: .95rem; }

.verdict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 30px; }
.vcard {
  background: var(--navy-mid); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px 20px 18px; position: relative; overflow: hidden;
}
.vcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--blue); }
.vcard-in::before { background: var(--green); }
.vcard-out::before { background: var(--red); }
.vcard-mid::before { background: var(--amber); }
.vcard-uncertain::before { background: var(--text-dim); }
.vcard-neutral::before { background: var(--blue); }
.vcard-kicker { text-transform: uppercase; letter-spacing: 1.2px; font-size: .7rem; font-weight: 600; color: var(--text-dim); }
.vcard-headline { display: block; font-size: 1.4rem; font-weight: 700; margin: 6px 0 9px; }
.vcard-in .vcard-headline { color: var(--green); }
.vcard-out .vcard-headline { color: var(--red); }
.vcard-mid .vcard-headline { color: var(--amber); }
.vcard-neutral .vcard-headline { color: var(--amber-soft); }
.vcard-body { font-size: .9rem; color: #cdd8ec; margin: 0; }

.checklist-block {
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin-bottom: 26px;
}
.checklist-block h3 { margin: 0 0 6px; font-size: 1.25rem; }
.checklist-block > p { color: var(--text-dim); margin: 0 0 18px; }
.checklist { list-style: none; counter-reset: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 13px; cursor: pointer; padding: 13px 14px; background: var(--navy); border: 1px solid var(--border); border-radius: 11px; transition: border-color .15s ease; }
.check:hover { border-color: var(--blue); }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--amber); cursor: pointer; }
.check-num { flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--amber-bg); color: var(--amber); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.check-text { flex: 1; font-size: .92rem; color: #dbe4f3; }
.check input:checked ~ .check-text { color: var(--text-dim); text-decoration: line-through; }
.ref-note { font-size: .8rem; color: var(--text-dim); margin: 16px 0 0; }

.cta-block {
  background: linear-gradient(135deg, rgba(26, 95, 180, .22), rgba(232, 160, 32, .12));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.cta-block h3 { margin: 0 0 8px; font-size: 1.2rem; }
.cta-block p { color: #d4deef; margin: 0 0 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Disclaimer ---------- */
.disclaimer { padding: 0 0 30px; }
.disclaimer p { font-size: .82rem; color: var(--text-dim); background: var(--navy-mid); border: 1px solid var(--border); border-left: 4px solid var(--amber); border-radius: 10px; padding: 14px 16px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(13, 31, 60, .6); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 20px; }
.footer-inner p { margin: 0; font-size: .85rem; }
.footer-muted { color: var(--text-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .hero { padding-top: 38px; }
  .opt-grid-tiles { grid-template-columns: 1fr; }
  .opt-meta { align-items: flex-start; text-align: left; }
  .wizard-nav { flex-direction: row; }
  .header-tag { display: none; }
  .cta-actions .btn { width: 100%; text-align: center; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .hero, .wizard, .cta-actions, .skip-link, .progress { display: none !important; }
  .results, .disclaimer { display: block !important; }
  .vcard, .checklist-block, .cta-block, .check, .disclaimer p { background: #fff !important; border-color: #bbb !important; color: #111 !important; box-shadow: none !important; }
  .vcard-headline, .vcard-body, .check-text, .results-head h2, .checklist-block h3 { color: #111 !important; }
  a { color: #111 !important; }
}
