:root {
  --roofm8-navy: #17365d;
  --roofm8-navy-2: #244d74;
  --roofm8-navy-3: #071525;
  --roofm8-orange: #f97316;
  --roofm8-orange-2: #fb923c;
  --roofm8-green: #10b981;
  --roofm8-green-dark: #059669;

  --bg: #f8fafc;
  --bg-soft: #eef2f7;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;

  --blue-soft: #eff6ff;
  --orange-soft: #fff7ed;
  --green-soft: #ecfdf5;

  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 28px 90px rgba(15, 23, 42, 0.16);

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --radius-xl: 1.75rem;

  --max: 1240px;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(23, 54, 93, 0.10), transparent 30rem),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  text-rendering: optimizeLegibility;
}

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

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

p {
  color: var(--muted);
  line-height: 1.62;
}

strong {
  color: var(--text);
}

::selection {
  background: rgba(249, 115, 22, 0.22);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--roofm8-navy);
  font-weight: 950;
  font-size: 1.45rem;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--roofm8-navy), var(--roofm8-navy-2));
  color: #ffffff;
  font-weight: 950;
  letter-spacing: -0.05em;
  box-shadow: 0 12px 30px rgba(23, 54, 93, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  padding: 0.72rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 850;
  transition: 0.16s ease;
}

.nav a:hover {
  color: var(--roofm8-navy);
  background: rgba(23, 54, 93, 0.06);
}

.nav a.active {
  color: var(--roofm8-navy);
  background: var(--blue-soft);
}

.nav .login-link,
.login-link {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--roofm8-orange), var(--roofm8-orange-2)) !important;
  border: 0;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

/* Layout */

main {
  overflow: hidden;
}

.section,
.hero,
.site-footer {
  padding-left: clamp(1rem, 5vw, 4.5rem);
  padding-right: clamp(1rem, 5vw, 4.5rem);
}

.section-inner,
.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.section {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.section.compact {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section.white {
  background: #ffffff;
}

.section.soft {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

/* Typography */

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--roofm8-orange);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 950;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--roofm8-orange);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.13);
}

.eyebrow.light {
  color: #ffffff;
}

.eyebrow.light::before {
  background: var(--roofm8-orange);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.24);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.055em;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 6.2vw, 6.6rem);
  line-height: 0.88;
  font-weight: 950;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.98;
  font-weight: 950;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.1;
  font-weight: 950;
}

h4 {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 950;
}

.lead {
  max-width: 690px;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.58;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 2rem;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.center .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.short-copy {
  max-width: 620px;
}

/* Buttons */

.actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  transition: 0.16s ease;
}

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

.button.primary,
.btn.primary {
  background: linear-gradient(135deg, var(--roofm8-orange), var(--roofm8-orange-2));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.22);
}

.button.secondary,
.btn.secondary {
  background: #ffffff;
  color: var(--roofm8-navy);
  border: 1px solid var(--border-strong);
}

.button.navy,
.btn.navy {
  background: var(--roofm8-navy);
  color: #ffffff;
}

.button.green,
.btn.green {
  background: linear-gradient(135deg, var(--roofm8-green-dark), var(--roofm8-green));
  color: #ffffff;
}

.button.ghost,
.btn.ghost {
  background: rgba(255, 255, 255, 0.68);
  color: var(--roofm8-navy);
  border: 1px solid var(--border);
}

.dark-btn {
  background: #ffffff !important;
  color: var(--roofm8-navy) !important;
  border-color: transparent !important;
}

.ghost-dark {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

/* Legacy/simple hero support for other pages */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: calc(var(--max) + clamp(2rem, 10vw, 9rem));
  margin: 0 auto;
  padding-top: clamp(3rem, 5.5vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy {
  max-width: 900px;
}

.hero-copy h1 em {
  color: var(--roofm8-orange);
  font-style: normal;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 12rem),
    #ffffff;
  box-shadow: var(--shadow-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 0.45rem solid var(--roofm8-orange);
  pointer-events: none;
}

.card-label {
  color: var(--roofm8-orange);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  margin: 0 0 0.9rem;
}

.hero-card h2 {
  color: var(--roofm8-navy);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.78rem;
}

.hero-card li {
  position: relative;
  padding-left: 1.55rem;
  color: #334155;
  font-weight: 750;
  line-height: 1.42;
}

.hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--roofm8-green);
  font-weight: 950;
}

/* Home hero with image */

.home-hero-image {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #06111f;
  padding: clamp(2rem, 5vw, 4rem);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.92) 0%, rgba(3, 10, 22, 0.70) 36%, rgba(3, 10, 22, 0.22) 72%, rgba(3, 10, 22, 0.60) 100%),
    linear-gradient(180deg, rgba(3, 10, 22, 0.18) 0%, rgba(3, 10, 22, 0.84) 100%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(2rem, 6vw, 5rem);
}

