/* ============ Interactive Home styles ============ */

/* ---------- HERO ---------- */
.hero { position: relative; padding: 86px 0 110px; overflow: hidden; }
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .55; will-change: transform; transition: transform .25s ease-out; }
.orb-1 { width: 280px; height: 280px; right: 6%; top: 4%; background: radial-gradient(circle at 35% 30%, var(--lavender-300), var(--orchid)); opacity:.32; }
.orb-2 { width: 180px; height: 180px; left: 4%; top: 38%; background: radial-gradient(circle at 35% 30%, var(--peach), var(--coral)); opacity:.28; }
.orb-3 { width: 130px; height: 130px; right: 38%; top: -3%; background: radial-gradient(circle at 35% 30%, var(--lavender-200), var(--purple-500)); opacity:.26; }
.orb-4 { width: 90px; height: 90px; left: 30%; bottom: 8%; background: radial-gradient(circle at 35% 30%, var(--lavender-300), var(--purple-600)); opacity:.22; }

.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--purple-700); background: var(--glass); border: 1px solid var(--glass-line); padding: 8px 15px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }
.hk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(251,111,92,.2); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.hero-h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.03; margin-top: 22px; }
.rot-word { position: relative; display: inline-grid; font-style: italic; color: var(--purple-700); vertical-align: top; }
.rot-item { grid-area: 1/1; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.rot-item.on { opacity: 1; transform: none; }
.rot-ghost { visibility: hidden; white-space: nowrap; }
.hero-sub { margin-top: 24px; font-size: 19px; color: var(--slate-600); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats-inline { display: flex; gap: 36px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-stats-inline strong { font-family: var(--font-head); font-size: 34px; color: var(--purple-700); display: block; line-height: 1; }
.hero-stats-inline span { font-size: 13.5px; color: var(--slate-500); margin-top: 6px; display: block; }

.hero-media { position: relative; }
.hero-card-tilt { border-radius: var(--r-xl); }
.hero-img { width: 100%; aspect-ratio: 4/4.5; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.hero-float { position: absolute; left: -26px; top: 44px; display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: var(--r-md); }
.hf-rate { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--lavender-100); color: var(--purple-700); font-weight: 800; font-size: 16px; position: relative; }
.hf-rate svg { width: 13px; height: 13px; fill: #FBBF24; color: #FBBF24; position: absolute; top: 5px; right: 5px; }
.hero-float strong { display: block; font-size: 14px; }
.hero-float span { font-size: 12px; color: var(--slate-500); }
.hero-float2 { position: absolute; right: -18px; bottom: 36px; padding: 14px 18px; border-radius: var(--r-md); display: flex; align-items: center; gap: 12px; }
.hf2-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--lavender-100); color: var(--purple-700); display: grid; place-items: center; }
.hf2-ic svg { width: 21px; height: 21px; }
.hero-float2 strong { display: block; font-size: 14px; }
.hero-float2 span { font-size: 12px; color: var(--slate-500); }

.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 28px; height: 46px; border-radius: 14px; border: 2px solid var(--lavender-300); display: grid; justify-items: center; padding-top: 8px; z-index: 2; }
.hero-scroll span { width: 4px; height: 9px; border-radius: 3px; background: var(--purple-600); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--purple-900); padding: 18px 0; overflow: hidden; }
.marquee-row { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-set { display: flex; }
.mq-item { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 15px; font-weight: 600; padding: 0 30px; white-space: nowrap; }
.mq-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FINDER ---------- */
.finder-section { padding-bottom: 64px; }
.finder { border-radius: var(--r-xl); padding: 36px; max-width: 1000px; margin: 0 auto; }
.finder-head { text-align: center; max-width: 600px; margin: 0 auto 28px; }
.finder-head h3 { font-size: 28px; margin: 14px 0 10px; }
.finder-head p { color: var(--slate-600); font-size: 15px; }
.finder-opts { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.finder-opt { display: flex; align-items: center; gap: 13px; text-align: left; padding: 18px; border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line); transition: all .2s var(--ease); }
.finder-opt:hover { border-color: var(--lavender-300); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.finder-opt.sel { border-color: var(--purple-600); background: var(--lavender-50); box-shadow: 0 0 0 3px var(--lavender-100); }
.fo-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--lavender-300); display: grid; place-items: center; flex-shrink: 0; transition: all .2s; }
.finder-opt.sel .fo-check { background: var(--purple-600); border-color: var(--purple-600); color: #fff; }
.fo-check svg { width: 15px; height: 15px; }
.finder-opt strong { display: block; font-size: 15px; font-weight: 600; }
.finder-opt em { font-style: normal; font-size: 12.5px; color: var(--slate-500); }
.finder-result { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease), margin .45s var(--ease); }
.finder-result.show { max-height: 320px; margin-top: 22px; }
.fr-inner { display: flex; align-items: center; gap: 20px; background: linear-gradient(120deg, var(--purple-800), var(--purple-700)); border-radius: var(--r-lg); padding: 24px 28px; color: #fff; flex-wrap: wrap; }
.fr-ic { width: 56px; height: 56px; border-radius: 15px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex-shrink: 0; }
.fr-ic svg { width: 28px; height: 28px; }
.fr-body { flex: 1; min-width: 200px; }
.fr-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--lavender-200); }
.fr-body strong { display: block; font-family: var(--font-head); font-size: 21px; margin: 4px 0 6px; }
.fr-body p { color: var(--lavender-200); font-size: 14px; }

