/* ============================================================
   Olareviews — Homepage
   Hero "review lens" (brand ring + sparkle), live review pane,
   buyer guides, services, FAQ. Uses design tokens from styles.css.
   All classes start with .h- so nothing else on the site changes.
   ============================================================ */

/* ------------------------------------------------------------
   1. HERO
   ------------------------------------------------------------ */
.h-hero { position: relative; overflow: hidden; padding: 128px 24px 70px; isolation: isolate; }
.h-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.h-hero__aurora {
  position: absolute; inset: -30% -10% auto; height: 120%;
  background:
    radial-gradient(40% 50% at 25% 35%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    radial-gradient(35% 45% at 78% 30%, color-mix(in srgb, var(--accent-2) 32%, transparent), transparent 70%),
    radial-gradient(30% 40% at 60% 80%, color-mix(in srgb, #ff6b9a 18%, transparent), transparent 70%);
  filter: blur(30px); animation: h-aurora 18s ease-in-out infinite alternate;
}
.h-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 75%);
}
@keyframes h-aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(4%, 3%, 0) scale(1.08); } }

.h-hero__inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.h-hero__pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-size: .82rem; font-weight: 600; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.h-hero__pill b { color: #ffd65c; }
.h-hero h1 { font-family: "Sora", sans-serif; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -.025em; margin: 20px 0 18px; }
.h-rotator { display: inline-grid; vertical-align: bottom; }
.h-rotator > span { grid-area: 1 / 1; background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, #ff6b9a); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease); }
.h-rotator > span[aria-hidden="true"] { opacity: 0; transform: translateY(.35em); filter: blur(6px); }
.h-hero__sub { color: var(--text-dim); font-size: 1.1rem; line-height: 1.75; max-width: 600px; }
.h-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.h-hero__chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--text-dim); font-size: .88rem; }
.h-hero__chips span { display: inline-flex; align-items: center; gap: 7px; }
.h-hero__chips span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }

.h-hero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.h-hero__quick:empty { display: none; }
.h-hero__quick span { align-self: center; font-size: .8rem; color: var(--text-dim); margin-right: 4px; }
.h-hero__quick a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; font-size: .84rem; font-weight: 600; color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.h-hero__quick a:hover { border-color: var(--accent); transform: translateY(-2px); }

/* The review lens */
.h-lens { position: relative; width: min(470px, 100%); aspect-ratio: 1; margin-left: auto; container-type: inline-size; }
.h-lens__ring { position: absolute; inset: 16%; }
.h-lens__ring svg { width: 100%; height: 100%; overflow: visible; }
.h-lens__track { fill: none; stroke: color-mix(in srgb, var(--text) 9%, transparent); stroke-width: 14; }
.h-lens__arc { fill: none; stroke: url(#hLensGrad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 630; stroke-dashoffset: 630; transform: rotate(-90deg); transform-origin: 50% 50%; animation: h-draw 1.6s .3s var(--ease) forwards; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 55%, transparent)); }
@keyframes h-draw { to { stroke-dashoffset: var(--h-arc-end, 60); } }
.h-lens__spark { position: absolute; top: 9%; right: 13%; width: 18%; aspect-ratio: 1; animation: h-twinkle 3.2s ease-in-out infinite; transform-origin: 50% 50%; }
.h-lens__spark { background: none !important; border: 0; overflow: visible; filter: drop-shadow(0 0 10px rgba(255,255,255,.7)); }
.h-lens__spark path { fill: #fff; }
@keyframes h-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 45% { transform: scale(.72) rotate(28deg); opacity: .75; } 55% { transform: scale(1.12) rotate(40deg); opacity: 1; } }
.h-lens__core { position: absolute; inset: 27%; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 30%, var(--surface-2), var(--bg) 75%); border: 1px solid var(--border); box-shadow: inset 0 0 40px rgba(0,0,0,.5), 0 30px 70px -30px var(--accent-glow); }
.h-lens__now { padding: 10px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.h-lens__now.is-swapping { opacity: 0; transform: scale(.92); }
.h-lens__label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.h-lens__score { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; margin: 6px 0 4px; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent-2) 60%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.h-lens__score small { font-size: .32em; -webkit-text-fill-color: var(--text-dim); }
.h-lens__name { font-weight: 700; font-size: .95rem; max-width: 150px; margin: 0 auto; line-height: 1.25; }
.h-lens__stars { margin-top: 6px; font-size: .9rem; letter-spacing: 2px; color: color-mix(in srgb, var(--text) 18%, transparent); position: relative; display: inline-block; }
.h-lens__stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--h-stars, 0%); overflow: hidden; color: #ffd65c; transition: width .9s var(--ease); white-space: nowrap; }

/* Orbiting product chips (real products from your scorecards) */
.h-orbit { position: absolute; inset: 0; animation: h-spin 46s linear infinite; }
.h-orbit__item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(-44cqw); }
.h-chip { color: var(--text) !important; text-decoration: none !important; position: absolute; transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 99px; white-space: nowrap; font-size: .8rem; font-weight: 600; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); backdrop-filter: blur(10px); box-shadow: 0 12px 30px -14px rgba(0,0,0,.8); animation: h-counter 46s linear infinite; }
.h-chip__ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--bg); font-size: .95rem; flex: 0 0 auto; }
.h-chip__ico img { width: 100%; height: 100%; object-fit: cover; }
.h-chip b { color: #ffd65c; font-weight: 800; }
.h-chip.is-live { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), 0 12px 30px -14px rgba(0,0,0,.8); }
@keyframes h-spin { to { transform: rotate(360deg); } }
@keyframes h-counter { from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); } to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - 360deg)); } }
.h-lens:hover .h-orbit, .h-lens:hover .h-chip { animation-play-state: paused; }

