/* RoofQuote — trustworthy home-services aesthetic, mobile-first. */
:root {
  --accent: #1b5e4a;
  --accent-dark: #134536;
  --accent-soft: #e8f2ee;
  --ink: #1c2422;
  --ink-soft: #54635e;
  --paper: #ffffff;
  --bg: #f6f8f7;
  --line: #dde5e2;
  --amber: #d97a1f;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 40, 34, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 18px; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.18rem; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
}
.logo svg { flex: 0 0 auto; }
.main-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 8px 10px; border-radius: 8px;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.main-nav a.nav-cta {
  background: var(--accent); color: #fff;
}
.main-nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 44px 0 18px; text-align: center; }
.hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.025em;
}
.hero p.sub {
  color: var(--ink-soft); max-width: 620px; margin: 0 auto 8px; font-size: 1.06rem;
}
.trust-row {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 0.86rem; margin-top: 14px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { color: var(--accent); }

/* ---------- calculator ---------- */
.rq-calculator {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 26px 0;
}
@media (min-width: 880px) {
  .rq-calculator { display: grid; grid-template-columns: 1fr 380px; }
}
.rq-form { padding: 24px 22px; border-bottom: 1px solid var(--line); }
@media (min-width: 880px) {
  .rq-form { border-bottom: 0; border-right: 1px solid var(--line); }
}
.rq-q { margin-bottom: 22px; }
.rq-q:last-child { margin-bottom: 0; }
.rq-q > .q-label {
  display: block; font-weight: 700; font-size: 0.98rem; margin-bottom: 9px;
}
.rq-q .q-hint { font-weight: 400; color: var(--ink-soft); font-size: 0.84rem; }

.cards { display: grid; gap: 9px; grid-template-columns: repeat(2, 1fr); }
.cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) {
  .cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.card-opt { position: relative; }
.card-opt input { position: absolute; opacity: 0; inset: 0; }
.card-opt label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border: 2px solid var(--line); border-radius: 10px;
  cursor: pointer; text-align: center; font-weight: 600; font-size: 0.88rem;
  background: var(--paper); transition: border-color .12s, background .12s;
  min-height: 64px; justify-content: center; color: var(--ink);
}
.card-opt label small { font-weight: 400; color: var(--ink-soft); font-size: 0.76rem; }
.card-opt input:checked + label {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark);
}
.card-opt input:focus-visible + label { outline: 3px solid var(--accent-soft); }
.card-opt svg { color: var(--ink-soft); }
.card-opt input:checked + label svg { color: var(--accent); }

.rq-form input[type="number"], .rq-form select, .text-input {
  width: 100%; padding: 13px 14px; font-size: 1.05rem; border: 2px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink); font-family: inherit;
}
.rq-form input[type="number"]:focus, .rq-form select:focus, .text-input:focus {
  outline: none; border-color: var(--accent);
}
.inline-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.stepper { display: flex; align-items: center; gap: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button {
  width: 46px; height: 46px; border: 0; background: var(--bg); font-size: 1.3rem;
  cursor: pointer; color: var(--accent-dark); font-weight: 700;
}
.stepper input { border: 0 !important; text-align: center; border-radius: 0 !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- results panel ---------- */
.rq-result { padding: 24px 22px; background: linear-gradient(180deg, var(--accent-soft), var(--paper) 140px); }
.rq-result .res-label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-dark); font-weight: 700; margin: 0 0 4px;
}
.rq-range { font-size: clamp(1.55rem, 5vw, 1.95rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.rq-area { color: var(--ink-soft); font-size: 0.84rem; margin: 6px 0 16px; }
.rq-breakdown { width: 100%; border-collapse: collapse; font-size: 0.94rem; margin-bottom: 16px; }
.rq-breakdown td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rq-breakdown td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rq-breakdown tr:last-child td { border-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
  transition: background .12s;
}
.btn-primary { background: var(--accent); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--paper); color: var(--accent-dark); border: 2px solid var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #b56114; }

.rq-email-form { margin-top: 14px; }
.rq-email-form .email-row { display: flex; gap: 8px; }
.rq-email-form input[type="email"] {
  flex: 1; padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px; font-size: 0.95rem;
  font-family: inherit; min-width: 0;
}
.rq-email-form button { padding: 11px 14px; font-size: 0.9rem; }
.rq-email-form .email-note { font-size: 0.78rem; color: var(--ink-soft); margin: 6px 0 0; }
.rq-email-msg { font-size: 0.86rem; color: var(--accent-dark); font-weight: 600; margin-top: 6px; display: block; }

.rq-disclaimer { font-size: 0.76rem; color: var(--ink-soft); margin-top: 14px; line-height: 1.5; }

/* ---------- article / SEO content ---------- */
.article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; margin: 30px 0; }
@media (min-width: 720px) { .article { padding: 42px 48px; } }
.article h2 { font-size: 1.32rem; margin: 28px 0 10px; letter-spacing: -0.015em; }
.article h2:first-child { margin-top: 0; }
.article p { color: #2c3733; margin: 0 0 14px; }
.article strong { color: var(--ink); }

.faq { margin: 30px 0; }
.faq h2 { font-size: 1.32rem; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 4px 18px; margin-bottom: 10px;
}
.faq summary { font-weight: 700; padding: 12px 0; cursor: pointer; }
.faq details p { color: var(--ink-soft); margin: 0 0 14px; }

/* ---------- material link grid ---------- */
.mat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin: 24px 0; }
@media (min-width: 720px) { .mat-grid { grid-template-columns: repeat(4, 1fr); } }
.mat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; transition: transform .12s, border-color .12s;
}
.mat-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.mat-card .mat-name { font-weight: 800; font-size: 1rem; }
.mat-card .mat-price { color: var(--accent-dark); font-weight: 700; font-size: 0.9rem; }
.mat-card .mat-life { color: var(--ink-soft); font-size: 0.8rem; }

