/* ==========================================================================
   FlexSpace.direct — design system
   Industrial, engineering-forward: warm paper ground, charcoal steel chrome,
   safety-amber accent used sparingly, blueprint blue for interactive.
   ========================================================================== */
:root {
  --ink: #171a1e;
  --ink-soft: #3c424a;
  --muted: #6b7280;
  --paper: #f5f4f0;
  --card: #ffffff;
  --line: #e3dfd7;
  --line-strong: #cfc9be;
  --steel: #1f242b;
  --steel-2: #2a303a;
  --steel-text: #c9cdd4;
  --amber: #e07b1f;
  --amber-dark: #b96214;
  --amber-soft: #fdf1e3;
  --blue: #33608a;
  --blue-dark: #274b6d;
  --blue-soft: #e9f0f6;
  --green: #3e7a4e;
  --green-soft: #e9f2ec;
  --danger: #a33d2f;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(23,26,30,.06), 0 8px 24px -12px rgba(23,26,30,.18);
  --shadow-lg: 0 2px 4px rgba(23,26,30,.08), 0 24px 48px -16px rgba(23,26,30,.28);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "SF Mono", Menlo, monospace;
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--paper); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- kickers / badges ---------- */
.kicker {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-dark); margin-bottom: .6em;
}
.kicker.blue { color: var(--blue); }
.badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .18em .55em; border-radius: 4px; vertical-align: middle;
}
.badge-illus { background: var(--amber-soft); color: var(--amber-dark); border: 1px solid #f0d9bc; }
.badge-demo { background: var(--blue-soft); color: var(--blue-dark); border: 1px solid #cddced; }
.badge-cat { background: #eef0f3; color: var(--ink-soft); }
.badge-example { background: #f3f4f6; color: var(--muted); border: 1px dashed var(--line-strong); }
.badge-green { background: var(--green-soft); color: var(--green); }

/* ---------- header ---------- */
.site-header {
  background: var(--steel); color: #fff; position: sticky; top: 0; z-index: 60;
  border-bottom: 3px solid var(--amber);
}
.site-header .bar { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: baseline; gap: 2px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.logo:hover { text-decoration: none; color: #fff; }
.logo .tld { color: var(--amber); font-weight: 700; }
.logo .mark { width: 26px; height: 26px; margin-right: 8px; align-self: center; flex: 0 0 auto; }
nav.main-nav { display: flex; gap: 2px; margin-left: auto; }
nav.main-nav a {
  color: var(--steel-text); font-size: .84rem; font-weight: 600; padding: 8px 11px;
  border-radius: 6px; text-decoration: none; white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { color: #fff; background: var(--steel-2); }
.nav-cta {
  background: var(--amber); color: #fff !important; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--amber-dark) !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--steel-2); color: #fff; font-size: 1.3rem; border-radius: 6px; padding: 2px 10px; cursor: pointer; }
.nav-more { position: relative; display: flex; }
.nav-more-btn {
  background: none; border: none; cursor: pointer; color: var(--steel-text);
  font-family: var(--font); font-size: .84rem; font-weight: 600;
  padding: 8px 11px; border-radius: 6px; white-space: nowrap;
}
.nav-more:hover .nav-more-btn, .nav-more:focus-within .nav-more-btn { color: #fff; background: var(--steel-2); }
.nav-drop {
  display: none; position: absolute; top: 100%; right: 0; min-width: 220px;
  flex-direction: column; gap: 2px; background: var(--steel);
  border: 1px solid var(--steel-2); border-top: 3px solid var(--amber);
  border-radius: 0 0 8px 8px; padding: 6px; box-shadow: var(--shadow-lg);
}
.nav-more:hover .nav-drop, .nav-more:focus-within .nav-drop { display: flex; }
.nav-search { color: var(--steel-text); font-size: 1rem; padding: 8px 10px; text-decoration: none; }
.nav-search:hover { color:#fff; text-decoration: none; }
@media (max-width: 1020px) {
  nav.main-nav { display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: var(--steel); flex-direction: column; padding: 10px 16px 16px; gap: 4px;
    border-bottom: 3px solid var(--amber); box-shadow: var(--shadow-lg); }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { font-size: 1rem; padding: 10px 12px; }
  .nav-toggle { display: block; }
  /* flatten the More dropdown into the mobile column menu */
  .nav-more, .nav-drop { display: contents; }
  .nav-more-btn { display: none; }
}

/* ---------- hero ---------- */
/* ---------- photo hero ---------- */
.hero-photo {
  position: relative; color: #fff; overflow: hidden;
  background: var(--steel-2);
  display: flex; align-items: center;
  min-height: min(86vh, 720px);
}
.hero-photo .hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-flex.jpg") center 70% / cover no-repeat;
}
.hero-photo .hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(16,19,24,.84) 0%, rgba(16,19,24,.64) 36%, rgba(16,19,24,.22) 66%, rgba(16,19,24,.04) 100%),
    linear-gradient(180deg, rgba(16,19,24,.30) 0%, rgba(16,19,24,0) 32%, rgba(16,19,24,.32) 100%);
}
.hero-photo-inner { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 72px; width: 100%; }
.hero-photo .kicker { color: var(--amber); }
.hero-photo h1 { max-width: 620px; text-shadow: 0 2px 22px rgba(0,0,0,.5); }
.hero-photo .lead { font-size: 1.12rem; color: #d6dae1; max-width: 480px; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.hero-photo .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.4); }
.hero-photo .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.quickstart-glass {
  margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: rgba(14,17,22,.55); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 12px 14px; border-radius: var(--radius); max-width: 480px;
}
.quickstart-glass input { border-color: rgba(255,255,255,.25); }
.hero-note { color: #aab1bb; margin-top: 10px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 640px) {
  .hero-photo { min-height: 78vh; }
  .hero-photo .hero-bg { background-position: 75% 65%; }
  .hero-photo-inner { padding-top: 64px; padding-bottom: 56px; }
}

.hero {
  background:
    linear-gradient(115deg, rgba(23,27,33,.96) 0%, rgba(23,27,33,.88) 46%, rgba(30,38,48,.65) 100%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px),
    var(--steel-2);
  color: #fff; padding: 76px 0 64px;
}
.hero h1 { max-width: 760px; }
.hero .hero-h2 { max-width: 760px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.hero .lead { font-size: 1.15rem; color: #c8cdd5; max-width: 640px; }
.hero .kicker { color: var(--amber); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-plan { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: .95rem; padding: 12px 22px;
  border-radius: 8px; border: none; cursor: pointer; text-decoration: none !important;
  transition: background .15s, transform .05s; font-family: var(--font);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #fff !important; }
.btn-primary:hover { background: var(--amber-dark); }
.btn-secondary { background: var(--blue); color: #fff !important; }
.btn-secondary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-soft); background: #fff; }
.hero .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--steel); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: #c8cdd5; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 a { color: var(--ink); }
.card-hover { transition: transform .12s, box-shadow .12s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card .thumb { margin: -22px -22px 16px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; border-bottom: 1px solid var(--line); background: #eef0ee; }
.card .thumb svg { display: block; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.stat-strip b { color: var(--ink); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #f0eee9; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #faf9f6; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-plain th, .table-plain td { padding: 7px 10px; }

/* ---------- forms ---------- */
label.field { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; }
label.field span.lab { display: block; margin-bottom: 4px; }
/* ---------- parcel boundary panel (planner) ---------- */
.parcel-box {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 16px; background: #faf9f5;
}
.parcel-tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.parcel-tabs button {
  background: none; border: 1px solid var(--line-strong); border-radius: 6px;
  font-family: var(--font); font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  padding: 6px 10px; cursor: pointer;
}
.parcel-tabs button.active { background: var(--steel); color: #fff; border-color: var(--steel); }
#pcMap { height: 360px; display: none; margin-top: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }

input[type=text], input[type=number], select, textarea {
  width: 100%; padding: 9px 11px; font-size: .95rem; font-family: var(--font);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field-row { display: grid; gap: 12px; }
.f2 { grid-template-columns: 1fr 1fr; } .f3 { grid-template-columns: repeat(3, 1fr); } .f4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .f3, .f4 { grid-template-columns: 1fr 1fr; } }
.unit-suffix { font-weight: 400; color: var(--muted); font-size: .75rem; }

/* ---------- tool layout ---------- */
.tool-layout { display: grid; grid-template-columns: 360px 1fr; gap: 26px; align-items: start; }
@media (max-width: 980px) { .tool-layout { grid-template-columns: 1fr; } }
.tool-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.tool-panel h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); border-bottom: 2px solid var(--amber); display: inline-block; padding-bottom: 4px; margin-bottom: 16px; }
.results-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.metric { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius-sm); padding: 12px 14px; }
.metric .lab { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.metric .val { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.metric.blue { border-left-color: var(--blue); }
.metric.green { border-left-color: var(--green); }

/* ---------- rating dots ---------- */
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dots i.on { background: var(--amber); }

/* ---------- pills / filters ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  font-size: .82rem; font-weight: 600; padding: 6px 13px; border-radius: 99px; cursor: pointer; font-family: var(--font);
}
.pill:hover { border-color: var(--blue); color: var(--blue); }
.pill.on { background: var(--steel); border-color: var(--steel); color: #fff; }

/* ---------- accordion ---------- */
details.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
details.acc summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; align-items: center; gap: 10px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--amber); font-weight: 400; }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 20px 18px; }

/* ---------- callouts ---------- */
.callout { border-left: 4px solid var(--amber); background: var(--amber-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 18px 0; font-size: .92rem; }
.callout.blue { border-left-color: var(--blue); background: var(--blue-soft); }
.disclaimer-box { font-size: .8rem; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 20px; background: #fbfaf8; }

/* ---------- page hero (interior) ---------- */
.page-hero { background: var(--steel); color: #fff; padding: 44px 0 38px; border-bottom: 3px solid var(--amber); }
.page-hero h1 { margin-bottom: .25em; }
.page-hero p { color: #c8cdd5; max-width: 700px; margin-bottom: 0; }
.crumbs { font-size: .78rem; color: #8d93a0; margin-bottom: 14px; }
.crumbs a { color: #b9bfca; }

/* ---------- footer ---------- */
.site-footer { background: var(--steel); color: #9aa1ac; margin-top: 80px; padding: 48px 0 28px; font-size: .88rem; }
.site-footer a { color: #c9cdd4; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid var(--steel-2); padding-top: 18px; font-size: .78rem; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* ---------- workflow steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.step::before {
  content: counter(step, decimal-leading-zero); font-family: var(--mono); font-weight: 700;
  color: var(--amber); font-size: .95rem; display: block; margin-bottom: 8px;
}
.step b { display: block; margin-bottom: 4px; }
.step .small { color: var(--muted); }

/* ---------- compare picker ---------- */
.compare-bar { position: sticky; bottom: 0; background: var(--steel); color: #fff; padding: 12px 0; z-index: 40; box-shadow: 0 -8px 24px rgba(0,0,0,.25); display: none; }
.compare-bar.show { display: block; }
.compare-bar .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- planner canvas ---------- */
.plan-canvas { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.plan-canvas svg { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .78rem; color: var(--ink-soft); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15); }

/* ---------- misc ---------- */
.hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.hidden { display: none !important; }
.two-col { columns: 2; column-gap: 40px; }
@media (max-width: 720px) { .two-col { columns: 1; } }
ul.checks { list-style: none; padding: 0; }
ul.checks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
ul.crosses li::before { content: "✕"; color: var(--danger); }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose table { margin: 1em 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--amber); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
/* ---------- stats band (homepage, under hero) ---------- */
.stats-band { background: var(--steel); color: #fff; border-top: 1px solid var(--steel-2); }
.stats-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 720px) { .stats-band .wrap { grid-template-columns: repeat(2, 1fr); } }
.stats-band .stat { padding: 22px 18px; text-align: center; border-left: 1px solid var(--steel-2); }
.stats-band .stat:first-child { border-left: none; }
@media (max-width: 720px) { .stats-band .stat:nth-child(3) { border-left: none; } .stats-band .stat { padding: 16px 10px; } }
.stats-band .val { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; color: var(--amber); font-variant-numeric: tabular-nums; }
.stats-band .lab { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--steel-text); margin-top: 2px; }

/* ---------- photo section bands ---------- */
.section-photo { position: relative; color: #fff; overflow: hidden; padding: 72px 0; }
.section-photo .band-bg { position: absolute; inset: 0; background-position: center; background-size: cover; }
.section-photo .band-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16,19,24,.9) 0%, rgba(16,19,24,.78) 45%, rgba(16,19,24,.45) 100%); }
.section-photo .wrap { position: relative; z-index: 1; }
.section-photo h2 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.section-photo p { color: #d6dae1; }
.section-photo .kicker { color: var(--amber); }
.section-photo .card { background: rgba(20,24,30,.82); border-color: rgba(255,255,255,.14); color: #e7eaee; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.section-photo .card h3, .section-photo .card h3 a, .section-photo .card b { color: #fff; }
.section-photo .card .small { color: #c8cdd5; }
.section-photo .card .muted { color: #9aa1ac; }

/* ---------- video cards (click-to-play facades) ---------- */
.video-card { padding-bottom: 18px; }
.video-thumb {
  display: block; width: calc(100% + 44px); margin: -22px -22px 0; padding: 0;
  border: none; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
  cursor: pointer; position: relative; background: #10151b; aspect-ratio: 16 / 9;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .15s, transform .2s; }
.video-thumb:hover img { opacity: 1; transform: scale(1.02); }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 44px; background: rgba(16,19,24,.78); border-radius: 10px;
  transition: background .15s;
}
.video-play::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-42%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}
.video-thumb:hover .video-play { background: var(--amber); }
.video-frame { width: calc(100% + 44px); margin: -22px -22px 0; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- cheat codes ---------- */
.cheat-num { font-family: var(--mono); color: var(--amber); font-weight: 700; margin-right: 12px; font-size: .95rem; }
.badge-save { background: var(--green-soft); color: var(--green); border: 1px solid #cfe3d6; margin-left: auto; margin-right: 10px; white-space: nowrap; }
details.acc summary .badge-save { flex: 0 0 auto; }
@media (max-width: 640px) { details.acc summary { flex-wrap: wrap; } .badge-save { margin-left: 34px; order: 3; } }

/* ---------- extra income ---------- */
.income-icon { font-size: 1.25rem; margin-right: 6px; vertical-align: -2px; }

/* ---------- success stories ---------- */
.story-card { margin-bottom: 22px; padding: 28px; }
.story-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.story-initials {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center;
}
.story-head h2 { font-size: 1.45rem; }

/* ---------- media page ---------- */
.card-featured { border: 2px solid var(--amber); }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px;
  border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #fff !important; font-size: .84rem; font-weight: 600; text-decoration: none !important;
}
.social-chip:hover { background: var(--amber); border-color: var(--amber); }

/* ---------- wizard framework (feasibility + business plan) ---------- */
.wiz-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wiz-step {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong);
  background: #fff; color: var(--ink-soft); font-family: var(--font); font-size: .82rem;
  font-weight: 600; padding: 7px 13px 7px 8px; border-radius: 99px; cursor: pointer;
}
.wiz-step .wiz-n {
  width: 22px; height: 22px; border-radius: 50%; background: var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 800;
}
.wiz-step.on { background: var(--steel); border-color: var(--steel); color: #fff; }
.wiz-step.on .wiz-n { background: var(--amber); color: #fff; }
.wiz-step.done { border-color: var(--green); color: var(--green); }
.wiz-step.done .wiz-n { background: var(--green-soft); color: var(--green); }
.wiz-body {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.wiz-body h2 { font-size: 1.35rem; }
.wiz-nav { margin-top: 20px; }
.wiz-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 4px 0 16px; }
.wiz-check { font-size: .9rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.wiz-check input { margin-right: 5px; }

/* competitor survey rows */
.comp-head, .comp-row { display: grid; grid-template-columns: 1fr 80px 90px 80px 40px; gap: 8px; align-items: center; }
.comp-head { margin-bottom: 6px; font-weight: 700; }
.comp-row { margin-bottom: 8px; }
.comp-row .pill { padding: 6px 10px; color: var(--danger); }
@media (max-width: 640px) { .comp-head { display: none; } .comp-row { grid-template-columns: 1fr 1fr; } .comp-row input:first-child { grid-column: 1 / -1; } }

/* ---------- generated report / document ---------- */
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; }
.report-head { border-bottom: 3px solid var(--amber); padding-bottom: 14px; margin-bottom: 22px; }
.report h3 {
  margin-top: 1.8em; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.report table { margin: .8em 0 1.2em; font-size: .88rem; }
.verdict {
  display: flex; gap: 18px; align-items: center; border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 14px 0 18px; border: 1px solid var(--line);
}
.verdict-score { font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.verdict-score span { font-size: .9rem; font-weight: 600; color: var(--muted); }
.verdict-good { background: var(--green-soft); border-color: #cfe3d6; }
.verdict-good .verdict-score { color: var(--green); }
.verdict-ok { background: var(--blue-soft); border-color: #cddced; }
.verdict-ok .verdict-score { color: var(--blue); }
.verdict-warn { background: var(--amber-soft); border-color: #f0d9bc; }
.verdict-warn .verdict-score { color: var(--amber-dark); }
.verdict-bad { background: #f9ebe8; border-color: #e8cdc7; }
.verdict-bad .verdict-score { color: var(--danger); }

/* ---------- parcel map bar + fullscreen modal ---------- */
.pc-map-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--steel); color: #d6dae1; padding: 8px 12px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-top: 10px;
}
.pc-map-bar .small { color: #d6dae1; }
.pc-map-bar b { color: #fff; }
.pc-map-bar .btn { margin-left: auto; }
.pc-map-bar .btn + .btn { margin-left: 0; }
#pcMapWrap #pcMap { margin-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.map-modal {
  position: fixed; inset: 0; z-index: 300; background: rgba(16, 19, 24, .72);
  display: flex; padding: 8px;
}
.map-modal[hidden] { display: none; }
.map-modal-inner {
  background: var(--paper); border-radius: var(--radius); flex: 1;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg);
}
.map-modal-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 3px solid var(--amber); background: #fff;
}
#mapModalBody { flex: 1; display: flex; flex-direction: column; padding: 8px; min-height: 0; }
#mapModalBody #pcMapWrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
#mapModalBody #pcMap { flex: 1; height: auto !important; min-height: 320px; }

/* combined-site label pinned to the middle of the selection */
.combined-tip {
  background: var(--steel); color: #fff; border: 2px solid var(--amber);
  border-radius: 6px; font-family: var(--mono); font-weight: 700;
  font-size: .72rem; letter-spacing: .05em; padding: 4px 9px;
  box-shadow: var(--shadow-lg); white-space: nowrap; opacity: .95;
}
.combined-tip.applied { border-color: var(--green); }
.combined-tip::before { display: none; }

/* ---------- materials encyclopedia (manual showdowns) ---------- */
.enc-block { border-top: 1px dashed var(--line-strong); margin-top: 20px; padding-top: 14px; }
.enc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.enc-chip {
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  font-family: var(--font); font-size: .82rem; font-weight: 600; text-align: left;
  padding: 8px 13px; border-radius: 8px; cursor: pointer; transition: border-color .12s, transform .08s;
}
.enc-chip:hover { border-color: var(--amber); color: var(--amber-dark); transform: translateY(-1px); }
.enc-modal .map-modal-inner { max-width: 1100px; margin: 0 auto; }
.enc-body { flex: 1; overflow-y: auto; padding: 18px; }
.enc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.enc-option { padding: 0 16px 16px; }
.enc-option h3 { font-size: 1rem; margin-top: 12px; }
.enc-art { margin: 0 -16px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: #f2f0e9; border-bottom: 1px solid var(--line); position: relative; }
.enc-art svg, .enc-art img { display: block; width: 100%; height: auto; }
.enc-imgtag { position: absolute; right: 8px; bottom: 8px; }

.print-head { display: none; }

@media print {
  .site-header, .site-footer, .compare-bar, .btn { display: none !important; }
  body { background: #fff; }
  .no-print, .page-hero, .wiz-steps, .wiz-nav, .callout { display: none !important; }
  .wiz-body, .report { border: none; box-shadow: none; padding: 0; }
  .report h3 { page-break-after: avoid; }
  .report table { page-break-inside: avoid; }
  .print-head { display: block; border-bottom: 3px solid var(--amber); padding-bottom: 10px; margin-bottom: 18px; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-panel, .card { box-shadow: none; }
}
