:root {
  color-scheme: light;
  --ink: #111416;
  --ink-2: #2d3436;
  --muted: #66716f;
  --line: #dbe3df;
  --surface: #ffffff;
  --surface-2: #f4f7f4;
  --surface-3: #eaf1ec;
  --charcoal: #111819;
  --charcoal-2: #1d2728;
  --electric: #00a7c8;
  --electric-2: #d7f8ff;
  --safety: #ffca2e;
  --orange: #ff6f3c;
  --green: #2fb172;
  --danger: #d9283f;
  --shadow: 0 22px 70px rgba(17, 20, 22, 0.18);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 16px;
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(17, 20, 22, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--safety);
  border: 1px solid rgba(17, 20, 22, 0.16);
  border-radius: var(--radius);
  box-shadow: inset 0 -3px 0 rgba(17, 20, 22, 0.12);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.6;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.nav-links a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--electric);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn-primary {
  color: #061214;
  background: var(--safety);
  border-color: rgba(17, 20, 22, 0.22);
  box-shadow: inset 0 -3px 0 rgba(17, 20, 22, 0.12);
}

.btn-danger {
  color: white;
  background: var(--danger);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 -3px 0 rgba(17, 20, 22, 0.22);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(17, 20, 22, 0.16);
}

.btn-large {
  min-height: 50px;
  padding-inline: 20px;
}

.btn-full {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: end;
  min-height: min(700px, calc(100vh - 118px));
  padding: clamp(58px, 8vw, 98px) clamp(18px, 5vw, 72px) clamp(28px, 4vw, 48px);
  overflow: hidden;
  color: white;
  background-image:
    linear-gradient(90deg, rgba(5, 8, 8, 0.86), rgba(5, 8, 8, 0.62) 48%, rgba(5, 8, 8, 0.22)),
    url("assets/electrical-panel-testing.jpg");
  background-size: cover;
  background-position: center;
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(0deg, rgba(5, 8, 8, 0.58), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--electric);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 7px rgba(47, 177, 114, 0.22);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 5.85rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.hero-metrics strong {
  color: var(--safety);
}

.hero-intel {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 18px;
  background: rgba(12, 18, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intel-topline,
.intel-row,
.phone-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.intel-topline {
  padding-bottom: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intel-topline strong {
  color: var(--green);
}

.intel-row {
  justify-content: flex-start;
  padding: 12px 0;
}

.intel-row + .intel-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.intel-row div {
  display: grid;
}

.intel-row strong {
  color: white;
  font-size: 0.94rem;
}

.intel-row span:not(.status-dot) {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 999px;
}

.status-dot.critical {
  background: var(--danger);
  box-shadow: 0 0 0 7px rgba(217, 40, 63, 0.2);
}

.status-dot.active {
  background: var(--safety);
  box-shadow: 0 0 0 7px rgba(255, 202, 46, 0.18);
}

.status-dot.ready {
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(47, 177, 114, 0.18);
}

section {
  padding: clamp(60px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 880px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.visual-band,
.photo-center,
.sms-section {
  background: var(--surface);
}

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

.visual-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--charcoal);
}

.visual-card.visual-wide {
  grid-column: span 2;
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 280ms ease;
}

.visual-card:hover img {
  transform: scale(1.035);
}

.visual-card::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
}

.visual-card div {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 18px;
  color: white;
}

.visual-card strong {
  font-size: 1.05rem;
}

.visual-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.services-section,
.agents-section,
.trust-section {
  background: var(--surface-2);
}

.service-grid,
.agent-grid,
.trust-grid,
.photo-grid,
.comparison-grid {
  display: grid;
  gap: 14px;
}

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

.service-card,
.workflow-agent,
.trust-grid article,
.upload-tile,
.comparison-card,
.portal-panel,
.metric-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 167, 200, 0.42);
  box-shadow: 0 18px 44px rgba(0, 167, 200, 0.1);
}

.service-card svg,
.workflow-agent svg,
.trust-grid article svg,
.upload-tile svg {
  width: 28px;
  height: 28px;
  color: var(--electric);
  stroke-width: 2.2;
}

.service-card h3,
.workflow-agent h3,
.trust-grid article h3,
.comparison-card h3 {
  margin-bottom: 0;
  font-size: 1.16rem;
  line-height: 1.18;
}

.service-card p,
.workflow-agent p,
.trust-grid article p,
.comparison-card p,
.portal-panel p {
  color: var(--muted);
}

.service-card span,
.workflow-agent span {
  align-self: end;
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--electric-2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card.urgent {
  border-color: rgba(217, 40, 63, 0.32);
}

.service-card.urgent svg {
  color: var(--danger);
}

.service-card.urgent span {
  color: white;
  background: var(--danger);
}

.estimate-section {
  color: white;
  background: var(--charcoal);
}

.estimate-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: 18px;
  align-items: start;
}

.estimate-form,
.agent-console,
.portal-shell,
.crm-dashboard,
.sms-preview {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.estimate-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
  display: grid;
  gap: 9px;
}

.form-row label,
.form-row > span {
  color: var(--ink);
  font-weight: 850;
}

select,
input,
textarea {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

select,
input {
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 4px rgba(0, 167, 200, 0.13);
}

.segmented,
.urgency-grid,
.form-split {
  display: grid;
  gap: 10px;
}

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

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

.segmented label,
.urgency-grid label {
  position: relative;
}

.segmented input,
.urgency-grid input,
.upload-tile input,
.upload-row input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented label,
.urgency-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 10px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 850;
}

.segmented input:checked + span,
.urgency-grid input:checked + span {
  color: var(--ink);
  background: var(--safety);
  border-color: rgba(17, 20, 22, 0.2);
}

.segmented label,
.urgency-grid label {
  cursor: pointer;
}

.segmented label:has(input:checked) {
  color: var(--ink);
  background: var(--safety);
  border-color: rgba(17, 20, 22, 0.2);
}

.urgency-grid svg {
  width: 17px;
  height: 17px;
}

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

.drop-surface {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 148px;
  padding: 20px;
  color: var(--ink);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0, 167, 200, 0.08), rgba(255, 202, 46, 0.16)),
    var(--surface-2);
  border: 1px dashed rgba(17, 20, 22, 0.32);
  border-radius: var(--radius);
  cursor: pointer;
}

