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

:root {
  --navy-980: #020913;
  --navy-950: #071224;
  --navy-900: #0a1f3c;
  --navy-800: #14345f;
  --blue-500: #0ea5ff;
  --blue-300: #6ef5ff;
  --green-500: #39ff14;
  --green-300: #a6ff4d;
  --paper: #ffffff;
  --sky-50: #eff8ff;
  --steel-900: #111827;
  --steel-700: #334155;
  --steel-500: #64748b;
  --steel-200: #dbe5ef;
  --steel-100: #edf2f7;
  --orange-500: #ff8a00;
  --red-500: #f05252;
  --shadow: 0 24px 72px rgba(7, 18, 36, 0.14);
  --shadow-dark: 0 30px 90px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --container: 1180px;
  --font-body: "Manrope", Arial, sans-serif;
  --font-display: "Space Grotesk", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--steel-900);
  font-family: var(--font-body);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--green-500);
  color: var(--navy-950);
  font-weight: 800;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 11, 24, 0.94);
  color: white;
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-link img {
  background: white;
  border-radius: var(--radius);
  padding: 0.35rem;
  width: 170px;
  height: auto;
}

.brand-meta {
  display: grid;
  gap: 0.1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
}

.brand-meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-meta span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.7rem 0.9rem;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(57, 255, 20, 0.12);
  color: var(--green-500);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  background: var(--green-500);
  color: var(--navy-950);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 0.8rem 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(2, 9, 19, 0.98) 0%, rgba(7, 18, 36, 0.98) 48%, rgba(10, 31, 60, 0.88) 100%),
    var(--navy-950);
  color: white;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, transparent 0 45%, rgba(14, 165, 255, 0.12) 45% 46%, transparent 46% 100%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  content: "";
  opacity: 0.5;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 620px;
  align-items: center;
  gap: 3rem;
  padding-block: 4.4rem;
}

.hero-grid.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.8vw, 5.85rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.94;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--green-500);
  display: block;
}

.hero p,
.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.8;
  margin: 1.5rem 0 0;
  max-width: 690px;
}

