@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/quote/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --ink: #201a16;
  --brown: #3d2b1f;
  --green: #2d5016;
  --green-dark: #213d10;
  --cream: #f8f3eb;
  --paper: #fffdf9;
  --muted: #73675e;
  --line: #ded5c8;
  --red: #9f3329;
  --shadow: 0 24px 70px rgba(61,43,31,.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--sans); background: radial-gradient(circle at 15% 15%, rgba(196,151,59,.13), transparent 30rem), linear-gradient(135deg, #faf7f2, #f4ede3); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .28; background-image: repeating-linear-gradient(90deg, transparent 0, transparent 117px, rgba(61,43,31,.025) 118px, transparent 119px); }

.site-header { position: relative; z-index: 1; min-height: 82px; display: flex; align-items: center; justify-content: space-between; max-width: 1000px; margin: 0 auto; padding: 18px 28px; border-bottom: 1px solid rgba(61,43,31,.1); }
.brand { display: inline-flex; flex-direction: column; color: var(--brown); text-decoration: none; }
.brand-name { font-family: var(--sans); font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; }
.brand-tag { margin-top: 2px; color: var(--green); font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.phone-link { color: var(--brown); font-weight: 800; text-decoration: none; }
.phone-link span { margin-right: 6px; color: var(--muted); font-size: .78rem; font-weight: 500; }

.quote-page { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 58px 24px 76px; }
.quote-card { min-height: 500px; padding: clamp(30px, 6vw, 54px); border: 1px solid rgba(61,43,31,.1); border-radius: 20px; background: rgba(255,253,249,.98); box-shadow: var(--shadow); }
.loading-state, .error-state { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.loading-state h1, .error-state h1 { margin: 18px 0 8px; color: var(--brown); font-family: var(--sans); font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: -.035em; }
.loading-state p, .error-state p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.6; }
.loading-mark { width: 34px; height: 34px; border: 3px solid #dce6d6; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--red); font-weight: 900; }

.status-badge { width: max-content; margin: 0 auto 17px; padding: 7px 12px; border-radius: 999px; color: var(--green); background: #edf5e8; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status-badge.expired { color: var(--red); background: #f9e8e5; }
.eyebrow { display: block; color: var(--green); font-size: .7rem; font-weight: 900; letter-spacing: .15em; text-align: center; text-transform: uppercase; }
.package-label { margin: 20px 0 5px; color: var(--muted); font-size: .9rem; font-weight: 750; text-align: center; }
.quote-total { margin: 0; color: var(--brown); font-family: var(--sans); font-size: clamp(4rem, 13vw, 6rem); line-height: 1; letter-spacing: -.055em; text-align: center; }
.status-message { margin: 12px auto 0; color: var(--muted); line-height: 1.55; text-align: center; }
.quote-meta { margin: 22px 0 25px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .76rem; }
.quote-meta strong { color: var(--brown); }
.financing-card { margin: 0 0 25px; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; border: 1px solid #d8c28f; border-radius: 11px; background: #fff9ec; }
.financing-copy { display: flex; flex-direction: column; align-items: flex-start; }
.financing-kicker { color: #776127; font-size: .57rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.financing-copy > strong { margin-top: 3px; color: var(--brown); font-family: var(--sans); font-size: 1.25rem; }
.financing-copy > p { margin: 3px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.financing-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 8px; color: #fff; background: var(--brown); font-size: .72rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.financing-button:hover { background: #2c1e15; }
.financing-disclaimer { grid-column: 1 / -1; margin: 0; padding-top: 9px; border-top: 1px solid rgba(119,97,39,.2); color: var(--muted); font-size: .58rem; line-height: 1.45; }

.quote-section { padding-top: 24px; border-top: 1px solid var(--line); }
.quote-section h2 { margin: 0 0 12px; color: var(--brown); font-family: var(--sans); font-size: 1.35rem; }
.breakdown { display: grid; gap: 2px; }
.breakdown-row { display: flex; justify-content: space-between; gap: 20px; padding: 8px 2px; color: var(--muted); font-size: .79rem; line-height: 1.4; }
.breakdown-row strong { color: var(--green); white-space: nowrap; }
.project-card { margin-top: 23px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 18px; padding: 18px; border-radius: 11px; background: #f4f8f1; }
.project-card div { display: flex; flex-direction: column; gap: 5px; }
.project-card span { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.project-card strong { color: var(--brown); font-size: .82rem; line-height: 1.45; }
.expired-callout { margin-top: 20px; padding: 16px 18px; border: 1px solid #eacbc6; border-radius: 10px; color: var(--brown); background: #fff5f3; }
.expired-callout p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.quote-actions { margin-top: 25px; display: grid; gap: 10px; }
.primary-button, .secondary-button { min-height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 800; text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s, color .2s, background .2s; }
.primary-button { color: white; background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 12px 25px rgba(45,80,22,.22); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(45,80,22,.28); }
.secondary-button { border: 2px solid var(--green); color: var(--green); background: white; }
.secondary-button:hover { color: white; background: var(--green); }
.private-note { margin: 15px 0 0; color: var(--muted); font-size: .69rem; text-align: center; }
.terms { margin-top: 12px; color: var(--muted); font-size: .69rem; }
.terms summary { width: max-content; max-width: 100%; margin: 0 auto; cursor: pointer; text-decoration: underline; }
.terms p { margin: 9px 0 0; line-height: 1.55; }
footer { position: relative; z-index: 1; border-top: 1px solid rgba(61,43,31,.1); padding: 22px; color: var(--muted); font-size: .72rem; text-align: center; }

@media (max-width: 600px) {
  .site-header { min-height: 72px; padding: 15px 18px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { font-size: .52rem; }
  .phone-link { font-size: .86rem; }
  .phone-link span { display: none; }
  .quote-page { padding: 34px 14px 54px; }
  .quote-card { padding: 30px 20px; border-radius: 16px; }
  .quote-total { font-size: 4.5rem; }
  .financing-card { grid-template-columns: 1fr; }
  .financing-button { width: 100%; }
  .project-card { grid-template-columns: 1fr; }
  .breakdown-row { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
