/* Recenze videa · Aibility brand (tokens from aibility-brand kit, 29. 9. 2026) */
:root {
  --cream: #F9F6F3; --purple-frame: #6712F5; --night: #1B1B1B;
  --paper-2: #F7F5F2; --paper-3: #EFEBE5;
  --ink: #1B1B1B; --ink-2: #494846; --ink-3: #6D6B69;
  --purple: #5938B7; --purple-hover: #4A2C9E; --purple-light: #A98DF6; --purple-deep: #201547; --lilac: #D9C8FF;
  --ok: #7CCB93; --sage-soft: #D4F0D4; --sage-deep: #2F6B3F; --err: #B3261E; --rec: #E5484D;
  --sh-1: 0 1px 2px rgb(27 27 27 / 0.04), 0 4px 14px rgb(27 27 27 / 0.05);
  --sh-btn: 0 10px 22px -10px rgb(89 56 183 / 0.65);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Signika", "Geist", sans-serif; --ui: "Geist", sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --col: 480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; background: #fff; }
body { margin: 0; min-height: 100vh; background: #fff; color: var(--ink); font: 400 17px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- screens ---------- */
.screen { display: none; }
/* cream frame like aibility.org: 12px from the viewport edge, radius 28 */
.screen { margin: 12px; border-radius: 28px; background: var(--cream); min-height: calc(100vh - 68px - 24px); min-height: calc(100dvh - 68px - 24px); }
.screen.is-active { display: flex; flex-direction: column; justify-content: center; animation: fade 0.4s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
body.is-filming .nav { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) 20px 64px; display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
.wrap--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.wrap--studio { grid-template-columns: auto minmax(0, 460px); justify-content: center; }
.wrap--done { max-width: 760px; }
.card { background: #fff; border-radius: 24px; box-shadow: var(--sh-1); }

/* ---------- type ---------- */
.h1 { font: 500 clamp(34px, 1.6vw + 26px, 50px)/1.06 var(--display); letter-spacing: -0.028em; }
.display { font: 500 clamp(36px, 2.6vw + 22px, 60px)/1.04 var(--display); letter-spacing: -0.03em; }
.h2 { font: 500 clamp(30px, 1vw + 24px, 38px)/1.1 var(--display); letter-spacing: -0.022em; }
.lead { font-size: clamp(18px, 0.4vw + 16px, 20px); line-height: 1.5; }
.sub { color: var(--ink-2); margin-top: -8px; }
.hint { font-size: 14px; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn { --bg: var(--purple); --fg: #fff; position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  background: var(--bg); color: var(--fg); border: 0; border-radius: 999px; cursor: pointer;
  font: 600 16px/1.2 var(--ui); white-space: nowrap; box-shadow: var(--sh-btn);
  transition: transform 0.15s var(--ease), background-color 0.15s, opacity 0.2s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn:hover { --bg: var(--purple-hover); }
.btn:active { transform: scale(0.985); }
.btn:focus-visible, .link:focus-visible, .ov-q:focus-visible, .shutter:focus-visible, .ov:focus-visible { outline: 3px solid var(--purple-light); outline-offset: 3px; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--white { --bg: #fff; --fg: var(--ink); box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.45); }
.btn--white:hover { --bg: #F4EEFF; }
.btn--ghost-dark { --bg: rgb(255 255 255 / 0.16); --fg: #fff; box-shadow: none; }
.btn--ghost-dark:hover { --bg: rgb(255 255 255 / 0.24); }
.btn--ghost-dark::before { display: none; }
.btn[disabled] { cursor: not-allowed; box-shadow: none; --bg: #C9C3BA; }
.btn[disabled]::before { display: none; }
.link { background: none; border: 0; padding: 2px 0; color: var(--purple); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link--muted { color: var(--ink-3); font-weight: 500; }

/* ---------- form ---------- */
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 9px; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.input { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid transparent; background: var(--paper-2); font: 400 17px/1.3 var(--ui); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.input::placeholder { color: #8F8B85; }
.input:hover { background: var(--paper-3); }
.input:focus { outline: none; background: #fff; border-color: var(--purple); box-shadow: 0 0 0 4px rgb(89 56 183 / 0.14); }
.err { display: none; font-size: 14px; color: var(--err); font-weight: 500; }
.field.is-invalid .input { border-color: var(--err); background: #fff; }
.field.is-invalid .err, .err.is-shown { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }


/* ---------- studio (video + consent) ---------- */
.media { position: relative; height: min(64vh, 600px); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: var(--night); color: #fff; box-shadow: 0 2px 6px rgb(27 27 27 / 0.06), 0 30px 60px -24px rgb(27 27 27 / 0.35); }
[data-phase="idle"] .media { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--night); display: none; }
.media__cam.is-mirror { transform: scaleX(-1); }
.media__preview { object-fit: contain !important; }
.media__off { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--ink-3); font-size: 15px; }
.media__label { font: 500 11px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-top: 6px; }
.media__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; }
.media__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--purple-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.media__time { position: absolute; z-index: 2; top: 14px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgb(0 0 0 / 0.5); font: 500 14px/1 var(--mono); }
.media__time i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.media__count { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; font: 500 120px/1 var(--display); text-shadow: 0 6px 40px rgb(0 0 0 / 0.5); pointer-events: none; }
.media__count.tick { animation: count 0.85s var(--ease) both; }
@keyframes count { from { transform: scale(1.4); opacity: 0; } 30% { opacity: 1; } to { transform: scale(0.9); opacity: 0.9; } }

[data-phase="live"] .media__cam, [data-phase="count"] .media__cam, [data-phase="recording"] .media__cam { display: block; }
[data-phase="review"] .media__preview { display: block; }
[data-phase="idle"] .media__off { display: grid; }
.studio:not([data-phase="idle"]) .media__off { display: none; }
[data-phase="recording"] .media__time { display: inline-flex; }

.panel { padding-top: 4px; }
.panel__part { display: none; gap: 18px; align-content: start; }
[data-phase="idle"] [data-show~="idle"], [data-phase="live"] [data-show~="live"], [data-phase="count"] [data-show~="count"],
[data-phase="recording"] [data-show~="recording"], [data-phase="review"] [data-show~="review"] { display: grid; animation: rise 0.4s var(--ease) both; }
.panel .sub { margin-top: -6px; }
.q-n { font-size: 15px; font-weight: 600; color: var(--purple); }
.q-text { font: 500 clamp(28px, 1.4vw + 20px, 38px)/1.12 var(--display); letter-spacing: -0.022em; text-wrap: balance; margin-top: -8px; }
.q-tip { color: var(--ink-2); }
.panel__actions { display: grid; gap: 10px; margin-top: 8px; }
.btn--soft { --bg: rgb(27 27 27 / 0.06); --fg: var(--ink); box-shadow: none; }
.btn--soft:hover { --bg: rgb(27 27 27 / 0.1); }
.btn--soft::before { display: none; }
/* questions */
.qbox { display: grid; gap: 14px; }
.qbox--white { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--sh-1); }
.qbox__title { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.qlist { list-style: none; margin: 0; padding: 0; counter-reset: q; display: grid; gap: 12px; }
.qlist li { counter-increment: q; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font: 500 19px/1.35 var(--display); letter-spacing: -0.01em; }
.qlist li::before { content: counter(q); width: 30px; height: 30px; border-radius: 50%; background: var(--lilac); color: var(--purple-deep); display: grid; place-items: center; font: 600 14px/1 var(--ui); margin-top: -2px; }

/* drop zone */
.drop { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: var(--sh-1); cursor: pointer; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.2s; }
.drop:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(27 27 27 / 0.04), 0 14px 30px -12px rgb(27 27 27 / 0.18); }
.drop:focus-visible { outline: 3px solid var(--purple-light); outline-offset: 3px; }
.drop.is-over { background: #F4EEFF; box-shadow: inset 0 0 0 2px var(--purple); transform: none; }
.drop__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--lilac); display: grid; place-items: center; }
.drop__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--purple-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop__text { display: grid; gap: 2px; }
.drop__text b { font-size: 16px; font-weight: 600; }
.drop__text small { font-size: 14px; color: var(--ink-3); }
.drop__text u { color: var(--purple); font-weight: 600; text-underline-offset: 3px; }
.drop__coarse { display: none; }
@media (pointer: coarse), (max-width: 760px) { .drop__fine { display: none; } .drop__coarse { display: inline; } }

/* phone overlay controls: hidden on desktop */
.ov, .ov-bottom { display: none; }
.ov { position: absolute; z-index: 4; top: calc(14px + env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(0 0 0 / 0.42); place-items: center; cursor: pointer; }
.ov svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ov--close { left: 14px; }
.ov--flip { right: 14px; }
.ov-bottom { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: center; gap: 18px; padding: 48px 16px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgb(0 0 0 / 0.55)); }
.ov-q { width: 100%; display: grid; gap: 4px; justify-items: center; padding: 14px 18px; border: 0; border-radius: 18px; background: rgb(255 255 255 / 0.95); color: var(--ink); cursor: pointer; text-align: center; }
.ov-q span { font: 500 21px/1.25 var(--display); letter-spacing: -0.01em; }
.ov-q small { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 5px solid rgb(255 255 255 / 0.92); background: transparent; padding: 0; display: grid; place-items: center; cursor: pointer; }
.shutter i { width: 56px; height: 56px; border-radius: 50%; background: var(--rec); transition: all 0.3s var(--ease); }
[data-phase="recording"] .shutter i { width: 26px; height: 26px; border-radius: 7px; }
.shutter[disabled] { opacity: 0.5; }

/* upload + consent */
.up { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; }
.up__row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.up__row span:last-child { font: 500 14px/1.5 var(--mono); color: var(--ink-2); }
.up__bar { height: 8px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.up__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--purple); transition: width 0.4s var(--ease); }
.up.is-done .up__bar i { background: var(--ok); }
.up.is-warn .up__bar i { background: #E3B341; }
.up__meta { font-size: 14px; color: var(--ink-3); }
.consent { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 16px; border-radius: 16px; background: #fff; font-size: 15px; line-height: 1.5; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #A9A39A; background: #fff; transition: background-color 0.2s, border-color 0.2s; }
.consent input:checked + .consent__box { background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--purple); }
.consent input:focus-visible + .consent__box { outline: 3px solid var(--purple-light); outline-offset: 2px; }

.done .btn { margin-top: 8px; text-decoration: none; white-space: normal; text-align: center; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center; animation: pop 0.6s var(--ease) 0.1s both; }
.done-mark svg { width: 30px; height: 30px; fill: none; stroke: var(--sage-deep); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.done .sub { margin-top: 0; }

@media (max-width: 760px) {
  .bar-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--paper-3); }
  .screen { margin: 8px; border-radius: 22px; min-height: calc(100vh - 68px - 16px); min-height: calc(100dvh - 68px - 16px); }
  .screen.is-active { justify-content: flex-start; }
  .wrap { padding: 24px 16px 32px; }
  .wrap--split, .wrap--studio { grid-template-columns: 1fr; gap: 24px; }
  .media { height: auto; width: min(100%, 300px); justify-self: center; }
  [data-phase="idle"] .media { display: none; }
  /* camera takes the whole screen while filming */
  [data-phase="live"] .media, [data-phase="count"] .media, [data-phase="recording"] .media {
    position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
  [data-phase="live"] .ov, [data-phase="count"] .ov, [data-phase="recording"] .ov { display: grid; }
  [data-phase="live"] .ov-bottom, [data-phase="count"] .ov-bottom, [data-phase="recording"] .ov-bottom { display: flex; }
  [data-phase="recording"] .ov--flip, [data-phase="recording"] .ov--close { display: none; }
  [data-phase="live"] .panel, [data-phase="count"] .panel, [data-phase="recording"] .panel { display: none; }
  .media__time { top: calc(20px + env(safe-area-inset-top)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- step 1 ---------- */
.intro { display: grid; gap: 18px; }
.intro .sub { margin-top: -6px; }
.intro .qbox { margin-top: 12px; }
.formcard { display: grid; gap: 18px; padding: clamp(20px, 2.4vw, 28px); }
@media (max-width: 760px) {
  .intro .qbox { margin-top: 4px; }
  .formcard { padding: 20px 18px 24px; margin-bottom: 72px; }
  [data-phase="review"] .media { width: min(58%, 230px); }
}

/* ---------- web look (aibility.org/webinare/skoleni-nestaci) ---------- */
.screen--purple { background: var(--purple-frame); color: #fff; }

/* step 1: purple hero, white form card right */
.hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); grid-template-areas: "copy form"; column-gap: clamp(32px, 5vw, 80px); row-gap: 36px; align-items: center; align-content: center; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero__copy { grid-area: copy; align-self: center; display: grid; justify-items: start; }
.hero__qs { grid-area: qs; align-self: start; display: grid; gap: 14px; }
.hero .formcard { grid-area: form; }
.chip { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--purple-frame); font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.display { color: #fff; max-width: 13em; }
.hero__sub { margin-top: 18px; font-size: clamp(18px, 0.35vw + 16.5px, 21px); line-height: 1.55; color: rgb(255 255 255 / 0.88); }
.wr-card { background: #fff; color: var(--ink); border-radius: 26px; padding: clamp(22px, 2.6vw, 34px); box-shadow: 0 30px 80px -20px rgb(27 27 27 / 0.35), 0 8px 24px -8px rgb(27 27 27 / 0.18); }
.formcard { display: grid; gap: 16px; }

/* questions */
.qhead { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.qbox { display: grid; gap: 14px; background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--sh-1); }
.screen--purple .qhead { color: rgb(255 255 255 / 0.78); }
.qlist--on-purple li { color: #fff; }
.qlist--on-purple li::before { background: rgb(255 255 255 / 0.16); color: #fff; }

/* finish */
.screen--purple .done { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 24px 0; }
.screen--purple .h2 { font-size: clamp(38px, 2.4vw + 26px, 60px); line-height: 1.04; letter-spacing: -0.028em; }
.screen--purple .done .sub { color: rgb(255 255 255 / 0.88); font-size: 19px; }
.screen--purple .done-mark { width: 72px; height: 72px; background: #fff; }
.screen--purple .done-mark svg { stroke: var(--purple-frame); }
.screen--purple .done .btn { margin-top: 12px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "form"; row-gap: 24px; align-content: start; padding-top: 28px; padding-bottom: 32px; }
  .hero__copy { align-self: start; }
  .screen--purple.is-active { justify-content: flex-start; }
  [data-screen="done"].is-active { justify-content: center; }
  .wr-card { padding: 22px 18px; }
  .bar-actions { position: static; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- step 2 on white ---------- */
[data-screen="2"] { background: #fff; }
.media__sample { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.5%, -1%); } }
[data-phase="idle"] .media__off { place-content: stretch; padding: 0; }


.brief { display: grid; gap: 10px; }
.qlist--sm { gap: 8px; }
.qlist--sm li { grid-template-columns: 24px 1fr; gap: 10px; font: 500 17px/1.35 var(--ui); letter-spacing: 0; }
.qlist--sm li::before { width: 24px; height: 24px; font-size: 12px; margin-top: 0; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tips li { position: relative; padding-left: 34px; font-size: 16px; color: var(--ink-2); }
.tips li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232F6B3F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/16px no-repeat; }
[data-screen="2"] .panel__part[data-show~="idle"] { gap: 22px; }

/* upload on cream */
.drop { background: var(--cream); box-shadow: none; }
.drop:hover { background: var(--paper-2); box-shadow: none; transform: none; }
.drop__icon { background: #fff; }

/* sample: recording overlay so it reads as filming */
[data-phase="idle"] .media__off::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(0 0 0 / 0.28), transparent 22%, transparent 70%, rgb(0 0 0 / 0.45)); }
.vf { position: absolute; inset: 18px; z-index: 2; pointer-events: none; }
.vf i { position: absolute; width: 26px; height: 26px; border: 2.5px solid rgb(255 255 255 / 0.9); }
.vf i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.vf i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.rec-badge { position: absolute; z-index: 3; top: 30px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgb(0 0 0 / 0.5); color: #fff; font: 500 13px/1 var(--mono); letter-spacing: 0.06em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rec-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.2s ease-in-out infinite; }
.demo-shutter { position: absolute; z-index: 3; left: 50%; bottom: 34px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; border: 4px solid rgb(255 255 255 / 0.92); display: grid; place-items: center; }
.demo-shutter i { width: 24px; height: 24px; border-radius: 6px; background: var(--rec); }

/* video card: one deep shadow in every phase */
.media, [data-phase="idle"] .media { box-shadow: none; }
.media-wrap { justify-self: center; border-radius: 24px; box-shadow: 0 2px 4px rgb(27 27 27 / 0.06), 0 18px 36px -12px rgb(27 27 27 / 0.22), 0 50px 100px -30px rgb(27 27 27 / 0.45); }
@media (max-width: 760px) {
  .media-wrap { width: min(100%, 300px); }
  [data-phase="idle"] .media-wrap { display: none; }
  [data-phase="live"] .media-wrap, [data-phase="count"] .media-wrap, [data-phase="recording"] .media-wrap { box-shadow: none; }
  [data-phase="review"] .media-wrap { width: min(58%, 230px); }
  .media-wrap .media, [data-phase="review"] .media-wrap .media { width: 100%; }
}

/* step 2: plain words, cream where things happen */
.lead-p { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin-top: -6px; }
.note { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink-2); }
.note::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232F6B3F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.up, .consent { background: var(--cream); }
.panel .h2 + .lead-p { margin-top: -8px; }

/* header from aibility.org needs these two button sizes */
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 15px; }
.btn--ghost { --bg: rgb(27 27 27 / 0.05); --fg: var(--ink); box-shadow: none; }
.btn--ghost:hover { --bg: rgb(27 27 27 / 0.1); }
.btn--ghost::before { display: none; }
.panel > .back { justify-self: start; margin-bottom: 18px; }
.panel { display: grid; }
.nav a { color: inherit; text-decoration: none; }
.nav a.btn, .mobile-menu a.btn { color: var(--fg); }
.back { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 8px; border: 0; border-radius: 999px; background: rgb(27 27 27 / 0.06); font: 600 15px/1 var(--ui); color: var(--ink); cursor: pointer; transition: background-color 0.15s; }
.back:hover { background: rgb(27 27 27 / 0.1); }
.back:focus-visible { outline: 3px solid var(--purple-light); outline-offset: 3px; }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
