/* ============================================================
   OurSight — home page (product-led rebuild, 2026-10).
   Everything is prefixed h- so it cannot collide with styles.css;
   colours come from tokens.css so light/dark both follow the toggle.
   ============================================================ */

.h-wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--gutter); }
.h-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.h-check { flex: none; width: 19px; height: 19px; color: var(--primary); margin-top: 2px; }

/* ---------- Hero: the product first, one consolidated line under it ---------- */
.h-hero { padding: calc(var(--header-h, 72px) + 28px) 0 0; }
.h-shot { margin: 0 auto; max-width: 1180px; padding: 0 20px; position: relative; }
/* Height-bound so the headline and CTA stay inside a 1440x900 first screen. */
/* The hero film room: two live app windows laid out like the App Store composite (library behind, a game
   being tagged in front). Height-capped like the image it replaced so the headline stays in the first screen. */
.h-film { position: relative; aspect-ratio: 2112 / 1291; width: min(100%, calc(min(66vh, 680px) * 2112 / 1291)); margin-inline: auto; }
.h-win { position: absolute; width: 61.4%; height: 75.1%; border-radius: 14px; overflow: hidden; background: #0b0f12;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 60px -28px rgba(0,0,0,.55); }
.h-win--back { left: 1.5%; top: 1.9%; }
.h-win--front { left: 37.1%; top: 22%; }
@media (max-width: 700px) {
  .h-film { aspect-ratio: 1297 / 970; width: 100%; }
  .h-win--back { display: none; }
  .h-win--front { inset: 0; width: 100%; height: 100%; border-radius: 12px; }
}
.h-bar .h-eyebrow { margin-bottom: 14px; }
/* One column: headline, then the CTA row directly under it (the reducer sits beside the buttons). */
.h-bar { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
.h-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; color: var(--text-strong); margin: 0; }
.h-hero h1 .ink { color: var(--primary); }
.h-hero .h-lead { font-size: 1.1rem; color: var(--text-body); margin: 12px 0 0; max-width: 52ch; }
.h-bar-cta { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.h-ctas { display: flex; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.h-fine { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Tour: a pinned phone that changes page as you scroll ---------- */
.h-tour { background: var(--bg-stage); color: #fff; padding: 120px 0 40px; margin-top: 72px; }
.h-tour .h-eyebrow { color: var(--blue-400); }
.h-tour h2 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; color: #fff; margin-top: 14px; }
.h-tour .h-head p { font-size: 1.125rem; color: var(--muted-dark); margin-top: 16px; }
.h-tour-grid { display: grid; grid-template-columns: 1fr 400px; gap: 80px; margin-top: 40px; }
.h-steps { padding-bottom: 30vh; }
.h-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
  border-left: 2px solid rgba(255,255,255,.08); padding-left: 28px; transition: border-color .35s; }
.h-step.is-on { border-left-color: var(--blue-400); }
.h-step h3 { color: var(--muted-dark); transition: color .35s; }
.h-step.is-on h3 { color: #fff; }
.h-page { display: inline-flex; font-family: var(--font-mono); font-size: 12.5px; color: var(--blue-400);
  background: rgba(91,139,247,.12); border: 1px solid rgba(91,139,247,.25); padding: 5px 10px; border-radius: var(--r-md); align-self: flex-start; }
.h-step h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; margin-top: 18px; max-width: 18ch; }
.h-step p { font-size: 1.0625rem; color: var(--muted-dark); margin-top: 14px; max-width: 46ch; }
.h-step ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.h-step li { display: flex; gap: 10px; font-size: .97rem; color: #e4e7ee; }
.h-step li .h-check { color: var(--blue-400); }
.h-step .h-inline { display: none; }
.h-stage { position: sticky; top: 96px; height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; }
/* The screen takes the screenshots' own shape (720x1564) and shows them whole: no side crop, nothing
   under the rounded corners. Width follows the viewport height so the phone never spills out of the stage. */
.h-phone { position: relative; width: min(330px, calc((100vh - 170px) / 2.175 + 24px)); border-radius: 48px; background: #05070b; padding: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.6); }
.h-screen { position: relative; width: 100%; aspect-ratio: 390 / 848; border-radius: 30px; overflow: hidden; background: #0e1117; }
.h-screen .h-scr { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.h-screen .h-scr.is-on { opacity: 1; }
.h-dots { position: absolute; right: -34px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.h-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .3s, transform .3s; }
.h-dots i.is-on { background: var(--blue-400); transform: scale(1.4); }

/* ---------- Generic section ---------- */
.h-section { padding: 120px 0; }
.h-section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.h-head { max-width: 740px; }
.h-head--center { margin-inline: auto; text-align: center; }
.h-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; color: var(--text-strong); margin-top: 12px; }
.h-head p { font-size: 1.125rem; color: var(--text-body); margin-top: 16px; }

/* roles */
.h-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.h-role { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; background: var(--surface); }
.h-role .h-ic { width: 44px; height: 44px; border-radius: var(--r-lg); background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; }
.h-role .h-ic svg { width: 22px; height: 22px; }
.h-role h3 { font-size: 1.2rem; margin-top: 16px; letter-spacing: -.01em; color: var(--text-strong); }
.h-role p { font-size: .95rem; color: var(--text-body); margin-top: 6px; }

/* capture */
.h-capture { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.h-capture .h-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.h-capture .h-img img { width: 100%; height: 100%; object-fit: cover; }
.h-three { margin-top: 30px; border-top: 1px solid var(--border); }
.h-three > div { display: grid; grid-template-columns: 52px 1fr; padding: 16px 0; border-bottom: 1px solid var(--border); }
.h-three b { font-family: var(--font-mono); font-size: 13px; color: var(--primary); font-weight: 500; padding-top: 3px; }
.h-three h3 { font-size: 1.05rem; color: var(--text-strong); }
.h-three p { font-size: .95rem; color: var(--text-body); margin-top: 2px; }
.h-live { margin-top: 22px; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; }
.h-live i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-top: 7px; box-shadow: 0 0 0 4px var(--live-glow); }

/* start panel */
.h-start { padding: 0 0 110px; }
.h-panel { background: var(--bg-stage); color: #fff; border-radius: 14px; padding: 72px 64px; display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: center; position: relative; overflow: hidden; }
.h-panel > * { position: relative; }
.h-panel .h-eyebrow { color: var(--blue-400); }
.h-panel h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: .96; letter-spacing: -.045em; font-weight: 800; text-transform: uppercase; color: #fff; margin-top: 12px; }
.h-panel p { font-size: 1.125rem; color: var(--muted-dark); margin-top: 16px; }
.h-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.h-panel li { display: flex; gap: 10px; font-size: 1rem; color: #e4e7ee; }
.h-panel li .h-check { color: var(--blue-400); }

/* faq */
.h-faq { max-width: 820px; margin: 44px auto 0; }
.h-faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.h-faq summary { cursor: pointer; font-weight: 700; font-size: 1.125rem; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; color: var(--primary); font-weight: 500; font-size: 24px; line-height: 1; }
.h-faq details[open] summary::after { content: "\2013"; }
.h-faq p { color: var(--text-body); margin-top: 10px; font-size: 1rem; }

@media (max-width: 960px) {
  .h-tour-grid { grid-template-columns: 1fr; gap: 0; }
  .h-stage { display: none; }
  .h-steps { padding-bottom: 0; }
  .h-step { min-height: auto; padding: 48px 0 48px 20px; border-top: 1px solid rgba(255,255,255,.1); }
  .h-step h3 { color: #fff; }
  .h-step .h-inline { position: relative; display: block; width: min(280px, calc(100% - 16px)); aspect-ratio: 390 / 848; margin-top: 28px; border-radius: 30px; overflow: hidden; border: 8px solid #05070b; box-sizing: content-box; }
  .h-roles { grid-template-columns: 1fr 1fr; }
  .h-capture, .h-panel { grid-template-columns: 1fr; }
  .h-panel { padding: 44px 28px; }
  .h-bar { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 520px) {
  .h-roles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .h-step, .h-step h3, .h-screen .h-scr, .h-dots i { transition: none; }
}

/* tour head stays light-on-dark (must follow the generic .h-head rules) */
.h-tour .h-head h2 { color: #fff; }
.h-tour .h-head p { color: var(--muted-dark); }

/* everything else: small live page cards */
.h-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.h-mcard h3 { font-size: 1.1rem; color: var(--text-strong); margin-top: 14px; letter-spacing: -.01em; }
.h-mcard p { font-size: .95rem; color: var(--text-body); margin-top: 4px; }
.h-mscr { position: relative; aspect-ratio: 360 / 300; border-radius: 14px; overflow: hidden; background: #0b0f12;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px -26px rgba(0,0,0,.5); }
@media (max-width: 960px) { .h-more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .h-more { grid-template-columns: 1fr; } }