/* Floating sparkles (brand mark) */
.h-sparkles { position: absolute; inset: 0; pointer-events: none; }
.h-sparkles svg { position: absolute; width: 14px; height: 14px; opacity: .0; animation: h-float 7s ease-in-out infinite; }
.h-sparkles svg path { fill: color-mix(in srgb, var(--accent-2) 70%, #fff); }
@keyframes h-float { 0% { transform: translateY(20px) scale(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-90px) scale(1); opacity: 0; } }

/* ------------------------------------------------------------
   2. CATEGORY MARQUEE + LIVE STATS
   ------------------------------------------------------------ */
.h-marquee { border-block: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.h-marquee__track { display: flex; gap: 46px; width: max-content; padding: 16px 0; animation: h-scroll 40s linear infinite; }
.h-marquee__track span { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.h-marquee__track span i { font-style: normal; }
@keyframes h-scroll { to { transform: translateX(-50%); } }
.h-stats { max-width: 1180px; margin: 0 auto; padding: 46px 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.h-stat { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.h-stat .stat__num { font-family: "Sora", sans-serif; font-size: 2.3rem; font-weight: 800; line-height: 1; }
.h-stat .stat__suffix { font-family: "Sora", sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.h-stat p { color: var(--text-dim); font-size: .9rem; margin-top: 8px; line-height: 1.5; }

/* ------------------------------------------------------------
   Shared section heading
   ------------------------------------------------------------ */
.h-sec { max-width: 1180px; margin: 0 auto; padding: 90px 24px 0; scroll-margin-top: 80px; }
.h-sec__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.h-sec__head > div { max-width: 720px; }
.h-eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.h-h2 { font-family: "Sora", sans-serif; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em; }
.h-lead { color: var(--text-dim); font-size: 1.03rem; line-height: 1.75; margin-top: 12px; }
.h-link { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.h-link:hover { color: var(--text); }

/* ------------------------------------------------------------
   3. REVIEW PANE (scrollable window, up to 50 products)
   ------------------------------------------------------------ */
.h-pane { border-radius: 26px; background: linear-gradient(160deg, var(--surface), var(--bg)); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.h-pane__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.h-pane__dots { display: flex; gap: 7px; }
.h-pane__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b6b; }
.h-pane__dots i:nth-child(2) { background: #ffd65c; } .h-pane__dots i:nth-child(3) { background: #35d07f; }
.h-pane__count { font-size: .84rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.h-pane .controls { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.h-pane__window { max-height: 760px; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px 26px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.h-pane__window::-webkit-scrollbar { width: 10px; }
.h-pane__window::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 99px; border: 3px solid var(--bg); }
.h-pane__window .review-grid { margin: 0; }
.h-pane__fade { position: sticky; bottom: -26px; height: 40px; margin-top: -40px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.h-pane__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--border); font-size: .84rem; color: var(--text-dim); }
.review-card--limit { display: grid; place-items: center; text-align: center; padding: 24px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-dim); font-size: .9rem; }

/* ------------------------------------------------------------
   4. BUYER GUIDES (keyword cards)
   ------------------------------------------------------------ */
.h-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.h-guide { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.h-guide:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.h-guide::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.h-guide__tag { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--border); color: var(--text-dim); }
.h-guide h3 { font-family: "Sora", sans-serif; font-size: 1.14rem; line-height: 1.3; }
.h-guide p { color: var(--text-dim); font-size: .93rem; line-height: 1.7; }
.h-guide ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: .9rem; }
.h-guide li { display: flex; gap: 9px; }
.h-guide li::before { content: "→"; color: var(--accent); font-weight: 700; }
.h-guide button { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.h-guide button:hover { color: var(--text); }
.h-guide--cta { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), var(--surface); justify-content: center; }

/* ------------------------------------------------------------
   5. HOW WE SCORE (timeline)
   ------------------------------------------------------------ */
.h-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.h-step { position: relative; padding: 26px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); counter-increment: s; }
.h-step::before { content: "0" counter(s); font-family: "Sora", sans-serif; font-weight: 800; font-size: 2.4rem; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 65%, var(--border)); display: block; margin-bottom: 10px; }
.h-step h3 { font-family: "Sora", sans-serif; font-size: 1.05rem; margin-bottom: 8px; }
.h-step p { color: var(--text-dim); font-size: .92rem; line-height: 1.7; }
.h-rubric { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.h-rubric span { padding: 8px 14px; border-radius: 99px; background: var(--bg); border: 1px solid var(--border); font-size: .86rem; font-weight: 600; }

/* ------------------------------------------------------------
   6. SERVICES
   ------------------------------------------------------------ */
.h-services { display: grid; grid-template-columns: repeat(3, 1fr) 0.9fr; gap: 18px; }
.h-svc { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: 22px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.h-svc:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 24px 50px -28px var(--accent-glow); }
.h-svc__ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; background: var(--bg); border: 1px solid var(--border); }
.h-svc h3 { font-family: "Sora", sans-serif; font-size: 1.12rem; line-height: 1.3; }
.h-svc p { color: var(--text-dim); font-size: .92rem; line-height: 1.7; flex: 1; }
.h-svc em { font-style: normal; color: var(--accent); font-weight: 600; font-size: .9rem; }
.h-svc--book { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 55%, var(--surface)), color-mix(in srgb, var(--accent-2) 45%, var(--surface))); border-color: transparent; }
.h-svc--book p, .h-svc--book em { color: rgba(255,255,255,.9); }
.h-svc--book .h-svc__ico { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); }

/* ------------------------------------------------------------
   7. FAQ
   ------------------------------------------------------------ */
.h-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.h-faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.h-faq details[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.h-faq summary { list-style: none; cursor: pointer; padding: 19px 56px 19px 22px; font-weight: 600; line-height: 1.45; position: relative; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; position: absolute; right: 20px; top: 17px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--bg); border: 1px solid var(--border); color: var(--accent); font-weight: 700; }
.h-faq details[open] summary::after { content: "–"; }
.h-faq details > div { padding: 0 22px 20px; color: var(--text-dim); line-height: 1.75; font-size: .95rem; }
.h-faq a { color: var(--accent); }
.h-after-faq { padding-bottom: 10px; }

/* ------------------------------------------------------------
   Responsive + reduced motion
   ------------------------------------------------------------ */
@media (max-width: 1060px) {
  .h-services { grid-template-columns: 1fr 1fr; }
  .h-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .h-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .h-hero__sub { margin: 0 auto; }
  .h-hero__actions, .h-hero__chips { justify-content: center; }
  .h-lens { margin: 10px auto 0; width: min(420px, 92vw); }
  .h-guides { grid-template-columns: 1fr 1fr; }
  .h-stats { grid-template-columns: 1fr 1fr; }
  .h-faq { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .h-hero { padding: 108px 16px 40px; }
  .h-sec { padding: 70px 16px 0; }
  .h-guides, .h-services, .h-steps { grid-template-columns: 1fr; }
  .h-stats { padding: 30px 16px 0; gap: 10px; }
  .h-stat { padding: 16px; } .h-stat .stat__num { font-size: 1.8rem; }
  .h-chip { font-size: .7rem; padding: 5px 9px 5px 5px; } .h-chip__ico { width: 22px; height: 22px; }
  .h-pane__window { max-height: 640px; padding: 14px 12px 22px; }
}
@media (max-width: 520px) {
  .h-lens { width: min(330px, 84vw); }
  .h-orbit__item { transform: rotate(var(--a)) translateY(-45cqw); }
  .h-chip { padding: 4px 9px 4px 4px; gap: 6px; }
  .h-chip__name { display: none; }          /* photo + score only; the name shows in the lens */
  .h-chip__ico { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-hero__aurora, .h-orbit, .h-chip, .h-lens__spark, .h-sparkles svg, .h-marquee__track { animation: none !important; }
  .h-lens__arc { animation: none; stroke-dashoffset: var(--h-arc-end, 60); }
}
