/* ==========================================================================
   HiSleep storefront — brand system taken from the HiSleep brochure
   Navy night-sky blue, sunshine yellow, Poppins.
   ========================================================================== */

:root {
    --ink: #0b2547;
    --ink-2: #33415a;
    --muted: #64748b;
    --brand: #1270b3;
    --brand-600: #0e5d95;
    --deep: #0a2f5e;
    --night: #061a33;
    --sky: #1585c6;
    --sky-50: #e8f4fc;
    --mist: #f3f6fb;
    --line: #e2e8f2;
    --sun: #f3ea2a;
    --sun-600: #e3d916;
    --cream: #f7f5f0;
    --ok: #13a36b;
    --danger: #d23b3b;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 20px 50px -24px rgba(11, 37, 71, .35);
    --shadow-sm: 0 6px 20px -10px rgba(11, 37, 71, .25);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --wrap: 1240px;
    --announce-h: 36px;
    --header-h: 72px;
    --catbar-h: 138px;
    --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Fraunces', Georgia, serif;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font); color: var(--ink); background: #fff;
    font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
[x-cloak] { display: none !important; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
/* decorative overhangs (footer mark, quiz result) must never create sideways scrolling */
main, .site-footer { overflow-x: clip; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.muted { color: var(--muted); }
.hl { background: var(--sun); color: var(--ink); padding: 0 .25em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .16s ease-out both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
    --bg: var(--brand); --fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .9em 1.6em; border-radius: 999px; border: 0; background: var(--bg); color: var(--fg);
    font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
    position: relative; overflow: hidden; isolation: isolate;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); z-index: -1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--bg); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-sun { --bg: var(--sun); --fg: var(--ink); }
.btn-dark { --bg: var(--ink); }
.btn-white { --bg: #fff; --fg: var(--ink); }
.btn-ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; background: rgba(127,127,127,.08); }
.btn-lg { padding: 1.1em 2em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--brand); }
.link-arrow svg { transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Announcement + header ---------- */
.announce { height: var(--announce-h); line-height: var(--announce-h); background: var(--night); color: #cfe0f5; font-size: .8rem; overflow: hidden; white-space: nowrap; }
body:not(:has(.announce)) { --announce-h: 0px; }
.announce-track { display: inline-flex; gap: 3rem; animation: marquee 32s linear infinite; }
.announce-track span::before { content: '★'; color: var(--sun); margin-right: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.site-header {
    position: sticky; top: 0; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s;
    background: var(--night); color: #fff;
    view-transition-name: site-header;
}
.site-header.is-scrolled { box-shadow: 0 10px 26px -18px rgba(0,0,0,.35); }
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand-logo { display: flex; align-items: center; gap: 12px; color: #fff; --hs-star: var(--sun); transition: color .4s; }
.brand-logo .hs-mark { height: 38px; width: auto; }
.brand-logo .hs-wordmark { height: 40px; width: auto; }
.brand-divider { width: 1px; height: 30px; background: currentColor; opacity: .25; }
.main-nav { display: flex; gap: .25rem; margin-left: auto; }
.main-nav a { padding: .55rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 500; position: relative; transition: background .25s; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.1); }
/* category links join the compact nav only once the category bar has scrolled away */
.main-nav .nav-cat { transition: opacity .3s, transform .35s var(--ease), visibility .3s; }
.site-header:not(.catbar-past) .main-nav .nav-cat { opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; }

/* ---------- Category row (top of every page, scrolls away) ---------- */
.cat-bar { position: relative; z-index: 45; height: var(--catbar-h); background: var(--night); }
.cat-bar-row { height: 100%; display: flex; align-items: flex-end; gap: clamp(.5rem, 2.4vw, 2.6rem); overflow-x: auto; scrollbar-width: none; padding: 0 0 14px; }
.cat-bar-row::-webkit-scrollbar { display: none; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: .55rem; flex: none; width: 112px; color: #fff; animation: chip-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.cat-item:first-child { margin-left: auto; }
.cat-item:last-child { margin-right: auto; }
.cat-item-art { position: relative; width: 76px; height: 76px; }
/* soft floor glow instead of a disc, so the product art reads clearly on the night background */
.cat-item-art::before { content: ''; position: absolute; left: 50%; bottom: -2px; width: 120%; height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(21,133,198,.55), transparent); transition: opacity .45s, transform .45s var(--ease); opacity: .8; }
.cat-item-art img { position: absolute; left: 50%; bottom: 8px; width: 108px; max-width: none; height: 74px; object-fit: contain; object-position: bottom; transform: translateX(-50%); filter: drop-shadow(0 10px 12px rgba(0,0,0,.45)); transition: transform .45s var(--ease); }
.cat-item-label { font-size: .95rem; font-weight: 500; color: #dbe6f5; white-space: nowrap; position: relative; transition: color .25s; }
.cat-item-label::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 0; height: 3px; border-radius: 3px; background: var(--sun); transform: translateX(-50%); transition: width .35s var(--ease); }
.cat-item:hover .cat-item-art img { transform: translateX(-50%) translateY(-6px) scale(1.06); }
.cat-item:hover .cat-item-art::before { opacity: 1; transform: translateX(-50%) scaleX(1.12); }
.cat-item:hover .cat-item-label, .cat-item.active .cat-item-label { color: var(--sun); }
.cat-item:hover .cat-item-label::after, .cat-item.active .cat-item-label::after { width: 70%; }
.cat-item.active .cat-item-label { font-weight: 700; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .cat-item { animation: none; } }
/* wide desktops: lift the category row up into the navbar line (art level with the logo, names just below),
   so there is no empty band. It still scrolls away under the sticky header like before. */
@media (min-width: 1200px) {
    :root { --catbar-h: 34px; }   /* only the extra strip the names need below the navbar */
    .cat-bar { height: calc(var(--header-h) + var(--catbar-h)); margin-top: calc(-1 * var(--header-h)); z-index: 55; pointer-events: none;
        background: linear-gradient(transparent var(--header-h), var(--night) 0); }
    .cat-bar-row { align-items: flex-start; padding: 6px 0 0; gap: 1.6rem; overflow: visible; }
    .cat-item { pointer-events: auto; gap: .2rem; width: 104px; }
    .cat-item-art { width: 64px; height: 62px; }
    .cat-item-art img { width: 92px; height: 58px; bottom: 2px; }
    .cat-item-label { font-size: .88rem; }
    /* as soon as the page scrolls, the row tucks under the sticky header and the text links take over */
    .cat-item { transition: opacity .25s; }
    .site-header.is-scrolled + .cat-bar { z-index: 45; }
    .site-header.is-scrolled + .cat-bar .cat-item { opacity: 0; pointer-events: none; }
    .site-header.is-scrolled .main-nav .nav-cat { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
}
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 0; background: transparent; transition: background .25s, transform .3s var(--ease); }
.icon-btn:hover { background: rgba(127,160,205,.14); }
.icon-btn svg { width: 22px; height: 22px; }
.bag-count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--sun); color: var(--ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.bag-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } }
.menu-toggle { display: none; }

.mobile-nav { position: fixed; inset: 0; z-index: 70; background: var(--night); color: #fff; padding: 96px 24px 32px; display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a { font-size: 1.6rem; font-weight: 600; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav .close { position: absolute; top: 18px; right: 16px; color: #fff; }

@media (max-width: 960px) {
    :root { --header-h: 64px; --catbar-h: 112px; }
    .cat-item { width: 88px; gap: .45rem; }
    .cat-item-art { width: 62px; height: 62px; }
    .cat-item-art img { width: 90px; height: 62px; bottom: 6px; }
    .cat-item-label { font-size: .82rem; }
    .cat-bar-row { width: 100%; gap: .6rem; padding: 0 16px 12px; scroll-padding-inline: 16px; }
    .main-nav { display: none; }
    .menu-toggle { display: grid; }
    .header-actions { margin-left: auto; }
    .header-row { height: 64px; }
    .brand-logo .hs-mark { height: 32px; }
    .brand-logo .hs-wordmark { height: 34px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(28px, 4vw, 52px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.section-head p { max-width: 46ch; color: var(--muted); }
.bg-mist { background: var(--mist); }
.bg-night { background: var(--night); color: #fff; }
.bg-brand { background: var(--brand); color: #fff; }
.bg-cream { background: var(--cream); }

/* ---------- Home hero ---------- */
.hero {
    position: relative; height: max(calc(100svh - var(--announce-h) - var(--header-h) - var(--catbar-h)), 440px); isolation: isolate;
    background: linear-gradient(180deg, var(--night) 0%, var(--night) 45%, #0c2d58 100%);
    color: #fff; overflow: hidden; display: flex; align-items: center;
}
/* night strip behind the banner card so it continues the category row */
.hero-shell { background: var(--night); }
.hero-content { position: relative; z-index: 2; max-width: 600px; padding: 2vh 0; }
/* looping product film: decorative, sits behind the copy on the right and fades into the night gradient */
.hero-video { position: absolute; inset: 0 0 0 auto; width: 64%; z-index: 0; pointer-events: none;
    /* feathered on every edge, so the film's background melts into the page's night blue in any browser */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 88%, transparent 100%);
    mask-composite: intersect; }
.hero-video picture, .hero-video img, .hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video video { opacity: 0; transition: opacity 1s; }
.hero-video.is-playing video { opacity: 1; }
.hero-stats { display: flex; gap: clamp(1.2rem, 4vw, 3rem); margin-top: 3rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: #fff; }
.hero-stats span { font-size: .78rem; color: #9cb4d6; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.8rem, 7.6vw, 6.4rem); font-weight: 700; letter-spacing: -.04em; line-height: .98; }
.hero h1 .serif { color: var(--sun); font-weight: 400; }
.hero-lead { margin-top: clamp(.8rem, 2.4vh, 1.4rem); font-size: clamp(1rem, 1.6vw, 1.2rem); color: #c6d6ee; max-width: 44ch; }
.hero-ctas { display: flex; gap: .8rem; margin-top: clamp(1.2rem, 3.6vh, 2.2rem); flex-wrap: wrap; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .2; animation: twinkle var(--t, 4s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes twinkle { 50% { opacity: .95; transform: scale(1.6); } }
.moon { position: absolute; top: 14%; right: 12%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0, #fff8c9 40%, rgba(255,230,0,.0) 72%); filter: blur(.3px); opacity: .9; animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px); } }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px; z-index: 3; }
.scroll-cue::after { content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sun); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.word-in { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); animation: word-in 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes word-in { to { opacity: 1; transform: none; } }
@media (max-width: 800px) {
    .hero { align-items: flex-start; }
    .hero-content { padding-top: 40px; padding-bottom: 46vw; }
    .moon { width: 70px; height: 70px; top: 10%; right: 8%; }
}

/* ---------- Category rail ---------- */
.cat-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cat-card {
    position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; color: #fff; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: var(--accent, var(--brand));
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cat-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,26,51,0) 35%, rgba(6,26,51,.88) 100%); }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card h3 { font-size: 1.45rem; }
.cat-card p { font-size: .85rem; color: #d3e0f2; margin-top: .3rem; }
.cat-card .count { position: absolute; top: 18px; left: 18px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); padding: .35rem .7rem; border-radius: 99px; }
.cat-card .go { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; transform: scale(.6) rotate(-45deg); opacity: 0; transition: .5s var(--ease); }
.cat-card:hover .go { transform: none; opacity: 1; }
.cat-card:first-child { grid-column: span 2; grid-row: span 2; min-height: 560px; }
.cat-card:first-child h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cat-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 272px; }
.cat-rail .cat-card { min-height: 0; }
@media (max-width: 960px) {
    .cat-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
    .cat-rail::-webkit-scrollbar { display: none; }
    .cat-rail .cat-card, .cat-rail .cat-card:first-child { flex: 0 0 76%; min-height: 380px; scroll-snap-align: start; }
}

/* ---------- Spotlight (dark product KV) ---------- */
.spotlight { background: radial-gradient(90% 70% at 50% 0%, #123e74 0%, var(--night) 70%); color: #fff; overflow: hidden; }
.spotlight .tag { display: inline-flex; gap: .5rem; align-items: center; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.spotlight h2 { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -.045em; margin-top: .6rem; }
.spotlight .lead { color: #b8cbe6; font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 52ch; margin: 1rem auto 0; }
.spot-center { text-align: center; }
.spot-visual { position: relative; margin: clamp(32px, 6vw, 64px) auto 0; max-width: 980px; }
.spot-visual .photo { border-radius: 28px; overflow: hidden; box-shadow: 0 60px 120px -40px rgba(0,0,0,.7); }
.spot-visual .photo img { width: 100%; }
.spot-chips { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 2rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 99px; font-size: .82rem; font-weight: 500; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.chip svg { width: 16px; height: 16px; color: var(--sun); }

/* exploded layers */
.layers-stage { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.layers-stack { position: relative; perspective: 1400px; height: clamp(360px, 46vw, 520px); }
.layer {
    position: absolute; left: 6%; right: 6%; height: 15%; border-radius: 14px;
    top: calc(28% + var(--i) * 6%);
    transform: rotateX(58deg) rotateZ(-8deg) translateY(0); transform-style: preserve-3d;
    transition: transform 1.1s var(--ease), top 1.1s var(--ease), box-shadow .6s;
    box-shadow: 0 18px 30px -18px rgba(0,0,0,.6), inset 0 -10px 0 rgba(0,0,0,.18);
    background: var(--c);
}
.layers-stack.is-open .layer { top: calc(4% + var(--i) * (82% / var(--n))); }
.layer:hover { box-shadow: 0 0 0 3px var(--sun), 0 18px 30px -18px rgba(0,0,0,.6); }
.layer-list { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.layer-list li { counter-increment: l; display: flex; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid rgba(127,127,127,.18); opacity: .55; transition: opacity .4s, transform .4s var(--ease); }
.layer-list li::before { content: counter(l, decimal-leading-zero); font-size: .75rem; font-weight: 600; color: var(--sky); min-width: 1.6rem; }
.layer-list li.on, .layer-list li:hover { opacity: 1; transform: translateX(6px); }
.layer-list li .sw { width: 22px; height: 22px; border-radius: 6px; background: var(--c); flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 860px) { .layers-stage { grid-template-columns: 1fr; } }

/* ---------- Sleeper quiz ---------- */
.quiz { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.6rem; }
.quiz-opt {
    text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 16px;
    transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.quiz-opt img { height: 46px; width: auto; margin-bottom: .6rem; }
.quiz-opt strong { display: block; font-size: .98rem; }
.quiz-opt span { font-size: .8rem; color: var(--muted); }
.quiz-opt:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.quiz-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18,112,179,.15); }
.gauge { width: 220px; margin: 0 auto; }
.gauge .needle { transform-origin: 110px 110px; transition: transform 1.2s cubic-bezier(.34,1.56,.64,1); }
.quiz-result { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.quiz-picks { display: grid; gap: 10px; margin-top: 1.2rem; }
.quiz-pick { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--mist); transition: transform .4s var(--ease), background .3s; }
.quiz-pick:hover { transform: translateX(6px); background: var(--sky-50); }
.quiz-pick img { width: 84px; height: 58px; object-fit: cover; border-radius: 10px; }
.quiz-pick strong { display: block; font-size: .95rem; }
.quiz-pick span { font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .quiz { grid-template-columns: 1fr; } }

/* ---------- Technology tabs ---------- */
.tech-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab { padding: .6rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .9rem; font-weight: 500; transition: .3s; }
.tab:hover { border-color: var(--brand); }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bg-night .tab { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
.bg-night .tab.on { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.tech-panel { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: var(--radius); overflow: hidden; background: #fff; min-height: 440px; box-shadow: var(--shadow-sm); }
.tech-panel .img { position: relative; overflow: hidden; }
.tech-panel .img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tech-panel .txt { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.tech-panel h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.fade-swap-enter { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.fade-swap-start { opacity: 0; transform: scale(1.04); }
@media (max-width: 860px) { .tech-panel { grid-template-columns: 1fr; } .tech-panel .img { aspect-ratio: 16/10; } }

/* ---------- Product cards (featured grid) ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.p-card { position: relative; border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.p-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px transparent, var(--shadow); }
.p-card .media { aspect-ratio: 4/3; overflow: hidden; background: var(--mist); }
.p-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.p-card:hover .media img { transform: scale(1.06); }
.p-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.p-card h3 { font-size: 1.2rem; }
.p-card .price { margin-top: auto; padding-top: .8rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 6px; background: var(--brand); color: #fff; }
.badge-sun { background: var(--sun); color: var(--ink); }
.badge-soft { background: var(--sky-50); color: var(--brand); }
.badge-float { position: absolute; top: 14px; left: 14px; z-index: 2; }
.from { font-size: .78rem; color: var(--muted); }
.amount { font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.mrp { text-decoration: line-through; color: var(--muted); font-size: .85rem; margin-left: .3rem; font-weight: 400; }

/* ---------- Category page: featured listing ---------- */
.cat-hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 72px; color: #fff; overflow: hidden; background: radial-gradient(70% 90% at 85% 115%, color-mix(in srgb, var(--accent, #1d5ba6) 60%, var(--night)), var(--night) 72%); }
.cat-hero h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); letter-spacing: -.045em; }
.cat-hero p { color: #c3d4ec; max-width: 54ch; margin-top: 1rem; font-size: 1.05rem; }
.cat-hero .bg-img { position: absolute; inset: 0; opacity: .16; z-index: 0; mix-blend-mode: luminosity;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 60%); mask-image: linear-gradient(180deg, transparent 0, #000 60%); }
.cat-hero .bg-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero .wrap { position: relative; z-index: 1; }

.filter-bar { position: sticky; top: 72px; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.filter-bar .wrap { display: flex; gap: .4rem; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.filter-bar .wrap::-webkit-scrollbar { display: none; }
.filter-bar .tab { flex: none; }
@media (max-width: 960px) { .filter-bar { top: 64px; } }

.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(48px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(even) { grid-template-columns: 1fr 1.3fr; }   /* the wider column always holds the picture */
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 758/400; background: var(--mist); box-shadow: var(--shadow); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.04); }
.feature-media .peek { position: absolute; right: 14px; bottom: 14px; width: 26%; aspect-ratio: 315/435; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transform: translateY(20px) rotate(4deg); opacity: 0; transition: .8s var(--ease); }
.feature:hover .feature-media .peek { transform: none; opacity: 1; }
.feature-media .peek img { object-fit: contain; }
.feature-body .fam { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.feature-body h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-top: .8rem; letter-spacing: -.04em; }
.feature-body .tagline { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); margin-top: .5rem; font-weight: 500; }
.feature-body .desc { color: var(--muted); margin-top: 1rem; max-width: 52ch; }
.feature-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.6rem; margin-top: 1.6rem; }
.feature-facts strong { display: block; font-size: 1.3rem; }
.feature-facts span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.feature-cta { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.feature-cta .price-tag { margin-right: .5rem; }
@media (max-width: 860px) {
    .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
    .feature:nth-child(even) .feature-media { order: 0; }
    .feature-facts { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.firm { display: flex; flex-direction: column; gap: .35rem; min-width: 150px; }
.firm-bar { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #4aa3f0, #f6c341 55%, #e2483d); }
.firm-bar i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transform: translate(-50%, -50%); left: var(--v); transition: left 1s var(--ease); }
.firm-lbl { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Product page ---------- */
.pdp-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--mist), #fff); }
.crumbs { font-size: .82rem; color: var(--muted); display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--brand); }
.pdp-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.gallery-main { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 758/480; background: #fff; box-shadow: var(--shadow); }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1s var(--ease); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 84px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.gallery-thumbs button.on { border-color: var(--brand); }
.gallery-thumbs button:hover { transform: translateY(-2px); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.04em; margin-top: .6rem; }
.pdp-info .tagline { font-size: 1.2rem; color: var(--ink-2); margin-top: .5rem; font-weight: 500; }
.pdp-info .desc { color: var(--muted); margin-top: 1rem; }
.pdp-price { display: flex; align-items: baseline; gap: .6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.pdp-price .amount { font-size: 2rem; }
.pdp-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.pdp-points li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.pdp-points svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 1.6rem; }
.trust { text-align: center; padding: 14px 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: .75rem; color: var(--muted); }
.trust strong { display: block; color: var(--ink); font-size: .95rem; }
@media (max-width: 960px) { .pdp-grid { grid-template-columns: 1fr; } .trust-row { grid-template-columns: repeat(2, 1fr); } }

.buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .6s var(--ease);
}
.buybar.show { transform: none; }
.buybar .wrap { display: flex; align-items: center; gap: 1rem; padding: 12px 0; }
.buybar img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.buybar .name { font-weight: 600; line-height: 1.2; }
.buybar .btn { margin-left: auto; }
@media (max-width: 600px) { .buybar img, .buybar .hide-sm { display: none; } }

.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.spec { padding: 20px; border-radius: 16px; background: var(--mist); }
.spec span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.spec strong { display: block; font-size: 1.05rem; margin-top: .25rem; }

.size-guide { width: 100%; border-collapse: collapse; font-size: .9rem; }
.size-guide th, .size-guide td { padding: .7rem .8rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-guide th:first-child, .size-guide td:first-child { text-align: left; }
.size-guide thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.size-guide tbody tr { transition: background .2s; }
.size-guide tbody tr:hover { background: var(--sky-50); }
.table-scroll { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); background: #fff; }

/* ---------- Sheets / drawers ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(6,26,51,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet {
    position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff;
    display: flex; flex-direction: column; box-shadow: -30px 0 80px -30px rgba(0,0,0,.4);
}
.sheet-head { display: flex; align-items: center; gap: 1rem; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.sheet-head .icon-btn { margin-left: auto; }
.sheet-body { flex: 1; overflow-y: auto; padding: 22px; overscroll-behavior: contain; }
.sheet-foot { padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.t-sheet-enter { transition: transform .6s var(--ease); }
.t-sheet-start { transform: translateX(100%); }
.t-fade-enter { transition: opacity .4s ease; }
.t-fade-start { opacity: 0; }
@media (max-width: 640px) {
    .sheet { top: auto; left: 0; width: 100%; max-height: 92svh; border-radius: 24px 24px 0 0; }
    .t-sheet-start { transform: translateY(100%); }
    .sheet::before { content: ''; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: var(--line); }
}

/* configurator */
.cfg-product { display: flex; gap: 14px; align-items: center; }
.cfg-product img { width: 92px; height: 62px; border-radius: 12px; object-fit: cover; }
.steps { display: flex; gap: 6px; margin: 18px 0 6px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.steps i::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.steps i.done::after { transform: scaleX(1); }
.cfg-step h4 { font-size: 1.05rem; margin: 22px 0 12px; display: flex; align-items: center; gap: .6rem; letter-spacing: -.01em; }
.cfg-step h4 small { font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: auto; letter-spacing: 0; }
.seg { display: flex; padding: 4px; background: var(--mist); border-radius: 999px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1; border: 0; background: transparent; padding: .6rem .8rem; border-radius: 999px; font-size: .86rem; font-weight: 500; white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; }
.seg button.on { background: #fff; box-shadow: var(--shadow-sm); color: var(--brand); font-weight: 600; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.opt {
    position: relative; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
    transition: border-color .25s, box-shadow .25s, transform .3s var(--ease);
}
.opt:hover { transform: translateY(-2px); }
.opt strong { display: block; font-size: .95rem; }
.opt span { font-size: .78rem; color: var(--muted); }
.opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18,112,179,.14); }
.opt.on::after { content: ''; position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; animation: pop .4s var(--ease); }
@keyframes pop { from { transform: scale(0); } }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: .4rem; border: 0; background: none; padding: 0; font-size: .75rem; color: var(--muted); max-width: 84px; text-align: center; }
.swatch i { width: 46px; height: 46px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px #fff, 0 0 0 4px var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.swatch.on i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px #fff, 0 0 0 5px var(--brand); transform: scale(1.06); }
.swatch.on { color: var(--ink); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.2rem; border-radius: 50%; }
.qty button:hover { background: var(--mist); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.qty-sm button { width: 32px; height: 32px; font-size: 1rem; }
.custom-size { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.cfg-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 12px; }
.cfg-summary .amount { font-size: 1.7rem; }
.cfg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bed-visual { position: relative; height: 120px; margin: 4px 0 10px; display: grid; place-items: center; background: var(--mist); border-radius: 16px; overflow: hidden; }
.bed-visual .bed { background: linear-gradient(180deg, #fff, #e9eef6); border: 2px solid var(--brand); border-radius: 10px; transition: width .6s var(--ease), height .6s var(--ease); position: relative; box-shadow: var(--shadow-sm); }
.bed-visual .bed::before { content: ''; position: absolute; top: 6px; left: 8%; right: 8%; height: 14%; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--sky-50) 0 46%, transparent 46% 54%); }
.bed-visual small { position: absolute; bottom: 8px; right: 12px; font-size: .72rem; color: var(--muted); }

/* bag */
.bag-line { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-line img { width: 88px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--mist); }
.bag-line .opts-txt { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.bag-line .row { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.empty-state { text-align: center; padding: 48px 12px; color: var(--muted); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--line); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea {
    width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
    transition: border-color .25s, box-shadow .25s; font-size: .95rem;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(18,112,179,.12); }
.input.err { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }

/* checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.card { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 0 0 1px var(--line); }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.25rem; letter-spacing: -.015em; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .7rem; }
.card h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.summary { position: sticky; top: 96px; }
.sum-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .92rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; font-size: 1.1rem; font-weight: 700; }
.pay-opt { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.pay-opt + .pay-opt { margin-top: 10px; }
.pay-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18,112,179,.12); }
.pay-opt input { margin-top: 4px; accent-color: var(--brand); }
.pay-opt strong { display: block; }
.pay-opt span { font-size: .82rem; color: var(--muted); }
.secure-note { display: flex; gap: .5rem; align-items: center; justify-content: center; font-size: .78rem; color: var(--muted); margin-top: .8rem; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: .9rem; }
.alert-err { background: #fdecec; color: #8f2020; }
.alert-ok { background: #e7f7ef; color: #0d6b45; }
.alert-info { background: var(--sky-50); color: var(--brand); }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- Thanks / tracking ---------- */
.thanks-hero { text-align: center; padding: clamp(56px, 9vw, 110px) 0 40px; background: radial-gradient(70% 90% at 50% 115%, #164a8a, var(--night) 72%); color: #fff; position: relative; overflow: hidden; }
.thanks-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.check-anim { width: 88px; height: 88px; margin: 0 auto 1.4rem; }
.check-anim circle { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s var(--ease) .2s forwards; }
.check-anim path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.journey { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin: 1rem 0; }
.journey::before { content: ''; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 3px; background: var(--line); }
.journey .bar { position: absolute; top: 15px; left: 12.5%; height: 3px; background: var(--ok); width: calc(75% * var(--p)); transition: width 1.4s var(--ease); }
.journey div { text-align: center; position: relative; font-size: .8rem; color: var(--muted); }
.journey div i { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto .5rem; border-radius: 50%; background: #fff; border: 3px solid var(--line); font-style: normal; font-size: .8rem; transition: .6s var(--ease); }
.journey div.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.journey div.done { color: var(--ink); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; font-size: .88rem; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: .75rem; color: var(--muted); }

/* ---------- Why / trust band ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why { padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: transform .5s var(--ease), background .4s; }
.why:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.why svg { width: 34px; height: 34px; color: var(--sun); margin-bottom: 1rem; }
.why h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.why p { font-size: .88rem; color: #b6c8e2; margin-top: .4rem; }
.big-num { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--sun); }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* callback band */
.callback { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; background: var(--sun); border-radius: 32px; padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.callback h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.callback .input { border-color: rgba(11,37,71,.15); }
.callback::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.35); }
@media (max-width: 860px) { .callback { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #a9bcd8; padding: 72px 0 28px; margin-top: 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a:hover { color: var(--sun); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 22px; font-size: .8rem; }
.footer-tag { display: inline-block; margin-top: 1rem; font-weight: 700; letter-spacing: .02em; }
.footer-tag b { background: var(--sun); color: var(--ink); padding: .1rem .4rem; border-radius: 3px; }
.footer-tag span { color: #fff; margin-left: .3rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }

/* floating whatsapp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 44; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .4s var(--ease), bottom .6s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }
body.has-buybar .wa-float { bottom: 90px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .9rem; display: flex; gap: .6rem; align-items: center; box-shadow: var(--shadow); }
.toast svg { width: 18px; height: 18px; color: var(--sun); }
.t-toast-enter { transition: transform .5s var(--ease), opacity .5s; }
.t-toast-start { transform: translate(-50%, 30px); opacity: 0; }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: .8rem; }
.page-hero { padding: clamp(40px, 6vw, 72px) 0 56px; background: radial-gradient(90% 120% at 85% 100%, #0f3e78, var(--night) 70%); color: #fff; }
.page-hero .eyebrow { color: var(--sun); }
.page-hero .muted, .page-hero .crumbs { color: #b9c9e0; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .card { color: var(--ink); }
.page-hero .guide-toc a { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.page-hero .guide-toc a:hover { color: var(--sun); box-shadow: inset 0 0 0 1.5px var(--sun); }
/* content right after a banner had no top padding while the banner was light; give it room now */
.page-hero + .section-tight, .page-hero + section { padding-top: clamp(36px, 5vw, 64px) !important; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.04em; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* misc utils */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.flex { display: flex; } .items-center { align-items: center; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .wrap-flex { flex-wrap: wrap; }
.text-center { text-align: center; } .w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.overflow-hidden { overflow: hidden; }
.rise { opacity: 0; transform: translateY(24px); animation: word-in 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.cat-card .count { background: rgba(6,26,51,.5); }
@media (max-width: 800px) {
    .moon { top: 96px; right: 14px; width: 54px; height: 54px; }
    .hero h1 { margin-top: 1.2rem; }
}
.quiz-opt img { mix-blend-mode: multiply; }

/* ---------- "Interested in" picker ---------- */
.picker { position: relative; }
.pick-search { position: relative; }
.pick-search .input { padding-left: 2.6rem; }
.pick-ico { position: absolute; left: .9rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pick-panel {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 340px; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(11,37,71,.45); padding: 6px;
}
.pick-group { position: sticky; top: -6px; z-index: 1; background: #fff; padding: 10px 10px 6px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.pick-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; text-align: left; transition: background .15s; }
.pick-opt.active { background: var(--sky-50); }
.pick-opt img { width: 52px; height: 36px; flex: none; object-fit: cover; border-radius: 8px; background: var(--mist); }
.pick-opt span { flex: 1; min-width: 0; }
.pick-opt strong { display: block; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-opt small { display: block; font-size: .75rem; color: var(--muted); }
.pick-opt em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pick-opt.cat strong { color: var(--brand); }
.pick-empty { padding: 14px 10px; font-size: .85rem; color: var(--muted); }
.pick-card {
    display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: #fff;
    box-shadow: 0 0 0 1.5px var(--brand), 0 0 0 5px rgba(18,112,179,.1); animation: pop-in .45s var(--ease);
}
.pick-card img { width: 72px; height: 50px; object-fit: cover; border-radius: 10px; flex: none; background: var(--mist); }
.pick-card > div { flex: 1; min-width: 0; line-height: 1.3; }
.pick-card strong { display: block; font-size: .98rem; }
.pick-card small { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.pick-kicker { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.pick-change { border: 0; background: var(--mist); color: var(--brand); font-weight: 600; font-size: .8rem; padding: .45rem .8rem; border-radius: 99px; }
.pick-change:hover { background: var(--sky-50); }
@keyframes pop-in { from { opacity: 0; transform: scale(.97); } }
.callback .pick-panel { max-height: 300px; }
.callback { overflow: visible; }
.callback::after { right: 0; top: 0; width: 220px; height: 220px; border: 0; border-radius: 0 32px 0 0; pointer-events: none;
    background: radial-gradient(circle at 100% 0, transparent 100px, rgba(255,255,255,.35) 101px, rgba(255,255,255,.35) 140px, transparent 141px); }


/* ---------- Brand intro (once per session) ---------- */
.intro {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer;
    background: radial-gradient(90% 80% at 50% 100%, #12487f 0%, var(--night) 70%);
    animation: intro-out .6s var(--ease) 1.5s forwards;
}
.intro.done { animation: intro-out .6s var(--ease) forwards; }
.no-intro .intro { display: none; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; color: #fff; --hs-star: var(--sun); }
.intro-mark { width: 92px; }
.intro-word { width: min(300px, 70vw); }
.intro-word .hs-letter { animation-delay: calc(.4s + var(--i) * .05s) !important; }
@keyframes intro-out { to { opacity: 0; transform: translateY(-4%); visibility: hidden; } }

/* ---------- Footer logo ---------- */
.site-footer { position: relative; overflow: hidden; }
.footer-logo { display: inline-block; color: #fff; --hs-star: var(--sun); }
.footer-word { width: 210px; }
.footer-watermark { position: absolute; right: -40px; bottom: -60px; width: 340px; opacity: .06; pointer-events: none; }
.site-footer .wrap { position: relative; }
.mobile-nav-mark { position: absolute; top: 20px; left: 20px; width: 34px; }

/* ---------- Hero with animated logo ---------- */
.hero-logo { margin: clamp(.5rem, 2vh, 1.2rem) 0 0; color: #fff; --hs-star: var(--sun); }
.hero-logo .hs-wordmark { width: min(460px, 78vw, 52vh); filter: drop-shadow(0 18px 40px rgba(0,0,0,.25)); }
.hero-tagline { margin-top: clamp(.6rem, 2vh, 1.4rem); font-size: clamp(.85rem, 1.4vw, 1.05rem); color: #fff; }
.hero-mark { position: absolute; z-index: 0; left: -90px; bottom: -120px; width: 420px; opacity: .07; transform: rotate(-12deg); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
/* while the intro is playing, hold the hero logo so it animates when the curtain lifts */
html:not(.no-intro) .hero-logo .hs-wordmark * { animation-delay: calc(1.6s + var(--i, 0) * .05s) !important; }
html:not(.no-intro) .hero-logo .hs-wordmark .hs-star { animation-delay: calc(1.9s + var(--i) * .08s), calc(3s + var(--i) * .3s) !important; }
html:not(.no-intro) .hero .rise, html:not(.no-intro) .hero .word-in { animation-delay: calc(var(--d, 0s) * .5 + 1.5s); }
@media (max-width: 800px) {
    .hero-logo .hs-wordmark { width: min(320px, 82vw); }
    .hero-mark { width: 260px; left: auto; right: -60px; bottom: auto; top: 90px; }
}
html:not(.no-intro) .hero-logo .hs-wordmark .hs-dot { animation-delay: 2.1s !important; }
.brand-logo .hs-mark { height: 40px; }
.brand-logo .hs-wordmark { height: 48px; }
@media (max-width: 960px) { .brand-logo .hs-mark { height: 32px; } .brand-logo .hs-wordmark { height: 40px; } }
@media (max-width: 800px) {

    .hero-content { padding: 2.4vh 0 0; }
    /* phones: the portrait film fills the card; copy stays on top, the eyebrow and lead are hidden (still in the HTML for search) */
    .hero-video { inset: 0; width: 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 30%, rgba(0,0,0,.6) 44%, #000 56%); mask-image: linear-gradient(180deg, transparent 0, transparent 30%, rgba(0,0,0,.6) 44%, #000 56%); }
    .hero-eyebrow, .hero-lead { display: none; }
    .hero-content { padding-top: 3.5vh; }
    .hero-logo .hs-wordmark { width: min(280px, 66vw, 26vh); }
    .hero-lead { font-size: .92rem; text-shadow: 0 1px 12px rgba(6,26,51,.9); }
    .hero-ctas { flex-wrap: nowrap; gap: .5rem; }
    .hero-ctas .btn-lg { padding: .75rem 1rem; font-size: .88rem; white-space: nowrap; }
    .hero .scroll-cue { display: none; }
}
/* short laptop screens: shrink the logo so the whole banner still fits without scrolling */
@media (min-width: 801px) and (max-height: 820px) {
    .hero-logo .hs-wordmark { width: min(400px, 34vh); }
    .hero-lead { font-size: 1rem; margin-top: .7rem; }
    .hero-ctas { margin-top: 1.1rem; }
}
@media (max-width: 380px) {
    .hero-ctas .btn-lg { padding: .7rem .8rem; font-size: .82rem; }
    .hero-ctas .arrow { display: none; }
}
.cfg-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }

/* ---------- FAQ (native details/summary: works without JS, crawlable) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Buying guide ---------- */
.guide { max-width: 980px; }
.guide section { padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.guide h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: .8rem; }
.guide p { color: var(--ink-2); }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 1.2rem; }
.guide-grid .card h3 { font-size: 1.1rem; margin-top: .6rem; }
.guide-grid img { mix-blend-mode: multiply; height: 54px; width: auto; }
.guide-dl dt { font-weight: 700; margin-top: 1.1rem; font-size: 1.05rem; }
.guide-dl dd { margin: .3rem 0 0; color: var(--ink-2); }
.guide-list { padding-left: 1.2rem; color: var(--ink-2); display: grid; gap: .5rem; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-toc a { padding: .45rem .9rem; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: .85rem; font-weight: 500; }
.guide-toc a:hover { box-shadow: 0 0 0 1.5px var(--brand); color: var(--brand); }
.compare td a { color: var(--brand); font-weight: 600; }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- Ratings, reviews, EMI, bundles ---------- */
.stars { --v: 0%; display: inline-block; font-size: 1rem; letter-spacing: 2px; line-height: 1; background: linear-gradient(90deg, #f5a623 var(--v), #d6dde8 var(--v)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars-line { display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem; font-size: .92rem; }
.p-card .stars-line { margin-top: 0; font-size: .8rem; }
.emi-line { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; font-size: .9rem; color: var(--ink-2); }
.emi-line svg { color: var(--sky); }
.hl-row { background: var(--sky-50); font-weight: 600; }
.review-summary { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--mist); }
.big-rating { font-size: 3.4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.review-summary .stars { font-size: 1.3rem; margin: .4rem 0; }
.review-bars { display: grid; gap: 6px; }
.review-bars div { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; font-size: .85rem; }
.review-bars i { height: 8px; border-radius: 8px; background: #fff; overflow: hidden; }
.review-bars b { display: block; height: 100%; background: #f5a623; border-radius: 8px; }
.review-list { display: grid; gap: 4px; margin-top: 18px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review p { margin: .5rem 0; color: var(--ink-2); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); margin-left: 6px; }
.addon-strip { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--sky-50); }
.addon-strip h4 { font-size: .95rem; margin-bottom: 10px; }
.addon-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.addon-row img { width: 58px; height: 40px; object-fit: cover; border-radius: 8px; }
.addon-row div { flex: 1; font-size: .85rem; line-height: 1.3; }
@media (max-width: 640px) { .review-summary { grid-template-columns: 1fr; } }

/* ---------- Language switch, footer cities, consent ---------- */
.lang-switch { display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px currentColor; font-size: .78rem; font-weight: 700; opacity: .85; }
.lang-switch:hover { opacity: 1; background: rgba(127,127,127,.08); }
.footer-lang a { color: #cfe0f5; }
.footer-lang a.on { color: var(--sun); font-weight: 600; }
.footer-cities { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 36px; font-size: .82rem; }
.footer-cities span { color: #fff; font-weight: 600; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; max-width: 560px; margin-inline: auto; background: var(--night); color: #dbe6f5; padding: 16px 18px; border-radius: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; font-size: .85rem; }
.consent p { flex: 1; }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } }
/* Malayalam pages: Poppins has no Malayalam glyphs, so Noto Sans Malayalam takes over for them */
.lang-ml { --font: 'Poppins', 'Noto Sans Malayalam', ui-sans-serif, system-ui, sans-serif; line-height: 1.75; }
.lang-ml h1, .lang-ml h2, .lang-ml h3 { line-height: 1.3; letter-spacing: -.01em; }
.review-card { margin-bottom: 14px; }
.star-input { display: flex; gap: 4px; margin: 14px 0 6px; }
.star-input button { border: 0; background: none; font-size: 2.1rem; line-height: 1; color: #d6dde8; padding: 0 2px; transition: transform .2s var(--ease), color .15s; }
.star-input button.on { color: #f5a623; }
.star-input button:hover { transform: scale(1.15); }
.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dealer h2, .dealer h3 { font-size: 1.15rem; margin: .5rem 0 .3rem; letter-spacing: -.01em; }
.dealer.hq { background: var(--night); color: #fff; box-shadow: none; }
.dealer.hq .muted { color: #b6c8e2; }
.bulk-grid .card { background: #fff; color: var(--ink); border: 0; }
.article-body h2 { font-size: 1.6rem; margin: 2.2rem 0 .7rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; color: var(--ink-2); }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 1.4rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--sun); background: var(--mist); border-radius: 0 12px 12px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: .6rem .5rem; text-align: left; }
/* Malayalam words are longer and letter-spacing breaks conjuncts */
.lang-ml .main-nav a { font-size: .8rem; white-space: nowrap; padding: .5rem .55rem; }
.lang-ml .eyebrow, .lang-ml .badge, .lang-ml .firm-lbl, .lang-ml .stat .k, .lang-ml .site-footer h4 { letter-spacing: .02em; text-transform: none; }
@media (max-width: 1180px) { .lang-ml .main-nav a:last-child { display: none; } }

/* Configurator: header + scrollable body + sticky footer inside the sheet */
.sheet-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; transition: opacity .2s; }
.sheet-inner.is-loading { opacity: .35; pointer-events: none; }
.sheet-body { min-height: 0; -webkit-overflow-scrolling: touch; }
