/* Homepage: looksmax demo, What-you-get slide, FAQ, final CTA, mobile sticky CTA.
   Uses only site tokens so it follows the light/dark theme. */
body:not(:has(#home.active)) .hlm-section,
body:not(:has(#home.active)) .hlm-faq,
body:not(:has(#home.active)) .hlm-final,
body:not(:has(#home.active)) .hlm-sticky { display: none !important; }

/* ---------- What-you-get slide mock ---------- */
.hlm-mock { width: 100%; max-width: 520px; display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; margin: 0 auto; }
.hlm-mock .hlm-g-wrap { position: relative; width: 132px; height: 132px; }
.hlm-g { width: 100%; height: 100%; display: block; }
.hlm-g-bg { fill: none; stroke: var(--border2); stroke-width: 10; }
.hlm-g-fg { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.hlm-g-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.hlm-g-num b { font-family: var(--font-disp, Syne, sans-serif); font-size: 34px; color: var(--text-hi); letter-spacing: -.03em; }
.hlm-g-num span { font-size: 11px; color: var(--text-md); margin-top: 3px; font-family: var(--font-mono, monospace); }
.hlm-mock-title { font-family: var(--font-disp, Syne, sans-serif); font-weight: 750; color: var(--text-hi); font-size: 1.05rem; margin: 0 0 8px; }
.hlm-mock-title em { font-style: normal; color: var(--green); }
.hlm-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; font-size: 12px; color: var(--text-md); margin-bottom: 7px; }
.hlm-row b { color: var(--text-hi); font-family: var(--font-mono, monospace); font-weight: 600; }
.hlm-bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--bg-glass2); overflow: hidden; }
.hlm-bar i { display: block; height: 100%; border-radius: 99px; }
.hlm-pot { display: inline-block; margin-top: 4px; font-size: 11.5px; color: var(--text-md); background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.28); border-radius: 999px; padding: 3px 10px; }
.hlm-pot b { color: var(--green-lt, #4ADE80); }
@media (max-width: 520px) { .hlm-mock { grid-template-columns: 1fr; justify-items: center; text-align: center; } .hlm-mock .hlm-row { text-align: left; } }
.hlm-c-best { background: #22C55E; } .hlm-c-mid { background: #EAB308; } .hlm-c-bad { background: #EF4444; }

/* ---------- demo section ---------- */
.hlm-section { max-width: 1100px; margin: 8px auto 56px; padding: 0 20px; }
.hlm-head { text-align: center; margin-bottom: 26px; }
.hlm-panel { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--r-xl, 24px); box-shadow: var(--shadow-card); overflow: hidden; }
.hlm-photo { position: relative; padding: 18px; background: var(--bg-surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 12px; justify-content: center; }
.hlm-photo-wrap { position: relative; border-radius: var(--r-lg, 18px); overflow: hidden; line-height: 0; min-height: 180px; width: 100%; max-width: 300px; background: var(--bg-glass2); }
.hlm-photo-wrap canvas { width: 100%; height: auto; display: block; }
.hlm-photo-tag { position: absolute; left: 8px; bottom: 8px; line-height: 1.2; font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font-family: var(--font-mono, monospace); }
.hlm-photo .btn-secondary { width: 100%; max-width: 300px; }
.hlm-body { padding: 24px 26px; min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.hlm-panel[data-state="loading"] .hlm-ready, .hlm-panel[data-state="error"] .hlm-ready { display: none; }
.hlm-panel[data-state="ready"] .hlm-loading, .hlm-panel[data-state="error"] .hlm-loading { display: none; }
.hlm-panel[data-state="ready"] .hlm-err, .hlm-panel[data-state="loading"] .hlm-err { display: none; }
.hlm-panel.is-busy .hlm-ready { opacity: .45; transition: opacity .2s; }
.hlm-loading, .hlm-err { color: var(--text-md); font-size: 14px; text-align: center; padding: 30px 0; }
.hlm-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--border2); border-top-color: var(--green); margin: 0 auto 12px; animation: hlm-rot .8s linear infinite; }
@keyframes hlm-rot { to { transform: rotate(360deg); } }
.hlm-top { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; }
.hlm-verdict { font-family: var(--font-disp, Syne, sans-serif); font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.7rem); letter-spacing: -.02em; color: var(--text-hi); line-height: 1.15; }
.hlm-verdict em { font-style: normal; color: var(--green); }
.hlm-lead { color: var(--text-md); font-size: 13.5px; margin: 6px 0 8px; }
.hlm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.hlm-col h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-mono, monospace); color: var(--text-md); }
.hlm-chip { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; border-radius: var(--r-md, 12px); padding: 8px 10px; margin-bottom: 6px; font-size: 12.5px; border: 1px solid; }
.hlm-chip.best { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.3); }
.hlm-chip.worst { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.3); }
.hlm-chip span { color: var(--text-hi); }
.hlm-chip small { color: var(--text-md); font-family: var(--font-mono, monospace); font-size: 11px; white-space: nowrap; }
.hlm-lock { margin-top: 12px; display: flex; gap: 10px; align-items: center; border: 1px dashed var(--border2); border-radius: var(--r-md, 12px); padding: 10px 12px; font-size: 12.5px; color: var(--text-md); }
.hlm-lock svg { flex: 0 0 auto; color: var(--gold); }
.hlm-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hlm-note { font-size: 11px; color: var(--text-lo); margin-top: 12px; }
@media (max-width: 800px) {
  .hlm-panel { grid-template-columns: 1fr; }
  .hlm-photo { border-right: 0; border-bottom: 1px solid var(--border); }
  .hlm-body { padding: 20px 16px; min-height: 0; }
  .hlm-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hlm-cols { grid-template-columns: 1fr; }
  .hlm-cta .btn-primary, .hlm-cta .btn-secondary { flex: 1 1 100%; }
}

/* ---------- FAQ ---------- */
.hlm-faq { max-width: 820px; margin: 0 auto 56px; padding: 0 20px; }
.hlm-faq h2 { text-align: center; font-family: var(--font-disp, Syne, sans-serif); font-size: clamp(1.35rem, 3vw, 1.75rem); color: var(--text-hi); margin: 0 0 20px; letter-spacing: -.02em; }
.hlm-faq details { background: var(--bg-card); border: 1px solid var(--border2); border-radius: var(--r-lg, 18px); margin-bottom: 10px; overflow: hidden; }
.hlm-faq summary { cursor: pointer; list-style: none; padding: 15px 18px; color: var(--text-hi); font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hlm-faq summary::-webkit-details-marker { display: none; }
.hlm-faq summary::after { content: '+'; color: var(--green); font-size: 20px; line-height: 1; transition: transform .2s; }
.hlm-faq details[open] summary::after { transform: rotate(45deg); }
.hlm-faq details p { margin: 0; padding: 0 18px 16px; color: var(--text-md); font-size: 13.5px; line-height: 1.6; }

/* ---------- final CTA ---------- */
.hlm-final { max-width: 1000px; margin: 0 auto 64px; padding: 0 20px; }
.hlm-final-in { text-align: center; padding: 38px 24px; border-radius: var(--r-xl, 24px); border: 1px solid rgba(34,197,94,.28); background: radial-gradient(120% 140% at 50% 0%, rgba(34,197,94,.14), transparent 60%), var(--bg-card); }
.hlm-final h2 { margin: 0 0 8px; font-family: var(--font-disp, Syne, sans-serif); font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--text-hi); letter-spacing: -.02em; }
.hlm-final p { margin: 0 auto 18px; max-width: 520px; color: var(--text-md); font-size: 14px; }
.hlm-final .hlm-cta { justify-content: center; margin-top: 0; }
.hlm-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 18px; font-size: 12px; color: var(--text-md); }
.hlm-trust span::before { content: '✓'; color: var(--green); margin-right: 6px; font-weight: 700; }

/* ---------- mobile sticky CTA ---------- */
.hlm-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; display: none; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid rgba(34,197,94,.4); border-radius: 999px; padding: 8px 8px 8px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transform: translateY(140%); transition: transform .3s ease; }
.hlm-sticky.on { transform: none; }
.hlm-sticky span { flex: 1; font-size: 13px; color: var(--text-hi); font-weight: 600; line-height: 1.2; }
.hlm-sticky .btn-primary { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
.hlm-sticky button.hlm-x { background: none; border: 0; color: var(--text-md); font-size: 18px; padding: 4px 8px; cursor: pointer; }
@media (max-width: 760px) { .hlm-sticky { display: flex; } }
@media (prefers-reduced-motion: reduce) { .hlm-g-fg, .hlm-sticky { transition: none; } .hlm-spin { animation: none; } }