.home-hero-content h1 {
  max-width: 860px;
  color: #ffffff;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.hero-subline {
  max-width: 680px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.6vw, 1.38rem);
  line-height: 1.55;
}

/* Home sections */

.home-intro-section {
  padding-top: clamp(4rem, 7vw, 6rem);
}

.feature-kicker {
  color: var(--roofm8-orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.feature-card p,
.output-card p {
  font-size: 0.98rem;
}

/* Proof strip */

.home-proof-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4.5rem) clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.proof-card,
.status-card,
.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.proof-card .label,
.status-card .label,
.stat-card .label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  font-weight: 950;
}

.proof-card .value,
.status-card .value,
.stat-card .value {
  margin-top: 0.45rem;
  color: var(--roofm8-navy);
  font-weight: 950;
  font-size: 1.35rem;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.status-card .hint,
.stat-card .hint {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Cards and grids */

.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));
}

article,
.feature-card,
.output-card,
.region-card,
.card,
.pathway-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

article h3,
.feature-card h3,
.output-card h3,
.region-card h3,
.card h3,
.pathway-card h3 {
  color: var(--roofm8-navy);
  margin-bottom: 0.65rem;
}

article p,
.feature-card p,
.output-card p,
.region-card p,
.card p,
.pathway-card p {
  margin: 0;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  bottom: 1.35rem;
  width: 5px;
  border-radius: 999px;
  background: var(--roofm8-orange);
}

.feature-card.green::before {
  background: var(--roofm8-green);
}

.feature-card.blue::before {
  background: var(--roofm8-navy);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: var(--orange-soft);
  color: var(--roofm8-orange);
  font-size: 1.25rem;
  font-weight: 950;
  margin-bottom: 1rem;
}

/* Split feature and app preview */

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.reverse-feature {
  grid-template-columns: minmax(420px, 1.1fr) minmax(0, 0.9fr);
}

.feature-copy {
  max-width: 620px;
}

.feature-copy p {
  font-size: 1.05rem;
}

.mini-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.mini-list div {
  position: relative;
  padding-left: 1.5rem;
  color: #334155;
  font-weight: 850;
}

.mini-list div::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--roofm8-green);
  font-weight: 950;
}

.image-showcase-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0.65rem;
}

.image-showcase-card img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 0.45rem);
  border: 1px solid var(--border);
  background: #e2e8f0;
}

.app-preview-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.app-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.app-preview-top strong {
  color: var(--roofm8-navy);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.app-preview-top span {
  color: #c2410c;
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 950;
}

.app-preview-map {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(23, 54, 93, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(23, 54, 93, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 32% 34%, rgba(16, 185, 129, 0.14), transparent 8rem),
    radial-gradient(circle at 72% 68%, rgba(249, 115, 22, 0.14), transparent 9rem),
    linear-gradient(135deg, #dbeafe, #eef2f7 44%, #d1fae5);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  overflow: hidden;
}

.app-preview-map::before {
  content: "";
  position: absolute;
  left: 15%;
  top: 16%;
  width: 58%;
  height: 66%;
  border-radius: 38% 30% 34% 26%;
  transform: rotate(-11deg);
  background: rgba(255, 255, 255, 0.36);
  border: 2px solid rgba(23, 54, 93, 0.18);
}

.map-tabs {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: flex;
  gap: 0.45rem;
  z-index: 4;
}

.map-tabs span {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--roofm8-navy);
  font-size: 0.8rem;
  font-weight: 950;
  box-shadow: var(--shadow-sm);
}

.roof-shape {
  position: absolute;
  left: 35%;
  top: 33%;
  width: 210px;
  height: 130px;
  border-radius: 16px;
  transform: rotate(-13deg);
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.34) 50%, transparent 51%),
    linear-gradient(135deg, #17365d, #244d74);
  box-shadow: 0 22px 44px rgba(23, 54, 93, 0.28);
  border: 3px solid rgba(255, 255, 255, 0.78);
  z-index: 3;
}

.roof-pin {
  position: absolute;
  left: calc(35% + 94px);
  top: calc(33% + 48px);
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--roofm8-orange);
  border: 4px solid #ffffff;
  z-index: 5;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.roof-label {
  position: absolute;
  left: 30%;
  bottom: 13%;
  z-index: 5;
  background: #ffffff;
  color: var(--roofm8-navy);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  font-weight: 950;
  box-shadow: var(--shadow-sm);
}

.app-preview-actions {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.app-preview-actions span {
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  background: var(--orange-soft);
  color: #c2410c;
  font-weight: 950;
  font-size: 0.84rem;
}

.app-preview-actions span:first-child {
  background: var(--roofm8-navy);
  color: #ffffff;
}

/* Supplier panel */

.supplier-panel {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 18rem),
    linear-gradient(135deg, var(--roofm8-navy-3), var(--roofm8-navy));
  color: #ffffff;
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.supplier-panel-top span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fed7aa;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.supplier-panel-top strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.supplier-grid div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
}

.supplier-label {
  display: block;
  color: #bfdbfe;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.supplier-grid strong {
  color: #ffffff;
  line-height: 1.25;
}

/* Legacy mock viewer support */

.hero-product-frame {
  position: relative;
  overflow: hidden;
  max-height: 560px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.mock-app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.96);
}