.section-kicker,
.eyebrow {
  color: var(--blue-500);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.hero .section-kicker,
.page-hero .section-kicker {
  color: var(--green-500);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green-500);
  color: var(--navy-950);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.button-light {
  background: white;
  border-color: var(--steel-200);
  color: var(--navy-950);
}

.hero-media {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}

.hero-media img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-proof {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.proof-item {
  border-left: 3px solid var(--green-500);
  padding-left: 0.9rem;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.page-hero {
  background:
    linear-gradient(118deg, rgba(2, 9, 19, 0.98), rgba(7, 18, 36, 0.95)),
    var(--navy-950);
  color: white;
  overflow: hidden;
  padding-block: 5rem;
  position: relative;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 60%, rgba(57, 255, 20, 0.08) 60% 61%, transparent 61%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 80px 80px;
  content: "";
  opacity: 0.6;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.section {
  padding-block: 5rem;
}

.section-tight {
  padding-block: 3.5rem;
}

.section-blue {
  background: linear-gradient(180deg, var(--sky-50), white);
}

.section-dark {
  background: var(--navy-950);
  color: white;
}

.section-header {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.45fr);
  margin-bottom: 2.5rem;
}

.section-header h2,
.split-copy h2,
.panel h2,
.template-card h2 {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.section-dark .section-header h2,
.section-dark .panel h2 {
  color: white;
}

.section-header p,
.split-copy p,
.panel p,
.template-card p {
  color: var(--steel-700);
  margin: 1rem 0 0;
}

.section-dark .section-header p,
.section-dark .panel p {
  color: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.tile,
.template-card,
.review-card,
.decision-card {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 50px rgba(7, 18, 36, 0.06);
}

.panel,
.tile,
.decision-card {
  padding: 1.35rem;
}

.section-dark .panel,
.section-dark .tile,
.section-dark .review-card,
.section-dark .decision-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.tile h3,
.decision-card h3,
.review-card h3 {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0;
}

.section-dark .tile h3,
.section-dark .decision-card h3,
.section-dark .review-card h3 {
  color: white;
}

.tile p,
.decision-card p,
.review-card p {
  color: var(--steel-700);
  font-size: 0.95rem;
  margin: 0.8rem 0 0;
}

.section-dark .tile p,
.section-dark .decision-card p,
.section-dark .review-card p {
  color: rgba(255, 255, 255, 0.7);
}

.metric-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.metric {
  background: white;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.metric strong {
  color: var(--navy-950);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  color: var(--steel-700);
  display: block;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.system-map {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.map-step {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  background: white;
  min-height: 150px;
  padding: 1rem;
  position: relative;
}

.map-step::after {
  position: absolute;
  right: -0.6rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--blue-500);
  content: "";
}

.map-step:last-child::after {
  content: none;
}

.map-step strong {
  color: var(--navy-950);
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.1;
}

.map-step span {
  color: var(--steel-700);
  display: block;
  font-size: 0.86rem;
  margin-top: 0.7rem;
}

.image-band {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
}

.image-band figure,
.image-tile,
.concept-frame {
  border-radius: var(--radius);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.image-band img,
.image-tile img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-band figcaption,
.image-tile span {
  background: linear-gradient(180deg, transparent, rgba(2, 9, 19, 0.85));
  bottom: 0;
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  left: 0;
  padding: 2rem 1rem 0.9rem;
  position: absolute;
  right: 0;
}

.swatch-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.swatch {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.swatch-color {
  min-height: 96px;
}

.swatch-body {
  background: white;
  padding: 0.9rem;
}

.swatch-body strong,
.swatch-body code {
  display: block;
}

.swatch-body strong {
  color: var(--navy-950);
  font-weight: 900;
}

.swatch-body code {
  color: var(--steel-700);
  font-size: 0.83rem;
  margin-top: 0.25rem;
}

.type-sample {
  border-top: 1px solid var(--steel-200);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.type-display {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.92;
}

.type-body {
  color: var(--steel-700);
  font-size: 1.1rem;
  line-height: 1.8;
}

.rule-list,
.check-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.rule-list li,
.check-list li {
  border-top: 1px solid rgba(100, 116, 139, 0.18);
  padding: 0.85rem 0;
}

.check-list li {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1.1rem 1fr;
}

.check-list li::before {
  color: var(--green-500);
  content: "✓";
  font-weight: 900;
}

.page-template-grid {
  display: grid;
  gap: 1.2rem;
}

.template-card {
  display: grid;
  gap: 0;
  grid-template-columns: 0.75fr 1.25fr;
  overflow: hidden;
}

.template-visual {
  background:
    linear-gradient(135deg, rgba(7, 18, 36, 0.92), rgba(10, 31, 60, 0.9)),
    var(--navy-950);
  color: white;
  min-height: 360px;
  padding: 1.25rem;
}

.wireframe {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  height: 300px;
  overflow: hidden;
}

.wire-nav {
  background: var(--navy-950);
  height: 26px;
}

.wire-hero {
  background: linear-gradient(110deg, var(--navy-900), var(--blue-500));
  height: 82px;
}

.wire-line {
  background: var(--steel-200);
  border-radius: 999px;
  height: 8px;
  margin: 14px;
}

.wire-line.short {
  width: 54%;
}

.wire-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 14px 14px;
}

.wire-grid span,
.wire-block {
  background: var(--steel-100);
  border-radius: 6px;
  display: block;
  min-height: 46px;
}

.template-body {
  padding: 1.5rem;
}

.template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  color: var(--steel-700);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
}

.section-dark .tag {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.76);
}

.split {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.answer-flow {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}

.flow-panel {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  background: white;
  padding: 1.3rem;
}

.flow-panel h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin: 0;
}

.flow-panel.answer h3 {
  color: var(--blue-500);
}

.flow-panel.learn h3 {
  color: #15b300;
}

.flow-arrow {
  align-self: center;
  color: var(--blue-500);
  font-size: 2rem;
  font-weight: 900;
}

.approval-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-card {
  border-top: 4px solid var(--steel-500);
}

.decision-card.good {
  border-top-color: var(--green-500);
}

.decision-card.warn {
  border-top-color: var(--orange-500);
}

.decision-card.risk {
  border-top-color: var(--red-500);
}

.review-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-button {
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  background: white;
  color: var(--steel-700);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.6rem 0.85rem;
}

.filter-button[aria-pressed="true"] {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: white;
}

.review-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: 240px 1fr;
  margin-top: 1rem;
  padding: 1rem;
}

.review-card[hidden] {
  display: none;
}

.review-card img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}

.review-topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.3rem 0.55rem;
  text-transform: uppercase;
}

.status.good {
  background: rgba(57, 255, 20, 0.14);
  color: #108900;
}

.status.warn {
  background: rgba(255, 138, 0, 0.14);
  color: #9a5200;
}

.status.risk {
  background: rgba(240, 82, 82, 0.14);
  color: #b91c1c;
}

.status.neutral {
  background: var(--steel-100);
  color: var(--steel-700);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.review-actions button {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  background: white;
  color: var(--navy-950);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.55rem 0.7rem;
}

.review-actions button:hover {
  border-color: var(--blue-500);
}

.mini-note,
.review-note {
  border-top: 2px solid var(--blue-500);
  padding-top: 0.75rem;
}

.mini-note h3,
.review-note h3 {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.15;
  margin: 0;
}

.mini-note p,
.review-note p {
  color: var(--steel-700);
  font-size: 0.9rem;
  margin: 0.45rem 0 0;
}

.counter-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.counter {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  background: white;
  padding: 1rem;
}

.counter strong {
  color: var(--navy-950);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
}

.counter span {
  color: var(--steel-700);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.link-table {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.link-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.9fr 1.2fr 1fr;
  padding: 1rem;
}

.link-row + .link-row {
  border-top: 1px solid var(--steel-200);
}

.link-row strong {
  color: var(--navy-950);
}

.link-row span,
.link-row a {
  color: var(--steel-700);
  font-size: 0.92rem;
}

.link-row a {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.concept-frame {
  border: 1px solid var(--steel-200);
  box-shadow: var(--shadow);
}

.concept-frame img {
  width: 100%;
}

.site-footer {
  background: var(--navy-980);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.site-footer h2 {
  color: white;
  font-family: var(--font-display);
  margin: 0;
}

.site-footer a {
  color: white;
  font-weight: 800;
}

.admin-gate {
  background:
    linear-gradient(135deg, rgba(7, 18, 36, 0.96), rgba(10, 31, 60, 0.9)),
    url("assets/roof-replacement-drone.webp") center / cover;
  color: white;
  min-height: calc(100vh - 86px);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.admin-gate-grid {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
}

.admin-gate-copy h1 {
  color: white;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.8rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
  max-width: 900px;
}

.admin-gate-copy,
.admin-gate-panel {
  min-width: 0;
}

.admin-gate-copy h1,
.admin-gate-copy p {
  overflow-wrap: break-word;
}

.admin-gate-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
  margin: 1rem 0 0;
  max-width: 720px;
}

.admin-gate-panel {
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-dark);
  color: var(--steel-900);
  overflow: hidden;
}

.admin-gate-panel img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.admin-gate-panel > div {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.access-row {
  align-items: center;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem;
}

.access-row strong {
  color: var(--navy-950);
}

.access-row span {
  background: var(--sky-50);
  border-radius: 999px;
  color: var(--blue-500);
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

.compact-hero {
  padding-block: 4rem;
}

.builder-hero {
  padding-block: 1.35rem;
}

.builder-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 980px;
}

.builder-hero p {
  font-size: 0.96rem;
  line-height: 1.55;
  margin-top: 0.75rem;
  max-width: 860px;
}

.builder-section {
  padding-block: 1.4rem 4rem;
}

.builder-section .workbench-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.builder-section .workbench-head p {
  margin-top: 0.55rem;
}

.layout-family-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-family-card {
  background: white;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(7, 18, 36, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
}

.layout-family-card h3 {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1;
  margin: 0;
}

.layout-family-card p {
  color: var(--steel-700);
  margin: 0;
}

.layout-family-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.format-card-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.layout-shell {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 260px minmax(0, 1fr);
}

.layout-sidebar {
  background: white;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(7, 18, 36, 0.06);
  padding: 1rem;
  position: sticky;
  top: 108px;
}

.layout-picker {
  display: grid;
  gap: 0.45rem;
}

.layout-picker button {
  background: var(--sky-50);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--navy-950);
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.layout-picker button[aria-current="page"],
.layout-picker button:hover {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: white;
}

.layout-workbench {
  min-width: 0;
}

.workbench-head {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 1rem;
}

.workbench-head h2 {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.workbench-head p {
  color: var(--steel-700);
  margin: 1rem 0 0;
  max-width: 780px;
}

.workbench-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.live-basis {
  background: var(--sky-50);
  border: 1px solid var(--steel-200);
  border-left: 5px solid var(--blue-500);
  border-radius: var(--radius);
  color: var(--steel-700);
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 1rem;
}

.builder-status {
  align-items: center;
  background: var(--navy-950);
  border-radius: var(--radius);
  color: white;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  margin-bottom: 1rem;
  padding: 1rem;
}

.builder-status strong,
.builder-status span {
  display: block;
}

.builder-status strong {
  color: var(--green-500);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-status > div > span {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.12;
  margin-top: 0.25rem;
}

.builder-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.builder-status-pills span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0.42rem 0.6rem;
}

.builder-status-pills span.is-active {
  background: rgba(57, 255, 20, 0.16);
  border-color: rgba(57, 255, 20, 0.35);
  color: var(--green-500);
}

.builder-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.78fr);
}

.module-panel,
.preview-panel {
  background: white;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(7, 18, 36, 0.06);
  padding: 1rem;
}

.module-panel-head,
.preview-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.module-panel-head h3,
.preview-head h3 {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.05;
  margin: 0;
}

.module-help {
  color: var(--steel-700);
  font-size: 0.92rem;
  margin: 0.85rem 0 1rem;
}

.module-list {
  display: grid;
  gap: 0.8rem;
}

.module-card {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.module-card.is-selected {
  border-color: rgba(57, 255, 20, 0.74);
  box-shadow: 0 18px 44px rgba(7, 18, 36, 0.12);
  transform: translateY(-1px);
}

.module-card-copy {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 2rem minmax(0, 1fr);
}

.module-number {
  align-items: center;
  background: var(--green-500);
  border-radius: 50%;
  color: var(--navy-950);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.module-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.module-meta span {
  background: var(--sky-50);
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  color: var(--blue-500);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
}

.module-meta button {
  background: white;
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  color: var(--navy-950);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
}

.module-meta button:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.module-card h4 {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
  margin: 0;
}

.module-card p {
  color: var(--steel-700);
  font-size: 0.94rem;
  margin: 0.5rem 0 0;
}

.module-card ul {
  color: var(--steel-700);
  font-size: 0.86rem;
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
}

.module-move {
  display: grid;
  gap: 0.45rem;
}

.module-lock {
  align-items: center;
  display: flex;
  justify-content: center;
}

.module-lock span {
  background: var(--steel-100);
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  color: var(--steel-500);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.42rem 0.6rem;
  text-transform: uppercase;
}

.module-move button {
  align-items: center;
  background: var(--navy-950);
  border: 1px solid var(--navy-950);
  border-radius: var(--radius);
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  min-width: 44px;
  padding: 0.45rem;
}

.module-move button:disabled {
  background: var(--steel-100);
  border-color: var(--steel-200);
  color: var(--steel-500);
  cursor: not-allowed;
}

.mock-browser {
  background: var(--steel-100);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  margin-top: 1rem;
  overflow: hidden;
}

.preview-help {
  color: var(--steel-700);
  font-size: 0.86rem;
  margin: 0.7rem 0 0;
}

.mock-topbar {
  align-items: center;
  background: var(--navy-950);
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem;
}

.mock-topbar span {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  height: 0.55rem;
  width: 0.55rem;
}

.mock-site-header {
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--steel-200);
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1rem;
}

.mock-site-header strong {
  color: var(--navy-950);
  font-family: var(--font-display);
  margin-right: auto;
}

.mock-site-header span {
  color: var(--steel-700);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mock-page-map {
  background: white;
  border-bottom: 1px solid var(--steel-200);
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.75rem;
}

.mock-page-map button {
  align-items: center;
  background: var(--sky-50);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  color: var(--steel-700);
  cursor: pointer;
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.45rem;
  text-align: left;
}

.mock-page-map button.is-selected,
.mock-page-map button:hover {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: white;
}

.mock-page-map button span {
  align-items: center;
  background: var(--green-500);
  border-radius: 50%;
  color: var(--navy-950);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.68rem;
  height: 1.25rem;
  justify-content: center;
  width: 1.25rem;
}

.mock-module {
  background: white;
  border-bottom: 1px solid var(--steel-200);
  cursor: pointer;
  padding: 0.82rem;
  position: relative;
  transition: background 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.mock-module:hover {
  background: #fbfdff;
}

.mock-module.is-selected {
  box-shadow: inset 4px 0 0 var(--green-500);
  outline: 2px solid rgba(57, 255, 20, 0.62);
  outline-offset: -2px;
}

.mock-module h4 {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.08;
  margin: 0.3rem 0 0;
}

.mock-module p {
  color: var(--steel-700);
  font-size: 0.78rem;
  margin: 0.55rem 0 0;
}

.mock-label {
  color: var(--blue-500);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-hero {
  background: var(--navy-950);
  color: white;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(118px, 0.62fr);
}

.mock-hero h4,
.mock-hero p {
  color: white;
}

.mock-hero img,
.mock-media img {
  border-radius: var(--radius);
  height: 100%;
  max-height: 138px;
  object-fit: cover;
  width: 100%;
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.mock-actions span {
  background: var(--green-500);
  border-radius: var(--radius);
  color: var(--navy-950);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.42rem 0.55rem;
}

.mock-grid,
.mock-stat-row {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.85rem;
}

.mock-grid span,
.mock-stat-row span {
  background: var(--sky-50);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  min-height: 36px;
}

.mock-stat-row span {
  align-items: center;
  color: var(--navy-950);
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  text-align: center;
}

.mock-video-row,
.mock-media {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 96px minmax(0, 1fr);
}

.mock-video-square {
  aspect-ratio: 1;
  background: var(--navy-950);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.mock-video-square img,
.mock-team-video img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mock-video-square::after,
.mock-team-video::after {
  border-bottom: 0.7rem solid transparent;
  border-left: 1rem solid white;
  border-top: 0.7rem solid transparent;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-40%, -50%);
  z-index: 2;
}

.mock-video-square span,
.mock-team-video span {
  background: linear-gradient(180deg, transparent, rgba(2, 9, 19, 0.86));
  bottom: 0;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  left: 0;
  padding: 2rem 0.7rem 0.7rem;
  position: absolute;
  right: 0;
}

.mock-team-video {
  aspect-ratio: 16 / 9;
  background: var(--navy-950);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
  position: relative;
}

.mock-faq div {
  border-top: 1px solid var(--steel-200);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
}

.mock-faq strong {
  color: var(--navy-950);
  display: block;
  font-size: 0.9rem;
}

.mock-article .mock-lines {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.mock-article .mock-lines span {
  background: var(--steel-200);
  border-radius: 999px;
  display: block;
  height: 0.55rem;
}

.mock-article .mock-lines span:nth-child(2) {
  width: 82%;
}

.mock-article .mock-lines span:nth-child(3) {
  width: 64%;
}

.mock-cta {
  background: var(--navy-950);
}

.mock-cta h4,
.mock-cta p {
  color: white;
}

.builder-toast {
  background: var(--navy-950);
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: var(--radius);
  bottom: 1rem;
  box-shadow: var(--shadow);
  color: white;
  font-weight: 900;
  opacity: 0;
  padding: 0.85rem 1rem;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 400;
}

.builder-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  align-items: center;
  background: rgba(2, 9, 19, 0.74);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 600;
}

.admin-modal-panel {
  background: white;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-dark);
  max-width: 480px;
  padding: 1.35rem;
  position: relative;
  width: min(100%, 480px);
}

.admin-modal-panel h2 {
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  margin: 0;
}

.admin-modal-panel p {
  color: var(--steel-700);
  margin: 0.85rem 0 0;
}

.admin-modal-close {
  align-items: center;
  background: var(--navy-950);
  border: 1px solid var(--navy-950);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 38px;
}

.admin-modal form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.admin-modal label {
  color: var(--navy-950);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-modal input {
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  color: var(--navy-950);
  min-height: 48px;
  padding: 0.85rem 0.95rem;
}

.admin-modal input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 255, 0.18);
  outline: none;
}

.admin-error {
  background: rgba(240, 82, 82, 0.1);
  border: 1px solid rgba(240, 82, 82, 0.25);
  border-radius: var(--radius);
  color: #991b1b !important;
  font-size: 0.86rem;
  font-weight: 800;
  margin: 0 !important;
  padding: 0.7rem 0.8rem;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 86px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
  }

  .header-cta,
  .brand-meta {
    display: none;
  }

  .hero-grid.two-col,
  .section-header,
  .split,
  .template-card,
  .review-card,
  .footer-grid,
  .admin-gate-grid,
  .layout-shell,
  .workbench-head,
  .builder-grid,
  .builder-status {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .grid.four,
  .grid.three,
  .counter-row,
  .approval-grid,
  .swatch-grid,
  .system-map,
  .answer-flow,
  .image-band {
    grid-template-columns: 1fr 1fr;
  }

  .map-step::after,
  .flow-arrow {
    display: none;
  }

  .hero-grid {
    min-height: auto;
  }

  .layout-sidebar {
    position: static;
  }

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

  .workbench-actions {
    justify-content: flex-start;
  }

  .builder-status-pills {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-link img {
    width: 138px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-proof,
  .metric-row,
  .grid.two,
  .grid.three,
  .grid.four,
  .counter-row,
  .approval-grid,
  .swatch-grid,
  .system-map,
  .answer-flow,
  .image-band,
  .type-sample {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero {
    padding-block: 3.5rem;
  }

  .link-row {
    grid-template-columns: 1fr;
  }

  .module-card,
  .module-card-copy,
  .mock-hero,
  .mock-video-row,
  .mock-media {
    grid-template-columns: 1fr;
  }

  .mock-grid,
  .mock-stat-row,
  .mock-page-map {
    grid-template-columns: 1fr;
  }

  .module-move {
    display: flex;
  }

  .module-move button {
    flex: 1;
  }

  .mock-site-header span {
    display: none;
  }

  .admin-gate {
    min-height: auto;
  }

  .admin-gate-copy h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .access-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .access-row span {
    white-space: normal;
  }
}