/* ---------- TREATMENT EXPLORER ---------- */
.explorer { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.explorer-tabs { display: flex; flex-direction: column; gap: 6px; }
.ex-tab { display: flex; align-items: center; gap: 12px; text-align: left; padding: 15px 18px; border-radius: var(--r-md); font-size: 15.5px; font-weight: 600; color: var(--slate-600); transition: all .18s var(--ease); }
.ex-tab svg { width: 22px; height: 22px; color: var(--purple-600); flex-shrink: 0; }
.ex-tab:hover { background: var(--lavender-50); color: var(--purple-700); }
.ex-tab.on { background: var(--purple-700); color: #fff; box-shadow: var(--shadow-md); }
.ex-tab.on svg { color: #fff; }
.explorer-panel { display: grid; grid-template-columns: 0.85fr 1fr; overflow: hidden; padding: 0; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.ep-media { position: relative; }
.ep-ph { width: 100%; height: 100%; min-height: 320px; }
.ep-tag { position: absolute; top: 16px; left: 16px; background: #fff; }
.ep-body { padding: 34px; display: flex; flex-direction: column; }
.ep-body .treat-full { font-size: 13px; font-weight: 600; color: var(--purple-500); }
.ep-body h3 { font-size: 30px; margin: 6px 0 14px; }
.ep-body > p { color: var(--slate-600); font-size: 15.5px; flex-grow: 1; }
.ep-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ep-facts div { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ep-facts svg { width: 18px; height: 18px; color: var(--coral); }
.ep-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------- PROCESS TIMELINE ---------- */
.timeline { max-width: 920px; margin: 0 auto; }
.tl-track { position: relative; display: flex; justify-content: space-between; margin: 0 auto 36px; padding: 0 6px; }
.tl-line { position: absolute; left: 22px; right: 22px; top: 19px; height: 3px; background: var(--line); border-radius: 3px; }
.tl-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--purple-700), var(--orchid)); border-radius: 3px; transition: width .4s var(--ease); }
.tl-dot { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--line); color: var(--slate-500); font-weight: 700; font-size: 14px; display: grid; place-items: center; transition: all .25s var(--ease); z-index: 1; }
.tl-dot.done { border-color: var(--purple-600); color: var(--purple-700); }
.tl-dot.on { background: var(--purple-700); border-color: var(--purple-700); color: #fff; transform: scale(1.16); box-shadow: var(--shadow-md); }
.tl-content { padding: 32px 36px; text-align: center; animation: fadeUp .35s var(--ease); }
.tl-step-n { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--coral-600); }
.tl-content h3 { font-size: 27px; margin: 10px 0 10px; }
.tl-content p { color: var(--slate-600); font-size: 16px; max-width: 560px; margin: 0 auto; }
.tl-nav { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.tl-nav .btn:disabled { opacity: .4; pointer-events: none; }

/* ---------- ESTIMATOR ---------- */
.estimator { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.est-group { margin-bottom: 26px; }
.est-label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--purple-700); margin-bottom: 12px; }
.est-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.est-chip { padding: 12px 20px; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; color: var(--slate-600); transition: all .18s var(--ease); }
.est-chip:hover { border-color: var(--lavender-300); }
.est-chip.on { background: var(--purple-700); color: #fff; border-color: var(--purple-700); }
.est-addons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.est-addon { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line); transition: all .18s var(--ease); text-align: left; }
.est-addon:hover { border-color: var(--lavender-300); }
.est-addon.on { border-color: var(--purple-600); background: var(--lavender-50); }
.ea-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--lavender-300); display: grid; place-items: center; flex-shrink: 0; transition: all .18s; }
.est-addon.on .ea-box { background: var(--purple-600); border-color: var(--purple-600); color: #fff; }
.ea-box svg { width: 13px; height: 13px; }
.ea-name { flex: 1; font-size: 14px; font-weight: 600; }
.ea-price { font-size: 13px; color: var(--slate-500); font-weight: 600; }
.est-result { border-radius: var(--r-xl); padding: 32px; text-align: center; position: sticky; top: 96px; }
.est-r-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); }
.est-total { font-family: var(--font-head); font-size: 52px; font-weight: 800; color: var(--purple-700); line-height: 1; margin: 8px 0 18px; }
.est-monthly { background: var(--lavender-50); border-radius: var(--r-md); padding: 16px; margin-bottom: 20px; }
.est-monthly > span { display: block; font-size: 13px; color: var(--slate-500); }
.est-monthly strong { font-family: var(--font-head); font-size: 30px; color: var(--coral-600); }
.est-monthly strong em { font-style: normal; font-size: 15px; font-family: var(--font-body); }
.est-note { font-size: 12px; color: var(--slate-500); margin-top: 14px; line-height: 1.5; }

