/* Page layout for index.html. Everything here was an inline style="" in the
   design-canvas export; lifting it into classes is what makes the page
   themeable and, below, responsive — the export had no media queries at all. */

/* ── shared shell ─────────────────────────────────────────────────────── */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 27px;
}

.section { padding-block: 54px; }
.section-tight { padding-block: 20px 64px; }

.eyebrow { color: var(--color-accent-700); }
.section-title { margin-bottom: 34px; }

.placeholder {
  display: block;
  width: 100%;
  height: auto;
  background: repeating-linear-gradient(45deg,
    var(--color-neutral-200) 0 10px,
    var(--color-neutral-100) 10px 20px);
}

/* ── nav ──────────────────────────────────────────────────────────────── */

.site-nav { padding-top: 20px; }
.nav-brand { letter-spacing: 0.02em; }
.nav-brand-sub { color: var(--color-accent); font-weight: 400; }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 54px;
  align-items: center;
  padding-block: 72px 64px;
}
.hero-title {
  font-size: clamp(38px, 6vw, 60px);
  max-width: 12ch;
  text-wrap: balance;
  margin-bottom: 20px;
}
.hero-eyebrow { color: var(--color-accent-700); margin-bottom: 14px; }
.hero-lede {
  font-size: 17px;
  max-width: 46ch;
  color: var(--color-neutral-700);
  margin-bottom: 27px;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-actions .btn-primary { padding: 10px 22px; font-size: 15px; }

/* ── capabilities ─────────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
  margin-bottom: 44px;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.split-grid h4 { margin-bottom: 14px; }
.spec-table th { width: 45%; font-weight: 400; text-align: left; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── how it works (dark band) ─────────────────────────────────────────── */

.process {
  background: var(--color-accent-900);
  color: var(--color-bg);
}
.process .wrap { padding-block: 64px; }
.process-eyebrow { color: var(--color-accent-300); }
.process h2 { color: var(--color-bg); margin-bottom: 34px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 27px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.process-step {
  border-top: 1px solid var(--color-accent-700);
  padding-top: 14px;
}
.process-num {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-accent-300);
}
.process-step h5 { color: var(--color-bg); }
.process-step p {
  font-size: 13px;
  color: var(--color-accent-200);
  text-wrap: pretty;
  margin: 0;
}

/* ── estimator ────────────────────────────────────────────────────────── */

.estimator { padding-block: 64px; }
.estimator h2 { margin-bottom: 10px; }
.estimator-note { max-width: 52ch; margin-bottom: 14px; }
.estimator-note strong { color: var(--color-text); }
.estimator-note-small { max-width: 52ch; margin-bottom: 34px; font-size: 13px; }

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  align-items: start;
}
.estimator-form {
  padding: 27px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.estimator-form .input-sheets { max-width: 140px; }
.radio-stack { display: flex; flex-direction: column; gap: 10px; }

/* A fieldset groups the radios for assistive tech; it must not also draw a
   box, and its legend has to match the .field > label it stands in for. */
.field:where(fieldset) { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.field > legend {
  display: block;
  float: left;          /* Safari ignores display on <legend> without this. */
  width: 100%;
  font-size: 12px;
  margin-bottom: 5px;
  padding: 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.field > legend + * { clear: both; }

.estimate-panel-col { position: sticky; top: 27px; }
.estimate-panel {
  padding: 27px;
  background: var(--color-surface);
}
.estimate-figure {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.1;
  margin: 8px 0 4px;
}
.estimate-breakdown { font-size: 13px; margin-bottom: 20px; }
.estimate-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  border-top: 1px solid var(--color-divider);
  padding-top: 14px;
  margin-bottom: 20px;
}
.estimate-line { display: flex; justify-content: space-between; gap: var(--space-4); }
.estimate-disclaimer {
  font-size: 12px;
  margin-top: 10px;
  text-wrap: pretty;
}

/* ── faq ──────────────────────────────────────────────────────────────── */

.faq-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 54px;
  align-items: start;
}
.faq-group-title {
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-accent);
}

/* <details> carries the open/closed state itself — no JavaScript, and the
   content stays in the DOM for search engines and in-page find. */
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-item > summary {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  padding: 12px 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
  line-height: 1.25;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--color-accent-700); }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* A drawn +/− rather than a glyph, so it matches the registration marks. */
