/* ==========================================================
   Tree Haven — treehaven.com
   Swap brand name / colours here and in the HTML.
   ========================================================== */
:root {
  --ice: #f1f8fb;
  --ice-2: #e2f0f5;
  --ice-3: #cfe5ee;
  --navy: #0e2a3b;
  --navy-2: #163b52;
  --ink: #23323c;
  --muted: #5b6b75;
  --green: #1f7a4a;
  --green-dark: #17603a;
  --red: #b3261e;
  --red-dark: #8f1e18;
  --gold: #c99a2e;
  --teal: #2a8fb8;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(14, 42, 59, .08);
  --wrap: 1240px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.lede { max-width: 760px; margin: 0 auto 2.5rem; color: var(--muted); font-size: 1.1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.section { padding: 80px 0; position: relative; overflow: hidden; overflow: clip; } /* clip keeps sticky panels working */
.section--ice { background: var(--ice); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }
.btn--red { background: var(--red); color: #fff; border-radius: var(--radius-sm); font-size: 1.15rem; padding: .9em 1.8em; }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { border-color: var(--navy-2); color: var(--navy); background: #fff; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--red); color: #fff; text-align: center; font-size: .92rem; padding: 8px 16px; }
.announce a { font-weight: 700; }
.site-header { background: var(--ice); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--ice-3); }
.header-top { display: flex; justify-content: flex-end; gap: 24px; font-size: .9rem; padding-top: 10px; }
.header-top a { text-decoration: none; color: var(--navy-2); }
.header-top a:hover { text-decoration: underline; }
.header-main { display: flex; align-items: center; gap: 20px; padding: 12px 24px 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 42px; height: 48px; }
.logo span { font-family: var(--font-display); line-height: 1; color: var(--navy); }
.logo b { display: block; font-size: 1.45rem; font-weight: 700; }
.logo small { display: block; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--teal); margin-top: 3px; }
.nav { flex: 1; background: #fff; border-radius: 999px; padding: 6px 10px; box-shadow: var(--shadow); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.nav a { display: block; padding: 8px 12px; white-space: nowrap; text-decoration: none; font-size: .93rem; color: var(--navy); border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--ice-2); }
.header-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.header-cta .phone { font-family: var(--font-ui); font-weight: 600; text-decoration: none; color: var(--navy); white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
.trust-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 4px 24px 12px; font-size: .9rem; color: var(--navy-2); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center; color: #fff;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 214, 120, .55) 0 2px, transparent 3px) 0 0 / 46px 46px,
    radial-gradient(circle at 30% 70%, rgba(255, 230, 160, .35) 0 2px, transparent 3px) 0 0 / 71px 71px,
    radial-gradient(ellipse at 75% 55%, #5c3a1c 0%, #2a1a10 45%, #140c07 100%);
  overflow: hidden;
}
.hero-art { position: absolute; right: 4%; bottom: 0; width: min(46vw, 560px); opacity: .95; }
.hero .wrap { position: relative; width: 100%; }
.hero-copy { max-width: 620px; }
.eyebrow { display: inline-block; font-family: var(--font-ui); font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 3px solid var(--red); margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: .3em; }
.hero p { font-size: 1.2rem; opacity: .92; }
.hero-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; margin: 18px 0 26px; letter-spacing: -.01em; }
.hero-big em { font-style: normal; color: #e0453c; }
.placeholder-chip { position: absolute; bottom: 14px; left: 14px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cat { background: var(--ice); border-radius: var(--radius); overflow: hidden; text-decoration: none; text-align: center; transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat .ph { aspect-ratio: 1; border-radius: var(--radius); }
.cat h3 { font-size: 1.05rem; margin: 0; padding: 16px 8px 20px; }

/* ---------- Placeholder images ---------- */
.ph { position: relative; background: linear-gradient(180deg, #a9cde0 0%, #8fbfd6 78%, #6b4b32 78%, #5a3e29 100%); overflow: hidden; }
.ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph--floor { background: linear-gradient(135deg, #6e4a2c, #4b3220); }

/* ---------- Product rows ---------- */
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { font: inherit; font-size: .95rem; padding: 9px 20px; border-radius: 999px; border: 1.5px solid transparent; background: var(--ice); color: var(--muted); cursor: pointer; }
.section--ice .tab { background: #fff; }
.tab[aria-selected="true"] { border-color: var(--navy-2); color: var(--navy); background: #fff; }
.row-nav { display: flex; gap: 10px; align-items: center; }
.circle-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--navy-2); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.circle-btn:hover { background: var(--navy); color: #fff; }
.circle-btn svg { width: 18px; height: 18px; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 4 / 5; border-radius: var(--radius) var(--radius) 0 0; }
.card .badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: .82rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; color: #fff; background: var(--green); }
.badge--lit { background: #b8c22a !important; color: var(--navy) !important; }
.badge--sale { background: var(--red) !important; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.card .meta { color: var(--muted); font-size: .92rem; margin-bottom: 14px; flex: 1; }
.card .price { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.25rem; margin-bottom: 12px; }
.card .price small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.card .price s { color: var(--red); }
.save { display: inline-block; background: var(--red); color: #fff; font-family: var(--font-body); font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }

/* ---------- Compare / bestsellers ---------- */
.compare { display: grid; grid-template-columns: 1fr 3fr; gap: 28px; align-items: start; }
.compare-intro { background: var(--ice); border-radius: var(--radius); padding: 28px; }
.compare-intro .kicker { color: var(--muted); margin-bottom: 6px; }
.compare-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.compare-cards .ph { aspect-ratio: 1; border-radius: var(--radius); margin-bottom: 16px; }
.compare-cards .icon { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--teal); }
.compare-cards p { color: var(--muted); font-size: .98rem; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--navy); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 24px; text-align: center; border: 1.5px solid transparent; transition: border-color .2s; }
.why-card:hover { border-color: var(--gold); }
.why-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.why-icon svg { width: 32px; height: 32px; }
.why-card p { color: var(--muted); margin: 0; }

/* ---------- Reviews ---------- */
.reviews { background: var(--ice-2); border-radius: 36px; padding: 40px; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center; }
.score { text-align: center; }
.score-ball { width: 220px; height: 220px; border-radius: 50%; background: #fff; margin: 0 auto 18px; display: grid; place-content: center; }
.score-ball b { font-family: var(--font-display); font-size: 3.4rem; color: var(--teal); line-height: 1; }
.score-ball span { font-family: var(--font-ui); font-weight: 600; color: var(--navy); }
.review-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.review { background: #fff; border-radius: var(--radius); padding: 22px; }
.review--placeholder { border: 2px dashed var(--ice-3); }
.stars { color: #e08a1e; letter-spacing: 2px; }
.review h3 { margin: 8px 0; }
.review p { color: var(--muted); font-size: .97rem; margin: 0; }
.note { font-size: .85rem; color: var(--muted); font-style: italic; }

/* ---------- FAQ / guides ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border-radius: var(--radius-sm); border-top: 4px solid var(--gold); box-shadow: var(--shadow); margin-bottom: 14px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq .kicker { display: block; font-family: var(--font-body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ice-2); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.socials { display: flex; gap: 18px; justify-content: center; }
.socials a { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.socials a:hover { background: var(--green-dark); }
.socials svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d6e3ea; padding: 64px 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.25rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { background: #1e6f68; margin-top: 48px; padding: 16px 0; font-size: .88rem; color: #fff; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Page header + forms ---------- */
.page-hero { background: var(--ice); padding: 56px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0 auto; }
.form-card { max-width: 820px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
label, legend { font-weight: 700; font-size: .95rem; color: var(--navy); }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--ice-3); border-radius: var(--radius-sm); background: var(--ice); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; margin-top: 8px; }
.checks label { font-weight: 400; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.checks input { width: 18px; height: 18px; }
.req { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .header-cta .phone { display: none; } }
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .track { grid-auto-columns: calc((100% - 48px) / 3); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .header-cta .phone { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: 100%; border-radius: var(--radius); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .header-main { position: relative; flex-wrap: wrap; }
  .header-cta .btn { display: none; }
  .header-top { display: none; }
  .trust-row { justify-content: center; font-size: .82rem; }
  .trust-row span:nth-child(n+3) { display: none; }
  .hero { min-height: 520px; }
  .hero-art { opacity: .35; width: 80vw; right: -10%; }
  .reviews { grid-template-columns: 1fr; padding: 28px; }
  .cta-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .track { grid-auto-columns: 78%; }
  .why, .review-cards, .compare-cards, .cta-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .row-nav .circle-btn { display: none; }
  .form-card { padding: 24px; }
}

/* ==========================================================
   Background scene: swaying tree silhouettes + falling snow
   ========================================================== */
html { background: linear-gradient(180deg, #ffffff 0%, #eef6fa 55%, #dcecf3 100%) fixed; }
body { background: transparent; }
@keyframes twinkle { from { opacity: .25; transform: scale(.8); } to { opacity: 1; transform: scale(1.15); } }
.snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
/* let the trees show through light sections */
.section--ice { background: rgba(241, 248, 251, .72); }
.cta-band { background: rgba(226, 240, 245, .78); }
.page-hero { background: rgba(241, 248, 251, .7); }
.site-header { background: rgba(241, 248, 251, .94); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) {
    .snow { display: none; }
}

/* ==========================================================
   Drawn trees: grow-in, twinkling bulbs, glowing star
   ========================================================== */
.ph .tree-svg { position: absolute; left: 0; right: 0; bottom: 3%; top: 6%; width: 100%; height: 91%; }
.bulb { animation: twinkle-bulb 2s ease-in-out infinite alternate; }
@keyframes twinkle-bulb { from { opacity: .35; } to { opacity: 1; } }
.card .bulb, .cat .bulb { animation-play-state: paused; }
.card:hover .bulb, .cat:hover .bulb { animation-play-state: running; }
.tstar { transform-box: fill-box; transform-origin: center; animation: star-pulse 2.4s ease-in-out infinite alternate; }
.tstar-glow { animation: glow-pulse 2.4s ease-in-out infinite alternate; }
@keyframes star-pulse { from { transform: scale(.94); } to { transform: scale(1.08); } }
@keyframes glow-pulse { from { opacity: .45; } to { opacity: 1; } }
.grow .tier { transform-box: fill-box; transform-origin: 50% 100%; animation: tier-in .55s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * 70ms); }
.grow .tree-extras { animation: fade-in .6s .55s both; }
@keyframes tier-in { from { transform: scale(.2, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.badge--best { background: var(--gold) !important; }
.card .meta { font-size: .88rem; line-height: 1.45; }

/* ---------- Glass + glow buttons (from the cosy room look) ---------- */
.glass { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: #fff; }
.btn--glow { background: linear-gradient(180deg, #2f9a55, #1b6b3a); color: #fff; border: 2px solid rgba(255, 255, 255, .7); box-shadow: 0 0 0 0 rgba(255, 220, 120, .6); animation: btn-glow 2.2s ease-in-out infinite; }
.btn--glow:hover { background: linear-gradient(180deg, #36ad60, #1f7a42); }
@keyframes btn-glow { 50% { box-shadow: 0 0 22px 2px rgba(255, 220, 120, .55); } }
.btn--back { background: #9b2a2a; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.btn--back:hover { background: #7f1f1f; }
.glass-link { color: #fff; opacity: .9; font-size: .95rem; text-align: center; display: block; margin-top: 12px; }

/* ---------- Hero: cosy living room ---------- */
.room { position: relative; height: min(88vh, 760px); min-height: 600px; overflow: hidden; isolation: isolate; color: #fff; }
.room > div:not(.room-content) { position: absolute; pointer-events: none; }
.room-wall { inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 55%, #8a5a36 0%, #5a3a26 45%, #2e1e15 100%); }
.room-win { top: 14%; width: 15%; height: 46%; border: 10px solid #5b3a24; border-radius: 6px; background:
  radial-gradient(circle at 30% 30%, rgba(255,255,255,.9) 0 1px, transparent 2px) 0 0 / 22px 22px,
  radial-gradient(circle at 70% 60%, rgba(255,255,255,.7) 0 1px, transparent 2px) 0 0 / 31px 31px,
  linear-gradient(180deg, #1b2d52 0%, #3a5a8a 70%, #dfe9f2 70%, #f4f8fb 100%); box-shadow: inset 0 0 0 4px #5b3a24, 0 10px 30px rgba(0,0,0,.35); }
.room-win::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 48%, #5b3a24 48% 52%, transparent 52%), linear-gradient(180deg, transparent 48%, #5b3a24 48% 52%, transparent 52%); }
.room-win::after { content: ""; position: absolute; top: -16px; bottom: -24px; left: -38px; right: -38px; background: linear-gradient(90deg, #1e6b3a 0 22px, transparent 22px calc(100% - 22px), #1e6b3a calc(100% - 22px)); border-radius: 0 0 10px 10px; }
.room-win--l { left: 6%; }
.room-win--r { right: 6%; }
.room-garland { top: 0; left: 0; right: 0; height: 80px; }
.room-garland svg { width: 100%; height: 100%; }
.room-floor { left: 0; right: 0; bottom: 0; height: 26%; background: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 120px), linear-gradient(180deg, #a5552a, #7a3818); }
.room-rug { left: 50%; bottom: 3%; width: min(70vw, 760px); height: 16%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #fbfbf7 0%, #e6e4dc 70%, #cfcabc 100%); box-shadow: 0 0 0 6px rgba(255,255,255,.25); }
.room-glow { left: 50%; top: 18%; width: 60vw; max-width: 760px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 130, .35), transparent 65%); animation: glow-pulse 4s ease-in-out infinite alternate; }
.room-tree { left: 50%; bottom: 8%; height: 84%; aspect-ratio: 3 / 4; transform: translateX(-50%); filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.room-tree .tree-svg { width: 100%; height: 100%; }
.room-gifts { left: 50%; bottom: 5%; width: min(46vw, 520px); transform: translateX(-50%); }
.room-gifts svg { width: 100%; }
.sparks { inset: 0; }
.sparks i { position: absolute; width: 10px; height: 10px; transform: scale(var(--s)); animation: spark-rise 6s linear infinite; }
.sparks i::before { content: ""; position: absolute; inset: 0; background: #ffe39a; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 4px #ffd84d); }
@keyframes spark-rise { 0% { opacity: 0; translate: 0 30px; } 20%, 70% { opacity: 1; } 100% { opacity: 0; translate: 0 -80px; } }
.room-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.room .glass { width: min(420px, 100%); padding: 30px 28px; }
.room h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3rem); text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 1.08rem; }
.steps b { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); font-family: var(--font-display); box-shadow: 0 0 0 3px rgba(255,255,255,.35); }

/* ---------- Choose-your-tree picker ---------- */
.picker { position: relative; padding: 70px 0 60px; color: #fff; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 220, 140, .18), transparent 60%), linear-gradient(180deg, #23493f 0%, #183530 60%, #10231f 100%); }
.picker h2 { color: #fff; margin: 0; }
.picker-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pk-count { opacity: .75; font-family: var(--font-ui); }
.picker-stage { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; min-height: 460px; }
.pk-tree { height: 460px; position: relative; }
.pk-tree::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -4px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(8px); z-index: -1; }
.pk-tree .tree-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(255, 220, 140, .18)); }
.pk-info { padding: 28px; }
.pk-info h3 { color: #fff; font-size: 1.6rem; margin: 12px 0 8px; }
.pk-info p { opacity: .88; }
.pk-info .price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin-bottom: 18px; }
.pk-info .price small { font-size: .95rem; font-weight: 400; opacity: .85; }
.pk-info .price s { color: #ffb4ad; }
.pk-info .badge { position: static; display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--green); color: #fff; }
.pk-thumbs { display: flex; gap: 14px; overflow-x: auto; padding: 22px 4px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pk-thumbs::-webkit-scrollbar { display: none; }
.pk-thumb { flex: 0 0 130px; height: 150px; scroll-snap-align: center; border-radius: 18px; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); backdrop-filter: blur(10px); cursor: pointer; padding: 8px 6px 6px; color: #fff; display: flex; flex-direction: column; align-items: center; transition: transform .25s, background .25s; }
.pk-thumb .tree-svg { width: 100%; height: 100px; }
.pk-thumb .bulb, .pk-thumb .tstar, .pk-thumb .tstar-glow { animation: none; }
.pk-thumb span { font-size: .78rem; line-height: 1.2; margin-top: 4px; text-align: center; }
.pk-thumb[aria-selected="true"] { background: rgba(255,255,255,.28); border-color: #fff; transform: translateY(-8px) scale(1.06); }
.pk-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.pk-nav .glass-link { margin: 0; }

@media (max-width: 900px) {
  .room { height: auto; min-height: 720px; }
  .room-content { align-items: flex-end; padding-bottom: 40px; }
  .room .glass { margin: 0 auto; }
  .room-win { width: 26%; height: 34%; }
  .room-win--l { left: -6%; } .room-win--r { right: -6%; }
  .room-tree { height: 70%; bottom: 14%; }
  .picker-stage { grid-template-columns: 1fr; gap: 10px; }
  .pk-tree { height: 360px; }
}
@media (max-width: 640px) {
  .room { min-height: 760px; }
  .room .glass { padding: 24px 20px; }
  .pk-thumb { flex-basis: 108px; height: 132px; }
  .pk-thumb .tree-svg { height: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  .bulb, .tstar, .tstar-glow, .grow .tier, .grow .tree-extras, .sparks, .btn--glow, .room-glow { animation: none !important; }
}
.checks small { color: var(--muted); margin-left: auto; }
.checks label.picked { background: var(--ice-2); border-radius: 8px; padding: 4px 6px; font-weight: 700; }
.shop-count { color: var(--muted); font-size: .95rem; }
.room .glass { background: rgba(40, 24, 16, .38); }
#choose, #faq { scroll-margin-top: 150px; }

/* phone: tree on top, welcome panel below it */
@media (max-width: 640px) {
  .room { min-height: 0; height: auto; }
  .room-content { display: block; padding: 430px 16px 32px; }
  .room-tree { top: 40px; bottom: auto; height: 380px; }
  .room-gifts { top: 352px; bottom: auto; width: 82vw; }
  .room-rug { top: 360px; bottom: auto; height: 70px; width: 92vw; }
  .room-floor { top: 330px; height: auto; bottom: 0; }
  .room-glow { top: 20px; width: 120vw; }
  .room-win { top: 70px; height: 170px; }
  .room h1 { font-size: 2rem; }
  .steps { gap: 10px; margin-bottom: 18px; }
  .steps li { font-size: 1rem; }
}

/* ==========================================================
   Customer interactions: cards, quick view, quote list, reveal
   ========================================================== */
.track { padding-top: 10px; margin-top: -10px; }
.card { transition: transform .25s ease, box-shadow .25s ease; transform-style: preserve-3d; will-change: transform; }
.card:hover { box-shadow: 0 18px 40px rgba(14, 42, 59, .16); }
.card:not(.tilting):hover { transform: translateY(-6px); }
.card-media { all: unset; display: block; position: relative; cursor: zoom-in; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-media:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.card-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 40%), rgba(255, 214, 120, .35), transparent 55%); }
.card:hover .card-media::after, .card.lit-up .card-media::after { opacity: 1; }
.card .tree-svg { transform-origin: 50% 100%; transition: transform .4s ease; }
.card:hover .tree-svg, .card.lit-up .tree-svg { animation: sway 2.4s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.4deg) scale(1.03); } to { transform: rotate(1.4deg) scale(1.03); } }
.card.lit-up .bulb, .cat.lit-up .bulb { animation-play-state: running; }
.qv-hint { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); opacity: 0; transition: .25s; z-index: 2;
  background: rgba(14, 42, 59, .82); color: #fff; font: 600 .85rem var(--font-ui); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.card:hover .qv-hint, .card-media:focus-visible .qv-hint { opacity: 1; transform: translate(-50%, 0); }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.card-actions .btn { padding-left: 14px; padding-right: 14px; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid rgba(14, 42, 59, .25); }
.btn--ghost:hover { border-color: var(--navy); background: var(--ice); }
.add-quote, #pk-add { transition: background .2s, transform .15s; }
.add-quote:active, #pk-add:active { transform: scale(.95); }
.is-added { background: var(--gold) !important; color: #2b1d00 !important; }
.cat:hover .tree-svg { animation: sway 2.4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.pk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pk-actions .btn { padding-left: 10px; padding-right: 10px; }

/* floating quote button */
.quote-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; text-decoration: none; font: 700 1rem var(--font-ui); padding: 12px 18px 12px 14px;
  border-radius: 999px; box-shadow: 0 10px 30px rgba(14, 42, 59, .3); transform: translateY(120px); opacity: 0; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .3s, background .2s; }
.quote-fab.show { transform: none; opacity: 1; }
.quote-fab:hover { background: var(--green-dark); }
.quote-fab svg { width: 22px; height: 22px; color: #ffd978; }
.fab-count { min-width: 24px; height: 24px; border-radius: 999px; background: #fff; color: var(--green); display: grid; place-items: center; font-size: .85rem; padding: 0 6px; }
.quote-fab:not(.has-items) .fab-count { display: none; }
.quote-fab.has-items { background: var(--red); }
.quote-fab.has-items:hover { background: var(--red-dark); }
.quote-fab.bump { animation: bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.flyer { position: fixed; z-index: 70; pointer-events: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); }
.flyer .tree-svg { width: 100%; height: 100%; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 65; transform: translate(-50%, 140%); opacity: 0; transition: .35s cubic-bezier(.34, 1.56, .64, 1);
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: .95rem; max-width: min(92vw, 520px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast a { color: #ffd978; font-weight: 700; margin-left: 6px; white-space: nowrap; }

/* quick view */
.qv { border: 0; padding: 0; border-radius: 24px; width: min(920px, 94vw); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.qv::backdrop { background: rgba(10, 22, 30, .6); backdrop-filter: blur(4px); }
.qv[open] { animation: qv-in .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes qv-in { from { transform: translateY(30px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qv-stage { position: relative; min-height: 460px; background: radial-gradient(circle at 50% 45%, #fff3d6 0%, #f4d9a8 35%, #3b2a20 100%); }
.qv-stage .tree-svg { position: absolute; inset: 6% 8% 4%; width: 84%; height: 90%; }
.qv-info { padding: 36px 32px; }
.qv-info h3 { font-size: 1.6rem; margin-top: 12px; }
.qv-info .badge { color: #fff; background: var(--green); font-weight: 700; font-size: .82rem; padding: 3px 12px; border-radius: 999px; }
.qv-info .price { font: 700 1.5rem var(--font-display); color: var(--navy); margin-bottom: 12px; }
.qv-info .price small { font-weight: 400; font-size: .9rem; color: var(--muted); }
.qv-info .price s { color: var(--red); }
.qv-info > p { color: var(--muted); }
.qv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 22px; }
.qv-facts div { background: var(--ice); border-radius: 12px; padding: 10px 12px; }
.qv-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.qv-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.qv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qv-note { font-size: .85rem; margin-top: 12px; }
.qv-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92);
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--navy); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.qv-close:hover { background: #fff; transform: rotate(90deg); transition: transform .2s; }

/* quote page summary */
.quote-summary { background: var(--ice); border-radius: 12px; padding: 10px 14px; margin: 0 0 10px; font-size: .95rem; }
.quote-summary span { color: var(--muted); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in { transition: opacity .5s ease var(--d, 0ms), transform .25s ease, box-shadow .25s ease; }

@media (max-width: 640px) {
  .qv-grid { grid-template-columns: 1fr; }
  .qv-stage { min-height: 240px; }
  .qv-actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; margin: 0 -4px; box-shadow: 0 -10px 16px -10px rgba(14, 42, 59, .18); }
  .qv-facts { gap: 8px; margin: 14px 0 16px; }
  .qv-info { padding: 24px 20px; }
  .pk-actions { grid-template-columns: 1fr; }
  .qv-actions .btn { padding-left: 8px; padding-right: 8px; font-size: .92rem; }
  .quote-fab { right: 14px; bottom: 14px; }
  .quote-fab:not(.has-items) .fab-label { display: none; }
  .quote-fab:not(.has-items) { padding: 14px; }
  .toast { bottom: 84px; }
  .qv-hint { opacity: 1; transform: translate(-50%, 0); font-size: .75rem; padding: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card .tree-svg, .cat .tree-svg, .quote-fab, .toast, .qv[open] { animation: none !important; transition: none !important; }
}

/* ==========================================================
   Big red holiday sale banner
   ========================================================== */
.sale-banner { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 90px 20px 80px; isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 120, 90, .45), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 22px, transparent 22px 44px),
    linear-gradient(180deg, #c8231b 0%, #a3150f 55%, #7a0d09 100%);
  border-top: 6px solid #e8b84a; border-bottom: 6px solid #e8b84a; }
.sale-banner::before { /* scalloped snow along the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: 1;
  background: radial-gradient(circle at 18px -6px, transparent 20px, #fff 21px) 0 0 / 36px 26px repeat-x; opacity: .92; }
.sb-lights { position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 2;
  background: radial-gradient(ellipse at 50% -30px, transparent 46px, rgba(20, 60, 30, .9) 47px, rgba(20, 60, 30, .9) 49px, transparent 50px) 0 0 / 120px 40px repeat-x; }
.sb-lights i { position: absolute; width: 11px; height: 16px; margin-left: -5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c); box-shadow: 0 0 12px 3px var(--c); animation: sb-blink 1.6s ease-in-out infinite alternate; }
.sb-lights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 7px; height: 5px; background: #2d4a35; border-radius: 2px; }
@keyframes sb-blink { from { opacity: .35; } to { opacity: 1; } }
.sb-tree { position: absolute; bottom: 0; width: min(30vw, 380px); height: 92%; z-index: 0; pointer-events: none; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); }
.sb-tree.ph { background: none; border-radius: 0; }
.sb-tree--l { left: max(-4vw, -60px); }
.sb-tree--r { right: max(-4vw, -60px); }
.sb-tree .tree-svg { top: 0; bottom: 0; height: 100%; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite alternate; }
.sb-tree--r .tree-svg { animation-delay: -2s; }
.sb-sparkle { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sb-sparkle i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff6d0; transform: scale(var(--s));
  box-shadow: 0 0 8px 2px rgba(255, 230, 150, .8); animation: twinkle 2s ease-in-out infinite alternate; }
.sb-content { position: relative; z-index: 3; max-width: 720px; margin: 0 auto; }
.sb-eyebrow { display: inline-block; font: 700 1rem var(--font-ui); letter-spacing: .22em; text-transform: uppercase; color: #ffe08a;
  border: 1.5px solid rgba(255, 224, 138, .6); padding: 6px 18px; border-radius: 999px; margin-bottom: 18px; }
.sb-title { color: #fff; font-family: var(--font-display); font-weight: 800; line-height: .9; margin: 0 0 18px;
  display: flex; align-items: center; justify-content: center; gap: .12em; text-shadow: 0 6px 30px rgba(60, 0, 0, .5); }
.sb-upto, .sb-off { font-size: clamp(1.6rem, 4.5vw, 3.4rem); text-transform: uppercase; letter-spacing: .04em; }
.sb-upto { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(1.1rem, 2.6vw, 2rem); color: #ffe08a; }
.sb-pct { font-size: clamp(6rem, 20vw, 13rem); letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 30%, #ffe08a 70%, #e8b84a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #7a0d09); animation: sb-pop 2.6s ease-in-out infinite; }
.sb-off { align-self: flex-end; margin-bottom: .45em; font-size: clamp(2rem, 6vw, 4.4rem); }
@keyframes sb-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.sb-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #ffeae6; margin: 0 auto 30px; max-width: 560px; }
.sb-sub b { color: #fff; }
.sb-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 clamp(1.3rem, 2.6vw, 1.7rem) var(--font-ui);
  text-transform: uppercase; letter-spacing: .06em; color: #7a0d09; background: linear-gradient(180deg, #fff6d6, #ffd968 60%, #e8b84a);
  padding: 20px 52px; border-radius: 999px; box-shadow: 0 10px 0 #9c6f12, 0 16px 40px rgba(0, 0, 0, .35);
  transition: transform .15s, box-shadow .15s; animation: sb-glow 2s ease-in-out infinite; }
.sb-btn:hover { transform: translateY(-3px); }
.sb-btn:active { transform: translateY(6px); box-shadow: 0 4px 0 #9c6f12, 0 8px 20px rgba(0, 0, 0, .35); }
.sb-btn span { transition: transform .2s; }
.sb-btn:hover span { transform: translateX(5px); }
@keyframes sb-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 217, 104, 0)); } 50% { filter: drop-shadow(0 0 18px rgba(255, 217, 104, .75)); } }
.sb-link { display: block; margin-top: 22px; color: #ffe0da; font-weight: 600; }
.sb-link:hover { color: #fff; }
@media (max-width: 760px) {
  .sale-banner { padding: 70px 16px 70px; }
  .sb-tree { width: 46vw; height: 46%; opacity: .85; }
  .sb-tree--l { left: -16vw; }
  .sb-tree--r { right: -16vw; }
  .sb-btn { padding: 18px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-lights i, .sb-sparkle i, .sb-pct, .sb-btn, .sb-tree .tree-svg { animation: none !important; }
}

/* under-48-hour delivery messaging */
.trust-fast { font-weight: 700; color: var(--green); }
.fast-ship { margin: -6px 0 12px; font-size: .85rem; font-weight: 700; color: var(--green); }
.sb-fast { display: table; margin: -14px auto 26px; background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff; font: 700 clamp(1rem, 2vw, 1.2rem) var(--font-ui); padding: 8px 20px; border-radius: 999px; }
.qv-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; background: #e6f4ea; }
.card-actions .btn { white-space: nowrap; font-size: .9rem; padding: 11px 12px; }

/* ==========================================================
   Best Seller ribbon: red satin that wraps around the card corner
   ========================================================== */
.card { overflow: visible; }
.card-body { border-radius: 0 0 var(--radius) var(--radius); }
.track { padding-left: 12px; padding-right: 12px; margin-left: -12px; margin-right: -12px; scroll-padding-left: 12px; }
.best-ribbon { position: absolute; top: -10px; right: -10px; width: 150px; height: 150px; overflow: hidden; z-index: 4; pointer-events: none; }
/* the folded ends tucked behind the card */
.best-ribbon::before, .best-ribbon::after { content: ""; position: absolute; z-index: -1; display: block;
  border: 5px solid #5c0a06; border-top-color: transparent; border-right-color: transparent; }
.best-ribbon::before { top: 0; left: 0; }
.best-ribbon::after { bottom: 0; right: 0; }
.best-ribbon > span { position: absolute; left: -25px; top: 30px; width: 225px; padding: 11px 0; transform: rotate(45deg); text-align: center; overflow: hidden;
  /* satin: dark edges, bright highlight across the middle */
  background: linear-gradient(180deg, #8e110b 0%, #d42a20 18%, #f0463a 34%, #c21f16 52%, #a3150f 74%, #7a0d09 100%);
  box-shadow: 0 5px 10px rgba(40, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(0, 0, 0, .3); }
/* gold stitching along both edges */
.best-ribbon > span::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; bottom: 3px;
  border-top: 1.5px dashed rgba(255, 214, 120, .75); border-bottom: 1.5px dashed rgba(255, 214, 120, .75); }
/* light sweeping across the satin */
.best-ribbon > span::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50px; left: -70px; transform: skewX(-25deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: ribbon-shine 3.6s ease-in-out infinite; }
@keyframes ribbon-shine { 0%, 60% { transform: translateX(0) skewX(-25deg); } 100% { transform: translateX(350px) skewX(-25deg); } }
/* gold-foil lettering */
.best-ribbon b { position: relative; z-index: 1; font: 800 .8rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff7d6 10%, #ffd968 50%, #d9a032 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(70, 0, 0, .8)); }
/* inside the quick view the ribbon sits in the picture corner (no card edge to wrap) */
.best-ribbon--inset { top: 0; right: 0; width: 180px; height: 180px; }
.best-ribbon--inset::before, .best-ribbon--inset::after { display: none; }
.best-ribbon--inset > span { left: -18px; top: 40px; width: 260px; padding: 13px 0; }
.best-ribbon--inset b { font-size: .92rem; }
.card--best { box-shadow: 0 0 0 2px #e8b84a, 0 10px 30px rgba(201, 154, 46, .28); }
.card--best:hover { box-shadow: 0 0 0 2px #e8b84a, 0 18px 40px rgba(201, 154, 46, .4); }
@media (prefers-reduced-motion: reduce) { .best-ribbon > span::after { display: none; } }
.best-pill { display: inline-block; vertical-align: middle; font: 800 .78rem var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
  color: #5a3a00; background: linear-gradient(180deg, #fff3c4, #ffd968 45%, #e0a92e); padding: 4px 12px; border-radius: 999px; box-shadow: 0 2px 10px rgba(232, 184, 74, .5); }
.best-pill[hidden] { display: none; }
.form-status { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-size: .95rem; }
.form-status.err { background: #fdecea; color: #8f1e18; }
.form-status.ok { background: #e6f4ea; color: var(--green-dark); }
button[disabled] { opacity: .7; cursor: wait; }

/* ==========================================================
   3D spinning tree (rules further down)
   ========================================================== */

/* ==========================================================
   Quote page: form + "your tree" side panel
   ========================================================== */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; max-width: 1200px; margin: 0 auto; }
.quote-layout .form-card { max-width: none; margin: 0; }
.quote-preview { position: sticky; top: 150px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 20px 24px; }
.qp-kicker { font: 700 .8rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.qp-stage { position: relative; height: 330px; border-radius: 14px; overflow: hidden; margin-bottom: 14px;
  background: radial-gradient(circle at 50% 42%, #fff3d6 0%, #f4d9a8 38%, #3b2a20 100%); }
.qp-empty { opacity: .55; filter: grayscale(.4); }
.quote-preview .badge { color: #fff; background: var(--green); font-weight: 700; font-size: .8rem; padding: 3px 12px; border-radius: 999px; }
.quote-preview h3 { font-size: 1.25rem; margin: 10px 0 4px; }
.quote-preview .price { font: 700 1.3rem var(--font-display); color: var(--navy); margin-bottom: 10px; }
.quote-preview .price small { font-weight: 400; font-size: .85rem; color: var(--muted); }
.quote-preview .price s { color: var(--red); }
.qp-desc { color: var(--muted); font-size: .95rem; }
.qp-facts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: .93rem; color: var(--navy); }
.qp-facts li:last-child { color: var(--green); font-weight: 700; }
.qp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.qp-thumb { position: relative; width: 52px; height: 64px; border-radius: 10px; border: 2px solid transparent; background: var(--ice); cursor: pointer; padding: 0; overflow: hidden; }
.qp-thumb .tree-svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.qp-thumb .bulb, .qp-thumb .tstar, .qp-thumb .tstar-glow { animation: none; }
.qp-thumb.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(232, 184, 74, .3); }
.qp-total { margin: 0; font-size: .92rem; color: var(--muted); }
.qp-total b { color: var(--navy); }
@media (max-width: 960px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-preview { position: static; order: -1; }
  .qp-stage { height: 280px; }
}
@media (max-width: 640px) {
  .qp-stage { height: 220px; }
  .quote-preview { padding: 16px; }
  .qp-facts { grid-template-columns: 1fr 1fr; }
  .qp-facts li:last-child { grid-column: 1 / -1; }
}

/* ==========================================================
   3D tree viewer (base-anchored, smooth, zoomable)
   ========================================================== */
.t3d { position: relative; width: 100%; height: 100%; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.t3d.grabbing { cursor: grabbing; }
.t3d-zoom { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.t3d-scene { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 75%; }
.t3d-tilt, .t3d-spin, .t3d-plane, .t3d-layer { position: absolute; inset: 0; }
.t3d-tilt { transform-style: preserve-3d; transform-origin: 50% 97%; will-change: transform; }   /* pivots on the base */
.t3d-spin { transform-style: preserve-3d; will-change: transform; }                             /* turns around the trunk */
.t3d-stand { transform-origin: 50% 97%; }
.t3d-top { transform-origin: 50% 13%; pointer-events: none; }
.t3d .tree-svg { position: absolute; inset: 0; top: 0; left: 0; width: 100%; height: 100%; filter: none; }
.t3d-shadow { position: absolute; left: 24%; right: 24%; bottom: -1%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .4), transparent); }
.t3d-photo { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.t3d-photo img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.t3d-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 5; pointer-events: none; white-space: nowrap;
  background: rgba(14, 42, 59, .78); color: #fff; font: 600 .8rem var(--font-ui); padding: 5px 12px; border-radius: 999px; transition: opacity .5s; }
.t3d-used .t3d-hint { opacity: 0; }
.t3d-more { position: absolute; left: 10px; top: 10px; z-index: 6; border: 0; cursor: pointer; font: 700 .82rem var(--font-ui);
  background: rgba(255, 255, 255, .92); color: var(--navy); padding: 7px 12px; border-radius: 999px; box-shadow: 0 3px 12px rgba(0, 0, 0, .2); transition: transform .15s, background .15s; }
.t3d-more:hover { background: #fff; transform: translateY(-1px); }
.qv-stage .t3d, .qp-stage .t3d { position: absolute; inset: 6% 8% 4%; width: auto; height: auto; }
.pk-tree .t3d-hint { bottom: -6px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.pk-tree .t3d-more { left: auto; right: 10px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.t3d--detail { touch-action: none; cursor: grab; overflow: hidden; }
.t3d--detail.is-zoomed { cursor: move; }

/* ---------- full-screen detailed view ---------- */
.tdv { border: 0; padding: 0; width: min(1240px, 96vw); height: min(860px, 94vh); max-width: none; max-height: none; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.tdv::backdrop { background: rgba(8, 18, 26, .72); backdrop-filter: blur(5px); }
.tdv[open] { animation: qv-in .35s cubic-bezier(.34, 1.56, .64, 1); }
.tdv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; }
.tdv-main { position: relative; display: flex; flex-direction: column; min-height: 0;
  background: radial-gradient(ellipse at 50% 40%, #fff6e0 0%, #f2d9aa 40%, #6b4a33 85%, #3b2a20 100%); }
.tdv-stage { position: relative; flex: 1; min-height: 0; margin: 20px 20px 0; }
.tdv-stage .t3d { position: absolute; inset: 2% 4% 0; width: auto; height: auto; }
.tdv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 14px; }
.tdv-tools { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; }
.tdv-tools button, .tdv-views button { border: 0; cursor: pointer; font: 700 1rem var(--font-ui); color: var(--navy); background: rgba(255, 255, 255, .9);
  min-width: 42px; height: 42px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transition: background .15s, transform .15s; }
.tdv-tools button:hover, .tdv-views button:hover { background: #fff; transform: translateY(-1px); }
.tdv-tools .tdv-wide { padding: 0 16px; font-size: .88rem; }
.tdv-sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .45); margin: 0 4px; }
.tdv-views { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 12px 14px; }
.tdv-views button { height: 34px; padding: 0 14px; font-size: .82rem; background: rgba(255, 255, 255, .55); }
.tdv-views button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.tdv-tabs { display: flex; gap: 8px; justify-content: center; padding: 0 12px 14px; overflow-x: auto; }
.tdv-tab { border: 2px solid transparent; background: rgba(255, 255, 255, .85); border-radius: 12px; height: 56px; min-width: 56px; padding: 0 12px; cursor: pointer; font: 700 .85rem var(--font-ui); color: var(--navy); }
.tdv-tab--img { padding: 0; overflow: hidden; width: 56px; }
.tdv-tab--img img { width: 100%; height: 100%; object-fit: cover; }
.tdv-tab[aria-pressed="true"] { border-color: var(--gold); }
.tdv-info { position: relative; padding: 32px 28px; overflow-y: auto; border-left: 1px solid #eef2f4; }
.tdv-info h3 { font-size: 1.6rem; margin: 12px 0 6px; padding-right: 30px; }
.tdv-info .badge { color: #fff; background: var(--green); font-weight: 700; font-size: .82rem; padding: 3px 12px; border-radius: 999px; }
.tdv-info .price { font: 700 1.5rem var(--font-display); color: var(--navy); margin-bottom: 12px; }
.tdv-info .price small { font-weight: 400; font-size: .9rem; color: var(--muted); }
.tdv-info .price s { color: var(--red); }
.tdv-info > p { color: var(--muted); }
.tdv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 20px; }
.tdv-facts div { background: var(--ice); border-radius: 12px; padding: 10px 12px; }
.tdv-facts .tdv-fast { grid-column: 1 / -1; background: #e6f4ea; }
.tdv-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tdv-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.tdv-actions { display: grid; gap: 10px; }
.tdv-note { font-size: .82rem; margin-top: 14px; }
.tdv-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ice); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--navy); }
.tdv-close:hover { background: var(--ice-2); }
@media (max-width: 860px) {
  .tdv { width: 100vw; height: 100dvh; border-radius: 0; }
  .tdv-wrap { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .tdv-stage { margin: 12px 8px 0; }
  .tdv-tools { padding: 8px; gap: 4px; }
  .tdv-tools button { min-width: 38px; height: 38px; }
  .tdv-tools .tdv-wide { padding: 0 10px; }
  .tdv-views { padding-bottom: 8px; }
  .tdv-info { max-height: 38dvh; padding: 18px 16px 20px; border-left: 0; border-top: 1px solid #eef2f4; }
  .tdv-info h3 { font-size: 1.25rem; }
  .tdv-info > p, .tdv-facts > div:nth-child(n+3):not(.tdv-fast) { display: none; }
  .tdv-actions { grid-template-columns: 1fr 1fr; }
  .tdv-close { position: fixed; top: 10px; right: 10px; z-index: 3; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
}
@media (prefers-reduced-motion: reduce) { .t3d-hint { transition: none; } .tdv[open] { animation: none; } }
.t3d--detail .t3d-hint { top: 4px; bottom: auto; }
/* detailed view: tree uses the whole panel, controls float on top; zoom resizes for sharpness */
.t3d-zoom { will-change: auto; transform: none; }
.t3d--detail .t3d-zoom { inset: auto; left: 0; top: 0; width: 100%; height: 100%; }
.tdv-main { overflow: hidden; }
.tdv-stage { position: absolute; inset: 0; margin: 0; }
.tdv-stage .t3d { inset: 0; }
.t3d--detail .t3d-scene { inset: 56px 6% 130px; }
.tdv-tools, .tdv-views, .tdv-tabs { position: relative; z-index: 4; pointer-events: none; }
.tdv-tools > *, .tdv-views > *, .tdv-tabs > * { pointer-events: auto; }
.tdv-main { justify-content: flex-end; }
.tdv-video { inset: 20px 20px 130px; width: calc(100% - 40px); height: calc(100% - 150px); }
@media (max-width: 860px) { .t3d--detail .t3d-scene { inset: 50px 4% 110px; } }
@media (max-width: 860px) {
  .t3d--detail .t3d-hint { left: 10px; right: 60px; transform: none; white-space: normal; text-align: center; font-size: .72rem; }
  .tdv-views { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-left: 10px; padding-right: 10px; }
  .tdv-views::-webkit-scrollbar { display: none; }
  .tdv-views button { flex: 0 0 auto; }
  .t3d--detail .t3d-scene { inset: 50px 4% 100px; }
}

/* ==========================================================
   Policy pages + footer policy links
   ========================================================== */
.policy { max-width: 820px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 44px; line-height: 1.7; }
.policy h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.policy h2:first-of-type { margin-top: 1.2em; }
.policy h3 { font-size: 1.05rem; margin: 1.2em 0 .3em; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: .35em; }
.policy a { color: var(--green); font-weight: 600; }
.ph-note { background: #fff3c4; color: #6b4b00; padding: 0 4px; border-radius: 4px; }
.policy-disclaimer { margin-top: 2.4em; font-size: .85rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal a { color: inherit; opacity: .85; text-decoration: none; font-size: .88rem; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
.form-legal { font-size: .85rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.form-legal a { color: var(--green); }
@media (max-width: 640px) { .policy { padding: 26px 20px; } }

/* ==========================================================
   Thank-you page (Christmas)
   ========================================================== */
.room--thanks { height: min(92vh, 800px); }
.ty-card { width: min(460px, 100%) !important; }
.ty-tag { display: inline-block; margin: 0 0 12px; font: 700 .85rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  color: #ffe08a; border: 1.5px solid rgba(255, 224, 138, .6); padding: 5px 14px; border-radius: 999px; }
.ty-card h1 { margin-bottom: .3em; }
.ty-lede { font-size: 1.08rem; color: #fff3ea; margin: 0 0 12px; }
.ty-ref { margin: 0 0 18px; font-size: .95rem; color: #ffe0c8; }
.ty-ref b { color: #fff; letter-spacing: .06em; background: rgba(255, 255, 255, .14); padding: 2px 8px; border-radius: 6px; }
.ty-steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; position: relative; }
.ty-steps::before { content: ""; position: absolute; left: 18px; top: 18px; bottom: 18px; width: 2px; background: rgba(255, 255, 255, .3); }
.ty-steps li { display: flex; align-items: center; gap: 14px; position: relative; }
.ty-steps b { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); font-family: var(--font-display); font-size: 1.05rem; z-index: 1; }
.ty-steps li.done b { background: #2f9a55; color: #fff; box-shadow: 0 0 0 5px rgba(47, 154, 85, .3); animation: ty-pop .6s .3s cubic-bezier(.34, 1.56, .64, 1) both; }
.ty-steps strong { display: block; font-size: 1.02rem; }
.ty-steps span { font-size: .9rem; color: #ffe9dc; }
@keyframes ty-pop { from { transform: scale(0); } to { transform: none; } }

/* star + snowflake burst */
.ty-burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.ty-burst i { position: absolute; left: 0; top: 0; font-style: normal; line-height: 1; opacity: 0; text-shadow: 0 0 10px rgba(255, 217, 104, .8);
  animation: ty-fly 2.6s var(--d) cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes ty-fly {
  0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 120px)) scale(1) rotate(var(--r)); opacity: 0; }
}

/* below the scene */
.ty-more { background: linear-gradient(180deg, #7a0d09 0, #a3150f 220px, rgba(241, 248, 251, .9) 220px); padding-top: 0; }
.ty-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; transform: translateY(-60px); margin-bottom: -20px; position: relative; z-index: 2; }
.ty-grid > div { background: #fff; border-radius: var(--radius); box-shadow: 0 14px 40px rgba(14, 42, 59, .18); padding: 26px 28px; }
.ty-grid > .ty-countdown:only-child { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; width: 100%; }
.ty-summary h2 { font-size: 1.3rem; margin-bottom: 14px; }
.ty-trees { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.ty-trees li { display: flex; align-items: center; gap: 12px; background: var(--ice); border-radius: 12px; padding: 8px 12px; }
.ty-trees li b { display: block; color: var(--navy); }
.ty-trees li small { color: var(--muted); font-size: .9rem; }
.ty-trees .ty-none { color: var(--muted); }
.ty-thumb { position: relative; flex: 0 0 44px; height: 54px; }
.ty-thumb .tree-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ty-thumb .bulb, .ty-thumb .tstar, .ty-thumb .tstar-glow { animation: none; }
.ty-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 12px; }
.ty-details div { border: 1px solid #e6eef2; border-radius: 10px; padding: 8px 12px; }
.ty-details dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ty-details dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.ty-small { font-size: .85rem; color: var(--muted); margin: 0; }
.ty-countdown { text-align: center; background: linear-gradient(160deg, #1f5c3a, #123a25) !important; color: #fff; position: relative; overflow: hidden; }
.ty-countdown::after { content: "❄"; position: absolute; right: -10px; top: -20px; font-size: 120px; opacity: .08; }
.ty-kicker { font: 700 .8rem var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: #ffe08a; margin: 0 0 6px; }
.ty-days { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.ty-days span { font: 800 clamp(3.4rem, 8vw, 5rem) var(--font-display); line-height: 1; background: linear-gradient(180deg, #fff, #ffd968); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ty-days small { font: 700 1rem var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: #d7f0df; }
.ty-countdown p:last-child { margin: 0; color: #d7f0df; font-size: .95rem; }
.ty-h2 { margin: 20px 0 22px; }
.ty-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ty-tip { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; border-top: 4px solid var(--red); }
.ty-tip span { font-size: 2rem; }
.ty-tip h3 { font-size: 1.1rem; margin: 8px 0 6px; }
.ty-tip p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) {
  .ty-grid, .ty-tips { grid-template-columns: 1fr; }
  .ty-grid { transform: translateY(-30px); }
}
@media (max-width: 640px) {
  .room--thanks { height: auto; }
  .ty-burst { top: 220px; }
}
@media (prefers-reduced-motion: reduce) { .ty-steps li.done b { animation: none; } }


/* ==========================================================
   Smooth scrolling: cheap animations only, pause the costly ones
   ========================================================== */
/* glows fade a pre-drawn shadow in and out (GPU) instead of re-drawing it every frame */
.btn--glow { animation: none; position: relative; }
.btn--glow::after, .sb-btn::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none; opacity: 0;
  animation: glow-fade 2.2s ease-in-out infinite; will-change: opacity; }
.btn--glow::after { box-shadow: 0 0 22px 3px rgba(255, 220, 120, .6); }
.sb-btn { position: relative; animation: none; }
.sb-btn::after { box-shadow: 0 0 26px 6px rgba(255, 217, 104, .7); }
@keyframes glow-fade { 50% { opacity: 1; } }
.sb-pct { will-change: transform; }
.card { will-change: auto; }
.card:hover { will-change: transform; }
/* while the page is moving, freeze the twinkling lights (they repaint the whole tree);
   they carry on the moment scrolling stops */
.is-scrolling .bulb, .is-scrolling .tstar, .is-scrolling .tstar-glow, .is-scrolling .sb-lights i,
.is-scrolling .card .tree-svg, .is-scrolling .cat .tree-svg,
[data-offscreen] *, [data-offscreen] *::before, [data-offscreen] *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .btn--glow::after, .sb-btn::after { animation: none; } }

/* ==========================================================
   Winter scene: snow bank + snowman (above footer), Santa's sleigh
   ========================================================== */
.winter { position: relative; height: 200px; margin-top: -24px; pointer-events: none; z-index: 3; }
.drift-svg { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 96px; display: block; filter: drop-shadow(0 -3px 6px rgba(14, 42, 59, .08)); }
.drift-svg .glint { opacity: 0; animation: glint 4s ease-in-out infinite; }
@keyframes glint { 0%, 70%, 100% { opacity: 0; } 80% { opacity: 1; } }
.snowman { position: absolute; right: max(3vw, 12px); bottom: 34px; width: 205px; }
.snowman-svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 8px 14px rgba(14, 42, 59, .18)); }
.sm-wave { transform-box: view-box; transform-origin: 234px 128px; animation: sm-wave 3.2s ease-in-out infinite; }
@keyframes sm-wave { 0%, 55%, 100% { transform: rotate(0); } 65% { transform: rotate(-16deg); } 75% { transform: rotate(6deg); } 85% { transform: rotate(-12deg); } }
.sm-scarf { transform-box: view-box; transform-origin: 222px 104px; animation: sm-scarf 4s ease-in-out infinite; }
@keyframes sm-scarf { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(7deg); } }
.site-footer { position: relative; z-index: 2; }
@media (max-width: 700px) {
  .winter { height: 150px; margin-top: -16px; }
  .drift-svg { height: 70px; }
  .snowman { width: 140px; bottom: 26px; right: 8px; }
}

.santa { position: fixed; top: 84px; left: 0; width: clamp(260px, 34vw, 480px); z-index: 45; pointer-events: none;
  transform: translate3d(-110%, 0, 0); visibility: hidden; will-change: transform; }
.santa.fly { visibility: visible; animation: santa-fly 15s linear forwards; }
@keyframes santa-fly {
  0% { transform: translate3d(-110%, 40px, 0) rotate(-4deg); }
  50% { transform: translate3d(calc(50vw - 50%), -10px, 0) rotate(-1deg); }
  100% { transform: translate3d(calc(100vw + 10%), 30px, 0) rotate(-5deg); }
}
.santa-bob { animation: santa-bob 2.6s ease-in-out infinite; }
@keyframes santa-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.santa-svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 6px 10px rgba(14, 42, 59, .25)); }
.santa:not(.fly) * { animation-play-state: paused; }
.rd-bob { animation: rd-bob .5s ease-in-out infinite; }
@keyframes rd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.rd-legs { transform-box: fill-box; animation: rd-gallop .5s ease-in-out infinite; }
.rd-front { transform-origin: 0% 0%; }
.rd-back { transform-origin: 100% 0%; animation-direction: reverse; }
@keyframes rd-gallop { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(26deg); } }
.santa-arm { transform-box: view-box; transform-origin: 114px 70px; animation: santa-wave 1.4s ease-in-out infinite; }
@keyframes santa-wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-22deg); } }
.trail .tr { animation: tr-twinkle 1.2s ease-in-out infinite; }
@keyframes tr-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
html.is-scrolling .drift-svg .glint, [data-offscreen] .glint { animation-play-state: paused; }
@media (max-width: 700px) { .santa { top: 70px; width: 230px; } .santa.fly { animation-duration: 10s; } }
@media (prefers-reduced-motion: reduce) { .santa { display: none; } .sm-wave, .sm-scarf, .drift-svg .glint { animation: none; } }

/* ---------- Typography: Fraunces (headings, prices) + Plus Jakarta Sans (text, buttons, labels) ---------- */
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.012em; font-optical-sizing: auto; }
.hero-big, .sb-title { letter-spacing: -.02em; }
.btn, .eyebrow, .sb-eyebrow, .best-pill, .best-ribbon b { font-feature-settings: "ss01"; }

/* ---------- Tree dimensions ---------- */
.dims { margin: 0 0 8px; font-size: .86rem; font-weight: 700; color: var(--navy); font-family: var(--font-ui); }
.card .dims { margin: -6px 0 10px; }
.pk-info .dims { color: inherit; opacity: .95; margin-bottom: 10px; }
.qv-facts dd small, .tdv-facts dd small { font-weight: 500; color: var(--muted); font-size: .78em; }
.dims-fig { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--ice); }
.dims-fig svg { width: 110px; flex: 0 0 110px; height: auto; }
.dims-fig text { font: 700 20px var(--font-ui); fill: var(--navy); }
.dims-fig figcaption { font: 700 .95rem var(--font-ui); color: var(--navy); line-height: 1.35; }
.dims-fig figcaption small { font-weight: 500; color: var(--muted); }
#quote-form label small { white-space: nowrap; }

/* ---------- Tree Haven logo ---------- */
.logo { gap: 10px; }
.logo img { display: block; height: auto; }
.logo-mark { width: 104px; }
.logo-word { width: 150px; margin-top: 10px; }
.footer-logo { display: block; width: 210px; height: auto; margin: -8px 0 14px; }
@media (max-width: 700px) {
  .logo { gap: 6px; }
  .logo-mark { width: 78px; }
  .logo-word { width: 118px; margin-top: 8px; }
  .footer-logo { width: 180px; }
}

/* ---------- Photo gallery ---------- */
.gallery .wrap { text-align: center; }
.gal-lead { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.gal-grid { columns: 4 220px; column-gap: 14px; text-align: left; }
.gal-item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  background: var(--ice); break-inside: avoid; box-shadow: 0 6px 18px rgba(14, 42, 59, .12); }
.gal-item img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.04); }
.gal-box { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(8, 20, 28, .94);
  display: none; align-items: center; justify-content: center; }
.gal-box[open] { display: flex; }
.gal-box::backdrop { background: transparent; }
.gal-box figure { margin: 0; max-width: 92vw; max-height: 90dvh; text-align: center; }
.gal-box img { max-width: 92vw; max-height: 82dvh; border-radius: 12px; display: block; margin: 0 auto; }
.gal-box figcaption { color: #d6e3ea; font: 500 .9rem var(--font-ui); margin-top: 10px; }
.gal-close, .gal-nav { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14);
  border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
.gal-close { top: 14px; right: 14px; }
.gal-nav { top: 50%; transform: translateY(-50%); }
.gal-prev { left: 14px; } .gal-next { right: 14px; }
.gal-close:hover, .gal-nav:hover { background: rgba(255, 255, 255, .28); }
@media (max-width: 600px) { .gal-grid { columns: 2; column-gap: 10px; } .gal-item { margin-bottom: 10px; border-radius: 12px; } .gal-nav { top: auto; bottom: 16px; transform: none; } }

/* ---------- Quote form: light it your way ---------- */
.design { border: 2px solid #f1d9a6; background: linear-gradient(180deg, #fffaf0, #fff); border-radius: 18px; padding: 18px 18px 6px; }
.design legend { font: 700 1.15rem var(--font-display); color: var(--navy); padding: 0 6px; }
.design-lead { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.design-group { margin-bottom: 14px; }
.design-label { display: block; font: 700 .78rem var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.design-group textarea, .design-group input[type="url"] { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ice-3, #d9e6ef);
  background: #fff; font: 600 .88rem var(--font-ui); color: var(--navy); transition: border-color .2s, background .2s, transform .15s; }
.chip:hover span { border-color: #c9d8e2; }
.chip input:checked + span { border-color: var(--green); background: #eaf5ee; box-shadow: 0 0 0 3px rgba(31, 122, 74, .15); }
.chip input:focus-visible + span { outline: 3px solid var(--teal, #2a8fb8); outline-offset: 2px; }
.chip .sw { width: 16px; height: 16px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
#effect-group[hidden] { display: none; }
/* light effect shown on the preview tree */
.fx-steady .bulb { animation: none !important; opacity: 1; }
.fx-sparkle .bulb { animation-duration: .55s !important; }

/* ---------- Real tree photos ---------- */
.card .ph img { transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.05); }
.qv-stage--photo { background: #10202a; }
.qv-stage--photo .t3d { inset: 0; }
.qv-stage--photo .t3d-photo img, .pk-tree--photo .t3d-photo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.pk-tree--photo .t3d { border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 255, 255, .12); }
.pk-tree--photo::after { display: none; }
.pk-thumb img { width: 100%; height: 100px; object-fit: cover; border-radius: 12px; }
.badge--lit { background: #1f7a4a; }

/* ---------- Category tiles with photos ---------- */
.cat--photo .cat-img { aspect-ratio: 1; overflow: hidden; }
.cat--photo .cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cat--photo:hover .cat-img img { transform: scale(1.07); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Lit your way steps ---------- */
.litway { background: radial-gradient(circle at 50% 0%, #2b1d14, #120c08 75%); color: #f6ecd9; text-align: center; }
.litway h2 { color: #fff; }
.litway .eyebrow { color: #ffe08a; }
.lw-lead { max-width: 600px; margin: 0 auto 34px; color: #e9dcc4; }
.lw-steps { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: lw; text-align: left; }
.lw-steps li { position: relative; padding: 26px 20px 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 224, 138, .22); counter-increment: lw; }
.lw-steps li::before { content: counter(lw); position: absolute; top: 14px; right: 16px; font: 700 1.6rem var(--font-display); color: rgba(255, 224, 138, .35); }
.lw-ico { font-size: 1.8rem; display: block; margin-bottom: 10px; filter: drop-shadow(0 0 10px rgba(255, 210, 120, .6)); }
.lw-steps h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.lw-steps p { margin: 0; font-size: .92rem; color: #d9cbb2; }
@media (max-width: 900px) { .lw-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lw-steps { grid-template-columns: 1fr; } }
.pk-tree--photo .t3d { position: absolute; top: 0; bottom: 0; left: 50%; width: auto; aspect-ratio: 3 / 4; transform: translateX(-50%); max-width: 100%; }
.qp-real { position: absolute; left: 10px; bottom: 10px; z-index: 6; margin: 0; width: 74px; border-radius: 10px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); background: #fff; }
.qp-real img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.qp-real figcaption { font: 700 .62rem var(--font-ui); text-align: center; color: var(--navy); padding: 2px 0; }
.qp-label { position: absolute; left: 10px; top: 52px; z-index: 6; font: 700 .72rem var(--font-ui); color: #fff; background: rgba(14, 42, 59, .72); padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.tdv-views[hidden], .tdv-tools[hidden], .tdv-tools [hidden] { display: none !important; }
.qp-turn { position: absolute; right: 10px; bottom: 10px; z-index: 6; display: flex; gap: 6px; }
.qp-turn button { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.1rem; color: var(--navy);
  background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.qp-turn button:hover { background: #fff; transform: scale(1.06); }
.qp-stage .t3d-hint { bottom: 54px; }

/* Delivery estimate on the quote form + state landing pages */
.ship-est { margin: 8px 0 0; font-size: .9rem; color: var(--muted, #5b6b5f); }
.ship-est b { color: var(--green); }
.ship-est--fast b { color: #b8860b; }
.state-page .st-lead { font-size: 1.1rem; }
.st-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.st-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 8px; }
.st-photo { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.st-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.st-photo:hover img { transform: scale(1.05); }
.state-page ol { padding-left: 1.3em; }
.state-page ol li { margin-bottom: .5em; }
@media (max-width: 640px) { .st-photos { grid-template-columns: repeat(2, 1fr); } }
.policy a.btn { color: #fff; }