/* ---------- CAROUSEL ---------- */
.carousel { position: relative; }
.car-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-card { flex: 0 0 380px; max-width: 85vw; scroll-snap-align: start; padding: 28px; }
.car-card blockquote { margin: 14px 0 20px; font-size: 16.5px; color: var(--ink); line-height: 1.6; }
.car-card figcaption { display: flex; align-items: center; gap: 12px; }
.car-card figcaption strong { display: block; font-size: 15px; }
.car-card figcaption em { font-style: normal; font-size: 12.5px; color: var(--slate-500); }
.car-nav { display: flex; gap: 10px; margin-top: 18px; }
.car-nav button { width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--purple-700); font-size: 20px; box-shadow: var(--shadow-sm); transition: all .18s var(--ease); }
.car-nav button:hover { background: var(--purple-700); color: #fff; transform: translateY(-2px); }

/* ---------- TAGLINE BAND ---------- */
.tagline-band { position: relative; padding: 120px 0; overflow: hidden; }
.tb-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); }
.tb-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(37,16,74,.92), rgba(58,26,110,.82) 55%, rgba(124,58,237,.6)); }
.tb-inner { position: relative; z-index: 1; text-align: center; max-width: 920px; }
.tb-quote { font-family: var(--font-head); font-size: clamp(26px, 3.8vw, 46px); line-height: 1.22; color: #fff; margin: 22px 0 18px; font-style: italic; letter-spacing: -.01em; }
.tb-quote em { color: var(--peach); font-style: italic; }
.tb-sign { color: var(--lavender-200); font-size: 15px; font-weight: 600; letter-spacing: .04em; }

/* ---------- GALLERY ---------- */
.gallery-section { padding-bottom: 104px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.gal-item { position: relative; overflow: hidden; border-radius: var(--r-md); cursor: pointer; background: var(--lavender-100); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-item:hover img { transform: scale(1.08); }
.gal-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(37,16,74,.55), transparent 50%); opacity: .9; transition: opacity .3s; }
.gal-label { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.gal-zoom { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--purple-700); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: all .25s var(--ease); }
.gal-item:hover .gal-zoom { opacity: 1; transform: scale(1); }
.gal-zoom svg { width: 18px; height: 18px; }
/* feature sizing for rhythm */
.gal-0 { grid-column: span 2; grid-row: span 2; }
.gal-3 { grid-row: span 2; }
.gal-4 { grid-column: span 2; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,8,40,.92); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; animation: fade .25s ease; }
.lb-fig { margin: 0; max-width: 86vw; max-height: 84vh; display: flex; flex-direction: column; gap: 12px; align-items: center; animation: fadeUp .3s var(--ease); }
.lb-fig img { max-width: 86vw; max-height: 76vh; object-fit: contain; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lb-fig figcaption { color: #fff; font-size: 15px; font-weight: 500; }
.lb-close { position: absolute; top: 22px; right: 28px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; transition: background .2s; }
.lb-close:hover { background: rgba(255,255,255,.26); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; transition: background .2s; }
.lb-arrow:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }

/* testimonial card photo */
.car-photo { width: 100%; height: 200px; border-radius: var(--r-md); margin-bottom: 16px; }

/* ---------- PRESS WALL ---------- */
.press-band { position: relative; background: radial-gradient(1200px 600px at 50% -10%, #3A1A6E, var(--purple-900) 60%); padding: 110px 0 120px; overflow: hidden; }
.press-stars { position:absolute; inset:0; opacity:.5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, #fff, transparent),
    radial-gradient(1px 1px at 28% 70%, var(--lavender-300), transparent),
    radial-gradient(1.8px 1.8px at 45% 18%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 63% 55%, var(--peach), transparent),
    radial-gradient(1.5px 1.5px at 78% 26%, #fff, transparent),
    radial-gradient(1px 1px at 88% 64%, var(--lavender-300), transparent),
    radial-gradient(1.3px 1.3px at 35% 88%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 70% 86%, var(--lavender-200), transparent);
  animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity:.32; } to { opacity:.65; } }
.press-band .section-head { position: relative; z-index: 1; }
.press-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; max-width: 1080px; margin: 0 auto; }
.press-card { margin: 0; background: #FFFDF7; padding: 12px 12px 14px; border-radius: 6px; box-shadow: 0 24px 60px rgba(10,4,30,.55); position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pc-0 { transform: rotate(-2deg); } .pc-1 { transform: rotate(1.6deg); } .pc-2 { transform: rotate(-1.2deg); } .pc-3 { transform: rotate(2.2deg); }
.press-card:hover { transform: rotate(0deg) translateY(-10px) scale(1.02); box-shadow: 0 38px 80px rgba(10,4,30,.65); z-index: 2; }
.press-tape { position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: 92px; height: 26px; background: rgba(224,214,251,.55); border-left: 1px dashed rgba(255,255,255,.5); border-right: 1px dashed rgba(255,255,255,.5); backdrop-filter: blur(2px); z-index: 3; }
.press-card img, .press-card image-slot { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; display: block; border-radius: 4px; background: #EFE9FE; }
.press-card image-slot { height: auto; }
.press-card figcaption { padding: 12px 4px 2px; }
.press-card figcaption strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); }
.press-card figcaption span { font-size: 12.5px; color: var(--slate-500); }
@media (max-width: 980px) { .press-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .press-grid { grid-template-columns: 1fr; max-width: 360px; } .press-band { padding: 80px 0 90px; } }

/* hero ken-burns */
.hero-img img { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.5%, 1.5%); } }
@media (prefers-reduced-motion: reduce) { .hero-img img, .press-stars { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 460px; }
  .finder-opts { grid-template-columns: 1fr 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { flex-direction: row; flex-wrap: wrap; }
  .ex-tab { flex: 1 1 auto; }
  .explorer-panel { grid-template-columns: 1fr; }
  .ep-ph { min-height: 200px; }
  .estimator { grid-template-columns: 1fr; }
  .est-result { position: static; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .tagline-band { padding: 88px 0; }
}
@media (max-width: 620px) {
  .finder-opts { grid-template-columns: 1fr; }
  .finder { padding: 24px; }
  .est-addons { grid-template-columns: 1fr; }
  .hero-stats-inline { gap: 22px; }
  .hero-float { left: 0; }
  .hero-float2 { right: 0; }
  .tl-content h3 { font-size: 22px; }
  .hero { padding: 56px 0 80px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; padding: 0 20px; }
  .gal-0 { grid-column: span 2; grid-row: span 1; }
  .gal-3, .gal-4 { grid-column: span 1; grid-row: span 1; }
  .lb-arrow { width: 44px; height: 44px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}
