/* ── VARIABLES ── */
:root {
  --green: #1A6B3C;
  --green-dark: #134f2d;
  --green-light: #e8f5ee;
  --green-bright: #22c55e;
  --blue: #2B4E8C;
  --blue-light: #eef2ff;
  --red: #dc2626;
  --red-light: #fef2f2;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f0f5f1;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
}

/* ── RESET + BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }
code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  display: block;
  margin: 0.5rem 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── BEGINNER MODE ── */
.expert-text { display: inline; }
.beginner-text { display: none; }
body.beginner-mode .expert-text { display: none; }
body.beginner-mode .beginner-text { display: inline; }

/* ── FIXED MODE BAR ── */
.mode-bar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.4rem 0.8rem;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.mode-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  padding: 0;
}
.toggle-track {
  width: 2rem;
  height: 1.1rem;
  background: var(--border);
  border-radius: 1rem;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
body.beginner-mode .toggle-track { background: var(--green); }
body.beginner-mode .toggle-thumb { transform: translateX(0.9rem); }

/* ── TERM TOOLTIP ── */
.term-tooltip {
  position: fixed;
  z-index: 2000;
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  max-width: 280px;
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
}
.term-tooltip.hidden { display: none; }
.tooltip-close {
  position: absolute;
  top: 0.3rem;
  right: 0.4rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.3rem;
}
.tooltip-close:hover { color: white; }
.tooltip-text { margin: 0; padding-right: 1rem; }

/* ── TERM CHIP ── */
.term { white-space: nowrap; }
.term-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  min-width: 16px;
  min-height: 16px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.6em;
  font-weight: 800;
  border: none;
  cursor: pointer;
  vertical-align: super;
  padding: 0;
  line-height: 1;
  margin-left: 2px;
  transition: background 0.15s;
}
.term-chip:hover { background: var(--green-dark); }

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
  background: var(--bg);
}
.alt-section { background: var(--bg-alt); }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.accent { color: var(--green); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

/* ── FADE-IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   SECTION 1 — HERO
══════════════════════════════════════ */
.hero-section { padding: 7rem 0 5rem; }
.hero-section h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 820px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  display: inline-block;
  max-width: 520px;
}

/* ══════════════════════════════════════
   SECTION 2 — FLOW DIAGRAM
══════════════════════════════════════ */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  min-width: 110px;
  text-align: center;
  position: relative;
}
.flow-node:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.flow-node.active { border-color: var(--green); background: var(--green-light); box-shadow: var(--shadow-sm); }
.flow-node-highlight { border-color: var(--green) !important; }
.flow-icon { font-size: 1.5rem; line-height: 1; }
.flow-label { font-size: 0.78rem; font-weight: 700; color: var(--text); text-align: center; line-height: 1.3; }
.flow-label small { font-weight: 500; color: var(--muted); display: block; }
.node-badge {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.flow-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  padding: 0 0.3rem;
  flex-shrink: 0;
}
.flow-info-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  min-height: 100px;
  transition: min-height 0.3s;
}
.flow-info-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.flow-info-content p { color: var(--muted); line-height: 1.65; font-size: 0.95rem; }
.flow-info-highlight { color: var(--green); font-weight: 700; }