.faq-item > summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  align-self: center;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--color-accent) 0 0) center / 100% 1px no-repeat,
    linear-gradient(var(--color-accent) 0 0) center / 1px 100% no-repeat;
}
.faq-item[open] > summary::after {
  background: linear-gradient(var(--color-accent) 0 0) center / 100% 1px no-repeat;
}

.faq-answer {
  padding: 0 27px 14px 0;
  font-size: 14px;
  color: var(--color-neutral-700);
  text-wrap: pretty;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* Unanswered copy. Deliberately loud, and matching the [ photo: ... ] slots,
   so an unfinished answer cannot quietly ship. */
.todo {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--color-neutral-700);
  padding: 2px 8px;
  border: 1px dashed var(--color-neutral-400);
  background: repeating-linear-gradient(45deg,
    var(--color-neutral-200) 0 6px,
    var(--color-neutral-100) 6px 12px);
}

.disclaimer {
  margin-top: 54px;
  padding: 27px;
  max-width: 68ch;
}
.disclaimer-title {
  color: var(--color-accent-700);
  margin-bottom: var(--space-4);
}
.disclaimer p {
  font-size: 14px;
  text-wrap: pretty;
}
.disclaimer p:last-child {
  margin-bottom: 0;
  font-size: 13px;
}

/* ── about ────────────────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 54px;
  align-items: center;
  border-top: 1px solid var(--color-divider);
  padding-top: 54px;
}
.about-body {
  max-width: 52ch;
  color: var(--color-neutral-700);
  text-wrap: pretty;
}
.about-grid h2 { margin-bottom: 14px; }

/* ── contact / footer ─────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-neutral-900);
  color: var(--color-neutral-200);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  padding-block: 64px;
}
.footer-eyebrow { color: var(--color-accent-400); }
.site-footer h2 { color: var(--color-neutral-100); margin-bottom: 14px; }
.footer-lede {
  color: var(--color-neutral-400);
  max-width: 42ch;
  margin-bottom: 27px;
  text-wrap: pretty;
}
.footer-address {
  font-size: 15px;
  line-height: 1.8;
  font-style: normal;
}
.footer-address .muted { margin-top: 14px; color: var(--color-neutral-400); }
.footer-address .email { margin-top: 14px; }
.footer-address a { color: var(--color-accent-300); }
.footer-address a:hover { color: var(--color-accent-200); }

/* Dark-ground form controls. The .input class is tuned for the light
   theme, so the footer re-skins it rather than redefining it. */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form .field > label { color: var(--color-neutral-400); }
.contact-form .input {
  background: var(--color-neutral-800);
  border-color: var(--color-neutral-700);
  color: var(--color-neutral-100);
}
.contact-form .input::placeholder { color: var(--color-neutral-500); }
.contact-form .input:hover { border-color: var(--color-neutral-500); }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form button[type="submit"] {
  align-self: flex-start;
  padding: 10px 22px;
}

/* Honeypot: a real field, off-screen, never announced. Bots that fill
   every input give themselves away; screen readers never reach it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { font-size: 14px; margin: 0; }
.form-status[data-state="ok"] { color: var(--color-accent-300); }
.form-status[data-state="error"] { color: #f0a8a0; }
.form-status:empty { display: none; }

.footer-bar { border-top: 1px solid var(--color-neutral-800); }
.footer-bar .wrap {
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-neutral-500);
}

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero,
  .split-grid,
  .estimator-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-groups { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-block: 44px 44px; }
  .hero-title { max-width: none; }
  .about-grid { padding-top: 34px; }
  /* The panel only sticks when it sits beside the form. */
  .estimate-panel-col { position: static; }
  /* Photo first in source order reads better than photo first on mobile. */
  .about-grid figure { order: 1; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .card-grid,
  .process-grid,
  .contact-form-row { grid-template-columns: 1fr; }
  .disclaimer { margin-top: 34px; padding: 20px; }
  .site-nav {
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
  }
  .estimate-figure { font-size: 38px; }
  .section, .estimator { padding-block: 40px; }
  .process .wrap, .footer-grid { padding-block: 44px; }
}
