:root {
  --cream: #f3f1e8;
  --cream-2: #ece9de;
  --paper: #fffcf6;
  --ink: #1c1c18;
  --ink-soft: #5a574e;
  --gold: #c9a227;
  --gold-deep: #9a7a16;
  --btn: #e8b82a;
  --btn-ink: #1c1c18;
  --banner: #f7ebba;
  --line: #e4e0d4;
  --dark: #161614;
  --ok-bg: #f7f0d6;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(28, 28, 24, 0.06);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --install-h: 0px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 8px; top: 8px; z-index: 80; background: #fff; padding: .4rem .7rem; }

/* —— Install bar (homepage) —— */
.cb-install-bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--banner);
  color: var(--ink);
  border-bottom: 1px solid #e4d79a;
  padding: .7rem 1rem;
}
.cb-install-inner {
  margin: 0 auto; max-width: 1120px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .65rem 1rem;
}
.cb-install-lead {
  margin: 0; font-size: .95rem; font-weight: 650; text-align: center;
  max-width: 38rem; line-height: 1.35;
}
.cb-install-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.cb-get-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--dark); color: #f6f3ea; text-decoration: none;
  font-weight: 700; font-size: 15px; line-height: 1.1;
  padding: .8rem 1.1rem; border-radius: 12px; border: 2px solid var(--dark);
  min-height: 48px; box-shadow: 0 6px 16px rgba(22,22,20,.18); cursor: pointer;
}
.cb-get-btn:hover { background: #2a2a26; border-color: #2a2a26; color: #fff; }
.cb-get-btn svg { flex: 0 0 auto; display: block; }
.cb-get-btn.is-recommended {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.4), 0 6px 16px rgba(22,22,20,.18);
  position: relative;
}
.cb-get-btn.is-recommended::after {
  content: "For this device";
  position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
  background: var(--gold-deep); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .15rem .45rem; border-radius: 999px; white-space: nowrap;
}
.cb-install-sheet-root { position: relative; width: 100%; flex-basis: 100%; display: flex; justify-content: center; }
.cb-install-sheet {
  display: none; max-width: 26rem; width: 100%;
  background: var(--dark); color: #f6f3ea;
  border-radius: 14px; padding: 1rem 1.1rem .95rem; text-align: left;
  box-shadow: 0 12px 32px rgba(20,16,8,.25);
}
.cb-install-sheet[data-open="1"] { display: block; }
.cb-install-sheet h3 { margin: 0 0 .4rem; font-size: 1.1rem; color: #fff; font-family: var(--serif); font-weight: 500; }
.cb-install-sheet p { margin: .3rem 0; font-size: .95rem; line-height: 1.45; color: #d9d4c7; }
.cb-install-sheet a { color: var(--btn); font-weight: 700; text-decoration: underline; }
.cb-sheet-close {
  display: inline-flex; margin-top: .6rem; background: transparent; color: #f6f3ea;
  border: 1px solid rgba(246,243,234,.4); border-radius: 10px; padding: .4rem .7rem;
  font-weight: 650; cursor: pointer;
}

/* —— Chrome —— */
.topbar {
  background: var(--dark); color: #f3f1e8;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 8px 28px; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
}
.topbar a { color: var(--btn); text-decoration: none; letter-spacing: 0.08em; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 28px; background: var(--cream);
  position: sticky; top: 0; z-index: 20;
}
body.has-install-bar .site-header { top: var(--install-h); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img {
  height: 58px; width: auto; background: #fff; border-radius: 10px;
  padding: 4px 6px; box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
nav.main { display: flex; gap: 18px; align-items: center; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 500; }
nav.main a[aria-current="page"] { font-weight: 700; }
.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: .45rem .7rem; font-weight: 650; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 999px;
  padding: 11px 20px; font-weight: 650; text-decoration: none; cursor: pointer;
  line-height: 1.2; box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.btn:hover { filter: brightness(0.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.small { padding: 10px 18px; font-size: 15px; }
.btn.ghost, .btn.alt {
  background: #fff; border: 1px solid #e2ddd0; box-shadow: none;
}
.btn.dark { background: var(--dark); color: #f6f3ea; }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }
main { min-height: 60vh; }

.eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; display: block; margin-bottom: 12px;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; margin: 0 0 18px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 14px; }
h3 { font-size: 26px; margin: 10px 0 8px; }
h1 .gold, h2 .gold, .gold { color: var(--gold); }
.lede { color: var(--ink-soft); font-size: 18px; max-width: 38em; margin: 0 0 24px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin-top: 22px; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8a867a;
}

.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px 0 28px;
}
.hero-art {
  background: #fff; border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
}
.hero-art img { width: min(460px, 100%); }
.ticker {
  display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center;
  padding: 10px 16px 28px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700;
}

.card {
  background: var(--paper); border-radius: var(--radius); padding: 24px 22px;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03);
}
.grid-3, .grid-2, .services-grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); padding: 8px 0 48px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.services-grid { grid-template-columns: repeat(2, 1fr); }
.card .num, .card .kicker {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.section { padding: 20px 0 64px; }
.page-head { padding: 36px 0 12px; max-width: 760px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 58px); }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  padding: 12px 0 48px;
}
.feature-image img { border-radius: 22px; width: 100%; display: block; box-shadow: var(--shadow); }
.tip {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 22px;
  background: var(--ok-bg); border-radius: 16px; padding: 14px 16px;
}
.tip img { width: 72px; height: auto; flex: 0 0 auto; }
.tip b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.tip p { margin: .3rem 0 0; }

.banner {
  background: var(--banner); text-align: center; padding: 10px 24px;
  font-size: 13.5px; color: #3a372c;
}
.banner strong { font-weight: 700; }

label { display: block; font-weight: 650; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; border: 1px solid #e4dfd2; background: #fff; border-radius: 12px;
  padding: 11px 12px; outline: none;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: #c9a227; box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fields .full { grid-column: 1 / -1; }
.hint, .note { color: var(--ink-soft); font-size: 13.5px; }
.status { margin-top: 12px; font-weight: 650; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.price-list { background: var(--paper); border-radius: 20px; overflow: hidden; border: 1px solid rgba(0,0,0,0.03); }
.price-row {
  display: grid; grid-template-columns: 1.1fr 1.5fr auto; gap: 16px; align-items: center;
  padding: 18px 22px; border-top: 1px solid var(--line);
}
.price-row:first-child { border-top: 0; }
.price-row span { color: var(--ink-soft); font-size: 14.5px; }
.price-row strong { font-size: 18px; white-space: nowrap; }
.badge {
  display: inline-block; background: #f4e4a8; color: #5a4708;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 999px; margin-top: 4px;
}
.swatch-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 24px; }
.swatch { width: 120px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.swatch i { display: block; height: 64px; }
.swatch p { margin: 0; padding: 8px 10px; font-size: 13px; }

.illust-frame {
  background: #fff; border-radius: 18px; padding: 12px; min-height: 200px;
  border: 1px solid var(--line); margin: 12px 0;
}
.illust-frame img { display: block; width: 100%; height: auto; border-radius: 12px; }
.consent { background: var(--ok-bg); }
.error { background: #f8ece6; border: 1px solid #e8c8b8; color: #5a2e1c; }
.continue-card {
  background: var(--dark); color: #f6f3ea; border-radius: 18px; padding: 22px;
  margin: 16px 0 20px;
}
.continue-card h2 { color: #fff; }
.continue-card p { color: #d9d4c7; }
.continue-card .btn { background: var(--btn); color: var(--btn-ink); }

.view[hidden], [hidden] { display: none !important; }

.logo-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.logo-row figure {
  margin: 0; background: #fff; border-radius: 16px; padding: 16px; border: 1px solid var(--line);
  text-align: center;
}
.logo-row img { max-height: 100px; width: auto; }
.logo-row figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

footer.site-footer {
  background: var(--dark); color: #f6f3ea; padding: 48px 0 28px; margin-top: 24px;
}
footer.site-footer a { color: var(--btn); text-decoration: none; }
footer.site-footer .foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
  width: min(1120px, calc(100% - 48px)); margin: 0 auto 28px;
}
footer.site-footer .brand-foot img {
  height: 56px; width: auto; background: #fff; border-radius: 10px; padding: 4px 6px;
}
footer.site-footer b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: var(--btn); }
footer.site-footer p { margin: 0 0 8px; color: #d9d4c7; }
footer.site-footer .legal {
  width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding-top: 18px;
  border-top: 1px solid #2c2c28; font-size: 13px; color: #b7b2a4;
}
footer.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }

@media (max-width: 840px) {
  .hero, .feature, .grid-3, .grid-2, .services-grid, .fields, .price-row, footer.site-footer .foot-grid {
    grid-template-columns: 1fr;
  }
  .price-row strong { justify-self: start; }
  .site-header { flex-wrap: wrap; padding: 12px 16px; }
  .nav-toggle { display: inline-flex; }
  nav.main { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0 4px; }
  nav.main.open { display: flex; }
  .wrap, .narrow { width: min(1120px, calc(100% - 32px)); }
  .topbar { padding: 8px 16px; }
  h1 { font-size: clamp(32px, 9vw, 48px); }
}

/* Estimator */
.estimate-band { background: var(--paper); border-bottom: 1px solid var(--line); padding: 22px 0 28px; }
.estimate-band h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 0 0 10px; }
.estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.estimate-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.pick {
  border: 1px solid var(--line); background: var(--cream); border-radius: 999px;
  padding: .4rem .75rem; cursor: pointer; font-weight: 650; font-size: 14px;
}
.pick[aria-pressed="true"] { background: var(--dark); color: #f6f3ea; border-color: var(--dark); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14.5px; color: var(--ink-soft); }
.consent-row input { width: auto; margin-top: 4px; }
.quote { margin-top: 18px; }
.quote-table { width: 100%; border-collapse: collapse; }
.quote-table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); padding: 0 0 8px; }
.quote-table td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.quote-table .amt { text-align: right; white-space: nowrap; font-weight: 650; }
.quote-table .total td { border-top: 2px solid var(--dark); font-size: 18px; font-weight: 700; }
.quote-note { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0; }
.call-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn); color: var(--btn-ink); font-weight: 700;
  text-decoration: none; border-radius: 999px; padding: 12px 20px;
  box-shadow: 0 4px 14px rgba(232,184,42,.35);
}
.call-cta.dark { background: var(--dark); color: var(--btn); box-shadow: none; }
.call-sticky {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 70;
  background: var(--btn); color: var(--btn-ink); text-decoration: none;
  font-weight: 800; text-align: center; line-height: 1.25;
  padding: 12px 16px; border-radius: 16px;
  box-shadow: 0 10px 28px rgba(28,28,24,.25);
}
.call-sticky small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 840px) {
  .call-sticky { display: block; }
  .call-sticky.is-away { visibility: hidden; pointer-events: none; opacity: 0; }
  .estimate-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 96px; }
}
#estimateResult, #quoteCard, #estimate {
  scroll-margin-top: calc(var(--install-h, 0px) + 7rem);
}
.family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.family-grid a {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 16px; padding: 12px; min-height: 140px;
  border: 1px solid var(--line); text-decoration: none;
}
.family-grid img { width: 100%; height: auto; object-fit: contain; max-height: 130px; }
.more-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.part-link { font-size: 13px; color: var(--gold-deep); }
.ai-note { background: var(--ok-bg); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.unsure { background: #f8ece6; border: 1px solid #e8c8b8; border-radius: 16px; padding: 16px 18px; margin: 12px 0; }
.unsure h3 { margin-top: 0; }
@media (max-width: 840px) {
  .family-grid, .more-tools { grid-template-columns: 1fr 1fr; }
}

/* —— Little Lucky chat —— */
.ll-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ll-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 75;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 18px 6px 6px; border: 2px solid var(--btn); border-radius: 999px;
  background: var(--dark); color: #f6f3ea; font-weight: 800; font-size: 16px; cursor: pointer;
  box-shadow: 0 10px 28px rgba(28,28,24,.28);
}
.ll-fab img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--btn); }
.ll-fab:hover { transform: translateY(-1px); }
.ll-fab:focus-visible, .ll-panel button:focus-visible, .ll-panel textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ll-fab-short { display: none; }
.ll-open .ll-fab { display: none; }
.ll-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 390px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(28,28,24,.30);
}
.ll-panel[hidden] { display: none; }
.ll-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: var(--dark); color: #f6f3ea; border-bottom: 3px solid var(--btn); }
.ll-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--btn); flex: none; }
.ll-head-text { flex: 1; min-width: 0; }
.ll-head h2 { margin: 0; font-size: 22px; line-height: 1.1; color: #fff; }
.ll-head p { margin: 2px 0 0; font-size: 13px; color: #d9d3c0; }
.ll-close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer; }
.ll-log { flex: 1; overflow-y: auto; padding: 14px 12px 6px; background: var(--cream); overscroll-behavior: contain; }
.ll-msg { display: flex; gap: 8px; margin: 0 0 12px; align-items: flex-end; }
.ll-msg img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.ll-bubble { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.ll-bot .ll-bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ll-user { justify-content: flex-end; }
.ll-user .ll-bubble { background: var(--btn); color: var(--btn-ink); border-bottom-right-radius: 4px; font-weight: 600; }
.ll-bubble a { color: var(--gold-deep); font-weight: 700; }
.ll-typing .ll-bubble { display: inline-flex; gap: 4px; padding: 13px 14px; }
.ll-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: llDot 1s infinite ease-in-out; }
.ll-typing i:nth-child(2) { animation-delay: .15s; } .ll-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes llDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ll-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; background: var(--cream); border-top: 1px solid var(--line); }
.ll-chips[hidden] { display: none; }
.ll-chips button { flex: none; border: 1px solid var(--gold); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ll-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.ll-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 10px 12px; font-size: 16px; line-height: 1.35; border: 1px solid #cfc9b8; border-radius: 12px; background: #fff; }
.ll-send { flex: none; min-width: 64px; border: 0; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font-weight: 800; cursor: pointer; }
.ll-foot { padding: 0 12px 10px; background: var(--paper); font-size: 12.5px; color: var(--ink-soft); }
.ll-cloud { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 4px; font-weight: 700; color: var(--ink); line-height: 1.35; cursor: pointer; }
.ll-cloud input[type="checkbox"] { display: inline-block; flex: none; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--gold-deep); }
.ll-cloud span { font-weight: 400; }

.ll-meta { margin: 0; }
.ll-meta a { color: var(--ink); font-weight: 700; }
@media (max-width: 840px) {
  .ll-fab { left: 16px; right: auto; bottom: 16px; padding: 4px 14px 4px 4px; font-size: 15px; }
  .ll-fab img { width: 40px; height: 40px; }
  .ll-fab-long { display: none; }
  .ll-fab-short { display: inline; }
  .ll-panel { inset: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .ll-open, .ll-open body { overflow: hidden; }
  .ll-open .call-sticky { display: none !important; }
}
