/* bridgeforgeai.com (pages from scripts/site/build.mjs), in the BridgeforgeAI
   brand system: navy ink and header, cloud background, white cards on
   hairlines, forge-blue links, ember for one main button per screen (navy
   text), DM Sans, no gradients and no decorative shadows. Phones first. */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #16233A;
  --cloud: #F3F5F8;
  --surface: #FFFFFF;
  --muted-bg: #EEF2F6;
  --ink: #16233A;
  --muted: #5B6B7F;
  --line: #D6DCE5;
  --hairline: #E6EAF0;
  --blue: #2C5F8F;
  --blue-hover: #234C73;
  --blue-soft: #E7EFF7;
  --ember: #D9742A;
  --ember-hover: #C66420;
  --on-ember: #16233A;
  --ok: #2F7D4F;
  --logo-primary: #2C5F8F;
  --logo-secondary: #4F86AD;
  --logo-node: #16233A;
  --mesh-line: rgba(44, 95, 143, 0.09);
  --mesh-fill: #2C5F8F;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 22px;
  --wrap: 1160px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --cloud: #0F1829;
  --surface: #1C2A42;
  --muted-bg: #233350;
  --ink: #EDF2F8;
  --muted: #A9B5C4;
  --line: #2E3C55;
  --hairline: #2A3850;
  --blue: #7FB0E0;
  --blue-hover: #A3C7EA;
  --blue-soft: #22385A;
  --ember: #E6904E;
  --ember-hover: #EFA56C;
  --on-ember: #0F1829;
  --ok: #6CC08C;
  --logo-primary: #A9C8DF;
  --logo-secondary: #D0E2EE;
  --logo-node: #EDF2F8;
  --mesh-line: rgba(127, 176, 224, 0.08);
  --mesh-fill: #7FB0E0;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font: 400 16px/1.6 "DM Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 7vw, 60px); font-weight: 750; }
h2 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 720; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 14px; }

a { color: var(--blue); }
a:hover { color: var(--blue-hover); }

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin: 0 auto;
}

