/* Camera-check page. Self-contained styles that sit on the site's real container
   system: every section is inside .wrap (max-width var(--maxw) = 1040px). The live
   stage mirrors the landing .mac frame (full container width, landscape 16:9,
   radius 20) so the camera and framing guide are never squished. Readings sit in a
   reflowing multi-column row BELOW the stage. Reuses shared tokens from site.css
   (--sig-*, --yellow, --ink, --muted, --faint, --hair, --e-blue). */

.cc-page { padding: 80px 0 96px; }

/* the state machine hides panels via the hidden attribute; author display rules
   (.cc-msg is flex) would otherwise override the UA's [hidden]{display:none} */
#cc [hidden] { display: none !important; }

/* hero: centered like the landing hero, text measured in ch (no bespoke box width) */
.cc-hero { text-align: center; margin: 0 0 44px; }
.cc-kicker { font-size: 14px; letter-spacing: .02em; color: var(--muted); margin: 0 0 14px; }
.cc-title { font-size: clamp(32px, 5vw, 50px); line-height: 1.06; letter-spacing: -0.022em; margin: 0 auto 18px; max-width: 20ch; }
.cc-lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--muted); margin: 0 auto; max-width: 56ch; }

/* the live check: full container width, the stage is the centerpiece */
.cc-live { margin: 0 auto; }

/* consent / warming / error live in a full-width soft panel, content centered */
.cc-msg { border: 1px solid var(--hair); border-radius: 20px; background: #fff; padding: 72px 28px 76px; text-align: center; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cc-msg h2 { font-size: clamp(22px, 3vw, 27px); margin: 0 0 12px; letter-spacing: -0.015em; }
.cc-msg p { color: var(--muted); margin: 0 auto 26px; max-width: 52ch; font-size: 17px; line-height: 1.5; }
.cc-msg .cc-fine { font-size: 13.5px; color: var(--faint); margin: 16px auto 0; }
.cc-spin { width: 36px; height: 36px; margin: 0 auto 22px; border-radius: 50%; border: 3px solid var(--hair); border-top-color: var(--yellow); animation: ccSpin 0.9s linear infinite; }
@keyframes ccSpin { to { transform: rotate(360deg); } }

/* the stage: mirrors .mac (max container width, landscape 16:9, radius 20) */
.cc-stage { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 30px 70px -40px rgba(0,0,0,0.5); }
.cc-stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cc-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cc-guide ellipse, .cc-guide path { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 2.5px; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; transition: stroke .3s ease; }
.cc-guide.ok ellipse, .cc-guide.ok path { stroke: var(--yellow); stroke-dasharray: none; }
.cc-guide-cap { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 13px; color: #fff; background: rgba(0,0,0,.55); padding: 6px 14px; border-radius: 999px; white-space: nowrap; pointer-events: none; transition: opacity .3s ease; }
.cc-guide-cap.ok { background: rgba(245,197,24,.92); color: var(--ink); font-weight: 600; }

/* the thin readout + controls bar under the stage */
.cc-underbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 16px 4px 0; }
.cc-readout { margin: 0; font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.cc-readout::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); flex: 0 0 auto; }
.cc-readout .el { color: var(--ink); font-variant-numeric: tabular-nums; }

/* readings: a reflowing multi-column row BELOW the stage */
.cc-readings { margin: 22px 0 0; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); gap: 12px; }
.cc-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 11px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 14px; background: #fff; }
.cc-row .cc-ic { width: 21px; height: 21px; color: var(--muted); }
.cc-row .cc-ic svg { width: 100%; height: 100%; }
.cc-row .cc-lab { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc-row .cc-lab b { font-weight: 550; font-size: 15px; letter-spacing: -0.01em; }
.cc-row .cc-spk { height: 13px; }
.cc-row .cc-spk svg { height: 13px; width: 38px; }
.cc-row .cc-val { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; transition: color .3s ease; white-space: nowrap; }
.cc-row .cc-val.st { font-size: 12.5px; }
.cc-row .cc-val.bad { color: #d1495b; font-weight: 600; }
.cc-row .cc-val.pop { animation: ccPop .42s cubic-bezier(.2,1.4,.4,1); color: #d1495b; }
@keyframes ccPop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.cc-row.live { border-color: rgba(209,73,91,.4); }
.cc-row.live .cc-ic, .cc-row.live .cc-lab b { color: #d1495b; }
.cc-row.cc-na { opacity: .55; }
.cc-row.cc-na .cc-val { font-size: 12px; }

/* supporting content: FAQ measure matches the site's .faq (760px); the rest breathes in .wrap */
.cc-sec { margin: 84px 0 0; }
.cc-sec h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.015em; margin: 0 0 24px; }
.cc-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px 34px; }
.cc-checks li { display: flex; gap: 12px; align-items: flex-start; }
.cc-checks li .cc-ic { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; color: var(--muted); }
.cc-checks li .cc-ic svg { width: 100%; height: 100%; }
.cc-checks li span { color: var(--muted); font-size: 16px; line-height: 1.45; }
.cc-checks li b { display: block; font-weight: 550; color: var(--ink); font-size: 17px; margin-bottom: 2px; }

.cc-privacy { margin: 40px 0 0; border: 1px solid var(--hair); border-radius: 18px; padding: 24px 26px; background: var(--w-cool, #f6f8fb); display: flex; gap: 15px; align-items: flex-start; }
.cc-privacy .cc-ic { width: 23px; height: 23px; color: var(--e-blue, #3b82f6); flex: 0 0 auto; margin-top: 2px; }
.cc-privacy .cc-ic svg { width: 100%; height: 100%; }
.cc-privacy p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.cc-privacy b { color: var(--ink); font-weight: 550; }

.cc-faq { max-width: 760px; margin: 84px 0 0; }
.cc-faq h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.015em; margin: 0 0 22px; }
.cc-faq-item { padding: 22px 0; border-top: 1px solid var(--hair); }
.cc-faq-item:first-of-type { border-top: none; }
.cc-faq-item h3 { font-size: 19px; margin: 0 0 9px; letter-spacing: -0.01em; }
.cc-faq-item p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 62ch; }

.cc-pointer { max-width: 640px; margin: 64px auto 0; text-align: center; font-size: 17px; line-height: 1.5; color: var(--muted); }
.cc-pointer a { color: var(--ink); font-weight: 550; }

@media (max-width: 620px) {
  .cc-page { padding: 52px 0 72px; }
  .cc-msg { padding: 52px 22px 56px; min-height: 260px; }
  .cc-sec, .cc-faq { margin-top: 60px; }
}
