@font-face {
  font-family: "General Sans";
  src: url("./assets/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: "General Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #14202f;
  background: #f5f7fb;
  line-height: 1.5;
  font-synthesis: none;
  --brand: #0d448b;
  --muted: #405981;
  --border: #d9deea;
  --pale: #eef6ff;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #4b95f5;
  outline-offset: 4px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 550; letter-spacing: -.045em; line-height: 1.14; margin-bottom: 18px; }
h2 { font-size: 1.32rem; letter-spacing: -.025em; font-weight: 600; margin-bottom: 8px; }
p { margin-bottom: 14px; }
svg { display: block; }
button { border: 0; border-radius: 8px; min-height: 46px; padding: 12px 18px; font-weight: 600; }
.site-header { padding: 22px 5%; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); background: #fff; }
.brand { display: flex; align-items: center; color: var(--brand); text-decoration: none; font-weight: 650; font-size: 1.18rem; letter-spacing: -.025em; }
.brand-logo { display: block; width: 154px; height: auto; }
.header-note { font-size: 12px; color: var(--muted); }
.badge { background: #fff7df; color: #705514; border: 1px solid #ecd89c; border-radius: 5px; padding: 5px 9px; font-size: 11px; white-space: nowrap; }
.shell { max-width: 1280px; padding: 0 32px; margin: auto; }
.stepper { display: flex; justify-content: center; list-style: none; padding: 30px 0; margin: 0 auto 16px; }
.stepper li { display: flex; align-items: center; }
.stepper button { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 4px; background: none; color: #60718c; font-size: 12px; font-weight: 600; }
.stepper li + li::before { content: ""; height: 1px; width: 62px; background: var(--border); margin: 0 18px; }
.stepper button span { display: grid; place-items: center; border: 1px solid #cbd7e8; border-radius: 50%; width: 25px; height: 25px; font-size: 11px; }
.stepper li[aria-current] button { color: var(--brand); }
.stepper li[aria-current] button span { background: var(--brand); color: #fff; border-color: var(--brand); }
.intro { text-align: center; max-width: 620px; margin: 15px auto 35px; }
.intro-copy { max-width: 510px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.installation-callout { display: grid; gap: 2px; padding: 12px 14px; background: #eaf6ef; border: 1px solid #8bc7a3; border-left: 4px solid #287a4d; border-radius: 8px; color: #174e32; text-align: left; }
.installation-callout strong { font-size: 13px; }
.installation-callout span { color: #2f6247; font-size: 11px; }
.intro .installation-callout { max-width: 510px; margin: 20px auto 0; }
.price-panel .installation-callout { margin: 14px 0 18px; }
.eyebrow { color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .14em; margin-bottom: 15px; }
.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 28px; align-items: start; }
.app-layout.nested-guide-step { grid-template-columns: minmax(0, 1fr); }
.app-content { min-width: 0; }
.entry-layout, .review-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.entry-side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.card { padding: 30px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 4px 18px #0d448b08; }
.setup > h2 { font-size: 1.35rem; }
.muted { color: var(--muted); }
.small { color: var(--muted); font-size: 12px; }
.centered { text-align: center; margin: 12px 0 0; }
.field { display: block; font-size: 12px; font-weight: 600; margin: 20px 0; }
.optional { font-size: 11px; color: #7183a0; font-weight: 400; margin-left: 5px; }
.field input, .field select { display: block; width: 100%; min-width: 0; background: #fff; border: 1px solid #cbd7e8; border-radius: 7px; padding: 11px 12px; color: #14202f; margin-top: 7px; font-size: 14px; min-height: 45px; }
.field input::placeholder { color: #7485a0; }
.primary { color: #fff; background: var(--brand); }
.primary:hover { background: #183667; }
.primary span { margin-left: 12px; }
.secondary { background: #e8f0fb; color: var(--brand); }
.secondary:hover { background: #dbe9fc; }
.full { width: 100%; }
.text-button { background: none; color: var(--brand); font-size: 12px; padding: 10px 4px; }
.text-button:hover { text-decoration: underline; }
.landing-main { display: grid; gap: 24px; min-width: 0; }
.guide-section { scroll-margin-top: 20px; }
.guide-section:focus { outline: none; }
.guide-section:focus-visible { outline: 3px solid #4b95f5; outline-offset: 4px; }
.guide-section details { margin: 16px 0 0; padding: 16px 0 0; }
.guide-section summary { color: var(--brand); font-size: 13px; }
.guide-section details > p, .guide-section li { color: var(--muted); font-size: 12px; }
.guide-section ul { padding-left: 20px; }
.guide-section img { display: block; width: 100%; height: auto; margin-top: 16px; border: 1px solid var(--border); border-radius: 8px; }
.guide-intro { margin-top: 18px; }
.guide-intro p { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.dimension-order { color: var(--brand) !important; font-size: 1.35rem !important; font-weight: 650; letter-spacing: .02em; }
.guide-disclaimer { padding: 14px; margin: 20px 0 0; background: #fff7df; border-radius: 7px; color: #5d4b21; font-size: 11px; }
.guide-sidebar { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px; }
.quick-guide-content .guide-section { padding: 0; border: 0; border-radius: 0; box-shadow: none; margin-top: 24px; }
.quick-guide-content .guide-section > .eyebrow { display: none; }
.quick-guide-content .guide-section h2 { font-size: 1rem; }
.quick-guide-content .guide-intro { margin-top: 12px; }
.quick-guide-content .guide-intro p { font-size: 11px; margin-bottom: 6px; }
.quick-guide-content .guide-intro .dimension-order { font-size: 1.05rem !important; }
.quick-guide-content .guide-section details { margin-top: 10px; padding-top: 10px; }
.quick-guide-content .guide-section summary { font-size: 11px; }
.quick-guide-content .guide-section details > p, .quick-guide-content .guide-section li { font-size: 11px; }
.sidebar-guide-group { margin: 12px 0 0; padding: 12px 0 0; }
.sidebar-guide-group > summary { color: var(--brand); font-size: 13px; }
.sidebar-guide-group > .guide-section { margin-top: 14px; }
.sidebar-guide-group > .guide-section > h2 { display: none; }
.guide-handle, .guide-backdrop, .guide-drawer { display: none; }
.drawer-open { overflow: hidden; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 32px 0; }
.page-heading h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.page-heading p:last-child { color: var(--muted); margin: 0; }
.page-heading > button { flex-shrink: 0; }
.page-actions { display: flex; gap: 10px; align-items: center; }
.page-actions button { flex-shrink: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col .field { margin-top: 0; }
.recent-panel { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.recent-panel ul { list-style: none; padding: 0; margin: 18px 0; }
.recent-panel li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--border); }
.recent-panel li:first-child { border-top: 0; padding-top: 0; }
.recent-panel strong { font-size: 13px; overflow-wrap: anywhere; }
.recent-panel li span { color: var(--muted); font-size: 11px; }
.count { display: inline-block; background: #deebf6; border-radius: 20px; padding: 2px 7px; margin-left: 6px; font-size: 11px; }
.status { background: #eaf3ff; border: 1px solid #bfd4f0; padding: 14px; border-radius: 8px; color: var(--brand); font-size: 13px; margin: 15px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; }
.review-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; }
.review-side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.review-side .price-panel,
.review-side .guide-sidebar { position: static; max-height: none; }
.item-card { border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 20px; margin: 14px 0; }
.item-top { display: flex; gap: 12px; align-items: start; justify-content: space-between; }
.item-top > div { flex: 1; }
.item-top p { font-size: 11px; color: var(--muted); margin: 4px 0; }
.item-card .field { margin: 14px 0; }
.item-card .two-col { gap: 12px; }
.item-card .two-col .field { margin: 0 0 14px; }
.item-card .price-line { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 8px; font-size: 12px; }
.price-line strong { font-size: 17px; color: var(--brand); }
.price-line p { margin: 5px 0; color: var(--muted); font-size: 11px; }
.price-line .warning { color: #8c5e25; }
details { border-top: 1px solid var(--border); padding-top: 16px; margin: 22px 0; }
summary { font-size: 12px; font-weight: 600; cursor: pointer; min-height: 30px; }
details > p { color: var(--muted); font-size: 12px; margin-top: 14px; }
.item-card details { margin: 14px 0 0; }
.price-panel { position: sticky; top: 20px; padding: 25px; }
.price-panel .field { margin: 16px 0; }
.quote-option { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 14px 10px; border: 1px solid var(--border); border-radius: 8px; margin: 10px 0; font-size: 13px; }
.quote-option:has(input:checked) { border-color: var(--brand); background: #f0f6ff; }
.quote-option > input { accent-color: var(--brand); width: 16px; height: 16px; }
.quote-option > div { flex: 1; }
.quote-option strong { font-weight: 600; }
.quote-option small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.quote-option .amount { text-align: right; }
.quote-option s { font-size: 11px; color: var(--muted); display: block; }
.price-total { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
.price-total > strong { font-size: 34px; letter-spacing: -.04em; display: block; font-weight: 600; }
.price-total p { font-size: 12px; margin: 8px 0; }
.sale-tag { background: #f8e9b9; color: #654b0e; font-size: 11px; border-radius: 4px; padding: 4px 7px; }
.estimate-note { padding: 22px; background: #fff7df; border-radius: 10px; margin-top: 30px; font-size: 13px; }
.estimate-note p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.empty { text-align: center; padding: 70px 20px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); padding: 24px 0 36px; margin-top: 48px; font-size: 10px; color: #60718c; }
footer a { color: inherit; }
.alert { border: 0; border-radius: 14px; padding: 28px; width: min(440px, 92vw); color: #14202f; box-shadow: 0 12px 40px #0d448b33; }
.alert::backdrop { background: #14202f99; }
.alert h2 { color: #8c322f; margin-bottom: 12px; }
.alert p { font-size: 14px; margin-bottom: 20px; }
@media (max-width: 850px) {
  .header-note { display: none; }
  .shell { padding: 0 22px; }
  .app-layout, .entry-layout { gap: 18px; }
  .card { padding: 23px; }
  .review-layout { grid-template-columns: 1fr; }
  .price-panel { position: static; }
  .intro { margin-top: 10px; }
  .page-heading { align-items: flex-start; }
  .page-heading > button, .page-actions button { font-size: 12px; }
  .stepper li + li::before { width: 35px; margin: 0 12px; }
}
@media (max-width: 760px) {
  .site-header { padding: 16px 20px; }
  .brand { font-size: 1rem; }
  .badge { font-size: 9px; padding: 4px 6px; }
  .shell { padding: 0 16px calc(72px + env(safe-area-inset-bottom)); }
  .stepper { padding: 24px 0 16px; margin-bottom: 0; }
  .stepper button { gap: 6px; font-size: 10px; }
  .stepper li + li::before { width: 18px; margin: 0 8px; }
  .stepper button span { width: 22px; height: 22px; }
  .intro { margin: 20px auto 26px; }
  .intro h1 { font-size: 2.2rem; }
  .intro-copy { font-size: 13px; max-width: 340px; }
  .app-layout, .entry-layout { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }
  .guide-sidebar { display: none; }
  .guide-handle { position: fixed; z-index: 40; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border: 1px solid #b8c9df; border-radius: 22px; background: #fff; color: var(--brand); box-shadow: 0 4px 18px #14202f2e; transform: translateX(-50%); }
  .guide-handle > span { width: 28px; height: 4px; border-radius: 4px; background: #a7b6ca; }
  .guide-backdrop { position: fixed; z-index: 41; inset: 0; display: block; background: #14202f99; }
  .guide-drawer { position: fixed; z-index: 42; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; max-height: min(82vh, 720px); padding: 0 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -10px 30px #14202f33; transform: translateY(100%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility 0s linear .24s; }
  .guide-drawer.open { transform: translateY(0); visibility: visible; pointer-events: auto; transition: transform .24s ease; }
  .guide-drawer header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 14px 0 10px; border-bottom: 1px solid var(--border); }
  .guide-drawer header button { min-width: 44px; padding: 7px; background: transparent; color: var(--brand); font-size: 28px; line-height: 1; }
  .guide-drawer nav { display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; }
  .guide-drawer nav button { min-height: 40px; padding: 8px; background: var(--pale); color: var(--brand); font-size: 11px; }
  .guide-drawer .quick-guide-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 3px; }
  .guide-drawer .guide-section { scroll-margin-top: 0; }
  .page-heading { display: block; margin: 24px 0; }
  .page-heading > button { margin-top: 20px; width: 100%; }
  .page-actions { display: grid; grid-template-columns: 1fr; margin-top: 20px; }
  .page-actions button { width: 100%; }
  .page-heading p { font-size: 13px; }
  .page-heading h1 { font-size: 2rem; }
  .two-col { gap: 10px; }
  .field input, .field select { font-size: 16px; padding: 10px 8px; }
  .price-panel { padding: 22px; }
  .item-card { padding: 18px 14px; }
  .section-heading h2 { font-size: 1.15rem; }
  .section-heading button { font-size: 11px; }
  footer { display: block; margin-top: 30px; }
  footer span { display: block; margin: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-drawer, .guide-drawer.open { transition: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header { padding: 0 0 15px; }
  .header-note, .stepper, footer, button, #status, .guide-sidebar, .guide-drawer, .guide-backdrop, .price-panel > .field, .price-panel > details, .price-panel > .small, #brand-quotes, .item-card details { display: none !important; }
  .shell { max-width: none; padding: 0; }
  .page-heading { margin: 20px 0; }
  .page-heading h1 { font-size: 24px; }
  .review-layout { display: block; }
  .price-panel { position: static; margin-top: 20px; break-inside: avoid; }
  .item-card, .estimate-note { break-inside: avoid; box-shadow: none; }
  .field input, .field select { border: 0; padding: 0; appearance: none; min-height: 0; }
  .item-card { padding: 12px; }
  .item-card .field { margin: 8px 0; }
  .price-panel > .eyebrow, .price-panel > h2 { display: none; }
  .price-line { color: #000; }
  .price-total { border: 0; padding: 0; }
  .badge { color: #000; border-color: #aaa; }
  .installation-callout { background: #fff; border-color: #777; color: #000; }
  .installation-callout span { color: #000; }
  .estimate-note { background: #fff; border: 1px solid #aaa; }
}
