/* NGAI Proposal — styles (light primary + dark) */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --bg-2: #f5f3ee;
  --bg-3: #edeae1;
  --surface: #ffffff;
  --ink: #0a1f44;
  --ink-2: #1a3666;
  --ink-dim: #4a5e72;
  --muted: #8a9aa9;
  --line: rgba(10, 31, 68, 0.08);
  --line-strong: rgba(10, 31, 68, 0.18);
  --accent: #1A8EB0;
  --accent-strong: #0a6f8e;
  --accent-bright: #2dd4ff;
  --accent-soft: rgba(45, 212, 255, 0.10);

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --shell-pad: clamp(20px, 4vw, 56px);
}

body.dark {
  --bg: #0a1f2e;
  --bg-2: #07182a;
  --bg-3: #051422;
  --surface: #0f2838;
  --ink: #e6eef6;
  --ink-2: #c6d2dc;
  --ink-dim: #b6c7d5;
  --muted: #7d97ad;
  --line: rgba(199, 220, 235, 0.10);
  --line-strong: rgba(199, 220, 235, 0.22);
  --accent: #5cd9ff;
  --accent-strong: #2dd4ff;
  --accent-bright: #2dd4ff;
  --accent-soft: rgba(45, 212, 255, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.shell { max-width: 1440px; margin: 0 auto; padding-left: var(--shell-pad); padding-right: var(--shell-pad); }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav-logo { height: 44px; display: block; }
.nav-meta { display: flex; align-items: center; gap: 10px; }
.nav-icon-btn { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: border-color 120ms ease, color 120ms ease; }
.nav-icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── HEADER ── */
.proposal-head { padding: clamp(40px, 5vw, 70px) 0 clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.proposal-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.proposal-eyebrow .pill { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.proposal-client { font-family: var(--display); font-size: clamp(32px, 5vw, 64px); letter-spacing: -0.025em; font-weight: 500; line-height: 1.0; margin: 18px 0 6px; text-wrap: balance; word-break: break-word; }
.editable { outline: none; border-bottom: 2px dashed transparent; transition: border-color 120ms ease, background 120ms ease; padding: 0 4px; margin: 0 -4px; border-radius: 4px; }
.editable:hover, .editable:focus { border-color: var(--accent); background: var(--accent-soft); }
.proposal-client-sub { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.proposal-meta-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.proposal-meta-item .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.proposal-meta-item .v { font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; margin-top: 6px; }

/* ── INTRO ── */
.intro-explain { padding: clamp(20px, 3vw, 36px) 0 clamp(16px, 2.5vw, 28px); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.intro-explain-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 880px) { .intro-explain-inner { grid-template-columns: 1fr; gap: 14px; } }
.intro-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.intro-title { font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.015em; font-weight: 500; margin: 10px 0 0; line-height: 1.2; text-wrap: balance; max-width: 24ch; }
.intro-body { font-size: clamp(13.5px, 1.05vw, 15px); color: var(--ink-dim); line-height: 1.6; margin: 0; text-wrap: pretty; max-width: 62ch; }

/* ── POSITIONING ── */
.positioning { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; border-bottom: 1px solid var(--line); }
@media (max-width: 980px) { .positioning { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 32px; align-items: start; } }
.positioning h2 { font-family: var(--display); font-size: clamp(22px, 3vw, 38px); letter-spacing: -0.02em; font-weight: 500; margin: 0 0 14px; line-height: 1.1; text-wrap: balance; word-break: break-word; }
.positioning h2 .editable, .positioning .sub .editable, .positioning .pull .editable { display: inline; }
.positioning .sub { font-size: clamp(14px, 1.2vw, 16px); color: var(--ink-dim); line-height: 1.55; margin: 0; text-wrap: pretty; max-width: 62ch; }
.positioning .pull { background: var(--bg-2); border-left: 3px solid var(--accent); padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 24px); border-radius: 0 var(--r) var(--r) 0; font-style: italic; font-family: var(--display); font-size: clamp(13px, 1.2vw, 15px); color: var(--ink); line-height: 1.45; text-wrap: pretty; }

/* ── BUILD LAYOUT (2 columns) ── */
.build-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 16px 0 60px; }
@media (max-width: 1100px) { .build-layout { grid-template-columns: 1fr; gap: 24px; } }
.build-main { min-width: 0; }
.build-side { min-width: 0; }
@media (min-width: 1101px) { .build-side .totals { position: sticky; top: 92px; } }

/* ── COMMON section header ── */
.section-block { padding: 36px 0 24px; border-top: 1px solid var(--line); }
.section-block:first-of-type { border-top: 0; padding-top: 16px; }
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
.section-title { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; font-weight: 500; margin: 14px 0 10px; text-wrap: balance; }
.section-sub { color: var(--ink-dim); font-size: 15px; max-width: 60ch; margin: 0 0 24px; }

/* ── CORE card ── */
.core-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 28px 30px; box-shadow: 0 12px 32px -16px rgba(10, 31, 68, 0.15); }
.core-head h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.015em; font-weight: 500; margin: 0 0 22px; }
.core-prices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 26px; }
@media (max-width: 720px) { .core-prices { grid-template-columns: 1fr; } }
.core-price { background: var(--surface); padding: 18px 20px; }
.core-price .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.core-price .v { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; font-weight: 500; margin-top: 6px; }
.core-price .v .suffix { font-size: 14px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.core-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .core-columns { grid-template-columns: 1fr; gap: 16px; } }
.core-columns h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.core-columns ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.core-columns li { font-size: 14px; color: var(--ink-dim); padding-left: 20px; position: relative; line-height: 1.45; }
.core-columns li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.core-note { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.5; }