.narrow { width: min(760px, 100% - 32px); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* --- Buttons and links: 48px targets --- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.button.ember { background: var(--ember); color: var(--on-ember); }
.button.ember:hover { background: var(--ember-hover); color: var(--on-ember); }
.button.primary { background: var(--blue); color: #FFFFFF; }
:root[data-theme="dark"] .button.primary { color: #0F1829; }
.button.primary:hover { background: var(--blue-hover); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button.secondary:hover { border-color: var(--muted); color: var(--ink); }

.button svg, .text-link svg { width: 16px; height: 16px; flex: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-button svg { width: 20px; height: 20px; }

/* --- Header: navy --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: #FFFFFF;
  --logo-primary: #A9C8DF;
  --logo-secondary: #D0E2EE;
  --logo-node: #FFFFFF;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo:hover { color: inherit; }
.logo-mark { width: 30px; height: 30px; }
/* The wordmark (public/brand/): white letters on the navy header and footer; sized by height. */
.logo-img { display: block; width: auto; height: 30px; }
@media (max-width: 480px) { .logo-img { height: 26px; } }
.logo-name span { color: #7FB0E0; }

.site-nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: #CDD6E1;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.site-nav svg { width: 16px; height: 16px; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.lang-switch {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: #CDD6E1;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.header-cta { display: none; min-height: 44px; }

/* The phone menu: the links drop down under the header. */
.site-nav.open {
  position: absolute;
  top: 68px;
  right: 0;
  left: 0;
  display: grid;
  padding: 8px 16px 16px;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 1060px) {
  .site-nav { display: flex; }
  .header-tools { margin-left: 8px; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* --- Sections --- */

.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--hairline); }

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

.card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.section.alt .card { background: var(--cloud); }

.checks {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checks svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--ok);
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}

/* --- Hero: the words, then the call --- */

.hero { padding: 40px 0 56px; background: var(--cloud); }

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.local-badge,
.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.partner-pill { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); background: var(--blue-soft); color: var(--ink); }
.local-badge svg, .partner-pill svg { width: 16px; height: 16px; }

.hero h1 { margin-bottom: 18px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

@media (max-width: 520px) {
  .hero-actions .button { flex: 1 1 100%; }
  .lead { font-size: 17px; }
}

.hero .eyebrow { margin-bottom: 14px; }
.hero-live { font-weight: 700; }
.hero .focus-line { margin: 0; color: var(--muted); font-size: 15px; }

/* The founding-partner band under the hero (hidden with the offer closed). */
.offer-band { padding: 14px 0; background: var(--surface); border-block: 1px solid var(--hairline); }
.offer-band .partner-pill { width: 100%; justify-content: center; min-height: 44px; }
.offer-band[hidden] { display: none; }

/* --- The live demo shop: a few numbers, labeled as sample data --- */
.live { padding-top: 56px; }

.live-panel {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .live-panel { grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
}

.live-copy p:not(.eyebrow) { color: var(--muted); }
.live-actions { margin: 20px 0 0; }

.live-card {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.live-tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

:root[data-theme="dark"] .live-tag { background: var(--muted-bg); color: #A9C8DF; }

.live-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) { .live-stats { grid-template-columns: repeat(4, 1fr); } }

.live-stats li { display: grid; gap: 2px; }
.live-stats strong { font-size: 34px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.live-stats span { color: var(--muted); font-size: 13px; }
.live-worth { margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--hairline); color: var(--muted); }
.live-worth strong { color: var(--ember); font-size: 22px; }
.live-card .sms p { margin: 0; }
.live-card figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; }
.live-card [hidden] { display: none; }

/* --- The product tour: three tabs, a screen each --- */
.tour-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  width: fit-content;
  max-width: 100%;
}

.tour-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tour-tabs button[aria-selected="true"] { background: var(--navy); color: #FFFFFF; }
:root[data-theme="dark"] .tour-tabs button[aria-selected="true"] { background: var(--ink); color: var(--cloud); }

.tour-panel {
  display: grid;
  gap: 24px;
  align-items: center;
}

.tour-panel[hidden] { display: none; }

@media (min-width: 900px) {
  .tour-panel { grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
  .tour-panel[data-tour-panel="tech"] { grid-template-columns: 1fr 1fr; }
}

.tour-words h3 { font-size: 24px; }
.tour-words p { color: var(--muted); font-size: 17px; }
.tour-panel .shot img { width: 100%; height: auto; box-shadow: 0 18px 48px rgba(22, 35, 58, 0.16); }
.tour-panel[data-tour-panel="tech"] .shot img { max-height: 620px; width: auto; margin: 0 auto; }

/* What it does: four short cards */
.offer-grid.brief { grid-template-columns: 1fr; }
@media (min-width: 760px) { .offer-grid.brief { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .offer-grid.brief { grid-template-columns: repeat(4, 1fr); } }
.brief-card h3 { font-size: 18px; }
.brief-card p { color: var(--muted); font-size: 15px; }

.who-also { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.consent-line { margin: 0; color: #CDD6E1; font-size: 13px; }

/* --- The call player: a phone; captions as the call plays; the booking
   lands on a calendar --- */

.call-player {
  display: grid;
  gap: 14px;
  margin: 0;
}

.phone {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(380px, 100%);
  min-height: 460px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #2A3850;
  border-radius: 34px;
  background: var(--navy);
  color: #EDF2F8;
}

.phone-top {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-top strong { display: block; font-size: 15px; }
.phone-top small { color: #A9B5C4; font-size: 13px; }

.phone-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #22385A;
  --logo-primary: #A9C8DF;
  --logo-secondary: #D0E2EE;
  --logo-node: #FFFFFF;
}

.phone-avatar svg { width: 22px; height: 22px; }

.phone-time {
  margin-left: auto;
  color: #A9B5C4;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.player-poster {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  margin: 12px 0;
  border: 0;
  border-radius: 22px;
  background: rgba(127, 176, 224, 0.08);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.player-poster strong { font-size: 18px; }
.player-poster small { color: #A9B5C4; font-size: 14px; }

.play-dot {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ember);
  color: #16233A;
}

.play-dot svg { width: 30px; height: 30px; margin-left: 4px; }
.call-player.playing .player-poster, .call-player.played .player-poster { display: none; }

.captions {
  display: none;
  align-content: end;
  gap: 8px;
  margin: 0;
  padding: 12px 2px;
  list-style: none;
  overflow: hidden;
}

.call-player.playing .captions, .call-player.played .captions { display: grid; }

.captions li {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  line-height: 1.45;
  animation: rise 240ms ease-out;
}

.captions li[data-who="forge"] { justify-self: start; border-bottom-left-radius: 6px; background: #22385A; }
.captions li[data-who="caller"] { justify-self: end; border-bottom-right-radius: 6px; }
.captions b { display: block; color: #7FB0E0; font-size: 12px; font-weight: 700; }
.captions li[data-who="caller"] b { color: #CDD6E1; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.progress {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.progress span { display: block; width: 0; height: 100%; background: #7FB0E0; }
.phone-bar .icon-button { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.14); border-radius: 50%; }

.booking {
  width: min(380px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.booking-head { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.cal-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.cal-days li {
  position: relative;
  min-height: 74px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--muted-bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cal-slot {
  position: absolute;
  inset: 26px 4px auto;
  z-index: 1;
  display: block;
  width: 190px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  transform: scale(0.9);
  transform-origin: left top;
  transition: opacity 300ms ease, transform 300ms ease;
}

:root[data-theme="dark"] .cal-slot { color: #0F1829; }
.cal-thu .cal-slot { left: auto; right: -2px; }
.cal-slot b { display: block; }
.booking-text { margin: 0; color: var(--muted); font-size: 14px; opacity: 0.35; transition: opacity 300ms ease; }
.call-player.booked .cal-slot { opacity: 1; transform: none; }
.call-player.booked .booking-text { opacity: 1; color: var(--ink); }

.call-player figcaption {
  width: min(380px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

/* --- Home sections --- */

.offer-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 860px) {
  .offer-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.offer-main { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }

.who {
  margin-top: 40px;
}

.who ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.who li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
}

.who li.trade { padding: 0; border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.who li.trade a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; font-weight: 700; text-decoration: none; }
.who li.trade small { color: var(--muted); font-weight: 400; }
.who svg { width: 14px; height: 14px; }

.earned {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

@media (min-width: 860px) {
  .earned { grid-template-columns: 1fr 1fr; }
}

.earned p:not(.eyebrow) { color: var(--muted); }

.sms {
  margin: 0;
}

.sms p {
  margin: 0 0 8px;
  padding: 14px 16px;
  border-radius: 18px 18px 18px 6px;
  background: var(--blue-soft);
  color: var(--ink) !important;
}

.sms figcaption { color: var(--muted); font-size: 14px; }

.trade-cards {
  display: grid;
  gap: 18px;
}

@media (min-width: 860px) {
  .trade-cards { grid-template-columns: repeat(3, 1fr); }
}

.trade-card { display: grid; align-content: start; transition: border-color 120ms ease; }
.trade-card:hover { border-color: var(--blue); color: inherit; }
.trade-card p { color: var(--muted); }
.trade-card ul { margin: 0 0 12px; padding-left: 18px; }
.trade-card .text-link { color: var(--blue); }

.custom {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.custom h3 { font-size: 17px; }
.custom > p { color: var(--muted); }

.custom ul {
  display: grid;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

@media (min-width: 860px) {
  .custom ul { grid-template-columns: 1fr 1fr; }
}

.custom strong { color: var(--ink); }

.shot { margin: 0; }

.shot img {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

#field-service .shot img, .tour-panel[data-tour-panel="tech"] .shot img { max-height: 620px; width: auto; margin: 0 auto; }

.shot figcaption {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.forge-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--on-ember);
  font-size: 12px;
  font-weight: 700;
}

/* --- Pricing --- */

.billing-switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.billing-switch button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.billing-switch button[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }
:root[data-theme="dark"] .billing-switch button[aria-pressed="true"] { background: var(--ink); color: var(--cloud); }
.billing-switch small { color: inherit; opacity: 0.8; }

.plans {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .plans { grid-template-columns: repeat(4, 1fr); }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan.featured { border: 2px solid var(--blue); }

.plan-badge {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
}

:root[data-theme="dark"] .plan-badge { color: #0F1829; }
.plan h3 { margin-bottom: 4px; }
.plan-blurb { color: var(--muted); font-size: 15px; }
.plan-price { margin: 6px 0 0; }
.plan-price strong { font-size: 36px; letter-spacing: -0.02em; }
.plan-price span { color: var(--muted); }
.plan-billing { color: var(--muted); font-size: 14px; }
.plan-plus { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.plan .checks { font-size: 15px; }
.plan .button { margin-top: auto; }

.pricing-notes {
  max-width: 860px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

.faq {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 860px) {
  .faq { grid-template-columns: 0.8fr 1.2fr; }
}

.faq > div:first-child p { color: var(--muted); }

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); }

/* --- Founding partners: a navy panel --- */

.partner-panel {
  display: grid;
  gap: 28px;
  padding: 32px 22px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #EDF2F8;
}

:root[data-theme="dark"] .partner-panel { border: 1px solid var(--line); background: var(--surface); }

@media (min-width: 900px) {
  .partner-panel { grid-template-columns: 0.9fr 1.1fr; padding: 48px; }
}

.partner-panel .eyebrow { color: #7FB0E0; }
.partner-panel h2 span { color: #7FB0E0; }
.partner-panel p { color: #CDD6E1; }
.partner-note { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.partner-ends { font-weight: 700; color: #FFFFFF !important; }

.partner-form {
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .partner-form { grid-template-columns: 1fr 1fr; }
  .partner-form .wide { grid-column: 1 / -1; }
}

.partner-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }

.partner-form input:not([type="checkbox"]),
.partner-form select,
.partner-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #2E3C55;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: #16233A;
  font: inherit;
  font-size: 16px;
}

.partner-form label.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: #CDD6E1;
}

.partner-form .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.partner-form .consent a, .partner-panel a.text-link { color: #7FB0E0; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-status { margin: 0; font-weight: 700; color: #FFFFFF; }

/* --- Trust --- */

.trust { padding-top: 0; }

.trust-grid {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-grid li {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.trust-grid span { color: var(--muted); font-size: 15px; }

/* --- Trade pages, app page --- */

.scenarios, .feature-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .scenarios { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.scenarios p, .feature-grid p { color: var(--muted); margin: 0; }

.price-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-summary p { color: var(--muted); margin: 0; max-width: 640px; }
.store-note { color: var(--muted); }
.center { text-align: center; }

/* --- Terms and SMS consent --- */

.legal { padding: 48px 0 72px; }
.legal h2 { margin-top: 32px; font-size: 22px; }
.legal p { color: var(--muted); }
.updated { color: var(--muted); font-size: 14px; }

/* --- Footer --- */

.site-footer {
  padding: 48px 0 96px;
  background: var(--navy);
  color: #CDD6E1;
  --logo-primary: #A9C8DF;
  --logo-secondary: #D0E2EE;
  --logo-node: #FFFFFF;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .site-footer { padding-bottom: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-footer .logo { color: #FFFFFF; }
.footer-tagline { margin-top: 14px; color: #FFFFFF; font-size: 18px; font-weight: 700; }
.site-footer h2 { color: #FFFFFF; font-size: 15px; letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li a { display: inline-flex; min-height: 40px; align-items: center; color: #CDD6E1; text-decoration: none; }
.site-footer li a:hover, .footer-base a { color: #FFFFFF; }

.footer-base {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* --- The sticky "Hear Forge" button on phones --- */

.sticky-hear {
  position: fixed;
  right: 88px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  z-index: 30;
  transition: transform 200ms ease, opacity 200ms ease;
}

.sticky-hear.away { opacity: 0; pointer-events: none; transform: translateY(12px); }

@media (min-width: 1060px) {
  .sticky-hear { display: none; }
}

/* --- The network behind the page (Home; desktop only) --- */

.page-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .page-mesh { display: none; }
}

/* Sections fade up once as they come into view. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .captions li { animation: none; }
}

/* One ember button per screen: on a desktop it's the header's; the hero's
   shows on phones, where the header has no room for it. */
@media (min-width: 1060px) {
  .hero-actions .button.ember { display: none; }
}

.play-dot { background: #7FB0E0; color: #16233A; }

/* Phones: the headline, the button, and the call fit the first screen; the
   paragraph follows the call. */
@media (max-width: 979px) {
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > .badges { order: 1; }
  .hero-copy > .eyebrow { order: 2; }
  .hero-copy > h1 { order: 3; }
  .hero-copy > .hero-actions { order: 4; margin: 8px 0 18px; }
  .hero .call-player { order: 5; margin-bottom: 24px; }
  .hero-copy > .lead { order: 6; }
  .hero-copy > .checks { order: 7; }
  .hero .phone { min-height: 380px; }
  .hero-actions .button.secondary { display: none; }
  .hero .badges .local-badge { display: none; }
}

.phone-bar .icon-pause { display: none; }
.call-player.playing .phone-bar .icon-pause { display: block; }
.call-player.playing .phone-bar svg:not(.icon-pause) { display: none; }

@media (max-width: 979px) {
  .hero-actions { width: 100%; }
  .hero-actions .button.ember { width: 100%; }
}

.trust-grid li { align-content: start; }

/* The flag on the "American-built" card, the badge the hero used to carry. */
.trust-grid li strong svg.flag { width: 22px; height: auto; margin-right: 8px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(22, 35, 58, 0.15); }

/* On the navy panel, the form's button is light forge-blue: the header
   keeps the screen's one ember button. */
.partner-form .form-actions .button {
  background: #7FB0E0;
  color: #16233A;
}

.partner-form .form-actions .button:hover { background: #A3C7EA; }

/* --- Demos --- */

.narrow-hero { max-width: 820px; }

/* The live call card (its own styles: scripts/site/parts/demo-styles.css)
   uses the first site's container. */
.container { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }
.demo-page .demo { margin-top: 0; padding: 0 0 56px; }

.video-grid { display: grid; gap: 16px; }

@media (min-width: 760px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

.video video { width: 100%; border-radius: var(--radius-sm); background: var(--navy); }
.video figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.video figcaption strong { display: block; color: var(--ink); font-size: 16px; }

.callback-form { display: grid; gap: 12px; }
.callback-form h3 { margin: 0; }
.callback-form p { margin: 0; color: var(--muted); }
.callback-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.callback-form input:not([type="checkbox"]) { min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.callback-form label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.callback-form .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.callback-form .form-status { color: var(--ink); }

/* The live call card's own styles use the first site's color names. */
.demo-page {
  --border: var(--line);
  --background: var(--cloud);
  --surface-muted: var(--muted-bg);
  --text: var(--ink);
  --electric-blue: var(--blue);
  --button-background: var(--blue);
  --button-foreground: #FFFFFF;
  --button-hover: var(--blue-hover);
  --danger: #B23B3B;
  --header-background: var(--navy);
}

:root[data-theme="dark"] .demo-page { --button-foreground: #0F1829; --danger: #F08A8A; }

/* Private client demos (public/demo/client.html): its plain buttons are
   forge-blue; on the navy closing card, the outlined one is white. */
.demo-page .button:not(.secondary):not(.ember):not(.primary) { background: var(--blue); color: #FFFFFF; }
:root[data-theme="dark"] .demo-page .button:not(.secondary):not(.ember):not(.primary) { color: #0F1829; }
.demo-page .final-card .button:not(.secondary) { background: #7FB0E0; color: #16233A; }
.demo-page .final-card .button.secondary,
.demo-page .dm-hero .button.secondary { border-color: rgba(255, 255, 255, 0.5); background: transparent; color: #FFFFFF; }
html[lang="es"] .demo-page .try-list li::before { content: "Pruebe: "; }

/* Header words stay on one line. */
.site-nav a, .header-cta { white-space: nowrap; }

/* --- Home, approved copy (docs/specs/home-page-copy.md) --- */

.badges .eyebrow { align-self: center; margin: 0; }
.banner-row { margin: 0 0 18px; }
.focus-line { max-width: 560px; color: var(--muted); font-size: 15px; }

@media (min-width: 860px) {
  .offer-grid { grid-template-columns: 1fr 1fr; }
}

.offer-grid .card p { color: var(--muted); }
.offer-closing { max-width: 760px; margin: 24px 0 0; font-size: 18px; font-weight: 500; }
.who-label { margin: 16px 0 8px; font-weight: 700; }
.narrow-about { max-width: 820px; }
.footer-eyebrow { margin: 14px 0 0; color: #7FB0E0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-eyebrow + .footer-tagline { margin-top: 4px; }

@media (max-width: 979px) {
  .hero-copy > .banner-row { order: 1; }
  .hero-copy > .focus-line { order: 8; }
}

/* Who it's for: even tiles on one grid, the same height and column lines
   for the trades and the rest. */
.who ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.who li,
.who li.trade a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: var(--radius);
  line-height: 1.3;
}

.who li { border: 1px solid var(--line); background: var(--surface); }
.who li.trade { padding: 0; }
.who li.trade a { width: 100%; justify-content: space-between; border-radius: inherit; }
.who-label { margin: 24px 0 10px; }

.who ul { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }

/* The three trades on one row from a tablet up; two and one on a phone. */
@media (min-width: 760px) {
  .who ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The badge's US flag: a little wider than tall, with a hairline edge. */
.local-badge svg.flag { width: 22px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(22, 35, 58, 0.15); }

/* Before the booking lands: still readable (WCAG 1.4.3), just quieter. */
.booking-text { opacity: 1; color: var(--muted); }
.call-player.booked .booking-text { color: var(--ink); }

/* The condensing unit in 3D (public/js/hvac-unit.js) */
.unit-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .unit-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.unit-words p { color: var(--muted); font-size: 17px; }
.unit-spots { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.unit-spots li { position: relative; padding: 10px 14px 10px 30px; border-radius: 10px; color: var(--muted); font-size: 15px; transition: background 0.2s, color 0.2s; }
.unit-spots li::before { content: ""; position: absolute; left: 12px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: #E8732A; box-shadow: 0 0 0 3px rgba(232, 115, 42, 0.18); }
.unit-spots li.on { background: rgba(44, 95, 143, 0.08); color: var(--ink); }
:root[data-theme="dark"] .unit-spots li.on { background: rgba(169, 200, 223, 0.12); color: var(--cloud); }
.unit-stage { margin: 0; position: relative; aspect-ratio: 5 / 4; border-radius: 20px; background: radial-gradient(ellipse at 50% 80%, rgba(44, 95, 143, 0.14), transparent 70%), linear-gradient(180deg, rgba(44, 95, 143, 0.04), rgba(44, 95, 143, 0.1)); overflow: hidden; touch-action: pan-y; }
.unit-stage canvas { display: block; width: 100%; height: 100%; }
.unit-stage figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.86); color: var(--ink); font-size: 14px; line-height: 1.4; box-shadow: 0 8px 24px rgba(22, 35, 58, 0.12); backdrop-filter: blur(6px); }
:root[data-theme="dark"] .unit-stage figcaption { background: rgba(22, 35, 58, 0.82); color: var(--cloud); }
.unit-stage:not(.live) figcaption { display: none; }
@media (hover: none) { .unit-stage figcaption { display: none; } }