/* ══════════════════════════════════════
   SECTION 3 — PROBLEM / TIMELINE
══════════════════════════════════════ */
.timeline-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.timeline-vs {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 3rem;
  text-align: center;
  writing-mode: vertical-rl;
}
.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.tl-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  text-transform: uppercase;
}
.tl-badge.bad { background: var(--red-light); color: var(--red); }
.tl-badge.good { background: var(--green-light); color: var(--green); }
.tl-time { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.tl-steps { display: flex; flex-direction: column; gap: 0; }
.tl-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1rem;
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  border: 2px solid;
}
.tl-dot.bad { background: var(--red-light); border-color: var(--red); }
.tl-dot.good { background: var(--green-light); border-color: var(--green); }
.tl-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.tl-meta { font-size: 0.78rem; color: var(--muted); }
.problem-callout {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   SECTION 4 — COST PER kWh
══════════════════════════════════════ */
.cost-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.cost-vs-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}
.cost-card {
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid var(--border);
}
.cost-old { background: #fafafa; border-color: #e5e7eb; }
.cost-new { background: var(--green-light); border-color: var(--green); }
.cost-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.cost-card-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.cost-big-number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.green-num { color: var(--green); }
.cost-unit { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.cost-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.cost-bullets li { font-size: 0.88rem; display: flex; align-items: flex-start; gap: 0.4rem; }
.cost-bad { color: var(--red); }
.cost-good { color: var(--green-dark); }
.cost-callout-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.cost-callout-icon { font-size: 1.5rem; flex-shrink: 0; }
.cost-callout-box p { margin: 0; color: var(--text); font-size: 0.97rem; line-height: 1.65; }
.cost-source-note { font-size: 0.75rem; color: var(--muted); line-height: 1.6; font-style: italic; }

/* ══════════════════════════════════════
   SECTION 5 — SOLUTION / TABS
══════════════════════════════════════ */
.tabs { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow: hidden; }
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow-x: auto;
}
.tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--green); background: var(--green-light); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); background: var(--white); }
.tab-panel { display: none; padding: 2.5rem; }
.tab-panel.active { display: block; }
.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.tab-grid-traffic { grid-template-columns: 1fr 1.2fr; }
.tab-text h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.3; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; padding-left: 0; }
.feature-list li { font-size: 0.92rem; line-height: 1.5; padding-left: 1.2rem; position: relative; color: var(--text); }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Utility dashboard mock */
.mock-screen {
  background: #1e2433;
  border-radius: var(--radius);
  padding: 1.25rem;
  color: white;
  font-size: 0.8rem;
  box-shadow: var(--shadow-lg);
}
.mock-header-bar { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.6); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.mock-stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin-bottom: 1.25rem; }
.mock-stat-box { background: rgba(255,255,255,0.07); border-radius: 0.5rem; padding: 0.75rem; text-align: center; }
.mock-stat-num { font-size: 1.4rem; font-weight: 800; line-height: 1; margin-bottom: 0.25rem; }
.mock-stat-num.green-text { color: #4ade80; }
.mock-stat-lbl { font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }
.mock-bars { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.mock-bar-row { display: flex; align-items: center; gap: 0.5rem; }
.mock-bar-lbl { width: 80px; font-size: 0.72rem; color: rgba(255,255,255,0.6); flex-shrink: 0; }
.mock-bar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.mock-bar-fill { height: 100%; background: #4ade80; border-radius: 3px; }
.mock-bar-pct { font-size: 0.7rem; color: rgba(255,255,255,0.5); width: 30px; text-align: right; flex-shrink: 0; }
.mock-agent-row { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); border-radius: 0.4rem; padding: 0.6rem 0.75rem; font-size: 0.72rem; display: flex; gap: 0.4rem; align-items: flex-start; color: rgba(255,255,255,0.8); }
.mock-agent-icon { flex-shrink: 0; }
.mock-agent-row em { color: rgba(255,255,255,0.5); }

/* SP phone mock */
.mock-phone {
  background: #1e2433;
  border-radius: 1.25rem;
  padding: 1.25rem;
  max-width: 260px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  color: white;
  font-size: 0.8rem;
}
.mock-phone-header { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.mock-capture-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.mock-capture-card { display: flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.07); border-radius: 0.5rem; padding: 0.6rem 0.75rem; border: 1px solid transparent; }
.mock-capture-card.active-capture { border-color: rgba(255,80,80,0.5); background: rgba(255,80,80,0.1); }
.capture-icon { font-size: 1rem; flex-shrink: 0; }
.capture-label { flex: 1; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.capture-badge { font-size: 0.65rem; padding: 0.15rem 0.4rem; border-radius: 2rem; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); white-space: nowrap; }
.capture-badge.recording { background: rgba(255,80,80,0.2); color: #ff8080; }
.capture-badge.done { background: rgba(74,222,128,0.2); color: #4ade80; }
.mock-ai-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); border-radius: 0.4rem; padding: 0.5rem 0.75rem; }
.mock-ai-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse-dot 1.2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.7); } }

/* Traffic lights */
.traffic-lights { display: flex; flex-direction: column; gap: 1rem; }
.traffic-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1rem; border: 1px solid var(--border); }
.traffic-circle { font-size: 1.4rem; flex-shrink: 0; }
.traffic-pct { font-size: 1.5rem; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 0.2rem; }
.traffic-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.traffic-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }

