/* 2 Acre AI — brand tokens + base styles
 * Audience: HVAC owners on phones in trucks.
 * Voice: direct, ROI-focused, blue-collar respectful.
 * Anti-references: editorial AI consultancy, soft tech-bro pastels,
 *   purple-gradient AI marketing. This site shows numbers, not vibes.
 */

@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local("IBM Plex Sans");
}

:root {
  /* Color */
  --steel: #1A2332;        /* primary dark, near-black with a cool tint */
  --steel-soft: #2A3445;   /* hover/border */
  --slate: #3A4A5C;        /* secondary muted */
  --paper: #F8F8F6;        /* warm off-white background */
  --paper-dim: #EFEEEA;    /* subtle section break */
  --ink: #0F1419;          /* body text on paper */
  --ink-soft: #4A5560;     /* secondary text */
  --ink-faint: #7A8290;    /* tertiary, mono labels */
  --rule: #D8D6CF;         /* dividers */
  --orange: #E8551C;       /* primary accent — pain/loss numbers */
  --orange-deep: #C4441A;  /* hover */
  --green: #1F7A3A;        /* recovery numbers, success */

  /* Type scale */
  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 16px;
  --t-lg: 18px;
  --t-xl: 22px;
  --t-2xl: 28px;
  --t-3xl: 36px;
  --t-4xl: 48px;
  --t-hero: 64px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --max: 1080px;
  --max-narrow: 640px;
  --max-text: 720px;

  --radius: 4px;
  --radius-sm: 2px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plex Sans", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4) 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--steel);
}

h1 { font-size: var(--t-hero); letter-spacing: -0.03em; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }

p { margin: 0 0 var(--s-4) 0; max-width: var(--max-text); }

a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }

strong { font-weight: 700; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.container-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* Mono kickers — section labels */
.kicker {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s-3);
  display: block;
}

.kicker-orange { color: var(--orange); }

/* Hero numbers — the whole brand pivots on these */
.hero-num {
  font-family: "Plex Sans", "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-size: var(--t-hero);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--orange);
}

.hero-num-green { color: var(--green); }
.hero-num-steel { color: var(--steel); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--t-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.2;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: white; }

.btn-secondary {
  background: transparent;
  color: var(--steel);
  border-color: var(--steel);
}
.btn-secondary:hover { background: var(--steel); color: var(--paper); }

.btn-block { display: block; width: 100%; text-align: center; }

/* Form */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: white;
  font-family: inherit;
  font-size: var(--t-md);
  color: var(--ink);
  line-height: 1.4;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 2px rgba(26, 35, 50, 0.15);
}

label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field { margin-bottom: var(--s-4); }

/* Choice list — used on assessment */
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0 0 var(--s-5) 0;
  padding: 0;
}

.choices li { margin: 0; }

.choices button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--t-md);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 60ms ease;
}

.choices button:hover {
  border-color: var(--steel);
  background: var(--paper-dim);
}

.choices button.selected {
  border-color: var(--orange);
  border-width: 2px;
  padding: 13px 15px;
  background: white;
}

/* Header / footer */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: var(--s-4) 0;
  background: var(--paper);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.brand-mark {
  font-weight: 700;
  font-size: var(--t-lg);
  color: var(--steel);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--orange);
  margin-right: 8px;
  vertical-align: -1px;
  border-radius: 1px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--s-7) 0 var(--s-6);
  margin-top: var(--s-9);
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
}

/* Section + hero */
.hero { padding: var(--s-9) 0 var(--s-8); }
.section { padding: var(--s-8) 0; }
.section-tight { padding: var(--s-7) 0; }
.section-dim { background: var(--paper-dim); }

.eyebrow-row {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--t-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: var(--s-5);
}

.eyebrow-row span { display: flex; align-items: center; gap: 6px; }
.eyebrow-row span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 1px;
}

/* Stat row — homepage */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin: var(--s-7) 0;
}

.stat .stat-num {
  font-size: var(--t-4xl);
  font-weight: 700;
  color: var(--steel);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s-2);
}

.stat .stat-num.orange { color: var(--orange); }

.stat .stat-label {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Pricing card */
.pricing {
  border: 2px solid var(--steel);
  border-radius: var(--radius);
  padding: var(--s-6);
  background: white;
  max-width: 520px;
}

.pricing .price-main {
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--steel);
  letter-spacing: -0.02em;
}

.pricing .price-sub {
  color: var(--ink-soft);
  font-size: var(--t-sm);
  margin-bottom: var(--s-5);
}

.pricing ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5) 0;
}

.pricing li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing li:last-child { border-bottom: 0; }

.pricing li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--orange);
  margin-top: 6px;
  border-radius: 1px;
}

/* ── Photo layouts ── */

/* Shared image treatment */
.hero-img img,
.numbers-img img,
.feature-img img,
.pricing-trust img,
.cta-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(15, 20, 25, 0.08);
}

.img-caption {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--t-xs);
  color: var(--ink-faint);
  margin-top: var(--s-3);
  letter-spacing: 0.5px;
}

/* Hero with full-bleed background photo, white scrim, and a solid copy block */
.hero-bg {
  position: relative;
  padding: var(--s-9) 0;
  overflow: hidden;
  isolation: isolate; /* contain the scrim's stacking context */
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  display: block;
}

.hero-bg-scrim {
  position: absolute;
  inset: 0;
  /* Reverse the gradient so the readable side is on the RIGHT, behind the card */
  background:
    linear-gradient(
      255deg,
      rgba(248, 248, 246, 0.92) 0%,
      rgba(248, 248, 246, 0.78) 40%,
      rgba(248, 248, 246, 0.45) 75%,
      rgba(248, 248, 246, 0.22) 100%
    );
  z-index: -1;
}

