:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #eef3f8;
  --line: rgba(21, 42, 74, 0.12);
  --text: #23354d;
  --muted: #61738c;
  --heading: #0f2340;
  --accent: #17345d;
  --accent-2: #c8a766;
  --success: #1f8a5a;
  --danger: #c0392b;
  --shadow: 0 18px 48px rgba(12, 30, 56, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
code, pre { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
button, input, select, textarea { font: inherit; color: inherit; }

.site-main, .admin-main { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* --- Header --- */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.site-header-inner { max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.brand-group { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; flex-wrap: wrap; }
.brand { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--heading); text-decoration: none; }
.brand span { color: var(--accent-2); }
.header-cobrand { display: inline-flex; align-items: center; background: var(--surface-muted); color: var(--muted); border-radius: 100px; padding: 0.3rem 0.7rem; font-size: 0.72rem; font-weight: 700; text-decoration: none; }
.header-cobrand:hover { background: var(--accent); color: #fff; }
.site-nav { display: flex; gap: 1.35rem; font-size: 0.85rem; font-weight: 700; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--accent); }
.site-header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; gap: 0.35rem; font-size: 0.72rem; font-weight: 800; }
.lang-switch a { padding: 0.3rem 0.5rem; border-radius: 4px; text-decoration: none; color: var(--muted); }
.lang-switch a.active { background: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 860px) {
  .site-nav, .site-header-actions .button-primary { display: none; }
  .nav-toggle { display: block; }
  .site-header-inner.open .site-nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
}

/* --- Buttons --- */
.button-primary, .button-outline, .btn-outline, .btn-text { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 0.85rem; border-radius: 6px; padding: 0.75rem 1.3rem; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: #0f2340; }
.button-primary.dark { background: #0f2340; }
.button-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.button-outline, .btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.button-outline:hover, .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-text { border: none; background: none; color: var(--muted); font-weight: 700; padding: 0.4rem 0.6rem; }
.btn-text:hover { color: var(--danger); }
.text-link { text-decoration: none; font-weight: 700; color: var(--accent); display: inline-block; margin-top: 1rem; }

/* --- Hero / page hero --- */
.hero, .page-hero { padding: 3.5rem 1.5rem 2.5rem; max-width: 1180px; margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; color: var(--accent-2); text-transform: uppercase; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.stamp { background: var(--surface-muted); color: var(--muted); padding: 0.2rem 0.55rem; border-radius: 100px; font-size: 0.68rem; }
.hero h1, .page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 900; letter-spacing: -0.03em; color: var(--heading); margin: 0.6rem 0; }
.hero h1 em, .page-hero h1 em, h2 em { color: var(--accent); font-style: normal; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; gap: 0.85rem; margin: 1.5rem 0; flex-wrap: wrap; }
.hero-benefits { list-style: none; padding: 0; display: flex; gap: 1.25rem; font-size: 0.85rem; font-weight: 700; color: var(--accent); flex-wrap: wrap; }
.hero-card { background: var(--heading); color: #fff; border-radius: 12px; padding: 1.75rem; box-shadow: var(--shadow); }
.hero-card p:first-child { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--accent-2); font-weight: 800; }

/* --- Sections --- */
.section-wrap { max-width: 1180px; margin: 0 auto; padding: 2.75rem 1.5rem; border-top: 1px solid var(--line); }
.section-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; color: var(--accent-2); text-transform: uppercase; margin-bottom: 0.6rem; }
.section-intro { color: var(--muted); max-width: 680px; margin-bottom: 1.75rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; color: var(--heading); margin: 0 0 0.5rem; }

.card-grid { display: grid; gap: 1.25rem; margin-top: 1rem; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.compact .card p { font-size: 0.9rem; }
@media (max-width: 900px) { .card-grid.two, .card-grid.three, .card-grid.four { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.card-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-2); text-transform: uppercase; }
.card h3 { margin: 0.4rem 0 0.5rem; font-size: 1.05rem; color: var(--heading); }
.card-action { display: inline-block; margin-top: 0.75rem; font-weight: 800; font-size: 0.82rem; color: var(--accent); }

.credential-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; padding: 0 0.5rem; border-radius: 8px; background: var(--surface-muted); color: var(--accent); font-weight: 900; font-size: 0.8rem; }
.credential-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.credential-card.wide { padding: 1.75rem; }
.field-note { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.field-list { margin: 0.35rem 0 0; padding-left: 1.1rem; color: var(--text); }
.assurance-note { margin-top: 1rem; font-size: 0.8rem; color: var(--muted); font-style: italic; }
.evidence-rule { margin: 1.75rem 0; font-weight: 700; color: var(--success); }
.usecase-card .tag { font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: none; }
.fallback-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); background: var(--surface-muted); padding: 0.75rem; border-radius: 6px; }

.page-next { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* --- Checklist --- */
.checklist-header { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
.readiness-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.readiness-top { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 800; color: var(--muted); }
.readiness-top b { font-size: 1.5rem; color: var(--heading); }
.score-track { height: 8px; background: var(--surface-muted); border-radius: 100px; margin: 0.75rem 0; overflow: hidden; }
.score-track span { display: block; height: 100%; background: var(--success); transition: width 200ms ease; }
.checklist-board { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; margin-top: 2rem; }
.check-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-index { font-weight: 800; color: var(--accent-2); font-size: 0.8rem; }
.checklist-aside { background: var(--surface-muted); border-radius: 10px; padding: 1.5rem; }
.checklist-aside small { display: block; margin-top: 0.75rem; color: var(--muted); font-size: 0.72rem; }
@media (max-width: 900px) { .checklist-header, .checklist-board { grid-template-columns: 1fr; } }

/* --- Sandbox --- */
.sandbox-stepper { margin-top: 1.5rem; }
.sandbox-step { max-width: 560px; }
.sandbox-card { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; }
.sandbox-card ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.sandbox-controls { display: flex; gap: 0.85rem; margin-top: 1.5rem; }
.design-rule { margin-top: 2rem; background: var(--surface-muted); border-radius: 10px; padding: 1.25rem; font-size: 0.9rem; }

/* --- Assessment --- */
.payment-return { display: flex; gap: 0.6rem; padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.9rem; }
.payment-return.success { background: rgba(31, 138, 90, 0.1); color: var(--success); }
.payment-return.cancelled { background: rgba(192, 57, 43, 0.08); color: var(--danger); }
.assessment-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; }
.assessment-intro { color: var(--muted); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.form-span { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea, .login-form input, .admin-panel textarea { border: 1px solid var(--line); border-radius: 6px; padding: 0.7rem 0.85rem; font-size: 0.95rem; color: var(--text); background: var(--surface); }
.form-grid textarea, .admin-panel textarea { min-height: 7rem; resize: vertical; }
.credential-pick > span { font-size: 0.78rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 0.5rem; }
.credential-pick > div { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.credential-toggle { border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; cursor: pointer; font-size: 0.8rem; min-width: 7rem; }
.credential-toggle input { margin-bottom: 0.2rem; }
.credential-toggle.selected { border-color: var(--accent); background: rgba(23, 52, 93, 0.06); }
.consent-line { display: flex; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); align-items: flex-start; }
.consent-line input { margin-top: 0.2rem; }
.assessment-aside { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; align-self: start; }
.aside-top { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 800; color: var(--accent); margin-bottom: 1rem; }
.assessment-aside ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.assessment-aside ol li { display: flex; gap: 0.75rem; font-size: 0.85rem; }
.assessment-aside ol b { color: var(--accent-2); }
.aside-note { margin-top: 1.25rem; font-size: 0.78rem; color: var(--muted); display: flex; gap: 0.5rem; }
@media (max-width: 900px) { .assessment-grid, .form-grid { grid-template-columns: 1fr; } }

.receipt-shell { max-width: 640px; margin: 0 auto; text-align: center; }
.receipt-check { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(31, 138, 90, 0.12); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1rem; }
.product-grid { display: grid; gap: 1rem; margin: 1.5rem 0; text-align: left; }
.product-card { border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; cursor: pointer; display: flex; flex-direction: column; gap: 0.3rem; }
.product-card input { margin-bottom: 0.4rem; }
.payment-pending { display: flex; gap: 0.75rem; background: var(--surface-muted); border-radius: 8px; padding: 1rem 1.25rem; text-align: left; font-size: 0.85rem; }
.assessment-reset { margin-top: 1rem; background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 3rem; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; font-size: 0.85rem; }
.footer-brand .brand-mark { font-weight: 900; color: var(--heading); }
.footer-brand .brand-mark span { color: var(--accent-2); }
.footer-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-2); text-transform: uppercase; }
.footer-edition { color: var(--muted); margin-top: 0.5rem; }
.cobrand-row { border-top: 1px solid var(--line); padding: 1rem 1.5rem; display: flex; justify-content: space-between; max-width: 1180px; margin: 0 auto; font-size: 0.78rem; }
.cobrand { text-decoration: none; color: var(--muted); }
.cobrand strong { color: var(--accent); }
.admin-link { text-decoration: none; color: var(--muted); }
@media (max-width: 780px) { .site-footer-inner { grid-template-columns: 1fr; } }

/* --- Flash --- */
.flash { padding: 0.85rem 1.25rem; border-radius: 8px; margin: 1rem 1.5rem; max-width: 1180px; margin-inline: auto; font-size: 0.88rem; }
.flash.success { background: rgba(31, 138, 90, 0.1); color: var(--success); }
.flash.error { background: rgba(192, 57, 43, 0.08); color: var(--danger); }

/* --- Login --- */
.login-shell { max-width: 420px; margin: 4rem auto; text-align: center; }
.login-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; margin: 1.5rem 0; }
.login-form label { font-size: 0.8rem; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 0.4rem; }
.login-form input { border: 1px solid var(--line); border-radius: 6px; padding: 0.7rem 0.85rem; }

/* --- Admin --- */
body.admin-body { background: #0d1727; color: #d4dde9; }
.admin-page { max-width: 1300px; margin: 2rem auto; padding: 0 1.5rem 4rem; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.admin-heading h1 { color: #fff; max-width: 640px; }
.admin-heading p { color: #96a7bc; max-width: 620px; }
.kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; color: #d8b779; text-transform: uppercase; }
.admin-back { background: none; border: 1px solid rgba(228, 236, 248, 0.2); color: #d4dde9; border-radius: 6px; padding: 0.6rem 1.1rem; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 0.82rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.metric-card { background: #0f1d31; border: 1px solid rgba(228, 236, 248, 0.1); border-radius: 10px; padding: 1.25rem; text-align: center; }
.metric-card span { font-size: 0.68rem; font-weight: 700; color: #96a7bc; text-transform: uppercase; }
.metric-card strong { display: block; font-size: 1.8rem; margin-top: 0.35rem; color: #fff; }
.admin-panel { background: #0f1d31; border: 1px solid rgba(228, 236, 248, 0.1); border-radius: 10px; margin-bottom: 1.75rem; overflow: hidden; }
.admin-panel.small { padding: 1.5rem; }
.admin-panel.dark { background: #0a1220; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(228, 236, 248, 0.1); flex-wrap: wrap; gap: 1rem; }
.admin-panel-head h2 { font-size: 1.1rem; color: #fff; margin: 0; }
.admin-panel-head p { margin: 0.35rem 0 0; color: #96a7bc; font-size: 0.82rem; }
.list-tools { display: flex; gap: 0.6rem; }
.list-tools select { background: transparent; border: 1px solid rgba(228, 236, 248, 0.2); color: #d4dde9; border-radius: 6px; padding: 0.5rem 0.7rem; font-size: 0.78rem; font-weight: 700; }
.admin-panel-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.admin-panel-body.stacked { display: block; padding: 1.5rem; }
.request-table-wrap { max-height: 480px; overflow: auto; border-right: 1px solid rgba(228, 236, 248, 0.1); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 0.8rem 1.25rem; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: #96a7bc; position: sticky; top: 0; background: #0f1d31; }
.admin-table td { padding: 0.9rem 1.25rem; border-top: 1px solid rgba(228, 236, 248, 0.06); }
.admin-table tr a { text-decoration: none; color: #d4dde9; }
.admin-table tr.active-row { background: rgba(216, 183, 121, 0.08); }
.empty-cell { text-align: center; color: #96a7bc; padding: 2.5rem !important; }
.request-detail { padding: 1.5rem; }
.request-detail h3 { color: #fff; display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; }
.request-detail dl { margin: 1.25rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.request-detail dt { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: #96a7bc; }
.request-detail dd { margin: 0.2rem 0 0; }
.case-history { border-top: 1px solid rgba(228, 236, 248, 0.1); padding-top: 1rem; margin-bottom: 1.25rem; }
.activity-row { border-left: 2px solid #d8b779; padding-left: 0.75rem; margin-top: 0.6rem; font-size: 0.78rem; }
.activity-row span { color: #96a7bc; }
.request-detail form.status-row { display: inline-block; margin: 0.5rem 0.5rem 0 0; }
.request-detail form:first-of-type { margin-bottom: 0.75rem; }
.full { width: 100%; justify-content: center; }
.muted { color: #96a7bc; }
.muted.small { font-size: 0.78rem; }
.badge { display: inline-flex; padding: 0.25rem 0.6rem; border-radius: 100px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; background: rgba(228, 236, 248, 0.1); }
.badge-new, .badge-checkout_open, .badge-started { color: #e0a94a; background: rgba(224, 169, 74, 0.14); }
.badge-qualified { color: #6ab3e6; background: rgba(106, 179, 230, 0.14); }
.badge-in_review { color: #b28fe6; background: rgba(178, 143, 230, 0.14); }
.badge-paid { color: #45c2b1; background: rgba(69, 194, 177, 0.14); }
.badge-completed, .badge-fulfilled { color: #4ac28b; background: rgba(74, 194, 139, 0.14); }
.badge-closed { color: #96a7bc; }
.badge-cancelled, .badge-failed { color: #ff9191; background: rgba(255, 145, 145, 0.14); }
.badge-outline { border: 1px solid rgba(216, 183, 121, 0.3); background: rgba(216, 183, 121, 0.1); color: #d8b779; padding: 0.4rem 0.75rem; border-radius: 100px; font-size: 0.68rem; font-weight: 800; }
.admin-grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.75rem; }
.admin-side-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.admin-side-stack dl { margin-top: 1rem; }
.admin-side-stack dt { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: #96a7bc; }
.admin-side-stack dd { margin: 0.15rem 0 0.85rem; font-weight: 700; }
.form-actions { margin-top: 1rem; }
.review-output { margin-top: 1.5rem; border-top: 1px solid rgba(228, 236, 248, 0.1); padding-top: 1.25rem; }
.review-output pre { white-space: pre-wrap; font-family: inherit; font-size: 0.88rem; line-height: 1.6; }
@media (max-width: 980px) { .admin-panel-body, .admin-grid-2, .metrics-grid { grid-template-columns: 1fr; } .request-table-wrap { border-right: none; border-bottom: 1px solid rgba(228, 236, 248, 0.1); } }
