/* InboxOnAuto — job-site orange on navy and cream. One wide column, navy bands for the moments that matter. */
:root {
  --navy: #0F1B2D;
  --navy-raised: #1A2A42;
  --navy-line: #2C3D57;
  --orange: #C2410C;
  --orange-hover: #9A3412;
  --orange-bright: #F97316;
  --orange-soft: #FDEBDD;
  --cream: #F7F5F0;
  --paper: #FFFFFF;
  --ink: #0F1B2D;
  --slate: #5B6472;
  --line: #E4DFD4;
  --on-navy: #F7F5F0;
  --on-navy-muted: #B9C1CD;
  --ok: #15803D;
  --error: #B42318;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.875rem, 1.4rem + 2vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.6rem + 3.2vw, 3.5rem);

  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * max(16px, env(safe-area-inset-left, 0px)));
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(3rem, 6vw, 5.5rem); }
.band--navy { background: var(--navy); color: var(--on-navy); }
.band--paper { background: var(--paper); border-block: 1px solid var(--line); }
.lede { font-size: var(--step-1); color: var(--slate); max-width: 38rem; }
.band--navy .lede { color: var(--on-navy-muted); }
.eyebrow {
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange);
}
.band--navy .eyebrow { color: var(--orange-bright); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2.5rem; }
.section-head { display: grid; gap: 0.75rem; max-width: 44rem; }

/* Header */
.site-header { padding-block: 1.25rem; }
.band--navy .site-header, .site-header--navy { background: var(--navy); color: var(--on-navy); }
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--orange);
  display: grid; place-items: center; flex: none;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo .auto { color: var(--orange); }
.site-header--navy .logo .auto { color: var(--orange-bright); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.75rem 1.4rem; border-radius: var(--radius); border: 0;
  background: var(--orange); color: #fff; font: 600 var(--step-0)/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.7; cursor: wait; }
.btn--ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn--ghost:hover { background: rgba(127, 127, 127, 0.12); }
.btn svg { width: 18px; height: 18px; flex: none; }
.fine { font-size: var(--step--1); color: var(--slate); }
.band--navy .fine { color: var(--on-navy-muted); }

/* Hero layout */
.hero { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }

/* Phone mock (home services hero) */
.phone {
  justify-self: center; width: min(100%, 330px); background: var(--navy-raised);
  border: 1px solid var(--navy-line); border-radius: 28px; padding: 1.1rem; display: grid; gap: 0.75rem;
}
.phone-bar { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--on-navy-muted); padding-inline: 0.25rem; }
.missed {
  display: flex; gap: 0.75rem; align-items: center; background: rgba(180, 35, 24, 0.16);
  border: 1px solid rgba(240, 120, 110, 0.35); border-radius: 14px; padding: 0.75rem 0.9rem; font-size: 0.9375rem;
}
.missed strong { color: #FCA5A5; font-weight: 600; }
.missed svg { width: 22px; height: 22px; flex: none; color: #FCA5A5; }
.bubble { max-width: 88%; padding: 0.65rem 0.85rem; border-radius: 16px; font-size: 0.9375rem; line-height: 1.45; }
.bubble--out { justify-self: end; background: var(--orange); color: #fff; border-bottom-right-radius: 4px; }
.bubble--in { justify-self: start; background: #2E4060; color: var(--on-navy); border-bottom-left-radius: 4px; }
.bubble-meta { font-size: 0.75rem; color: var(--on-navy-muted); justify-self: end; }
.booked {
  display: flex; gap: 0.6rem; align-items: center; background: rgba(21, 128, 61, 0.18);
  border: 1px solid rgba(110, 231, 150, 0.35); color: #BBF7D0; border-radius: 14px; padding: 0.65rem 0.9rem; font-size: 0.9375rem;
}
.booked svg { width: 20px; height: 20px; flex: none; }

/* Problem list */
.problems { display: grid; gap: 1rem; }
@media (min-width: 760px) { .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.problem { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; display: grid; gap: 0.5rem; align-content: start; }
.problem .tag { font-size: var(--step--1); font-weight: 600; color: var(--orange); }

/* Trade tabs */
.tabs-shell { display: grid; gap: 1.5rem; scroll-margin-top: 1rem; }
.tablist {
  display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 900px) { .tablist { flex-wrap: wrap; overflow: visible; } }
.tab {
  flex: none; min-height: 44px; padding: 0.55rem 1.05rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: 600 0.9375rem/1.2 var(--font-body); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.tab:hover { border-color: var(--slate); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.5rem); display: grid; gap: 1.75rem;
}
@media (min-width: 900px) { .panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }
.panel-intro { display: grid; gap: 1rem; align-content: start; }
.season {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--orange-soft); color: var(--orange-hover); border-radius: 999px;
  padding: 0.3rem 0.8rem; font-size: var(--step--1); font-weight: 600;
}
.season svg { width: 15px; height: 15px; }
.pain { color: var(--slate); }
.plays { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.plays li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.plays .check {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--on-navy);
  display: grid; place-items: center; margin-top: 2px;
}
.plays .check svg { width: 15px; height: 15px; }
.plays strong { font-weight: 600; }

/* Steps */
.steps { display: grid; gap: 1.25rem; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.steps li { display: grid; gap: 0.5rem; align-content: start; padding-top: 1.1rem; border-top: 2px solid var(--navy-line); counter-increment: step; }
.steps li::before {
  content: "Step " counter(step); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--orange-bright);
}
.steps p { color: var(--on-navy-muted); }
.band:not(.band--navy) .steps li { border-top-color: var(--ink); }
.band:not(.band--navy) .steps li::before { color: var(--orange); }
.band:not(.band--navy) .steps p { color: var(--slate); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--orange); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 1.25rem; color: var(--slate); max-width: 40rem; }

/* CTA band */
.cta { display: grid; gap: 1.5rem; justify-items: start; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* Footer */
.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--slate); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--slate); }
.site-footer a:hover { color: var(--ink); }

/* Chooser */
.chooser-main { min-height: 70vh; display: grid; align-content: center; padding-block: 2rem 4rem; gap: 2.5rem; }
.doors { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.door {
  display: grid; gap: 1rem; align-content: start; text-decoration: none; color: inherit;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); transition: border-color 0.15s, transform 0.15s;
}
.door:hover { border-color: var(--navy); transform: translateY(-2px); }
.door-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; }
.door-icon svg { width: 26px; height: 26px; }
.door p { color: var(--slate); }
.door .door-go { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--orange); }
.door .door-go svg { width: 18px; height: 18px; transition: transform 0.15s; }
.door:hover .door-go svg { transform: translateX(3px); }