.mock-app-brand {
  color: var(--roofm8-navy);
  font-weight: 950;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

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

.mock-viewer {
  display: grid;
  grid-template-columns: 1fr 230px;
  min-height: 390px;
}

.mock-map {
  position: relative;
  min-height: 390px;
  background:
    linear-gradient(90deg, rgba(23, 54, 93, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(23, 54, 93, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.16), transparent 7rem),
    radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.14), transparent 9rem),
    linear-gradient(135deg, #dbeafe 0%, #eef2f7 44%, #d1fae5 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  overflow: hidden;
}

.mock-map::before {
  content: "";
  position: absolute;
  left: 13%;
  top: 15%;
  width: 63%;
  height: 65%;
  border-radius: 38% 30% 34% 26%;
  transform: rotate(-11deg);
  background: rgba(255, 255, 255, 0.32);
  border: 2px solid rgba(23, 54, 93, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.mock-map::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 0;
  width: 22%;
  height: 100%;
  transform: rotate(8deg);
  background: rgba(23, 54, 93, 0.07);
}

.mock-map-toolbar {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  z-index: 4;
}

.mock-map-toolbar span {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  color: var(--roofm8-navy);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: var(--shadow-sm);
}

.mock-roof {
  position: absolute;
  left: 34%;
  top: 32%;
  width: 190px;
  height: 120px;
  border-radius: 15px;
  transform: rotate(-13deg);
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.34) 50%, transparent 51%),
    linear-gradient(135deg, #17365d, #244d74);
  box-shadow: 0 22px 44px rgba(23, 54, 93, 0.28);
  border: 3px solid rgba(255, 255, 255, 0.78);
  z-index: 3;
}

.mock-roof::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
}

.mock-roof-label {
  position: absolute;
  left: 24%;
  bottom: 18%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  color: var(--roofm8-navy);
  font-weight: 950;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}

.mock-side-panel {
  padding: 0.9rem;
  border-left: 1px solid var(--border);
  background: #ffffff;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.mock-metric {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem;
  background: var(--panel-soft);
}

.mock-metric .label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.68rem;
  font-weight: 950;
}

.mock-metric .value {
  margin-top: 0.35rem;
  color: var(--roofm8-navy);
  font-size: 1.22rem;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.mock-actions {
  display: grid;
  gap: 0.55rem;
}

.mock-action {
  border-radius: 0.85rem;
  padding: 0.62rem 0.7rem;
  background: var(--orange-soft);
  color: #c2410c;
  font-weight: 950;
  font-size: 0.78rem;
}

/* Product showcase */

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.showcase-copy {
  max-width: 640px;
}

.showcase-list {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.showcase-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.65rem;
  color: #334155;
  font-weight: 760;
  line-height: 1.42;
}

.showcase-list li::before {
  content: "✓";
  color: var(--roofm8-green);
  font-weight: 950;
}

.showcase-media {
  position: relative;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0.65rem;
  overflow: hidden;
}

.showcase-media img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 0.45rem);
  border: 1px solid var(--border);
  background: #e2e8f0;
}

.showcase-viewer {
  border-radius: calc(var(--radius-xl) - 0.45rem);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Workflow */

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

.workflow-step {
  counter-increment: step;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.workflow-step::before {
  content: counter(step);
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--roofm8-navy);
  color: #ffffff;
  font-weight: 950;
  margin-bottom: 1rem;
}

.workflow-step h3 {
  color: var(--roofm8-navy);
  margin-bottom: 0.5rem;
}

.workflow-step p {
  margin: 0;
}

/* Outputs */

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

.output-card {
  min-height: 100%;
}

.output-card .output-type {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  background: var(--orange-soft);
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

.output-card.navy .output-type {
  background: var(--blue-soft);
  color: #1d4ed8;
}

.output-card.green .output-type {
  background: var(--green-soft);
  color: #047857;
}

/* Split and regions */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.region-list {
  display: grid;
  gap: 0.85rem;
}

.region-list a,
.region-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  font-weight: 950;
  color: var(--roofm8-navy);
}

.region-list span,
.region-card span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.36rem 0.6rem;
  background: var(--orange-soft);
  color: #c2410c;
  font-size: 0.76rem;
  font-weight: 950;
}

