/* /cue · page styles. The stage is the one loud thing; the rest is type and hairlines. */

/* ---- hero ---- */
.hero { padding: clamp(40px, 5.5vw, 80px) 0 0; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.product { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(16px, 2.2vw, 24px); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.product svg { width: 26px; height: 26px; }
.hero-title { font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.25rem); line-height: 0.98; letter-spacing: -0.05em; font-weight: 500; } /* same as the main site's .hc-title */
.hero-r { padding-bottom: 0.5em; }
.hero-r .lede { max-width: 30em; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.drop-line { font-size: var(--fs-small); color: var(--label-2); }
@media (max-width: 860px) {
  .hero-head { grid-template-columns: 1fr; gap: 24px; }
  .hero-r { padding-bottom: 0; }
}

/* ---- stage: the real Cue export ---- */
.stage-wrap { margin-top: clamp(32px, 4.5vw, 56px); }
/* video + receipt side by side; the cap keeps video, transport and receipt inside one screen on short laptops
   (video height <= 100svh - 230px; 376px = the receipt column and the gap) */
.stage { margin: 0 auto; max-width: min(100%, calc((100svh - 230px) * 16 / 9 + 376px)); }
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: clamp(10px, 1.4vw, 18px); background: var(--ink); isolation: isolate; }
.vid { display: block; width: 100%; height: 100%; object-fit: cover; }


/* ---- sections ---- */
.sec { padding: var(--sec) 0 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* how: three steps on one hairline, each with a tiny drawing of what you'd see */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); border-top: 1px solid var(--sep-2); counter-reset: s; }
.step { padding-top: 28px; }
.step-vis { height: 132px; display: flex; flex-direction: column; justify-content: center; gap: 14px; margin-bottom: 24px; }
.step h3 { display: flex; gap: 12px; font-size: var(--fs-h3); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.step h3 .n { font-size: 13px; line-height: 1.95; font-weight: 400; color: var(--label-2); }
.step > p { padding-left: 22px; color: var(--label-2); max-width: 34ch; }
.tb { display: flex; align-items: center; gap: 10px; width: min(100%, 240px); height: 40px; padding: 0 8px 0 12px; border-radius: 10px; background: var(--bg-2); }
.tb-url { flex: 1; height: 22px; border-radius: 11px; background: #fff; }
.tb-ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.tb-ic svg { width: 20px; height: 20px; }
.count { display: flex; gap: 12px; font-size: 28px; line-height: 1; letter-spacing: -0.04em; }
.count span:nth-child(2) { color: var(--label-2); } .count span:nth-child(3) { color: var(--label-3); }
.keys kbd { display: inline-grid; place-items: center; min-width: 52px; height: 36px; padding: 0 12px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--sep-2), 0 2px 0 var(--sep-2); font-family: var(--font-mono); font-size: 14px; }
.fake-btn { align-self: flex-start; display: inline-grid; place-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; }
.saved { font-size: var(--fs-small); color: var(--label-2); }
.saved::before { content: ""; display: inline-block; width: 14px; height: 10px; margin-right: 8px; border: 1.4px solid currentColor; border-top-width: 3px; border-radius: 2px; vertical-align: -1px; }
.how-note { margin-top: clamp(32px, 4vw, 48px); padding-top: 16px; border-top: 1px solid var(--sep); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step { border-top: 1px solid var(--sep-2); padding: 24px 0 32px; }
  .step-vis { height: auto; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; margin-bottom: 20px; }
}

/* plans: a real table; Pro carries the ink */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 16px 20px 16px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--sep); }
.tbl thead th, .tbl thead td { border-top: 0; padding-bottom: 14px; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; }
.tbl tbody th { width: 22%; font-weight: 400; color: var(--label-2); }
.tbl td { width: 39%; }
.tbl .pro { padding-left: 20px; background: var(--bg-2); }
.tbl thead .pro { border-radius: 12px 12px 0 0; padding-top: 14px; }
.tbl tbody tr:last-child .pro { border-radius: 0 0 12px 12px; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 1px solid var(--sep); }
.tbl tbody tr:last-child .pro { border-bottom-color: transparent; }
.plans-note { margin-top: 18px; }
@media (max-width: 640px) {
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 14px 12px 14px 0; }
  .tbl .pro { padding-left: 12px; }
  .tbl tbody th { width: 28%; }
}