/* Audit form */
.form-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1.1rem; border: 1px solid var(--line); min-width: 0;
}
.form-card h2 { font-size: var(--step-2); }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; border-radius: var(--radius);
  border: 1.5px solid #CFC8BA; background: #FDFCFA; font: 400 var(--step-0)/1.3 var(--font-body); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.25); }
.field .hint { font-size: var(--step--1); color: var(--slate); }
.field .err { font-size: var(--step--1); color: var(--error); font-weight: 500; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.optin { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.6rem; align-items: start; font-size: 0.9375rem; color: var(--slate); }
.optin input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.form-card .btn { width: 100%; }
.form-status { font-size: 0.9375rem; padding: 0.75rem 0.9rem; border-radius: var(--radius); background: var(--orange-soft); color: var(--orange-hover); }
.form-status--error { background: #FDE8E7; color: var(--error); }
.form-status a { font-weight: 600; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Report preview */
.report {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: grid; max-width: 760px;
}
.report-top {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; align-items: baseline;
  padding: 1rem 1.4rem; background: var(--navy); color: var(--on-navy);
}
.report-top .fine { color: var(--on-navy-muted); }
.report-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.report-row { display: grid; gap: 0.35rem; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); }
.report-row:first-of-type { border-top: 0; }
.report-label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); }
.report-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.report-vs div { background: var(--cream); border-radius: var(--radius); padding: 0.7rem 0.85rem; font-size: 0.9375rem; }
.report-vs b { display: block; font-family: var(--font-display); font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.blur { filter: blur(5px); user-select: none; color: var(--slate); }
.report-foot { padding: 0.9rem 1.4rem; background: var(--orange-soft); font-size: 0.9375rem; color: var(--orange-hover); font-weight: 500; }

/* Two-col generic */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.contents { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contents li { display: grid; gap: 0.2rem; padding-left: 1.1rem; border-left: 3px solid var(--orange); border-radius: 0; }
.contents li span { color: var(--slate); }

/* Done page */
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.done-mark svg { width: 32px; height: 32px; }

/* Legal */
.legal { max-width: 46rem; display: grid; gap: 1.75rem; padding-block: 2rem 4rem; }
.legal section { display: grid; gap: 0.6rem; }
.legal h2 { font-size: var(--step-2); }
.legal ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.legal p, .legal li { color: #2F3A4A; }
.back-link { background: none; border: 0; padding: 0; font: 600 var(--step-0) var(--font-body); color: var(--orange); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Entrance — content is visible at rest; this only nudges it in */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.6s cubic-bezier(.2,.7,.2,1) both; }
  .rise-2 { animation-delay: 0.08s; } .rise-3 { animation-delay: 0.16s; } .rise-4 { animation-delay: 0.24s; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}