.drop-surface svg {
  width: 31px;
  height: 31px;
  color: var(--electric);
}

.drop-surface span,
.upload-tile span {
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.preview-strip figure {
  position: relative;
  width: 84px;
  margin: 0;
}

.preview-strip img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.preview-strip figcaption {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-console {
  display: grid;
  gap: 16px;
  padding: 20px;
  color: white;
  background:
    linear-gradient(135deg, rgba(0, 167, 200, 0.16), rgba(255, 202, 46, 0.1)),
    var(--charcoal-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.console-header span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.console-header strong {
  color: var(--safety);
  font-size: 0.9rem;
}

.agent-thread {
  display: grid;
  gap: 10px;
}

.agent-thread p {
  margin: 0;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
}

.quote-result {
  display: grid;
  gap: 10px;
  padding: 16px;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius);
}

.result-label {
  color: var(--electric);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-result h3 {
  margin: 0;
  font-size: 1.55rem;
}

.quote-result p,
.quote-result ul {
  margin: 0;
  color: var(--muted);
}

.quote-result ul {
  padding-left: 18px;
}

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

.upload-tile {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 238px;
  padding: 20px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.upload-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 167, 200, 0.42);
}

.before-after {
  background: var(--surface-3);
}

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

.comparison-card {
  overflow: hidden;
}

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

.comparison-images figure {
  position: relative;
  margin: 0;
  min-height: 330px;
  overflow: hidden;
}

.comparison-images img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.comparison-images figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--safety);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.comparison-card h3,
.comparison-card p {
  padding-inline: 20px;
}

.comparison-card h3 {
  margin-top: 18px;
}

.comparison-card p {
  margin-bottom: 20px;
}

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

.workflow-agent {
  display: grid;
  gap: 12px;
  min-height: 270px;
  padding: 22px;
}

.workflow-agent.priority {
  color: white;
  background: var(--danger);
  border-color: rgba(255, 255, 255, 0.16);
}

.workflow-agent.priority svg,
.workflow-agent.priority p {
  color: rgba(255, 255, 255, 0.82);
}

.workflow-agent.priority span {
  color: var(--ink);
  background: var(--safety);
}

.portal-section {
  background: var(--surface);
}

.portal-shell {
  overflow: hidden;
  background: var(--charcoal);
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  color: white;
  background:
    linear-gradient(90deg, rgba(0, 167, 200, 0.18), rgba(255, 202, 46, 0.14)),
    var(--charcoal);
}

.portal-header span {
  color: var(--electric);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-header h3 {
  margin: 4px 0 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 0;
}

.status-timeline {
  padding: 26px;
  background: var(--surface);
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding-bottom: 24px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  position: absolute;
  top: 16px;
  bottom: -2px;
  left: 10px;
  width: 2px;
  content: "";
  background: var(--line);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-step > span {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background: var(--surface-3);
  border: 2px solid var(--line);
  border-radius: 999px;
}

.timeline-step.done > span,
.timeline-step.active > span {
  background: var(--green);
  border-color: var(--green);
}

.timeline-step.active > span {
  box-shadow: 0 0 0 7px rgba(47, 177, 114, 0.16);
}

.timeline-step strong {
  display: block;
  margin-bottom: 3px;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
}

.portal-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 26px;
  background: var(--surface-2);
}

.portal-panel {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
}

.portal-panel svg {
  width: 26px;
  height: 26px;
  color: var(--electric);
}

.portal-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-panel strong {
  font-size: 1.35rem;
}

.crm-section {
  background: var(--charcoal);
  color: white;
}

.crm-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.crm-dashboard {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.crm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.crm-topbar span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.crm-topbar strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.crm-actions {
  display: flex;
  gap: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.metric-grid article {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 0;
  border-radius: 0;
}

.metric-grid span,
.metric-grid small {
  color: var(--muted);
  font-weight: 800;
}

.metric-grid strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.crm-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  color: var(--ink);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 430px;
}

.pipeline-column {
  padding: 18px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
}

.pipeline-column h3 {
  margin-bottom: 14px;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.lead-row {
  display: grid;
  width: 100%;
  gap: 3px;
  margin-bottom: 10px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lead-row:hover,
.lead-row.selected {
  border-color: var(--electric);
  box-shadow: 0 10px 24px rgba(0, 167, 200, 0.12);
}

.lead-row.hot {
  border-color: rgba(217, 40, 63, 0.3);
}

.lead-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.owner-panel {
  display: grid;
  align-content: start;
  gap: 1px;
  background: var(--line);
}

.owner-panel-section {
  padding: 18px;
  background: var(--surface);
}

.owner-panel-section > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tech-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.tech-row:first-of-type {
  border-top: 0;
}

.tech-row em {
  padding: 5px 8px;
  color: var(--ink);
  background: var(--electric-2);
  border-radius: 999px;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.sms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: start;
}

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

.sms-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 74px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 850;
}

.sms-trigger svg {
  width: 21px;
  height: 21px;
  color: var(--electric);
}

.sms-trigger.active {
  background: var(--safety);
  border-color: rgba(17, 20, 22, 0.2);
}

.sms-preview {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--charcoal);
  color: white;
}

.sms-preview > span {
  color: var(--electric);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sms-preview p {
  margin: 0;
  padding: 18px;
  color: var(--ink);
  background: white;
  border-radius: var(--radius);
}

.phone-meta {
  color: rgba(255, 255, 255, 0.66);
}

.phone-meta strong {
  color: var(--green);
}

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

.trust-grid article {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.review-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 16px;
  padding: 24px;
  color: white;
  background:
    linear-gradient(90deg, rgba(0, 167, 200, 0.28), rgba(255, 202, 46, 0.16)),
    var(--charcoal);
  border-radius: var(--radius);
}

.review-band span {
  color: var(--safety);
  font-weight: 900;
  text-transform: uppercase;
}

.review-band strong {
  display: block;
  margin-top: 5px;
  font-size: 1.55rem;
}

.review-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: white;
  background: #090d0d;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.68);
}

.bonzentech-credit {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.bonzentech-credit a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

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

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    grid-column: 1 / -1;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
    gap: 12px;
  }

  .header-actions {
    justify-self: end;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 78px;
  }

  .hero-intel {
    max-width: 560px;
    margin-top: 34px;
  }

  .estimate-layout,
  .portal-grid,
  .crm-workspace,
  .sms-layout {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pipeline-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 10px;
  }

  .brand-copy span,
  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions .btn-primary {
    min-width: 42px;
    padding: 0 12px;
  }

  .header-actions .btn-primary {
    font-size: 0;
  }

  .header-actions .btn-primary svg {
    margin: 0;
  }

  .hero {
    padding-inline: 18px;
    background-position: center top;
  }

  h1 {
    font-size: clamp(2.35rem, 12.6vw, 3.45rem);
  }

  .hero-intel {
    display: none;
  }

  .hero-ctas,
  .hero-metrics,
  .portal-header,
  .crm-topbar,
  .review-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

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

  .hero-ctas {
    gap: 10px;
    margin-bottom: 14px;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-metrics span {
    display: grid;
    align-content: center;
    min-height: 54px;
    padding: 8px;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .hero-metrics strong {
    display: block;
    font-size: 1rem;
  }

  .visual-band {
    padding-top: 28px;
  }

  .visual-grid,
  .service-grid,
  .agent-grid,
  .photo-grid,
  .comparison-grid,
  .trust-grid,
  .sms-grid,
  .metric-grid,
  .portal-panels,
  .form-split,
  .segmented,
  .urgency-grid {
    grid-template-columns: 1fr;
  }

  .visual-card.visual-wide {
    grid-column: auto;
  }

  .comparison-images {
    grid-template-columns: 1fr;
  }

  .comparison-images figure,
  .comparison-images img {
    min-height: 240px;
  }

  .crm-actions {
    flex-direction: column;
  }

  .crm-actions .btn,
  .review-band .btn,
  .site-footer .btn {
    width: 100%;
  }
}
