:root {
  --paper: #f2f1eb;
  --paper-bright: #fbfaf6;
  --ink: #161616;
  --muted: #62625e;
  --line: #cdccc4;
  --blue: #3155ff;
  --orange: #ff5c35;
  --acid: #b7f34a;
  --shadow: #d5d3ca;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, "Segoe UI", sans-serif; line-height: 1.62; letter-spacing: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; letter-spacing: 0; }

.guide-signal { min-height: 30px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--ink); color: white; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.guide-header { min-height: 72px; padding: 0 clamp(18px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--ink); background: var(--paper); }
.guide-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 950; text-decoration: none; }
.guide-mark { width: 29px; height: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; }
.guide-mark i { display: block; border: 2px solid var(--ink); }
.guide-mark i:nth-child(1) { height: 12px; background: var(--blue); }
.guide-mark i:nth-child(2) { height: 20px; background: var(--acid); }
.guide-mark i:nth-child(3) { height: 15px; background: var(--orange); }
.guide-nav { display: flex; align-items: center; gap: 20px; }
.guide-nav a { font-size: 11px; font-weight: 850; text-decoration: none; }
.guide-nav a:hover { text-decoration: underline; }

.guide-hero { position: relative; min-height: 540px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); border-bottom: 1px solid var(--ink); overflow: hidden; }
.guide-hero-copy { padding: clamp(58px, 8vw, 110px) clamp(22px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.guide-eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.guide-hero h1 { margin: 0; max-width: 780px; font-size: clamp(44px, 6vw, 88px); line-height: .96; }
.guide-summary { max-width: 680px; margin: 24px 0 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.34; font-weight: 700; }
.guide-meta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-meta span { padding: 7px 9px; border: 1px solid var(--ink); background: var(--paper-bright); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.guide-hero-media { min-height: 420px; border-left: 1px solid var(--ink); background: var(--paper-bright); }
.guide-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.guide-layout { width: min(1240px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: center; gap: clamp(40px, 7vw, 96px); padding: 72px 0 100px; }
.guide-toc { align-self: start; position: sticky; top: 24px; padding-top: 10px; border-top: 3px solid var(--ink); }
.guide-toc strong { display: block; margin-bottom: 14px; font-size: 10px; text-transform: uppercase; }
.guide-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 11px; font-weight: 750; text-decoration: none; border-bottom: 1px solid var(--line); }
.guide-toc a:hover { color: var(--ink); }
.guide-content { min-width: 0; }
.guide-content section { padding: 0 0 52px; margin-bottom: 52px; border-bottom: 1px solid var(--line); }
.guide-content section:last-child { border-bottom: 0; }
.guide-content h2 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 48px); line-height: 1.02; }
.guide-content h3 { margin: 30px 0 10px; font-size: 20px; line-height: 1.15; }
.guide-content p { margin: 0 0 18px; color: #343431; font-size: 16px; }
.guide-content ul, .guide-content ol { margin: 0 0 22px; padding-left: 22px; }
.guide-content li { margin-bottom: 9px; }
.guide-callout { margin: 28px 0; padding: 22px; border: 1px solid var(--ink); border-left: 12px solid var(--blue); background: var(--paper-bright); }
.guide-callout--warning { border-left-color: var(--orange); }
.guide-callout--positive { border-left-color: var(--acid); }
.guide-callout strong { display: block; margin-bottom: 6px; }

.flow-list { list-style: none; padding: 0 !important; counter-reset: flow; border-top: 1px solid var(--ink); }
.flow-list li { counter-increment: flow; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; margin: 0; border-bottom: 1px solid var(--line); }
.flow-list li::before { content: counter(flow, decimal-leading-zero); color: var(--blue); font-size: 12px; font-weight: 950; }
.flow-list strong { display: block; margin-bottom: 4px; }
.flow-list p { margin: 0; font-size: 14px; }

.guide-table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--ink); }
.guide-table { width: 100%; border-collapse: collapse; background: var(--paper-bright); font-size: 13px; }
.guide-table th, .guide-table td { padding: 13px 14px; text-align: left; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-table th:last-child, .guide-table td:last-child { border-right: 0; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table th { background: var(--ink); color: white; font-size: 10px; text-transform: uppercase; }

.guide-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; border: 1px solid var(--ink); }
.guide-metrics div { min-height: 112px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--ink); background: var(--paper-bright); }
.guide-metrics div:last-child { border-right: 0; }
.guide-metrics span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.guide-metrics strong { font-size: 22px; }

.guide-cta { padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; border: 1px solid var(--ink); background: var(--acid); box-shadow: 8px 8px 0 var(--shadow); }
.guide-cta h2 { margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1; }
.guide-cta p { margin: 10px 0 0; color: #343431; }
.guide-button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--ink); color: white; font-size: 12px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.guide-button:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 rgba(22,22,22,.25); }

.roi-widget { margin: 30px 0; display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--ink); background: var(--paper-bright); }
.roi-widget-controls { padding: 24px; border-right: 1px solid var(--ink); }
.roi-widget-controls label { display: grid; gap: 7px; margin-bottom: 16px; color: var(--muted); font-size: 10px; font-weight: 850; }
.roi-widget-controls input { min-height: 43px; padding: 0 10px; border: 1px solid var(--ink); background: white; }
.roi-widget-output { padding: 30px; display: flex; flex-direction: column; justify-content: center; background: var(--blue); color: white; }
.roi-widget-output span { font-size: 10px; font-weight: 850; text-transform: uppercase; }
.roi-widget-output strong { margin-top: 8px; font-size: clamp(48px, 7vw, 86px); line-height: .9; }
.roi-widget-output small { margin-top: 12px; color: #d9dfff; }

.guide-footer { padding: 46px clamp(20px, 5vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 30px; background: var(--ink); color: white; }
.guide-footer p { max-width: 620px; margin: 12px 0 0; color: #aaa9a4; font-size: 11px; }
.guide-footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.guide-footer-links a { font-size: 11px; font-weight: 850; text-decoration: none; }

@media (max-width: 850px) {
  .guide-nav a:not(:last-child) { display: none; }
  .guide-hero { grid-template-columns: 1fr; }
  .guide-hero-media { border-left: 0; border-top: 1px solid var(--ink); }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .guide-metrics { grid-template-columns: 1fr; }
  .guide-metrics div { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .guide-metrics div:last-child { border-bottom: 0; }
  .guide-cta { grid-template-columns: 1fr; padding: 28px 22px; }
  .roi-widget { grid-template-columns: 1fr; }
  .roi-widget-controls { border-right: 0; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 520px) {
  .guide-signal { padding: 0 12px; font-size: 9px; }
  .guide-signal span:last-child { display: none; }
  .guide-header { min-height: 62px; padding: 0 14px; }
  .guide-brand { font-size: 13px; }
  .guide-hero-copy { padding: 52px 20px; }
  .guide-hero h1 { font-size: 45px; }
  .guide-hero-media { min-height: 280px; }
  .guide-layout { width: calc(100% - 28px); padding-top: 48px; }
  .guide-content p { font-size: 15px; }
  .guide-table { min-width: 620px; }
  .guide-footer { grid-template-columns: 1fr; }
}
