/* ==========================================================================
   REDCUBICAL SYSTEMS — Enterprise Design System
   Tokens carried over from the Redcubical brand: near-black navy base,
   electric-blue primary, red accent, Barlow Condensed display + Inter body.
   ========================================================================== */

:root {
  /* surface */
  --black: #050810;
  --dark: #0a0e1a;
  --panel: #0d1220;
  --panel-2: #101728;
  --blue-mid: #0d1b3e;
  --blue-deep: #071026;

  /* brand */
  --blue-bright: #1e3a8a;
  --blue-electric: #2563eb;
  --blue-glow: #3b82f6;
  --blue-light: #60a5fa;
  --blue-pale: #93c5fd;

  --red: #e63946;
  --red-dark: #c1121f;
  --red-light: #ff6b6b;

  /* text */
  --white: #ffffff;
  --white-dim: #f0f4ff;
  --text: #c9d3e6;
  --gray-light: #9ca3af;
  --gray: #6b7280;

  /* lines */
  --border: #ffffff12;
  --border-light: #ffffff1f;
  --border-blue: #3b82f633;

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* metrics */
  --max-width: 1280px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --gut: clamp(20px, 4vw, 48px);
  --sec-y: clamp(64px, 8vw, 116px);

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --shadow-blue: 0 20px 60px -22px rgba(37, 99, 235, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-light); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--white); }

:focus-visible {
  outline: 2px solid var(--blue-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue-electric); color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue-electric); color: #fff; padding: 12px 20px;
  font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap.narrow { max-width: 880px; }
.wrap.mid { max-width: 1060px; }

/* -------------------------------------------------------------- typography */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 800;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: 0; text-transform: none; font-weight: 700; font-family: var(--font-main); }
h4 { font-size: 1.05rem; letter-spacing: 0; text-transform: none; font-family: var(--font-main); }
p { margin: 0 0 1.1em; }
strong { color: var(--white); font-weight: 700; }

.eyebrow {
  font-family: var(--font-main);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--red), var(--blue-glow));
}

.sec { padding-block: var(--sec-y); position: relative; }
.sec-alt { background: linear-gradient(180deg, var(--dark), #080c16); border-block: 1px solid var(--border); }
.sec-deep { background: radial-gradient(120% 90% at 50% 0%, var(--blue-deep), var(--black) 70%); border-block: 1px solid var(--border); }
.sec-tight { padding-block: clamp(44px, 5vw, 72px); }

.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-title { margin-bottom: .45em; }
.sec-lead { font-size: 1.1rem; color: var(--gray-light); margin: 0; }
.sec-lead strong { color: var(--white-dim); }

.grid { display: grid; gap: clamp(16px, 1.6vw, 24px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* Grid and flex items default to min-width:auto, meaning they refuse to shrink
   below their content's min-content width. A wide data table (which carries
   min-width:620px so it can scroll inside .table-wrap) would therefore force
   the whole grid column past the viewport on narrow screens. Explicitly
   allowing these containers to shrink is what lets the table's own horizontal
   scroll do its job instead of blowing out the page. */
.grid > *,
.split > *,
.hero-inner > *,
.split-copy,
.split-aside { min-width: 0; }

/* ----------------------------------------------------------------- buttons */

.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-main);
  font-size: .92rem; font-weight: 700; letter-spacing: .01em;
  padding: 15px 26px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--btn-bg); color: var(--white);
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--blue-electric), var(--blue-bright));
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { box-shadow: 0 26px 70px -20px rgba(37, 99, 235, .8); }
.btn-ghost { background: #ffffff08; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #ffffff14; border-color: var(--border-blue); }
.btn-red { --btn-bg: linear-gradient(135deg, var(--red), var(--red-dark)); border-color: transparent; }
.btn-sm { padding: 11px 18px; font-size: .84rem; }
.btn-arrow { transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ------------------------------------------------------------------ topbar */

.topbar {
  background: linear-gradient(90deg, var(--blue-deep), var(--black) 60%);
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
}
.topbar-in { display: flex; justify-content: space-between; gap: 20px; padding-block: 9px; flex-wrap: wrap; }
.topbar-msg { margin: 0; color: var(--gray-light); display: flex; align-items: center; gap: 9px; }
.topbar-msg .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px #22c55e26; animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #22c55e00; } }
.topbar-contact { margin: 0; display: flex; gap: 10px; color: var(--gray); }
.topbar-contact a { color: var(--gray-light); }
.topbar-contact a:hover { color: var(--blue-light); }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: #050810e8;
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.masthead.stuck { box-shadow: 0 12px 40px -18px #000; }
.mast-in { display: flex; align-items: center; gap: 28px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; color: var(--white); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: grid; place-items: center;
  box-shadow: 0 8px 22px -8px rgba(230, 57, 70, .7);
}
.brand-mark .cube {
  width: 13px; height: 13px; border: 2.5px solid #fff; border-radius: 2px;
  display: block;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand-txt strong { font-size: 1.16rem; font-weight: 900; letter-spacing: .045em; color: var(--white); }
.brand-txt span { font-size: .64rem; letter-spacing: .3em; color: var(--blue-light); font-weight: 700; }

.mainnav { margin-left: auto; }
.mainnav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mainnav > ul > li { position: relative; }
.mainnav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 26px 14px; font-size: .89rem; font-weight: 600;
  color: var(--text); position: relative;
}
.mainnav > ul > li > a:hover,
.mainnav > ul > li > a[aria-current] { color: var(--white); }
.mainnav > ul > li > a[aria-current]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue-glow));
}
.chev { width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .2s ease; }
.has-mega:hover .chev { transform: rotate(225deg) translateY(-2px); }

.mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  width: min(940px, calc(100vw - 40px));
  background: linear-gradient(180deg, var(--panel), var(--dark));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.mega-in { display: grid; grid-template-columns: repeat(3, 1fr) 1.05fr; gap: 8px; padding: 26px; }
.mega-col { padding: 4px 14px; }
.mega-h {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-light); font-weight: 700; margin: 0 0 12px;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col ul li + li { margin-top: 2px; }
.mega-col ul a {
  display: block; padding: 7px 10px; margin-left: -10px; border-radius: var(--radius-sm);
  color: var(--text); font-size: .875rem; font-weight: 500;
}
.mega-col ul a:hover { background: #ffffff0d; color: var(--white); }
.mega-promo {
  background: radial-gradient(120% 100% at 100% 0%, #1e3a8a4d, transparent);
  border: 1px solid var(--border-blue); border-radius: var(--radius);
  padding: 20px;
}
.mega-promo-t { font-size: .88rem; color: var(--white-dim); margin-bottom: 1rem; }
.mega-promo-m { margin: 14px 0 0; font-size: .8rem; }

.mast-cta { flex: none; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s ease, opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobilenav {
  border-top: 1px solid var(--border);
  background: var(--dark);
  max-height: calc(100vh - 120px); overflow-y: auto;
  padding: 18px var(--gut) 32px;
}
.mobilenav ul { list-style: none; margin: 0; padding: 0; }
.mobilenav a, .mobilenav summary {
  display: block; padding: 12px 4px; color: var(--text);
  font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.mobilenav summary { list-style: none; }
.mobilenav summary::-webkit-details-marker { display: none; }
.mobilenav summary::after { content: "+"; float: right; color: var(--blue-light); }
.mobilenav details[open] summary::after { content: "–"; }
.mobilenav details ul { padding-left: 14px; }
.mobilenav details ul a { font-weight: 400; font-size: .88rem; color: var(--gray-light); }
.mobilenav-foot { margin-top: 22px; display: grid; gap: 10px; justify-items: start; font-size: .88rem; }

/* ----------------------------------------------------------------- crumbs */

.crumbs { border-bottom: 1px solid var(--border); background: #070b14; font-size: .8rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 13px 0; color: var(--gray); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #ffffff26; }
.crumbs a { color: var(--gray-light); }
.crumbs [aria-current] { color: var(--blue-light); }

/* -------------------------------------------------------------------- hero */

.hero { position: relative; padding-block: clamp(52px, 6vw, 92px) clamp(28px, 3vw, 44px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 640px;
  background: radial-gradient(50% 60% at 50% 30%, #1e3a8a5c, transparent 70%),
              radial-gradient(30% 40% at 80% 10%, #e6394626, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { max-width: 720px; }
.eyebrow-hero { color: var(--red-light); }
.hero-h1 { margin-bottom: 1.1rem; }
.hero-h1 .accent { background: linear-gradient(120deg, var(--blue-light), var(--blue-glow) 50%, var(--red-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-answer {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--white-dim);
  max-width: 62ch; border-left: 3px solid var(--blue-electric); padding-left: 18px;
}
.hero-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--text); }
.tick {
  width: 17px; height: 17px; border-radius: 50%; flex: none; margin-top: 4px;
  background: #2563eb22; border: 1px solid var(--border-blue); position: relative;
}
.tick::after {
  content: ""; position: absolute; left: 5px; top: 4px; width: 5px; height: 8px;
  border-right: 2px solid var(--blue-light); border-bottom: 2px solid var(--blue-light);
  transform: rotate(40deg);
}
.hero-aside { position: relative; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: clamp(40px, 5vw, 68px) 0 0; padding: 0;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.hstat { background: linear-gradient(180deg, var(--panel), var(--dark)); padding: 22px 24px; margin: 0; }
.hstat dd { margin: 0; }
.hstat strong { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; color: var(--white); display: block; line-height: 1; }
.hstat dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-top: 8px; }

/* -------------------------------------------------------------- AEO blocks */

.answer-box {
  background: linear-gradient(135deg, #1e3a8a2e, #0d122000);
  border: 1px solid var(--border-blue);
  border-left: 3px solid var(--blue-glow);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 2rem;
  max-width: 78ch;
}
.answer-label {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-light); font-weight: 700; margin: 0 0 8px;
}
.answer-text { margin: 0; font-size: 1.04rem; color: var(--white-dim); }

.keyfacts {
  background: var(--panel); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 26px 28px;
}
.kf-head {
  font-size: .95rem; margin: 0 0 16px; color: var(--white);
  font-weight: 700; font-family: var(--font-main);
}
.keyfacts dl { margin: 0; }
.kf-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
.kf-row:first-of-type { border-top: 0; padding-top: 0; }
.kf-row dt { font-size: .82rem; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kf-row dd { margin: 0; font-size: .92rem; color: var(--white-dim); font-weight: 500; }

.faq-list { max-width: 900px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); margin-bottom: 10px; overflow: hidden; }
.faq-item[open] { border-color: var(--border-blue); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 19px 24px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--white); font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--blue-light); transition: transform .2s ease;
}
.faq-plus::before { inset: 6px 0 auto; height: 2px; }
.faq-plus::after { inset: 0 6px auto; width: 2px; height: 14px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-a { padding: 0 24px 22px; color: var(--text); }
.faq-a p { margin: 0; max-width: 80ch; }

/* ------------------------------------------------------------------- cards */

.card {
  background: linear-gradient(180deg, var(--panel), #0a0f1c);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue-glow));
  opacity: 0; transition: opacity .2s ease;
}
.card-hover:hover { border-color: var(--border-blue); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-hover:hover::before { opacity: 1; }
.card-kicker { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-light); font-weight: 700; margin: 0 0 10px; }
.card-title { font-size: 1.1rem; margin-bottom: .55em; color: var(--white); }
.card-text { font-size: .92rem; color: var(--gray-light); margin: 0; }
.card-bullets { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.card-bullets li { font-size: .86rem; color: var(--text); padding-left: 15px; position: relative; }
.card-bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-glow); }
.card-link { margin-top: auto; padding-top: 18px; font-size: .84rem; font-weight: 700; color: var(--blue-light); display: inline-flex; gap: 7px; }
.card-hover:hover .card-link { color: var(--white); }
.card-num .num {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px var(--border-blue); display: block; margin-bottom: 14px;
}

/* ------------------------------------------------------------------ tables */

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  /* Keyboard users must be able to scroll a wide table, so it is focusable. */
  scrollbar-color: var(--border-blue) transparent;
}
.table-wrap:focus-visible { outline: 2px solid var(--blue-glow); outline-offset: 2px; }
.dt { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 620px; }
.dt caption {
  text-align: left; padding: 18px 22px 0; font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-light); font-weight: 700;
}
.dt thead th {
  text-align: left; padding: 15px 20px; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray); font-weight: 700;
  border-bottom: 1px solid var(--border-light); white-space: nowrap;
}
.dt tbody th, .dt tbody td { padding: 15px 20px; border-top: 1px solid var(--border); vertical-align: top; }
.dt tbody th { text-align: left; color: var(--white); font-weight: 600; }
.dt tbody td { color: var(--text); }
.dt tbody tr:hover { background: #ffffff06; }
.dt-dense tbody th, .dt-dense tbody td { padding: 11px 16px; font-size: .85rem; }
.table-note { padding: 14px 22px 18px; margin: 0; font-size: .8rem; color: var(--gray); }

/* -------------------------------------------------------------------- misc */

.statband {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 0; padding: 0;
}
.statband-item { background: var(--panel); padding: 26px 24px; text-align: center; }
.statband-item dd { margin: 0; }
.statband-item strong {
  font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 900; line-height: 1; display: block;
  background: linear-gradient(120deg, var(--white), var(--blue-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.statband-item dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-top: 10px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding-bottom: 34px; position: relative; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 28px; top: 52px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--border-blue), transparent);
}
.step-marker {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1e3a8a4d, #0d122000);
  border: 1px solid var(--border-blue);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--blue-light);
}
.step-body h3 { margin-bottom: .4em; }
.step-body p { margin: 0; color: var(--gray-light); font-size: .94rem; max-width: 76ch; }
.step-meta { margin-top: 10px !important; font-size: .78rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-light) !important; font-weight: 600; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cl-2 { grid-template-columns: repeat(2, 1fr); }
.cl-3 { grid-template-columns: repeat(3, 1fr); }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; color: var(--text); }

.pillset { margin-top: 22px; }
.pillset-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); font-weight: 700; margin: 0 0 10px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 100px;
  background: #ffffff08; border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-mono); letter-spacing: -.01em;
}

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.split-rev .split-copy { order: 2; }
.split-copy > p { color: var(--gray-light); max-width: 62ch; }

.quote { margin: 0; background: linear-gradient(135deg, var(--panel-2), var(--dark)); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px 34px; position: relative; }
.quote::before {
  content: "\\201C"; font-family: var(--font-display); font-size: 5rem; line-height: 1;
  color: var(--border-blue); position: absolute; top: 12px; left: 22px;
}
.quote blockquote { margin: 0 0 20px; padding-left: 42px; }
.quote blockquote p { font-size: 1.08rem; color: var(--white-dim); margin: 0; font-style: italic; }
.quote figcaption { padding-left: 42px; display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.quote figcaption strong { color: var(--white); }
.quote figcaption span { color: var(--gray); }

.callout { border-radius: var(--radius); padding: 22px 26px; margin: 26px 0; border: 1px solid var(--border-blue); background: #2563eb14; }
.callout h3 { font-size: .98rem; margin-bottom: .4em; }
.callout p { margin: 0; font-size: .92rem; color: var(--text); }
.callout-warn { border-color: #e6394640; background: #e6394614; }
.callout-warn h3 { color: var(--red-light); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 1px solid var(--border-blue); display: grid; gap: 30px; }
.timeline li { position: relative; }
.tl-dot { position: absolute; left: -32px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--blue-electric); box-shadow: 0 0 0 4px #2563eb26; }
.tl-when { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); font-weight: 700; margin: 0 0 6px; }
.tl-what { font-size: 1.05rem; margin-bottom: .35em; }
.tl-text { margin: 0; font-size: .92rem; color: var(--gray-light); max-width: 70ch; }

.prose { max-width: 78ch; }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; display: grid; gap: 8px; }
.prose li { color: var(--text); }
.prose a { text-decoration: underline; text-decoration-color: var(--border-blue); text-underline-offset: 3px; }

/* --------------------------------------------------------------------- CTA */

.cta-sec { position: relative; overflow: hidden; border-block: 1px solid var(--border); background: linear-gradient(135deg, var(--blue-deep), var(--black) 60%); }
.cta-glow { position: absolute; inset: auto -10% -60% 20%; height: 420px; background: radial-gradient(50% 50% at 50% 50%, #2563eb40, transparent 70%); pointer-events: none; }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: clamp(24px, 4vw, 60px); flex-wrap: wrap; }
.cta-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: .35em; max-width: 22ch; }
.cta-text { margin: 0; color: var(--gray-light); max-width: 52ch; }
.cta-inner .btn-row { margin-top: 0; }

/* ---------------------------------------------------------------- related */

.relgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.relcard {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  transition: border-color .2s ease, transform .2s ease;
}
.relcard:hover { border-color: var(--border-blue); transform: translateY(-3px); }
.relcard-t { font-weight: 700; color: var(--white); font-size: .96rem; }
.relcard-d { font-size: .84rem; color: var(--gray); }

/* ------------------------------------------------------------------ footer */

.foot { background: linear-gradient(180deg, #070b14, var(--black)); border-top: 1px solid var(--border); padding-top: clamp(48px, 6vw, 80px); font-size: .89rem; }
.foot-top { display: grid; grid-template-columns: minmax(280px, 1fr) 2.1fr; gap: clamp(32px, 4vw, 64px); }
.foot-brand .brand { margin-bottom: 20px; }
.foot-boiler { color: var(--gray); font-size: .86rem; max-width: 44ch; }
.foot-nap { font-style: normal; margin: 22px 0; color: var(--gray-light); line-height: 1.75; }
.foot-nap p { margin: 0 0 10px; }
.nap-name strong { color: var(--white); }
.nap-hours { font-size: .82rem; color: var(--gray); }
.foot-social { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.foot-social a { display: block; padding: 7px 14px; border: 1px solid var(--border); border-radius: 100px; font-size: .78rem; font-weight: 600; color: var(--text); }
.foot-social a:hover { border-color: var(--border-blue); color: var(--white); }

.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.foot-h { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-light); font-weight: 700; margin: 0 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: var(--gray-light); font-size: .855rem; }
.foot-col a:hover { color: var(--white); }

.foot-markets { margin-top: clamp(36px, 4vw, 56px); padding-top: 26px; border-top: 1px solid var(--border); }
.foot-markets ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.foot-markets li { font-size: .78rem; color: var(--gray-light); padding: 6px 13px; background: #ffffff06; border: 1px solid var(--border); border-radius: 100px; }

.foot-bottom {
  margin-top: 30px; padding: 22px 0 30px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .8rem; color: var(--gray);
}
.foot-bottom p { margin: 0; }
.foot-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.foot-legal a { color: var(--gray); }
.foot-legal a:hover { color: var(--blue-light); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .mainnav, .mast-cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-rev .split-copy { order: 0; }
}

@media (max-width: 820px) {
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cl-2, .cl-3 { grid-template-columns: 1fr; }
  .topbar-in { justify-content: center; text-align: center; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .kf-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .g-4, .hero-stats { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step-marker { width: 44px; height: 44px; font-size: .95rem; }
  .step:not(:last-child)::before { left: 22px; top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ print */

@media print {
  .topbar, .masthead, .crumbs, .cta-sec, .foot-cols, .foot-markets { display: none; }
  body { background: #fff; color: #111; }
  h1, h2, h3 { color: #000; }
  .card, .keyfacts, .answer-box, .table-wrap { border-color: #ccc; background: #fff; }
}

/* ------------------------------------------------------------------- forms */

.rc-form {
  background: linear-gradient(180deg, var(--panel), #0a0f1c);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}
.f-row { display: grid; gap: 16px; }
.f-2 { grid-template-columns: repeat(2, 1fr); }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 7px; }
.f-row .field { margin-bottom: 0; }
.field label { font-size: .82rem; font-weight: 600; color: var(--white-dim); letter-spacing: .01em; }
.field .req { color: var(--red-light); }
.field .opt { color: var(--gray); font-weight: 400; font-size: .76rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: #05080f;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-main);
  font-size: .93rem;
  padding: 12px 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue-light) 50%),
                    linear-gradient(135deg, var(--blue-light) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}
.field option { background: var(--dark); color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: #4b5563; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-electric);
  box-shadow: 0 0 0 3px #2563eb2e;
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: #e6394666; }

.field-check { flex-direction: row; align-items: flex-start; gap: 11px; margin-bottom: 14px; }
.field-check input[type="checkbox"] {
  appearance: none; flex: none;
  width: 18px; height: 18px; margin-top: 3px;
  border: 1px solid var(--border-light); border-radius: 4px;
  background: #05080f; cursor: pointer; position: relative;
}
.field-check input[type="checkbox"]:checked { background: var(--blue-electric); border-color: var(--blue-electric); }
.field-check input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg);
}
.field-check label { font-size: .84rem; font-weight: 400; color: var(--text); line-height: 1.55; }

.rc-form .btn { margin-top: 8px; }
.form-note {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--gray);
}
.form-note code {
  font-family: var(--font-mono); font-size: .78rem;
  background: #ffffff0f; padding: 2px 6px; border-radius: 4px; color: var(--blue-light);
}

@media (max-width: 640px) {
  .f-2 { grid-template-columns: 1fr; }
}