/* ══════════════════════════════════════
   SECTION 6 — EM&V + CALCULATOR
══════════════════════════════════════ */
.emv-flow-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 1.5rem;
  margin-bottom: 3rem;
  align-items: start;
}
.emv-vs { font-size: 1.5rem; color: var(--muted); padding-top: 2rem; }
.emv-col { display: flex; flex-direction: column; gap: 0.5rem; }
.emv-col-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.bad-title { color: var(--red); }
.good-title { color: var(--green); }
.emv-step { display: flex; gap: 0.6rem; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem; font-size: 0.88rem; color: var(--text); }
.emv-step-icon { font-size: 1rem; flex-shrink: 0; }
.emv-step-bad { border-color: var(--red); background: var(--red-light); }
.emv-step-good { border-color: var(--green); background: var(--green-light); }
.emv-arrow-down { text-align: center; font-size: 0.82rem; color: var(--muted); padding: 0.2rem 0; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.emv-time-badge { font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 2rem; }
.bad-badge { background: var(--red-light); color: var(--red); }
.good-badge { background: var(--green-light); color: var(--green); }
.emv-summary { font-size: 0.78rem; font-weight: 700; text-align: center; padding: 0.5rem; border-radius: var(--radius-sm); margin-top: 0.25rem; }
.bad-summary { background: var(--red-light); color: var(--red); }
.good-summary { background: var(--green-light); color: var(--green); }

/* Calculator */
.calculator {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.calc-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.calc-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.75rem; }
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.calc-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.calc-field label { font-size: 0.88rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.calc-live-val { font-weight: 800; color: var(--green); }
.calc-field input[type="range"] { width: 100%; accent-color: var(--green); cursor: pointer; }
.calc-field select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  width: 100%;
}
.calc-result-primary {
  background: var(--green);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.calc-big-num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1; }
.calc-big-lbl { font-size: 0.85rem; opacity: 0.85; margin-top: 0.4rem; }
.calc-result-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.calc-sub-result { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1rem; text-align: center; border: 1px solid var(--border); }
.calc-sub-num { font-size: 1.5rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 0.25rem; }
.calc-sub-lbl { font-size: 0.72rem; color: var(--muted); }
.calc-formula-detail { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.calc-formula-detail summary { padding: 0.6rem 0.9rem; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--green); background: var(--bg-alt); user-select: none; }
.calc-formula-detail summary:hover { background: var(--green-light); }
.calc-formula-body { padding: 1rem; font-size: 0.82rem; line-height: 1.7; color: var(--text); }
.calc-formula-body p { margin-bottom: 0.5rem; }
.formula-audit-note { color: var(--green-dark); font-weight: 600; border-top: 1px solid var(--border); padding-top: 0.5rem; margin-top: 0.5rem; }

/* ══════════════════════════════════════
   SECTION 7 — FIELD REPORT
══════════════════════════════════════ */
.field-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.field-input-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.field-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: border-color 0.15s;
}
.field-card:hover { border-color: var(--green); }
.field-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.field-card-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.field-card-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.4rem; }
.field-card-tag { font-size: 0.7rem; font-weight: 600; color: var(--green); background: var(--green-light); padding: 0.15rem 0.5rem; border-radius: 2rem; display: inline-block; }
.field-arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}
.field-arrow-line { width: 2px; flex: 1; background: var(--border); min-height: 30px; }
.field-arrow-mid { padding: 0.5rem 0.75rem; background: var(--green); color: white; border-radius: 2rem; font-size: 0.7rem; font-weight: 800; white-space: nowrap; }
.report-mock {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.report-mock-header {
  background: var(--green);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.report-status-badge {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
}
.report-mock-body { padding: 1.1rem; font-size: 0.82rem; line-height: 1.65; color: var(--text); }
.report-mock-body p { margin-bottom: 0.6rem; }
.report-trm-cite { color: var(--green-dark); font-size: 0.75rem; font-style: italic; }
.report-mock-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.report-btn-approve, .report-btn-edit {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: default;
}
.report-btn-approve { background: var(--green); color: white; }
.report-btn-edit { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }
.field-liability-note {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   SECTION 8 — COMPETITIVE TABLE
══════════════════════════════════════ */
.comp-table-wrap { overflow-x: auto; margin-bottom: 1rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 600px;
}
.comp-table thead tr { background: var(--text); color: white; }
.comp-table th { padding: 0.9rem 0.85rem; font-size: 0.78rem; font-weight: 700; text-align: center; white-space: nowrap; }
.comp-table th:first-child { text-align: left; }
.comp-table td { padding: 0.8rem 0.85rem; text-align: center; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.82rem; }
.comp-table td:first-child { text-align: left; }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: var(--bg-alt); }
.our-row td { background: var(--green-light) !important; font-weight: 600; color: var(--text); }
.chk { color: var(--green); font-size: 1rem; font-weight: 700; }
.crs { color: var(--red); font-size: 0.95rem; }
.prt { color: var(--amber); font-size: 0.9rem; }
.comp-name {
  cursor: pointer;
  border-bottom: 1px dashed var(--muted);
  color: var(--text);
  font-weight: 600;
}
.comp-name:hover { color: var(--green); border-bottom-color: var(--green); }
.comp-tooltip {
  position: fixed;
  z-index: 1500;
  background: var(--text);
  color: white;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  max-width: 280px;
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}
.comp-tooltip.hidden { display: none; }
.comp-legend { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }

/* ══════════════════════════════════════
   SECTION 9 — MARKET SIZE
══════════════════════════════════════ */
.market-layout { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: center; }
.market-circles-wrap { position: relative; }
.market-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.tam-circle { width: 260px; height: 260px; background: rgba(26,107,60,0.08); border: 2px solid rgba(26,107,60,0.3); position: relative; }
.sam-circle { width: 175px; height: 175px; background: rgba(43,78,140,0.1); border: 2px solid rgba(43,78,140,0.4); }
.som-circle { width: 100px; height: 100px; background: var(--green); border: none; }
.market-circle-label { text-align: center; color: white; }
.mc-amt { font-size: 1rem; font-weight: 900; line-height: 1; }
.mc-lbl { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.market-legend { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1rem; }
.market-legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--text); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.tam-dot { background: rgba(26,107,60,0.3); border: 2px solid var(--green); }
.sam-dot { background: rgba(43,78,140,0.3); border: 2px solid var(--blue); }
.som-dot { background: var(--green); }
.market-text { display: flex; flex-direction: column; gap: 1.5rem; }
.market-row { display: flex; gap: 1rem; align-items: flex-start; }
.market-row-dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.market-row p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-top: 0.3rem; }

/* ══════════════════════════════════════
   SECTION 10 — BUSINESS MODEL
══════════════════════════════════════ */
.biz-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.biz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.biz-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.biz-phase-badge {
  position: absolute;
  top: -0.6rem;
  left: 1.25rem;
  background: var(--green);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.biz-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.biz-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.biz-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.55; margin-bottom: 1.25rem; }
.biz-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.biz-metric { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 0.75rem; text-align: center; }
.biz-metric-num { font-size: 1.1rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 0.2rem; }
.biz-metric-lbl { font-size: 0.68rem; color: var(--muted); }
.biz-note { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ══════════════════════════════════════
   SECTION 11 — WHY US
══════════════════════════════════════ */
.whyus-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.whyus-creds h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); }
.cred-list { display: flex; flex-direction: column; gap: 1.25rem; }
.cred-item { border-left: 3px solid var(--green); padding-left: 1rem; }
.cred-company { font-size: 0.78rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.cred-role { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.cred-detail { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.whyus-quote-block { background: var(--bg-alt); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); }
blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  border-left: 3px solid var(--green);
  padding-left: 1rem;
  margin-bottom: 1rem;
}
cite { font-size: 0.85rem; font-weight: 600; color: var(--green); font-style: normal; display: block; margin-bottom: 1.25rem; }
.whyus-closer {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

/* ══════════════════════════════════════
   SECTION 12 — THE ASK
══════════════════════════════════════ */
.ask-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
.ask-costs-col h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.ask-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--green);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ask-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.ask-table td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.ask-table td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 1rem; }
.ask-group-row td { background: var(--bg-alt); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0.5rem 0.4rem; }
.ask-total-row td { font-size: 0.95rem; border-top: 2px solid var(--green); border-bottom: none; padding-top: 0.75rem; }
.ask-phase-table td { font-size: 0.78rem; color: var(--muted); }
.ask-card {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ask-toggle-section { display: flex; flex-direction: column; gap: 0.3rem; }
.ask-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.ask-checkbox-label input[type="checkbox"] { display: none; }
.ask-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--green);
  border-radius: 4px;
  background: var(--white);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  position: relative;
}
.ask-checkbox-label input:checked + .ask-checkbox-custom { background: var(--green); }
.ask-checkbox-label input:checked + .ask-checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
}
.ask-toggle-sub { font-size: 0.78rem; color: var(--muted); padding-left: 1.5rem; }
.ask-dev-section { overflow: hidden; transition: max-height 0.4s ease, opacity 0.4s ease; max-height: 200px; opacity: 1; }
.ask-dev-section.collapsed { max-height: 0; opacity: 0; }
.ask-phase-detail summary { cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--green); padding: 0.4rem 0; user-select: none; }
.ask-totals { display: flex; flex-direction: column; gap: 0.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.ask-total-line { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--text); }
.dev-total-line { color: var(--green-dark); font-style: italic; transition: opacity 0.3s; }
.dev-total-line.hidden { opacity: 0; pointer-events: none; }
.ask-grand-line { font-size: 1.15rem; font-weight: 800; border-top: 2px solid var(--text); padding-top: 0.75rem; margin-top: 0.25rem; }
.ask-sweat-note { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.ask-cta-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem; }
.ask-email-line { font-size: 0.78rem; color: var(--muted); text-align: center; }