.region-list a.live span,
.region-card.live span {
  background: var(--green-soft);
  color: #047857;
}

/* Badges */

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.46rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 950;
}

.badge.orange,
.pill.orange {
  background: var(--orange-soft);
  color: #c2410c;
}

.badge.blue,
.pill.blue {
  background: var(--blue-soft);
  color: #1d4ed8;
}

.badge.green,
.pill.green {
  background: var(--green-soft);
  color: #047857;
}

/* Pathways */

.pathway-card {
  min-height: 100%;
}

.pathway-card .badge {
  margin-bottom: 1rem;
}

/* CTA */

.cta-band {
  max-width: var(--max);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.26), transparent 18rem),
    linear-gradient(135deg, var(--roofm8-navy-3), var(--roofm8-navy));
  color: #ffffff;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2,
.cta-band h3 {
  color: #ffffff;
}

.cta-band p {
  color: #dbeafe;
  margin: 0.6rem 0 0;
}

.cta-band .button.secondary {
  background: #ffffff;
  color: var(--roofm8-navy);
}

/* Coming soon pages */

.coming-soon-card {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 6vw, 4rem);
  box-shadow: var(--shadow-lg);
}

.coming-soon-card .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

/* Forms */

.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

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

.field label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  font-weight: 950;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 0.85rem;
  padding: 0.85rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--roofm8-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

/* Callouts */

.callout {
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
}

.callout.orange {
  border-color: #fed7aa;
  background: var(--orange-soft);
  color: #9a3412;
}

.callout.blue {
  border-color: #bfdbfe;
  background: var(--blue-soft);
  color: #1e3a8a;
}

.callout.green {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

/* Footer */

.site-footer {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.site-footer strong {
  color: var(--roofm8-navy);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.site-footer p {
  margin: 0.35rem 0 0;
  max-width: 520px;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--roofm8-orange);
}

/* Utility */

.text-orange {
  color: var(--roofm8-orange);
}

.text-navy {
  color: var(--roofm8-navy);
}

.text-green {
  color: var(--roofm8-green-dark);
}

.muted {
  color: var(--muted);
}

.rounded-media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hide {
  display: none !important;
}

/* Responsive */

@media (max-width: 1080px) {
  .hero,
  .product-showcase,
  .split,
  .split-feature,
  .reverse-feature,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero-product-frame {
    max-height: none;
  }

  .mock-viewer {
    grid-template-columns: 1fr;
  }

  .mock-side-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
    grid-template-columns: repeat(3, 1fr);
  }

  .mock-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .home-proof-strip,
  .workflow,
  .outputs-grid,
  .supplier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-hero-image {
    min-height: 760px;
  }

  .home-hero-overlay {
    background:
      linear-gradient(180deg, rgba(3, 10, 22, 0.54) 0%, rgba(3, 10, 22, 0.90) 100%);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    font-size: 1.35rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 0.85rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.25rem;
  }

  .nav a {
    padding: 0.58rem 0.68rem;
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.3rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .lead {
    font-size: 1.04rem;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .home-proof-strip,
  .workflow,
  .outputs-grid,
  .mock-side-panel,
  .mock-actions,
  .supplier-grid {
    grid-template-columns: 1fr;
  }

  .mock-map {
    min-height: 340px;
  }

  .mock-roof {
    left: 28%;
    width: 150px;
    height: 100px;
  }

  .actions {
    align-items: stretch;
  }

  .button,
  .btn {
    width: 100%;
  }

  .region-list a,
  .region-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .home-hero-image {
    min-height: 720px;
    padding: 1.25rem;
  }

  .home-hero-content h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-subline {
    font-size: 1rem;
  }

  .map-tabs {
    flex-wrap: wrap;
  }

  .app-preview-map {
    min-height: 340px;
  }

  .roof-shape {
    left: 28%;
    width: 160px;
    height: 105px;
  }

  .roof-label {
    left: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 420px) {
  .section,
  .hero,
  .site-footer {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-product-frame,
  .cta-band,
  article,
  .feature-card,
  .output-card,
  .region-card,
  .card,
  .pathway-card,
  .app-preview-card,
  .image-showcase-card,
  .supplier-panel {
    border-radius: 1.1rem;
  }
}

.roofer-problem-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.output-feature-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.compact-image-card {
  padding: 0.45rem;
  border-radius: 1.1rem;
}

.output-feature-copy {
  padding: 0.35rem 0.35rem 0.2rem;
}

.output-feature-copy .badge {
  margin-bottom: 0.85rem;
}

.output-feature-copy h3 {
  color: var(--roofm8-navy);
  margin-bottom: 0.6rem;
}

@media (max-width: 1080px) {
  .roofer-problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .roofer-problem-grid {
    grid-template-columns: 1fr;
  }
}