/* ---------- pro page ---------- */
.pro-hero { background: linear-gradient(160deg, #11362b, #1b5e4a); color: #fff; padding: 58px 0 48px; text-align: center; }
.pro-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin: 0 0 14px; letter-spacing: -0.025em; }
.pro-hero .sub { color: #cfe3db; max-width: 640px; margin: 0 auto 22px; font-size: 1.08rem; }
.pro-hero .price-tag { font-size: 1.05rem; color: #fff; }
.pro-hero .price-tag strong { font-size: 1.6rem; }
.badge {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 5px 14px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px;
}
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 34px 0; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
}
.feature h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.feature p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.feature .f-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}

.demo-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin: 22px 0;
}
.brand-controls { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 720px) { .brand-controls { grid-template-columns: 2fr 1.4fr 0.8fr; } }
.brand-controls label { font-weight: 700; font-size: 0.85rem; display: block; margin-bottom: 5px; }
.brand-controls input[type="color"] {
  width: 100%; height: 49px; border: 2px solid var(--line); border-radius: 10px; padding: 4px; background: var(--paper); cursor: pointer;
}
#pro-demo { border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg); }
.demo-brandbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--accent); color: #fff; border-radius: 10px 10px 0 0; padding: 13px 18px;
  font-weight: 800; font-size: 1.05rem;
}
.demo-brand-phone { font-weight: 600; font-size: 0.9rem; }
#pro-demo .rq-calculator { margin: 0; border-radius: 0 0 var(--radius) var(--radius); }
.embed-box { background: #10201b; color: #c7e5da; border-radius: 10px; padding: 16px 18px; font-size: 0.82rem; overflow-x: auto; }
.embed-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }

.waitlist {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; margin: 34px 0; box-shadow: var(--shadow);
}
.waitlist fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .waitlist fieldset { grid-template-columns: 1fr 1fr; } .waitlist fieldset .full { grid-column: 1 / -1; } }
.waitlist label { font-weight: 700; font-size: 0.88rem; display: block; margin-bottom: 5px; }
.waitlist-msg { display: block; margin-top: 10px; font-weight: 700; color: var(--accent-dark); }
.stripe-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

.steps { counter-reset: step; display: grid; gap: 16px; margin: 30px 0; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- sections / footer ---------- */
.section-title { text-align: center; font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 44px 0 6px; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 0 auto 10px; }
.site-footer { background: #11211c; color: #9fb8af; margin-top: 56px; padding: 36px 0; font-size: 0.88rem; }
.site-footer a { color: #cfe3db; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cols { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .fineprint { margin-top: 24px; font-size: 0.76rem; color: #6f867d; line-height: 1.55; }