.core-summary {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
  font-style: italic;
}

/* Order fulfilment workflow */
.core-fulfilment {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.cf-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cf-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 980px) { .cf-stages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cf-stages { grid-template-columns: 1fr; } }
.cf-stage {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  position: relative;
}
.cf-stage-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.cf-stage-h {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
  color: var(--ink);
}
.cf-stage-b {
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.4;
}

/* Commission "how it's calculated" */
.core-commission-info {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.cci-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.cci-body { font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; }
.cci-body strong { color: var(--ink); }
.cci-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cci-chip {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-dim);
  background: var(--surface);
}

/* Not-included collapsible */
.core-not-included { margin-top: 18px; }
.cni-toggle {
  background: transparent; border: 0;
  padding: 8px 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.cni-toggle:hover { color: var(--ink); }
.cni-list {
  padding: 8px 0 0; margin: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
@media (max-width: 720px) { .cni-list { grid-template-columns: 1fr; } }
.cni-list li {
  font-size: 12.5px; color: var(--muted);
  padding-left: 16px; position: relative; line-height: 1.4;
}
.cni-list li::before { content: '−'; position: absolute; left: 0; color: var(--muted); }

.core-product-rule {
  margin-top: 18px; padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.core-product-rule strong { color: var(--ink); }

/* Marketing — ad split */
.mk-adsplit {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.mk-adsplit-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.mk-adsplit-rows { display: grid; gap: 6px; }
.mk-adsplit-row {
  display: flex; justify-content: space-between;
  font-size: 13px;
}
.mk-adsplit-area { color: var(--ink-dim); }
.mk-adsplit-amt { font-family: var(--display); font-weight: 500; color: var(--ink); }

/* Marketing — pre-launch offer */
.mk-prelaunch {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.mk-prelaunch-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.mk-prelaunch-body {
  display: flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap;
}
.mk-prelaunch-pct {
  font-family: var(--display);
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.mk-prelaunch-pct-alt { color: var(--muted); font-size: 22px; }
.mk-prelaunch-text { color: var(--ink-dim); font-size: 13.5px; line-height: 1.45; flex: 1 1 200px; }
/* Software integration fee block */
.sw-integration {
  margin: 0 0 12px;
  padding: 8px 0 0;
  border-top: 1px dashed var(--line);
  display: grid; gap: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
}
.sw-int-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sw-int-k { color: var(--muted); letter-spacing: 0.04em; }
.sw-int-v { color: var(--ink); font-weight: 600; }
.sw-int-discount .sw-int-v { color: var(--accent); }
.sw-int-payable { padding-top: 4px; border-top: 1px solid var(--line); }
.sw-int-payable .sw-int-k { color: var(--ink); font-weight: 600; }
.sw-int-payable .sw-int-v { color: var(--ink); font-weight: 700; }

/* Compact integration fee — single line */
.sw-integration-compact {
  margin: 0 0 12px;
  padding: 6px 10px;
  background: var(--accent-soft);
  border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  align-self: flex-start;
}
.sw-int-strike { color: var(--muted); text-decoration: line-through; }
.sw-int-arrow { color: var(--muted); }
.sw-int-payable-v { color: var(--accent); font-weight: 700; }

/* Marketing — see-all and "more" indicator */
.mk-seeall {
  margin-top: 18px;
  background: transparent; border: 1px solid var(--line-strong);
  padding: 9px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); cursor: pointer;
  transition: all 120ms ease;
}
.mk-seeall:hover { border-color: var(--accent); color: var(--accent); }
.mk-more { font-family: var(--mono); font-size: 11px; color: var(--accent); padding-left: 16px; }
.mk-more::before { content: '' !important; }
.mk-adspend-options.compact { grid-template-columns: 1fr; gap: 6px; }
.mk-adspend-options.compact .mk-ad-btn { padding: 8px 12px; }
.mk-adspend-options.compact .mk-ad-v { font-size: 15px; }

/* Addon integration micro-line */
.addon-price { display: flex; flex-direction: column; gap: 3px; }
.addon-int {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}
.addon-int-strike { color: var(--accent); margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line); }
.addon-custom {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding: 4px 0;
}

/* Meta support inside marketing card */
.mk-meta-support {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.mk-meta-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.mk-meta-summary { font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; margin: 0 0 14px; }
.mk-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 720px) { .mk-meta-grid { grid-template-columns: 1fr; } }
.mk-meta-item { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.mk-meta-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.mk-meta-v { font-size: 12px; color: var(--ink-dim); line-height: 1.45; }
.mk-meta-limits { padding-top: 12px; border-top: 1px dashed var(--line); }
.mk-meta-limits-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mk-meta-limits ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.mk-meta-limits li { font-size: 11.5px; color: var(--muted); padding-left: 14px; position: relative; line-height: 1.4; }
.mk-meta-limits li::before { content: '−'; position: absolute; left: 0; }

/* Product content extras */
.pce-block { margin-top: 28px; }
.pce-toggle {
  background: transparent; border: 1px dashed var(--line-strong);
  padding: 10px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); cursor: pointer;
}
.pce-toggle:hover { border-color: var(--accent); color: var(--accent); }
.pce-card {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.pce-sub { font-size: 12.5px; color: var(--ink-dim); margin: 0 0 14px; line-height: 1.5; }
.pce-list { display: grid; gap: 8px; }
.pce-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 120px 80px;
  gap: 12px; align-items: center;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
@media (max-width: 720px) {
  .pce-row { grid-template-columns: 1fr 110px; grid-template-rows: auto auto; }
  .pce-row .pce-price { grid-column: 1; grid-row: 2; }
  .pce-row .pce-line { grid-column: 2; grid-row: 2; text-align: right; }
}
.pce-name { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.pce-price { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pce-qty { display: inline-flex; align-items: center; gap: 6px; }
.pce-qty button {
  width: 26px; height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 14px;
  cursor: pointer;
}
.pce-qty button:hover { border-color: var(--accent); color: var(--accent); }
.pce-qty input {
  width: 50px; padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface); color: var(--ink);
  font-family: var(--mono); font-size: 13px;
  text-align: center; outline: none;
}
.pce-line { font-family: var(--display); font-size: 14px; font-weight: 500; text-align: right; color: var(--ink); }

/* Totals — integration row */
.totals-row-int { font-size: 11.5px; color: var(--muted); padding: 4px 0; }
.totals-row-int .label { padding-left: 10px; }
.totals-note {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.45;
}
.totals-note strong { color: var(--accent); }

/* Totals timing toggle */
.totals-timing {
  display: flex; gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--bg-2);
  border-radius: var(--r);
  border: 1px solid var(--line);
}
.tt-opt {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 2px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease;
}
.tt-opt.on { background: var(--surface); box-shadow: 0 1px 3px rgba(10,31,68,0.08); }
.tt-k {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.tt-opt.on .tt-k { color: var(--ink); }
.tt-v {
  font-family: var(--display); font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-dim);
}
.tt-opt.on .tt-v { color: var(--accent); }

.mk-prelaunch-note { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.45; }

.mk-prelaunch-headline {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin: 0 0 8px;
  line-height: 1.3;
}

/* GDPR consent block inside marketing */
.mk-gdpr {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
}
.mk-gdpr-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.mk-gdpr-body { font-size: 12.5px; color: var(--ink-dim); line-height: 1.55; margin: 0; }

/* "No Software" card needs tagline to wrap */
.software-card.software-none .sw-tagline {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink-dim);
  white-space: normal;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  min-height: auto;
  margin-top: 6px;
}

/* Marketing — legal disclaimer */
.mk-legal {
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.3);
  border-radius: var(--r);
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.5;
  color: var(--ink-dim);
}
.mk-legal strong {
  color: #c2410c;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  flex: 0 0 auto;
}
body.dark .mk-legal { background: rgba(251, 146, 60, 0.06); border-color: rgba(251, 146, 60, 0.3); }
body.dark .mk-legal strong { color: #fb923c; }

/* ── SOFTWARE cards ── */
.software-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1200px) { .software-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .software-grid { grid-template-columns: 1fr; } }
.software-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px 18px; display: flex; flex-direction: column; position: relative; cursor: pointer; transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease; min-height: 320px; }
.software-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 36px -20px rgba(45, 212, 255, 0.28); }
.software-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), 0 14px 32px -18px rgba(45, 212, 255, 0.30); }
.software-card.recommended { background: linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%); }
.software-card.software-none { background: var(--bg-2); border-style: dashed; min-height: 180px; }
.software-card.software-none.selected { border-style: solid; background: var(--accent-soft); }
.sw-clickhint { position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; transition: all 180ms ease; }
.software-card:hover .sw-clickhint, .software-card.selected .sw-clickhint { background: var(--accent); color: var(--bg); }
body.light .software-card:hover .sw-clickhint, body.light .software-card.selected .sw-clickhint { background: var(--ink); color: white; }
.sw-ribbon { position: absolute; top: 0; right: 14px; transform: translateY(-50%); background: var(--ink); color: var(--bg); padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
body.dark .sw-ribbon { background: var(--accent-bright); color: #051421; }
.sw-name { font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; font-weight: 500; margin-top: 10px; }
.sw-tagline { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--muted); margin-top: 4px; min-height: 14px; }
.sw-price { font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 14px 0 2px; }
.sw-price .prefix { font-size: 13px; color: var(--muted); font-weight: 400; }
.sw-price .suffix { font-size: 12px; color: var(--muted); font-weight: 400; }
.sw-employees { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--ink-dim); margin-bottom: 14px; }
.sw-includes, .sw-not-included { margin-bottom: 12px; }
.sw-includes h5, .sw-not-included h5 { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.sw-includes ul, .sw-not-included ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; }
.sw-includes li { padding-left: 14px; position: relative; color: var(--ink-dim); line-height: 1.35; }
.sw-includes li::before { content: '+'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.sw-not-included li { padding-left: 14px; position: relative; color: var(--muted); line-height: 1.35; }
.sw-not-included li::before { content: '−'; position: absolute; left: 0; color: var(--muted); font-weight: 600; }
.sw-select { margin-top: auto; padding: 10px 14px; border: 1px solid var(--accent); background: transparent; border-radius: 999px; color: var(--accent); font-weight: 600; font-size: 12px; cursor: pointer; transition: all 150ms ease; }
.sw-seeall {
  background: transparent; border: 0;
  padding: 6px 0 12px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sw-seeall:hover { color: var(--ink); }
.software-card:hover .sw-select { background: var(--ink); color: var(--bg); border-color: var(--ink); }
body.dark .software-card:hover .sw-select { background: var(--accent); color: #051421; border-color: var(--accent); }
.software-card.selected .sw-select { background: var(--accent); color: var(--bg); border-color: var(--accent); }
body.light .software-card.selected .sw-select { background: var(--ink); color: white; border-color: var(--ink); }

/* ── MARKETING ── */
.marketing-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 28px; transition: border-color 200ms ease, background 200ms ease; }
.marketing-card.on { border-color: var(--accent); background: linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%); }
.mk-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mk-toggle { display: inline-flex; align-items: center; gap: 14px; background: transparent; border: 1px solid var(--line-strong); padding: 10px 18px 10px 8px; border-radius: 999px; color: var(--ink); font-weight: 600; }
.mk-toggle .mk-knob { width: 36px; height: 22px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-strong); position: relative; transition: background 180ms ease, border-color 180ms ease; }
.mk-toggle .mk-knob::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 180ms ease, background 180ms ease; }
.mk-toggle.on { border-color: var(--accent); color: var(--accent); }
.mk-toggle.on .mk-knob { background: var(--accent); border-color: var(--accent); }
.mk-toggle.on .mk-knob::after { transform: translateX(14px); background: var(--bg); }
.mk-price { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.mk-price .suffix { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.mk-columns { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .mk-columns { grid-template-columns: 1fr; gap: 16px; } }
.mk-columns h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.mk-columns ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.mk-columns ul li { padding-left: 16px; position: relative; color: var(--ink-dim); line-height: 1.4; }
.mk-columns ul li::before { content: '+'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

.mk-adspend { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.mk-adspend-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mk-adspend-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .mk-adspend-options { grid-template-columns: 1fr; } }
.mk-ad-btn { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; transition: all 150ms ease; text-align: left; }
.mk-ad-btn:hover { border-color: var(--accent); }
.mk-ad-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.mk-ad-tier { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mk-ad-btn.on .mk-ad-tier { color: var(--accent); }
.mk-ad-v { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.mk-ad-v .suffix { font-size: 11px; color: var(--muted); font-weight: 400; }
.mk-adspend-note { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.4; }

.mk-roadmap { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.mk-roadmap h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.mk-roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 880px) { .mk-roadmap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mk-roadmap-grid { grid-template-columns: 1fr; } }
.mk-phase { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.mk-phase-h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 6px; }
.mk-phase-b { font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; }

/* ── ADD-ONS ── */
.addon-group { margin-bottom: 28px; }
.addon-group-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.addon-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; cursor: pointer; transition: all 150ms ease; position: relative; }
.addon-card:hover:not(.included) { border-color: var(--line-strong); transform: translateY(-2px); }
.addon-card.on { border-color: var(--accent); background: var(--accent-soft); }
.addon-card.included { cursor: not-allowed; opacity: 0.7; border-style: dashed; background: var(--bg-2); }
.addon-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.addon-name { font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: -0.005em; flex: 1; }
.addon-check { width: 22px; height: 22px; flex: 0 0 auto; border: 1.5px solid var(--line-strong); border-radius: 6px; display: grid; place-items: center; background: var(--bg); transition: all 120ms ease; }
.addon-card.on .addon-check { background: var(--accent); border-color: var(--accent); color: #051421; }
body.light .addon-card.on .addon-check { background: var(--ink); border-color: var(--ink); color: white; }
.addon-card.included .addon-check { display: none; }
.addon-included-pill { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; background: var(--accent); color: var(--bg); border-radius: 999px; }
body.light .addon-included-pill { color: white; background: var(--ink); }
.addon-price { margin-top: 10px; font-family: var(--display); font-size: 14px; color: var(--ink); }
.addon-price strong { font-weight: 500; }
.addon-price .suffix { font-size: 11px; color: var(--muted); margin-left: 2px; }

/* ── TOTALS panel ── */
.totals { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 24px 24px 22px; box-shadow: 0 24px 60px -32px rgba(10, 31, 68, 0.25); }
.totals h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.totals-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.totals-row:first-of-type { border-top: 0; padding-top: 0; }
.totals-row .label { color: var(--ink-dim); font-size: 13px; flex: 1; }
.totals-row .value { font-family: var(--display); color: var(--ink); font-weight: 500; white-space: nowrap; }
.totals-grand { margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--ink); display: grid; gap: 14px; }
.totals-grand .line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.totals-grand .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.totals-grand .v { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; text-align: right; }
.totals-grand .v.big { font-size: 30px; background: linear-gradient(180deg, var(--accent-strong), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.totals-actions { margin-top: 22px; display: grid; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 999px; border: 0; font-family: var(--body); font-weight: 600; font-size: 14px; cursor: pointer; transition: transform 120ms ease, background 120ms ease, border-color 120ms ease; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); }
body.dark .btn-primary { background: var(--accent-bright); color: #051421; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── ADMIN ── */
.admin-scrim { position: fixed; inset: 0; background: rgba(10, 31, 68, 0.45); backdrop-filter: blur(6px); z-index: 80; display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fade 200ms ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.admin-panel { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); max-width: 920px; width: 100%; max-height: 92vh; overflow-y: auto; padding: 28px 32px 32px; position: relative; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.admin-head h2 { font-family: var(--display); font-size: 24px; letter-spacing: -0.015em; margin: 0; }
.admin-close { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.admin-section { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-section:last-of-type { border-bottom: 0; }
.admin-section h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14px; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }
.admin-tier, .admin-addon { background: var(--bg-2); padding: 16px 16px 8px; border-radius: var(--r); margin-bottom: 12px; }
.admin-tier-head, .admin-addon-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.admin-tier-name { font-family: var(--display); font-size: 16px; font-weight: 500; }
.icon-btn { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-dim); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { color: #ea580c; border-color: #ea580c; }
.btn-add { background: transparent; border: 1px dashed var(--line-strong); padding: 10px 14px; border-radius: 8px; color: var(--ink-dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; width: 100%; }
.btn-add:hover { border-color: var(--accent); color: var(--accent); }
.addon-picker { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 4px; }
.picker-chip { font-family: var(--mono); font-size: 11px; padding: 6px 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-dim); border-radius: 999px; cursor: pointer; transition: all 120ms ease; }
.picker-chip:hover { border-color: var(--accent); color: var(--accent); }
.picker-chip.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
body.light .picker-chip.on { color: white; background: var(--ink); border-color: var(--ink); }

/* Admin gate (password modal) */
.admin-gate {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 32px 30px 28px;
  max-width: 380px; width: 100%;
  box-shadow: 0 24px 60px -20px rgba(10,31,68,0.4);
  text-align: center;
}
.ag-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.ag-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.ag-sub {
  font-size: 13px;
  color: var(--ink-dim);
  margin: 0 0 22px;
  line-height: 1.45;
}
.ag-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  outline: none;
  letter-spacing: 0.06em;
}
.ag-input:focus { border-color: var(--accent); }
.ag-input.err { border-color: #ea580c; }
.ag-err {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: #ea580c;
  letter-spacing: 0.06em;
}
.ag-actions {
  margin-top: 18px;
  display: flex; gap: 8px; justify-content: center;
}
.langswitch { position: relative; }
.langswitch-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; font-weight: 500; }
.langswitch-btn:hover { border-color: var(--accent); color: var(--accent); }
.langswitch-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 6px; box-shadow: 0 16px 40px -16px rgba(10,31,68,0.25); z-index: 50; display: flex; flex-direction: column; }
.langswitch-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; text-align: left; color: var(--ink); cursor: pointer; }
.langswitch-opt:hover { background: var(--bg-2); }
.langswitch-opt.active { background: var(--accent-soft); color: var(--accent); }
.lo-code { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); min-width: 30px; }
.langswitch-opt.active .lo-code { color: var(--accent); }
.lo-name { font-family: var(--display); font-size: 14px; font-weight: 500; }

/* ── FOOTER ── */
.foot { padding: 40px 0 32px; border-top: 1px solid var(--line); margin-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.foot a:hover { color: var(--accent); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; z-index: 200; box-shadow: 0 12px 32px -8px rgba(0,0,0,0.3); animation: tin 200ms ease; }
@keyframes tin { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── PRINT ── */
@media print {
  body { background: white !important; color: #0a1f44 !important; }
  body.dark { background: white !important; color: #0a1f44 !important; }
  .nav, .totals-actions, .nav-icon-btn, .admin-scrim, .langswitch,
  .nav-meta, .nav, .totals, .intro-explain, .positioning,
  .section-block, .build-side, .build-main, footer,
  .totals-timing, .proposal-head, .pce-toggle, .pce-card,
  .sw-seeall, .mk-seeall, .cni-toggle, .cni-list,
  .build-layout { display: none !important; }
  .print-only { display: block !important; }
}
.print-only {
  display: none;
}

/* When the print-only summary is shown */
.print-only {
  padding: 32px 40px;
  font-family: var(--body);
  color: #0a1f44;
  background: white;
}
.print-only .ps-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 2px solid #0a1f44;
  margin-bottom: 28px;
}
.print-only .ps-brand {
  font-family: var(--display);
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em;
}
.print-only .ps-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #4a5e72;
}
.print-only .ps-client {
  font-family: var(--display);
  font-size: 36px; font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}
.print-only .ps-client-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #4a5e72;
  margin-top: 8px;
  margin-bottom: 24px;
}
.print-only .ps-meta {
  display: flex; gap: 32px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #4a5e72;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.1);
}
.print-only .ps-meta strong {
  display: block;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #8a9aa9;
  margin-bottom: 4px;
}
.print-only .ps-h2 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.1);
}
.print-only .ps-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 12px;
}
.print-only .ps-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #0a1f44;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5e72;
  font-weight: 600;
}
.print-only .ps-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.07);
  vertical-align: top;
}
.print-only .ps-table td.right {
  text-align: right;
  font-family: var(--mono);
  white-space: nowrap;
}
.print-only .ps-table .ps-sep {
  background: #f5f3ee;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1A8EB0;
  padding: 6px 10px;
  font-weight: 600;
}
.print-only .ps-totals td {
  padding: 10px 10px;
  font-size: 13px;
}
.print-only .ps-totals tr.strong td {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  background: #fafafa;
}
.print-only .ps-totals tr.strong td.right {
  font-size: 18px;
}
.print-only .vat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #8a9aa9;
  font-weight: 400;
  margin-left: 6px;
}
.print-only .ps-note {
  font-size: 11px;
  color: #4a5e72;
  line-height: 1.5;
  margin: 12px 0;
  padding: 8px 12px;
  background: #f5f3ee;
  border-radius: 4px;
}
.print-only .ps-note strong { color: #0a1f44; }
.print-only .ps-foot {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 31, 68, 0.1);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #8a9aa9;
  text-align: center;
}

