/* Apptakes intro film v3 — "Feedback That Leaves Itself" (46s)
   Every product visual in the film is the real thing, rebuilt from the product's own
   markup and CSS values: the Recipe Box demo page (demo/index.html), the floating
   microphone widget (widget/beta.js — 44px #12212e mic, #42b8e9 ring, ⋯ satellite,
   red #7a1622 stop state, real menu/modal/flashes), the beta notice bar, and the
   developer Sessions dashboard (app/app.css palette). No AI renditions, no generic
   record buttons.
   Layers: canvas void+trail (z2) < vignette (z3) < DOM scenes/captions (z4) < skip (z5).
*/

.at-film {
  position: fixed; inset: 0; z-index: 2147483500;
  background: #0b1713;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.at-film * { box-sizing: border-box; margin: 0; padding: 0; }

.at-film-canvas, .at-film-vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.at-film-canvas { z-index: 2; }
.at-film-vignette {
  z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(4, 10, 8, .55) 100%);
}

.at-film-dom { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

/* ---- captions (always on — they carry the story in no-sound mode) ---- */
.at-film-cap {
  position: absolute; left: 50%; bottom: max(7vh, 44px); transform: translateX(-50%);
  width: min(680px, 88vw); text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 1.4vw + 14px, 29px);
  line-height: 1.35; letter-spacing: -0.01em;
  color: #f5f4ef; text-wrap: balance;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .65), 0 0 2px rgba(0, 0, 0, .8);
  opacity: 0;
}
.at-film-cap em { font-style: italic; color: #a4c693; }

/* =========================================================
   THE REAL APP — Recipe Box, verbatim from demo/index.html
   ========================================================= */
.at-stage {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  width: min(700px, 92vw);
}
.at-stage-in { position: relative; opacity: 0; transform-origin: 50% 62%; }
.at-page {
  position: relative; overflow: hidden;
  background: #f6f4ef; color: #2b2b2b;
  border-radius: 14px;
  font: 15px/1.6 system-ui, sans-serif;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .62), 0 0 0 1px rgba(164, 198, 147, .08);
  transition: box-shadow .8s ease;
}
.at-page.alive {
  box-shadow: 0 40px 100px rgba(0, 0, 0, .62), 0 0 80px rgba(66, 184, 233, .16), 0 0 0 1px rgba(66, 184, 233, .38);
}
.at-page-head {
  background: #3d5a40; color: #fff;
  padding: 13px 18px;
  font-size: clamp(15px, 1.5vw, 19px); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.at-page-head small { font-weight: 400; opacity: .8; font-size: .72em; }
.at-page-main { padding: 13px 15px 15px; display: grid; gap: 11px; }
.at-card {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  padding: 11px 14px;
}
.at-card.sandbox { font-size: 12.5px; line-height: 1.5; color: #4a4a42; }
.at-card.sandbox b { color: #2b2b2b; }
.at-pagenav a { color: #3d5a40; font-weight: 700; text-decoration: none; margin-right: 14px; font-size: 13.5px; }
.at-card h4 { font-size: 16px; line-height: 1.3; margin-bottom: 8px; color: #2b2b2b; }
.at-input {
  width: 100%; border: 1px solid #ccc; border-radius: 8px;
  padding: 7px 9px; font-size: 13px; color: #9aa096; background: #fff;
  margin-bottom: 9px;
}
.at-btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.at-btn {
  background: #3d5a40; color: #fff; border-radius: 8px;
  padding: 8px 14px; font-weight: 700; font-size: 13px; line-height: 1.25;
  transform-origin: center; white-space: nowrap;
}
.at-btn.subtle { background: #e8e4da; color: #333; }
.at-status { color: #a33; font-weight: 700; font-size: 12.5px; min-height: 18px; margin-top: 8px; opacity: 0; }
.at-list { padding-left: 20px; font-size: 13.5px; }
.at-list li { margin: 1px 0; }
.at-tap {
  position: absolute; width: 15px; height: 15px; border-radius: 50%;
  border: 2.5px solid rgba(23, 60, 50, .5); background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; z-index: 6;
}

/* =========================================================
   THE REAL MICROPHONE — widget/beta.js, pixel-faithful
   ========================================================= */
.at-bw {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  font: 13px/1.45 system-ui, "Segoe UI", sans-serif;
  /* act-3 camera push: the frame leans toward the mic's corner while it works */
  transform-origin: calc(100% - 40px) calc(100% - 40px);
}
.at-bw-btn {
  position: absolute; right: 18px; bottom: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #12212e; color: #fff; border: 2px solid #42b8e9;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  opacity: 0;
}
.at-bw-btn.rec { background: #7a1622; border-color: #ff6b5f; animation: at-bwpulse 1.1s infinite; }
@keyframes at-bwpulse { 50% { box-shadow: 0 0 0 9px rgba(255, 107, 95, .25); } }
.at-bw-btn.scr { box-shadow: 0 0 0 3px rgba(255, 107, 95, .55), 0 4px 14px rgba(0, 0, 0, .45); }
.at-bw-more {
  position: absolute; right: 8px; bottom: 48px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #1d3343; color: #dbe7ec; border: 1px solid #42b8e9;
  font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
  opacity: 0;
}
.at-bw-tip {
  position: absolute; right: 70px; bottom: 27px;
  background: #7a1622; color: #fff; border: 1px solid #ff6b5f;
  border-radius: 999px; padding: 4px 11px;
  font: 600 12px system-ui; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  opacity: 0;
}
.at-bw-flash {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: #0f3a2a; color: #d9fbe9; border: 1px solid #3fbf86;
  border-radius: 999px; padding: 7px 14px;
  font: 600 13px system-ui; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  opacity: 0;
}
.at-bw-menu {
  position: absolute; right: 12px; bottom: 70px;
  min-width: 210px;
  background: #0c1923; color: #edf4f5;
  border: 1px solid #29404e; border-radius: 10px;
  padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0;
}
.at-bw-menu .it {
  display: block; padding: 9px 10px; border-radius: 7px;
  font-size: 13px; white-space: nowrap;
  opacity: 0; transform: translateY(6px);
}
.at-bw-menu .it.lit { background: #173042; box-shadow: inset 0 0 0 1px rgba(66, 184, 233, .55); }
.at-bw-menu .pow { padding: 6px 10px 2px; font-size: 11px; opacity: .6; }

/* the real "Leave a note" modal */
.at-bw-modal {
  position: absolute; inset: 0;
  background: rgba(4, 10, 15, .72);
  display: flex; align-items: center; justify-content: center;
  padding: 14px; opacity: 0;
}
.at-bw-card {
  background: #0c1923; color: #edf4f5;
  border: 1px solid #29404e; border-radius: 12px;
  max-width: 520px; width: 100%; padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.at-bw-card h3 { margin: 0 0 8px; font-size: 17px; color: #edf4f5; }
.at-bw-card .sub { margin: 0 0 10px; color: #b9c8d0; font-size: 13px; }
.at-bw-ta {
  width: 100%; min-height: 84px;
  background: #081218; color: #edf4f5;
  border: 1px solid #29404e; border-radius: 8px;
  padding: 9px; font: 13px/1.5 system-ui;
  margin-bottom: 10px;
}
.at-bw-ta .caret {
  display: inline-block; width: 7px; height: 13px; margin-left: 1px;
  background: #7cc4ff; vertical-align: -2px; animation: at-blink 1s steps(2) infinite;
}
.at-bw-row { display: flex; gap: 8px; justify-content: flex-end; }
.at-bw-ghost { background: none; border: 1px solid #29404e; color: #b9c8d0; padding: 9px 14px; border-radius: 8px; font-size: 13px; }
.at-bw-primary { background: #1c6ea8; border: 0; color: #fff; padding: 9px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; transform-origin: center; }
.at-bw-fine { font-size: 11.5px; color: #8fa4af; margin-top: 6px; }

/* =========================================================
   THE REAL BETA NOTICE BAR — widget/beta.js showBetaNotice
   ========================================================= */
.at-notice-scene {
  position: absolute; left: 50%; top: 44%;
  transform: translate(-50%, -50%);
  width: min(880px, 94vw);
  opacity: 0;
}
.at-notice-page {
  border-radius: 14px; overflow: hidden;
  background: #f6f4ef;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(164, 198, 147, .08);
}
.at-notice-bar {
  background: #102431; color: #f1f7fa;
  font: 13px/1.55 system-ui, sans-serif;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px 14px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.at-notice-bar span { max-width: 760px; }
.at-notice-bar .ok {
  flex-shrink: 0; border: 1px solid #6ea4ba; border-radius: 6px;
  padding: 6px 12px; color: #fff; background: #173a4b;
  font: 600 12px system-ui;
}
.at-notice-sheen {
  position: absolute; top: 0; bottom: 0; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(124, 196, 255, .13), transparent);
  transform: translateX(-120%);
  pointer-events: none;
}
.at-notice-ghost { padding: 0 0 14px; opacity: .5; filter: saturate(.75); }
.at-notice-ghost .at-page-head { padding: 10px 16px; font-size: 14px; }
.at-notice-ghost .at-page-main { padding: 11px 14px 2px; gap: 9px; }
.at-notice-ghost .at-card { padding: 9px 12px; }

/* =========================================================
   THE REAL DEVELOPER DASHBOARD — app/ Sessions, app.css palette
   ========================================================= */
.at-dash {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  width: min(900px, 94vw);
  background: #0a0e17; color: #e6edf3;
  border: 1px solid #1f2a3c; border-radius: 14px;
  font: 13px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .62);
  opacity: 0;
}
.at-dash-top {
  display: flex; align-items: center; gap: 18px;
  padding: 9px 16px; background: #111827; border-bottom: 1px solid #1f2a3c;
}
.at-dash-brand { color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.at-dash-nav { margin-left: auto; display: flex; gap: 4px; }
.at-dash-nav i {
  font-style: normal; color: #cbd5e1; font-size: 12px;
  padding: 5px 10px; border-radius: 8px; border: 1px solid transparent;
}
.at-dash-nav i.on { background: #1b365d; border-color: #d4af37; color: #fff; font-weight: 600; }
.at-dash-body { position: relative; padding: 13px 16px 15px; }
.at-dash-h { color: #fff; font-size: 19px; font-weight: 700; line-height: 1.2; }
.at-dash-sub { color: #94a3b8; font-size: 11px; margin: 2px 0 11px; }
.at-kpis { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 11px; }
.at-kpi { background: #111827; border: 1px solid #1f2a3c; border-radius: 10px; padding: 6px 12px 7px; opacity: 0; }
.at-kpi b { display: block; font-size: 17px; font-weight: 800; color: #fff; line-height: 1.2; }
.at-kpi span { font-size: 9px; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.at-tbl { background: #111827; border: 1px solid #1f2a3c; border-radius: 10px; overflow: hidden; opacity: 0; }
.at-tr { display: grid; grid-template-columns: 1.15fr 1.35fr .95fr .8fr .55fr .6fr .8fr; }
.at-tr > div {
  padding: 8px 10px; font-size: 11.5px; white-space: nowrap;
  border-bottom: 1px solid #1f2a3c; overflow: hidden; text-overflow: ellipsis;
}
.at-tr:last-child > div { border-bottom: 0; }
.at-tr.head > div { color: #94a3b8; font-size: 8.5px; text-transform: uppercase; font-weight: 600; letter-spacing: .05em; }
.at-tr.ghost > div { opacity: .32; }
.at-tr.hot > div { background: rgba(124, 196, 255, .06); opacity: 0; }
.at-chip0 { display: inline-block; background: #14532d; color: #86efac; border-radius: 6px; padding: 1px 7px; font-size: 10px; font-weight: 700; }
.at-chipw { display: inline-block; background: #3b2f0b; color: #fde68a; border-radius: 6px; padding: 1px 7px; font-size: 10px; font-weight: 700; }
.at-zero { display: inline-block; border-radius: 6px; padding: 1px 7px; transition: box-shadow .3s ease, background .3s ease; }
.at-zero.lit { background: #3b2f0b; color: #fde68a; box-shadow: 0 0 0 1px #d4af37; }
.at-report {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88%);
  background: #0d1220; border-left: 1px solid #1f2a3c;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .5);
  padding: 13px 15px;
  transform: translateX(103%);
}
.at-report h5 { color: #fff; font-size: 13.5px; margin-bottom: 1px; }
.at-report .who { color: #94a3b8; font-size: 10.5px; margin-bottom: 10px; }
.at-report .lbl { font-size: 9px; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.at-report .sum {
  background: #0a0e17; border: 1px solid #1f2a3c; border-radius: 8px;
  padding: 10px 11px; font-size: 11.5px; line-height: 1.55; color: #cfe0e8;
  min-height: 92px;
}
.at-report .caret {
  display: inline-block; width: 6px; height: 12px; margin-left: 2px;
  background: #7cc4ff; vertical-align: -2px; animation: at-blink 1s steps(2) infinite;
}
.at-report .n0 { margin-top: 10px; font-size: 11px; color: #94a3b8; opacity: 0; }
.at-report .n0 b { color: #fde68a; font-weight: 700; }

/* ---- final wordmark (unchanged) ---- */
.at-word {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  text-align: center; opacity: 0; white-space: nowrap;
}
.at-word-mark { display: inline-flex; align-items: center; gap: 8px; height: 92px; margin-bottom: 20px; }
.at-word-mark i { background: #3d8a68; width: 10px; height: 34px; border-radius: 5px; display: block; }
.at-word-mark i:nth-child(2) { height: 76px; }
.at-word-mark i:nth-child(3) { height: 54px; }
.at-word-name {
  font: 750 clamp(44px, 6.5vw, 84px)/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.045em; color: #f5f4ef;
}
.at-word-tag {
  margin-top: 18px; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.1vw + 12px, 24px); font-style: italic;
  color: #a4c693; letter-spacing: 0;
}

/* ---- skip ---- */
.at-film-skip {
  position: absolute; top: max(18px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right));
  z-index: 5; pointer-events: auto; cursor: pointer;
  background: rgba(11, 23, 19, .55); color: rgba(245, 244, 239, .85);
  border: 1px solid rgba(245, 244, 239, .35); border-radius: 999px;
  padding: 10px 18px; font: 600 13.5px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: .02em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.at-film-skip:hover { background: rgba(245, 244, 239, .92); color: #173c32; border-color: transparent; }
.at-film-skip:focus-visible { outline: 3px solid #a4c693; outline-offset: 3px; }

/* ---- handoff: film dissolves into the real page ---- */
.at-page-in { animation: at-page-in 1.35s cubic-bezier(.22, .8, .3, 1) both; }
@keyframes at-page-in {
  from { opacity: 0; transform: scale(1.018) translateY(10px); }
  to { opacity: 1; transform: none; }
}
/* while the film's bars fly to the header, the real mark steps aside */
.at-flying .brand .mark { opacity: 0; }

@keyframes at-blink { 50% { opacity: 0; } }

/* ---- reduced motion: quiet static card instead of the film (kept, never chosen) ---- */
.at-film.at-static .at-film-cap,
.at-film.at-static .at-film-canvas { display: none; }

@media (max-width: 730px) {
  /* phone: the real widget owns the bottom band (mic, recording pill, ⋯ menu, sent flash all
     anchor bottom-right/bottom-centre, exactly like the product), so captions ride at the top —
     standard subtitle practice when the lower third is occupied (QA 2026-10-07). */
  .at-film-cap { top: max(8vh, 64px); bottom: auto; }
  .at-stage { top: 42%; width: min(560px, 93vw); }
  .at-card.sandbox { display: none; }              /* keep the phone frame on the story */
  /* squeeze the real page a little so top captions and the bottom widget both have room */
  .at-page-head { padding: 10px 14px; }
  .at-page-main { padding: 11px 13px 13px; gap: 9px; }
  .at-card { padding: 9px 12px; }
  .at-card h4 { font-size: 15px; margin-bottom: 6px; }
  .at-input { padding: 6px 8px; margin-bottom: 7px; }
  .at-status { min-height: 14px; margin-top: 6px; }
  .at-list { font-size: 12.5px; }
  .at-notice-scene { top: 42%; }
  .at-notice-ghost { display: none; }
  .at-notice-bar { font-size: 11.5px; padding: 10px 12px; text-align: left; justify-content: flex-start; }
  .at-dash { top: 44%; }
  .at-dash-nav i { padding: 4px 7px; font-size: 11px; }
  .at-dash-sub { display: none; }
  .at-tr { grid-template-columns: 1.15fr .95fr .75fr .55fr .6fr; }
  .at-tr > div.c-app, .at-tr > div.c-span, .at-tr > div.c-score { display: none; }
  .at-report { width: 92%; }
  .at-bw-menu { right: 10px; }
  .at-word-mark { height: 66px; gap: 6px; margin-bottom: 14px; }
  .at-word-mark i { width: 8px; height: 26px; }
  .at-word-mark i:nth-child(2) { height: 56px; }
  .at-word-mark i:nth-child(3) { height: 40px; }
}