/* drop: the date in the selection box is the reason to come back */
.drop { padding-bottom: var(--sec); }
.drop-in { text-align: left; }
.drop-k { font-size: 14px; color: var(--label-2); margin-bottom: 18px; }
.drop-date { font-size: clamp(2.5rem, 0.9rem + 6.6vw, 7rem); line-height: 1; letter-spacing: -0.055em; font-weight: 600; text-wrap: balance; }
.drop-date .sel { margin-left: 0.04em; }
.drop-sub { margin-top: 28px; }
.drop-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.text-link { font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---- the receipt: what you did and what Cue did, printed as the video plays (picked 6 Nov, timeline-variants/c.html C1) ---- */
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.st-ctl { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.st-play { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; -webkit-tap-highlight-color: transparent; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.st-play:hover { background: var(--ink-2); }
.st-play:active { transform: scale(0.94); }
.st-play svg { width: 18px; height: 18px; fill: currentColor; }
.st-play:focus-visible { border-radius: 50%; }
.st-clock { flex: none; min-width: 52px; font: 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--label-2); }
/* the ruler is the slider: seconds on top, a hairline with a dot per click, a knob for the playhead */
.st-rul { position: relative; flex: 1; min-width: 0; height: 34px; cursor: ew-resize; touch-action: none; }
.st-rul::before { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--sep-2); }
.st-rul:focus-visible { outline-offset: 4px; }
.st-rul .lb { position: absolute; top: 0; font: 10px/14px var(--font-mono); color: var(--label-2); transform: translateX(-50%); }
.st-rul .lb:first-child { transform: none; }
.st-rul .tk { position: absolute; bottom: 7px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: rgba(120, 120, 128, 0.3); }
.st-dot { position: absolute; bottom: 5px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px #fff; z-index: 1; }
/* the playhead is a zero-width mark moved in px, so nothing hangs past the right edge */
.st-head { position: absolute; left: 0; top: 0; bottom: 0; width: 0; pointer-events: none; z-index: 2; will-change: transform; }
.st-head i { position: absolute; left: -6px; bottom: 2.5px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; transition: transform 380ms var(--bx-spring, var(--ease)); }
.stage.is-drag .st-head i { transform: scale(1.3); }
.st-rul:focus-visible .st-head i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

.rc { padding-top: 2px; }
.rc-h { font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; padding-bottom: 16px; }
.rc-h span { color: var(--label-2); }
/* perforations: the receipt's rules are dashed, the same dash as the Cue mark */
.rc-log { border-top: 1px dashed var(--sep-2); border-bottom: 1px dashed var(--sep-2); padding: 8px 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: -0.01em; }
/* a line prints in when the playhead reaches it (opacity + a 3px settle) */
.rc-l { position: relative; display: grid; grid-template-columns: 50px 30px minmax(0, 1fr); gap: 0 10px; padding: 6px 8px; transition: opacity 320ms var(--ease), transform 420ms var(--ease-out); }
.rc.is-live .rc-l { opacity: 0.16; transform: translateY(3px); }
.rc.is-live .rc-l.is-in { opacity: 1; transform: none; }
.rc-t, .rc-w { color: var(--label-2); font-variant-numeric: tabular-nums; }
.rc-l:not([data-cue]) .rc-s { color: var(--label-2); }
.rc-l[data-cue] .rc-w { color: var(--label); }
.rc-s { text-wrap: pretty; }
/* each edit's span on the same 0–10 s clock as the ruler, a hairline under its sentence: blue for the zoom, grey for blur */
.rc-bar { position: relative; display: block; height: 3px; margin: 6px 0 2px; border-radius: 2px; background: rgba(120, 120, 128, 0.14); }
.rc-bar b { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: rgba(29, 29, 31, 0.34); }
.rc-bar b.z { background: #2F6BFF; }
/* the Cue selection box frames the edit Cue is doing now (same build as how.css .sbox) */
.rc-box { position: absolute; inset: 0; pointer-events: none; border: 1px dashed rgba(29, 29, 31, 0.6); border-radius: 3px; opacity: 0; transition: opacity 180ms var(--ease); }
.rc-box i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.2px var(--ink); }
.rc-box i:nth-child(1) { left: -4px; top: -4px; } .rc-box i:nth-child(2) { right: -4px; top: -4px; }
.rc-box i:nth-child(3) { left: -4px; bottom: -4px; } .rc-box i:nth-child(4) { right: -4px; bottom: -4px; }
.rc-l.is-now .rc-box { opacity: 1; }
.rc-tot { margin: 14px 0 0; display: grid; gap: 4px; padding: 0 8px; font-family: var(--font-mono); font-size: 12px; }
.rc-tot div { display: flex; justify-content: space-between; }
.rc-tot dt { color: var(--label-2); }
.rc-tot dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .stage { max-width: none; }
  .st-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-l, .rc-box, .st-play, .st-head i { transition: none; }
  .rc.is-live .rc-l { transform: none; }
}

/* ---- entrances (engine: dist/entrances.css; recipes: entrance.js) ---- */
/* the Cue selection box, shown once on the Add to Chrome button as the hero's cue (opacity only) */
.cue-btn.is-ping .sel { animation: cue-ping 1300ms var(--ease, ease) both; }
@keyframes cue-ping { 0%, 100% { opacity: 0; } 22%, 68% { opacity: 1; } }
/* reduced motion: everything is simply there, no fade, no movement */
html.ent-rm .ent-u, html.ent-rm .ent-u * { opacity: 1 !important; animation: none !important; translate: none !important; scale: none !important; clip-path: none !important; }
html.ent-rm .ent-u .ew, html.ent-rm .ent-u .ewi { translate: none !important; }
@media (prefers-reduced-motion: reduce) { .cue-btn.is-ping .sel { animation: none; } }

/* "Add to Chrome" before the store listing is live (drop.js): one quiet line under the button */
.store-note { flex-basis: 100%; margin: 0; font-size: 14px; line-height: 1.4; color: var(--label-2, #6e6e73); }
.store-note:empty { display: none; }
.nd-act .store-note { margin-top: 12px; color: rgba(245, 245, 247, 0.72); }