.hero-bg-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 480px;
  /* Override the .container max-width so the card can sit 40px from the
     viewport's right edge instead of the 1080px container's right edge. */
  max-width: none;
  padding-left: var(--s-5);
  padding-right: 40px;
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  /* Right-aligned card uses an orange right-border instead of left */
  border-right: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: var(--s-7);
  width: 672px;
  max-width: calc(100% - 40px);
  box-shadow: 0 10px 32px rgba(15, 20, 25, 0.10), 0 1px 3px rgba(15, 20, 25, 0.06);
}

.hero-card h1 { margin-bottom: var(--s-4); }

.hero-deck {
  font-size: var(--t-lg);
  margin-top: var(--s-5);
  max-width: 100%;
}

/* Legacy: keep the old hero-split rule defined for the assessment page header
   reuse, but explicitly NOT applied to the homepage anymore. */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--s-8);
  align-items: center;
}

.hero-img img {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Numbers split — stats left, dispatch desk image right */
.numbers-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--s-8);
  align-items: start;
}

.numbers-img img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Feature rows — alternating image + text pairs */
.feature-row {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--s-7);
  align-items: center;
  margin-top: var(--s-7);
}

.feature-row-reverse {
  grid-template-columns: 1fr 400px;
}

.feature-row-reverse .feature-img {
  order: 2;
}

.feature-row-reverse .feature-pair {
  order: 1;
}

.feature-img img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.feature-pair {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.feature-grid-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-7);
  border-top: 1px solid var(--rule);
}

/* Pricing split — card left, trust image right */
.pricing-split {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: var(--s-7);
  align-items: start;
}

.pricing-trust img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* CTA split — image left, text right */
.cta-split {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--s-8);
  align-items: center;
}

.cta-img img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ── FAQ accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--s-6);
  max-width: 820px;
}

.faq-item {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.faq-item[open] {
  border-color: var(--steel);
  box-shadow: 0 2px 8px rgba(15, 20, 25, 0.04);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px 18px 48px;
  position: relative;
  font-weight: 600;
  font-size: var(--t-md);
  color: var(--steel);
  list-style: none;
  user-select: none;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 1px;
  transition: transform 200ms ease;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 16px;
  font-weight: 600;
  color: white;
  line-height: 1;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item summary:hover { background: var(--paper-dim); }

.faq-body {
  padding: 0 20px 20px 48px;
  color: var(--ink);
}

.faq-body p {
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
}

.faq-body p strong { color: var(--steel); }

@media (max-width: 720px) {
  .faq-item summary { padding-left: 44px; font-size: var(--t-sm); }
  .faq-item summary::before, .faq-item summary::after { left: 16px; }
  .faq-body { padding-left: 44px; }
}

/* ── Video walkthrough section ── */
.video-section {
  padding: var(--s-8) 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dim) 100%);
}

.video-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--steel);
  background-image:
    radial-gradient(circle at 30% 30%, rgba(232, 85, 28, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(91, 127, 168, 0.10) 0%, transparent 55%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(15, 20, 25, 0.16), 0 1px 3px rgba(15, 20, 25, 0.08);
}

.video-frame::before {
  /* subtle film-grain feel */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.012) 3px,
      rgba(255, 255, 255, 0.012) 4px
    );
  pointer-events: none;
}

.video-frame::after {
  /* corner crop marks */
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(248, 248, 246, 0.08);
  border-radius: 2px;
  pointer-events: none;
}

.video-frame-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
}

/* Real <video> element fills the frame */
.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--steel);
  position: relative;
  z-index: 2;
}

.video-play {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 0;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  box-shadow: 0 8px 24px rgba(232, 85, 28, 0.32);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.video-play svg { margin-left: 4px; } /* optical center the triangle */

.video-frame:hover .video-play:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(232, 85, 28, 0.4);
}

.video-frame-meta {
  text-align: center;
}

.video-frame-status {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--t-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(232, 85, 28, 0.12);
  border: 1px solid rgba(232, 85, 28, 0.32);
  padding: 6px 12px;
  border-radius: var(--radius);
  margin-bottom: var(--s-2);
}

.video-frame-spec {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--t-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(248, 248, 246, 0.5);
  margin-top: var(--s-3);
}

/* Mobile */
@media (max-width: 720px) {
  h1 { font-size: var(--t-3xl); }
  h2 { font-size: var(--t-2xl); }
  .hero-num { font-size: var(--t-4xl); }
  .stat-row { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero { padding: var(--s-7) 0 var(--s-6); }
  .section { padding: var(--s-6) 0; }

  .hero-split,
  .numbers-split,
  .feature-row,
  .feature-row-reverse,
  .pricing-split,
  .cta-split {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .hero-img { order: -1; }

  /* Mobile hero: stronger scrim, simpler card */
  .hero-bg { padding: var(--s-7) 0; }
  .hero-bg-content {
    min-height: 0;
    justify-content: stretch;
    padding-right: var(--s-5); /* drop the 40px override for narrow screens */
  }
  .hero-bg-scrim {
    background: linear-gradient(180deg, rgba(248, 248, 246, 0.96) 0%, rgba(248, 248, 246, 0.85) 100%);
  }
  .hero-card {
    padding: var(--s-5);
    border-right-width: 3px;
    max-width: 100%;
  }

  .feature-row-reverse .feature-img { order: 0; }
  .feature-row-reverse .feature-pair { order: 0; }

  .feature-grid-bottom {
    grid-template-columns: 1fr;
  }

  .cta-img { order: -1; }

  .video-section { padding: var(--s-6) 0; }
  .video-play { width: 72px; height: 72px; }
  .video-play svg { width: 36px; height: 36px; }
}

/* Utilities */
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.flex { display: flex; }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.wrap { flex-wrap: wrap; }