/* ── RESPONSIVE phone ── */
@media (max-width: 600px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .nav-inner { height: 56px; gap: 8px; }
  .nav-logo { height: 28px; }
  .nav-icon-btn { width: 32px; height: 32px; }
  .nav-icon-btn svg { width: 14px; height: 14px; }
  .nav-meta { gap: 6px; }
  .langswitch-btn { padding: 5px 8px; font-size: 10px; }

  .proposal-eyebrow { font-size: 10px; flex-wrap: wrap; gap: 6px; }
  .proposal-client { font-size: clamp(26px, 9vw, 42px); }
  .proposal-meta-grid { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; padding-top: 20px; }
  .proposal-meta-item .k { font-size: 9px; }
  .proposal-meta-item .v { font-size: 13px; }

  .intro-explain { padding: 18px 0; }
  .intro-title { font-size: clamp(18px, 5.6vw, 24px); }
  .intro-body { font-size: 13px; }

  .core-card { padding: 20px 18px; }
  .core-head h3 { font-size: 17px; margin-bottom: 16px; }
  .core-price { padding: 14px 16px; }
  .core-price .v { font-size: 22px; }
  .core-columns { gap: 14px; }
  .core-columns li { font-size: 13px; }
  .core-commission-info, .core-product-rule { padding: 14px 16px; }
  .cci-label { font-size: 10px; }
  .cci-chips { gap: 5px; }
  .cci-chip { font-size: 10px; padding: 3px 8px; }

  .software-grid { grid-template-columns: 1fr; gap: 12px; }
  .software-card { min-height: auto; padding: 20px 18px 16px; }
  .sw-price { font-size: 22px; }
  .sw-name { font-size: 16px; }
  .sw-integration { font-size: 10px; }

  .marketing-card { padding: 18px 16px; }
  .mk-toggle-row { gap: 10px; }
  .mk-toggle { padding: 8px 14px 8px 6px; font-size: 13px; }
  .mk-toggle .mk-knob { width: 32px; height: 20px; }
  .mk-toggle .mk-knob::after { width: 14px; height: 14px; }
  .mk-toggle.on .mk-knob::after { transform: translateX(12px); }
  .mk-price { font-size: 20px; }
  .mk-columns { gap: 16px; margin-top: 18px; padding-top: 18px; }
  .mk-columns ul li { font-size: 12.5px; }
  .mk-adspend, .mk-prelaunch, .mk-meta-support, .mk-roadmap { margin-top: 18px; padding-top: 18px; }
  .mk-ad-btn { padding: 12px 14px; }
  .mk-ad-v { font-size: 18px; }
  .mk-meta-support { padding: 14px 16px; }
  .mk-meta-summary { font-size: 12.5px; }
  .mk-meta-grid { gap: 8px; }
  .mk-meta-item { padding: 8px 10px; }
  .mk-meta-k { font-size: 9px; }
  .mk-meta-v { font-size: 11px; }
  .mk-meta-limits li { font-size: 10.5px; }
  .mk-prelaunch-pct { font-size: 22px; }
  .mk-prelaunch-pct-alt { font-size: 16px; }
  .mk-prelaunch-text { font-size: 12.5px; }
  .mk-legal { padding: 12px 14px; font-size: 11.5px; flex-direction: column; gap: 6px; }
  .mk-legal strong { font-size: 10px; }

  .addon-grid { grid-template-columns: 1fr; gap: 10px; }
  .addon-card { padding: 14px 16px; }
  .addon-name { font-size: 14px; }
  .addon-price { font-size: 13px; }
  .addon-int { font-size: 10px; }

  .pce-toggle { padding: 8px 14px; font-size: 10px; }
  .pce-card { padding: 14px 16px; }
  .pce-row { padding: 8px; }
  .pce-name { font-size: 12.5px; }
  .pce-qty button { width: 24px; height: 24px; font-size: 13px; }
  .pce-qty input { width: 44px; padding: 4px 6px; font-size: 12px; }
  .pce-line { font-size: 13px; }

  .totals { padding: 18px 16px; }
  .totals h3 { font-size: 10px; margin-bottom: 12px; }
  .totals-row { font-size: 12.5px; padding: 8px 0; }
  .totals-row .label { font-size: 12px; }
  .totals-grand { margin-top: 14px; padding-top: 14px; gap: 10px; }
  .totals-grand .v.big { font-size: 22px; }
  .totals-grand .v { font-size: 16px; }
  .totals-actions { gap: 8px; margin-top: 16px; }
  .totals-actions .btn { padding: 11px 14px; font-size: 13px; }
  .totals-note { font-size: 10.5px; padding: 8px 10px; }
  .totals-timing { flex-direction: column; gap: 6px; }

  .admin-panel { padding: 18px 16px; }
  .admin-head h2 { font-size: 18px; }

  .foot { padding: 24px 0 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── RESPONSIVE tablet ── */
@media (min-width: 601px) and (max-width: 1100px) {
  .build-side .totals { position: relative; top: 0; }
  .software-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-meta-grid { grid-template-columns: 1fr 1fr; }
  .mk-roadmap-grid { grid-template-columns: 1fr 1fr; }
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── iPhone SE / very small ── */
@media (max-width: 380px) {
  .proposal-meta-grid { grid-template-columns: 1fr; }
  .core-prices { grid-template-columns: 1fr; }
  .mk-adspend-options { grid-template-columns: 1fr; }
}

@supports (-webkit-touch-callout: none) {
  .field input, .field textarea, .field select { font-size: 16px; }
  .pce-qty input { font-size: 16px; }
}

/* ── PROPOSAL MANAGER & SIGNATURE STYLES ── */
.ps-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  margin-bottom: 20px;
}
.ps-table th, .ps-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.ps-table th {
  font-weight: 600;
  color: var(--ink-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ps-table td.right, .ps-table th.right {
  text-align: right;
}
.ps-table tbody tr:hover {
  background: var(--bg-2);
}

/* Canvas drawing style */
canvas {
  cursor: crosshair;
}

/* Print override when printing-proposal is active */
@media print {
  body.printing-proposal * {
    visibility: hidden;
  }
  body.printing-proposal .print-only,
  body.printing-proposal .print-only * {
    visibility: visible;
  }
  body.printing-proposal .print-only {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
