/* aicost.ai — Cost Intelligence design system */
:root {
  --ink: #1d1d1f;      /* Apple primary text */
  --ink-2: #424245;    /* Apple secondary text */
  --muted: #6e6e73;    /* Apple muted text */
  --page-bg: #f5f5f7;  /* Apple off-white — body/page background */
  --bg: #ffffff;       /* Pure white — cards, surfaces */
  --bg-alt: #fbfbfd;   /* Apple secondary surface — alt sections, hover rows */
  --bg-dark: #1d1d1f;
  --border: #d2d2d7;   /* Apple hairline */
  --accent: #00b894;
  --accent-dark: #008d71;
  --warn: #ff7f50;
  --gold: #d4af37;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.08);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --mono: "SF Mono", Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mt-lg { margin-top: 2rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--accent); font-family: var(--mono); margin-right: 2px; }
.logo-tld { color: var(--muted); font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--accent-dark); text-decoration: none; }
.network-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 8px 0; font-size: .82rem; color: var(--muted); }
.network-bar a { color: var(--ink-2); margin: 0 4px; }
.network-label { margin-right: 8px; }

/* Buttons */
.btn { display: inline-block; padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: all .15s; border: 2px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Hero */
.hero { padding: 80px 0 60px; background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.page-hero { padding: 70px 0 40px; background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.hero-eyebrow { font-family: var(--mono); font-size: .8rem; color: var(--accent-dark); letter-spacing: .08em; font-weight: 600; margin-bottom: 16px; }
.hero-headline, .page-hero h1 { max-width: 900px; }
.accent { color: var(--accent); }
.hero-sub, .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 760px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 20px 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.proof-item { font-size: .9rem; color: var(--muted); }
.proof-item strong { color: var(--ink); }

/* Section */
.section { padding: 70px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 40px; font-size: 1.05rem; }

/* Differentiator grid */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.diff-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: all .2s; }
.diff-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.diff-num { font-family: var(--mono); font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.inline-link { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .9rem; }

/* Sizing table */
.sizing-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.sizing-row { display: grid; grid-template-columns: 1fr 1.4fr 1.8fr; border-bottom: 1px solid var(--border); }
.sizing-row:last-child { border-bottom: 0; }
.sizing-row > div { padding: 16px 20px; font-size: .95rem; }
.sizing-row.header { background: var(--ink); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; }
.sizing-row.header > div { color: #fff; }
.sz-label { font-weight: 600; background: var(--bg-alt); }
.sz-vendor { color: var(--muted); }
.sz-ours { color: var(--ink); }

/* Network grid */
.network-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.net-card { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; color: var(--ink); text-decoration: none; transition: all .2s; }
.net-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent); }
.net-card.highlight { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; border-color: var(--ink); }
.net-card.highlight h3, .net-card.highlight .net-stat { color: #fff; }
.net-stat { font-family: var(--mono); font-size: .85rem; color: var(--accent-dark); margin-bottom: 10px; font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }

/* Approach steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.step-num { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }

/* Decision blocks */
.decision-block { background: var(--bg); border-left: 4px solid var(--accent); padding: 20px 24px; margin-bottom: 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.decision-block h3 { color: var(--ink); margin-bottom: 8px; }

/* Tool chips */
.tool-category { margin-bottom: 28px; }
.tool-category h3 { margin-bottom: 14px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 14px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 100px; font-size: .88rem; color: var(--ink-2); }

/* Cost dimensions */
.dim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dim-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.dim-card ul { padding-left: 20px; color: var(--ink-2); }
.dim-card li { margin-bottom: 4px; }
.dim-icon { font-size: 2rem; width: 54px; height: 54px; border-radius: 12px; background: var(--bg-alt); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.dim-financial .dim-icon { background: #e8f7f1; }
.dim-security .dim-icon { background: #fef0e8; }
.dim-compliance .dim-icon { background: #edf1f9; }
.dim-privacy .dim-icon { background: #f3e8ff; }
.dim-reputation .dim-icon { background: #fdf6e3; }
.dim-typical { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }

/* Weight table */
.weight-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.weight-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.weight-row:last-child { border-bottom: 0; }
.weight-row > div { padding: 14px 18px; font-size: .92rem; }
.weight-row.weight-header { background: var(--ink); color: #fff; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; }
.weight-row.weight-header > div { color: #fff; }
.w-label { font-weight: 600; background: var(--bg-alt); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.service-card.featured { border-color: var(--accent); box-shadow: 0 6px 24px rgba(0,184,148,.15); position: relative; }
.svc-tier { font-family: var(--mono); font-size: .78rem; color: var(--accent-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.svc-price { font-size: 2rem; font-weight: 700; color: var(--ink); margin: 8px 0 4px; }
.svc-price .per { font-size: .9rem; color: var(--muted); font-weight: 500; }
.svc-duration { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.svc-intro { font-size: .95rem; margin-bottom: 14px; }
.service-card h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.service-card ul { padding-left: 20px; font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.service-card li { margin-bottom: 5px; }
.svc-fit { background: var(--bg-alt); padding: 10px 14px; border-radius: 8px; font-size: .88rem; margin-bottom: 16px; margin-top: auto; }
.service-card .btn { text-align: center; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.team-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.team-title { color: var(--accent-dark); font-weight: 600; margin-bottom: 14px; }
.team-credentials { padding-left: 20px; color: var(--ink-2); font-size: .92rem; }
.team-credentials li { margin-bottom: 5px; }

/* Contact */
.contact-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); max-width: 900px; margin: 0 auto; }
.contact-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.contact-option { text-align: center; }
.contact-option h4 { margin-bottom: 8px; }
.contact-option p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }

/* Local / SoCal */
.socal-hero { background: linear-gradient(135deg, #e8f7f1 0%, var(--bg) 60%); }
.local-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.local-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.vertical-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.vert-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.vert-card h4 { color: var(--accent-dark); margin-bottom: 6px; }
.vert-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.engagement-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.eng-step { text-align: center; }
.eng-num { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; color: var(--accent); background: var(--bg-alt); width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }

/* Ask page */
.ask-frame { max-width: 900px; margin: 0 auto 40px; }
.ask-examples { max-width: 900px; margin: 0 auto; }
.ask-examples h3 { margin-bottom: 14px; }
.example-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.example-chip { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 100px; padding: 10px 18px; font-size: .88rem; color: var(--ink-2); cursor: pointer; font-family: inherit; transition: all .15s; }
.example-chip:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 60px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-tag { font-size: .95rem; margin-bottom: 10px; }
.footer-small { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); padding: 4px 0; font-size: .9rem; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Mobile */
@media (max-width: 860px) {
  .main-nav { gap: 12px; }
  .main-nav a:not(.btn) { display: none; }
  .sizing-row, .weight-row { grid-template-columns: 1fr; }
  .sizing-row.header { display: none; }
  .sizing-row > div, .weight-row > div { padding: 10px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .hero, .page-hero, .section { padding: 50px 0; }
}

/* ================= WIZARD ================= */
.wiz-hero { padding: 60px 0 30px; background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.wiz-section { padding: 30px 0 60px; }

.wizard { max-width: 820px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }

.wiz-progress { height: 6px; background: var(--bg-alt); border-radius: 100px; overflow: hidden; margin-bottom: 8px; }
.wiz-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%); transition: width .3s; }
.wiz-progress-label { font-family: var(--mono); font-size: .8rem; color: var(--muted); text-align: right; margin-bottom: 30px; }

.wiz-step { display: none; }
.wiz-step.active { display: block; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.wiz-step h2 { font-size: 1.6rem; margin-bottom: 4px; }
.wiz-sub { color: var(--muted); margin-bottom: 24px; font-size: .98rem; }
.wiz-small { font-size: .82rem; color: var(--muted); margin-top: 14px; }

.field { margin-bottom: 24px; }
.field > label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--ink); font-size: .95rem; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.option-grid.vertical { grid-template-columns: 1fr; }
.opt { display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; padding: 11px 14px; background: var(--bg); border: 2px solid var(--border); border-radius: 8px; text-align: center; font-size: .92rem; color: var(--ink-2); transition: all .15s; }
.opt:hover span { border-color: var(--accent); }
.opt input:checked + span { border-color: var(--accent); background: #e8f7f1; color: var(--accent-dark); font-weight: 600; }
.opt.big span { text-align: left; padding: 16px 18px; font-size: .95rem; }
.opt.big span strong { display: block; margin-bottom: 2px; }

.select, .input { width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: .95rem; font-family: inherit; color: var(--ink); background: var(--bg); }
.select:focus, .input:focus { outline: none; border-color: var(--accent); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-grid.large .chip-opt { padding: 12px 16px; }
.chip-opt { padding: 9px 16px; background: var(--bg); border: 2px solid var(--border); border-radius: 100px; font-size: .9rem; color: var(--ink-2); cursor: pointer; transition: all .15s; user-select: none; }
.chip-opt:hover { border-color: var(--accent); }
.chip-opt.selected { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.priority-list { display: flex; flex-direction: column; gap: 10px; }
.priority-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--bg); border: 2px solid var(--border); border-radius: 10px; cursor: grab; transition: all .15s; }
.priority-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.priority-item.dragging { opacity: .4; cursor: grabbing; }
.prio-handle { color: var(--muted); font-weight: 700; letter-spacing: -2px; }
.prio-num { font-family: var(--mono); font-weight: 700; color: var(--accent); width: 28px; height: 28px; background: #e8f7f1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.prio-label { flex: 1; font-size: .95rem; }
.prio-label strong { display: block; color: var(--ink); }
.prio-label span { color: var(--muted); font-size: .85rem; }

.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ================= WIZARD RESULTS ================= */
.results-wrapper { }
.results-header { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.results-score { text-align: center; padding: 24px 30px; border-radius: var(--radius-lg); }
.results-score.score-high { background: linear-gradient(135deg, #00b894 0%, #008d71 100%); color: #fff; }
.results-score.score-mid { background: linear-gradient(135deg, #ffb142 0%, #d68910 100%); color: #fff; }
.results-score.score-low { background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 100%); color: #fff; }
.score-big { font-size: 3.2rem; font-weight: 800; line-height: 1; font-family: var(--mono); }
.score-lbl { font-size: .85rem; margin-top: 4px; opacity: .92; text-transform: uppercase; letter-spacing: .06em; }
.results-summary h2 { margin-bottom: 6px; }
.results-summary p { color: var(--muted); margin-bottom: 16px; }
.results-savings { display: flex; gap: 12px; flex-wrap: wrap; }
.savings-card { background: var(--bg-alt); padding: 14px 18px; border-radius: 10px; border: 1px solid var(--border); }
.savings-val { font-size: 1.25rem; font-weight: 700; color: var(--ink); font-family: var(--mono); line-height: 1.2; }
.savings-val span { font-size: .8rem; color: var(--muted); font-family: var(--font); }
.savings-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.results-section { margin-bottom: 40px; }
.results-section h3 { font-size: 1.25rem; margin-bottom: 4px; }
.section-lead { color: var(--muted); margin-bottom: 18px; font-size: .95rem; }

.dim-table { display: flex; flex-direction: column; gap: 10px; }
.dim-row { display: grid; grid-template-columns: 140px 1fr 40px; align-items: center; gap: 12px; }
.dim-row-label { font-weight: 600; font-size: .95rem; }
.dim-row-bar { height: 10px; background: var(--bg-alt); border-radius: 100px; overflow: hidden; }
.dim-row-fill { height: 100%; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%); transition: width .5s; }
.dim-row-val { font-family: var(--mono); font-weight: 700; color: var(--ink); text-align: right; }

.actions-list { display: flex; flex-direction: column; gap: 12px; }
.action-card { display: flex; gap: 16px; padding: 18px; background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
.action-num { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--accent); min-width: 28px; }
.action-body { flex: 1; }
.action-meta { display: flex; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.action-dim { font-size: .72rem; padding: 3px 8px; border-radius: 100px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.action-dim-financial { background: #e8f7f1; color: #008d71; }
.action-dim-security { background: #fef0e8; color: #d35400; }
.action-dim-compliance { background: #edf1f9; color: #2c3e50; }
.action-dim-privacy { background: #f3e8ff; color: #6c3483; }
.action-dim-reputational { background: #fdf6e3; color: #b7950b; }
.action-effort { font-size: .72rem; padding: 3px 8px; border-radius: 100px; background: var(--bg-alt); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.action-body p { margin: 0; font-size: .95rem; color: var(--ink-2); }

.rationale-list { padding-left: 20px; color: var(--ink-2); margin-bottom: 20px; }
.rationale-list li { margin-bottom: 6px; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tool-card { display: block; padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--ink); text-decoration: none; transition: all .15s; }
.tool-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tool-name { font-weight: 700; margin-bottom: 4px; }
.tool-meta { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.tool-link { font-size: .82rem; color: var(--accent-dark); font-weight: 600; }

.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.guide-card { display: block; padding: 14px 16px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; color: var(--ink); text-decoration: none; transition: all .15s; }
.guide-card:hover { background: #e8f7f1; border-color: var(--accent); text-decoration: none; }
.guide-title { font-weight: 600; margin-bottom: 4px; font-size: .92rem; }
.guide-meta { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.results-cta { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; border-radius: var(--radius-lg); padding: 36px; margin: 40px 0 30px; }
.cta-inner h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.cta-eyebrow { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .08em; font-weight: 700; margin-bottom: 10px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.results-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }
.results-cta .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.results-footer { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); }
.results-small { font-size: .82rem; color: var(--muted); margin: 0; flex: 1; min-width: 280px; }

.spinner { width: 40px; height: 40px; border: 3px solid var(--bg-alt); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 40px auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .wizard { padding: 24px; }
  .results-header { grid-template-columns: 1fr; text-align: center; }
  .dim-row { grid-template-columns: 100px 1fr 36px; font-size: .88rem; }
  .tools-grid, .guides-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .wiz-nav, .results-footer button, .results-footer a { display: none !important; }
  .wizard { box-shadow: none; border: 0; padding: 0; }
  .results-cta { background: var(--bg-alt); color: var(--ink); }
  .cta-inner h3, .cta-inner p { color: var(--ink); }
}

/* ================= PER-STEP INSIGHT CARDS ================= */
.step-insight-card { background: linear-gradient(135deg, #f0fdf7 0%, #e8f7f1 100%); border: 1px solid #b6e6d1; border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 28px; animation: slideDown .3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.sic-header { margin-bottom: 10px; }
.sic-badge { font-family: var(--mono); font-size: .72rem; color: var(--accent-dark); background: #fff; padding: 4px 10px; border-radius: 100px; letter-spacing: .04em; font-weight: 700; text-transform: uppercase; border: 1px solid var(--accent); }
.sic-snippet { font-size: .95rem; color: var(--ink-2); margin-bottom: 14px; line-height: 1.55; }
.sic-snippet p { margin: 0 0 .6em; }
.sic-snippet a { color: var(--accent-dark); font-weight: 600; }
.sic-snippet ul { margin: .4em 0 .6em; padding-left: 20px; }
.sic-section { margin-top: 12px; }
.sic-lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.mini-guides { display: flex; flex-direction: column; gap: 6px; }
.mini-guide { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: .88rem; transition: all .15s; }
.mini-guide:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; transform: translateX(2px); }
.mg-icon { flex-shrink: 0; }
.mini-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; }
.mini-tool { display: block; padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .82rem; transition: all .15s; }
.mini-tool:hover { border-color: var(--accent); text-decoration: none; }
.mt-name { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.mt-desc { font-size: .75rem; color: var(--muted); line-height: 1.3; }

.sic-gate { background: #fff; border: 2px dashed var(--accent); border-radius: 10px; padding: 16px; margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.gate-header { flex: 1; }
.gate-ribbon { display: inline-block; font-family: var(--mono); font-size: .68rem; color: #fff; background: var(--accent); padding: 3px 8px; border-radius: 3px; letter-spacing: .08em; font-weight: 700; margin-bottom: 6px; }
.sic-gate h4 { margin: 4px 0; font-size: 1rem; }
.sic-gate p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ================= GATE MODAL ================= */
.gate-modal-overlay { position: fixed; inset: 0; background: rgba(10,22,40,.7); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s; }
.gate-modal { background: #fff; border-radius: var(--radius-lg); padding: 32px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); position: relative; }
.gate-modal h3 { margin: 0 0 8px; }
.gate-small { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.gate-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.gate-close:hover { background: var(--bg-alt); color: var(--ink); }
.gate-form { display: flex; flex-direction: column; gap: 10px; }
.gate-status { margin-top: 10px; min-height: 24px; font-size: .9rem; }
.gate-ok { color: var(--accent-dark); font-weight: 600; }
.gate-err { color: var(--warn); font-weight: 600; }

/* ================= RESULTS: NARRATIVE ================= */
.narrative-section { background: var(--bg-alt); padding: 28px; border-radius: var(--radius-lg); }
.narrative-body { font-size: .95rem; line-height: 1.7; color: var(--ink); }
.narrative-body h3 { margin-top: 20px; margin-bottom: 6px; font-size: 1.15rem; color: var(--ink); }
.narrative-body h4 { margin-top: 16px; margin-bottom: 4px; font-size: 1rem; color: var(--ink); }
.narrative-body ul { padding-left: 22px; margin: .5em 0 1em; }
.narrative-body li { margin-bottom: 4px; }
.narrative-body strong { color: var(--ink); }
.narrative-source { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); font-style: italic; }

/* Results premium grid */
.premium-section { background: linear-gradient(135deg, #fdf6e3 0%, #faf3d8 100%); padding: 28px; border-radius: var(--radius-lg); border: 1px solid #ecd77d; }
.premium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.premium-card { background: #fff; padding: 18px; border-radius: 10px; border: 1px solid var(--border); text-align: center; }
.premium-ribbon { display: inline-block; font-family: var(--mono); font-size: .68rem; color: #fff; background: var(--gold); padding: 3px 8px; border-radius: 3px; letter-spacing: .08em; font-weight: 700; margin-bottom: 8px; }
.premium-card h4 { font-size: .92rem; margin: 6px 0 12px; min-height: 2.6em; }

@media (max-width: 520px) {
  .sic-gate { flex-direction: column; align-items: stretch; }
  .gate-modal { padding: 24px; }
}