/* ── MARKET TIER GRID ── */
.market-growth-table {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.market-growth-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.market-tier-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.tier-arrow-col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--border);
  padding: 0 0.5rem;
  flex-shrink: 0;
}
.market-tier-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 2px solid;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.market-tier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tier-entry { background: var(--green-light); border-color: var(--green); }
.tier-mid   { background: var(--blue-light);  border-color: var(--blue); }
.tier-iou   { background: #fffbeb;            border-color: var(--amber); }
.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
}
.tier-phase-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  white-space: nowrap;
  line-height: 1.4;
}
.tier-entry .tier-phase-badge { background: var(--green); color: white; }
.tier-mid   .tier-phase-badge { background: var(--blue);  color: white; }
.tier-iou   .tier-phase-badge { background: var(--amber); color: white; }
.tier-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.tier-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.tier-example { font-size: 0.73rem; color: var(--muted); margin-bottom: 0.75rem; font-style: italic; }
.tier-budget {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.tier-entry .tier-budget { color: var(--green); }
.tier-mid   .tier-budget { color: var(--blue); }
.tier-iou   .tier-budget { color: var(--amber); }
.tier-budget-unit { font-size: 0.65rem; font-weight: 600; color: var(--muted); display: block; margin-top: 0.2rem; }
.tier-count {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0;
}
.tier-divider {
  height: 1px;
  background: currentColor;
  opacity: 0.12;
  margin: 1rem 0;
}
.tier-why { font-size: 0.82rem; color: var(--text); line-height: 1.65; margin: 0; }

@media (max-width: 900px) {
  .market-tier-grid { grid-template-columns: 1fr; }
  .tier-arrow-col { transform: rotate(90deg); padding: 0.25rem 0; }
}

/* ── FOOTER ── */
.site-footer { background: var(--text); color: rgba(255,255,255,0.5); padding: 2rem 0; text-align: center; font-size: 0.82rem; line-height: 1.8; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: white; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .section { padding: 3.5rem 0; }
  .hero-section { padding: 5rem 0 3.5rem; }

  .timeline-compare { grid-template-columns: 1fr; }
  .timeline-vs { writing-mode: horizontal-tb; text-align: center; padding: 0.5rem 0; font-size: 0.85rem; }

  .cost-compare-grid { grid-template-columns: 1fr; }
  .cost-vs-label { padding: 0.5rem 0; }

  .flow-diagram { gap: 0.3rem; }
  .flow-node { min-width: 70px; padding: 0.6rem 0.5rem; }
  .flow-arrow { font-size: 0.9rem; padding: 0 0.1rem; }

  .tab-grid, .tab-grid-traffic { grid-template-columns: 1fr; }
  .mock-screen, .mock-phone { max-width: 100%; }

  .emv-flow-compare { grid-template-columns: 1fr; }
  .emv-vs { display: none; }

  .calc-layout { grid-template-columns: 1fr; }
  .calc-result-secondary { grid-template-columns: 1fr 1fr; }

  .field-demo { grid-template-columns: 1fr; }
  .field-arrow-col { display: none; }

  .market-layout { grid-template-columns: 1fr; }
  .tam-circle { width: 220px; height: 220px; }
  .sam-circle { width: 148px; height: 148px; }
  .som-circle { width: 85px; height: 85px; }

  .biz-cards { grid-template-columns: 1fr; }

  .whyus-layout { grid-template-columns: 1fr; }

  .ask-layout { grid-template-columns: 1fr; }

  .mode-bar { top: 0.5rem; right: 0.5rem; padding: 0.3rem 0.6rem; }
  .mode-bar-label { display: none; }
}

@media (max-width: 600px) {
  .flow-label small { display: none; }
  .node-badge { font-size: 0.5rem; }
  .tab-btn { font-size: 0.78rem; padding: 0.8rem 0.75rem; }
  .tab-panel { padding: 1.25rem; }
  .traffic-item { flex-direction: column; align-items: flex-start; }
  .comp-table { font-size: 0.78rem; }
  .comp-table th, .comp-table td { padding: 0.6rem 0.5rem; }
}
