/* Viral Reel Analyzer (src/analyzer): the Step Sequencer look. Tokens from /brand/tokens.css, base from /cvv.css. */
.az-hero { padding-bottom: 12px; }
.az-hero + .section { padding-top: 8px; }
.az-hero--tool { padding-bottom: clamp(40px, 6vw, 72px); }
.az-form { margin-top: var(--space-6, 28px); background: var(--machine); color: var(--machine-ink); border-radius: 8px; padding: 20px; display: grid; gap: 10px; max-width: 860px; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(20,21,23,.18); }
.az-form .silk { color: var(--machine-ink-2); }
.az-form .fine { color: var(--machine-ink-3); margin-top: 0; max-width: none; }
.az-form .fine a { color: var(--machine-focus); }
.az-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.az-form input[type=url], .az-form input[type=email], .az-form textarea { width: 100%; min-height: 52px; border-radius: 4px; border: 1px solid #3a3c40; background: var(--machine-2); color: var(--machine-ink); padding: 12px 14px; font: 500 1rem/1.4 var(--font-body); }
.az-form textarea { min-height: 110px; resize: vertical; }
.az-form input:focus-visible, .az-form textarea:focus-visible { outline: 2px solid var(--machine-focus); outline-offset: 2px; }
.az-form--stack { max-width: 640px; }
.az-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.az-msg { border-left: 4px solid var(--led); background: rgba(255,90,60,.12); color: inherit; padding: 10px 12px; border-radius: 0 4px 4px 0; font-weight: 600; }
.az-hero > .az-msg { color: var(--ink); max-width: 860px; margin-top: 16px; }
.az-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.az-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.az-card .readout { font-size: 1.1rem; }
.az-card h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.az-card p { color: var(--ink-2); margin: 0; }
.az-how ol { display: grid; gap: 10px; padding-left: 22px; max-width: 68ch; line-height: 1.55; }
.az-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* the sequencer strip */
.az-machine { background: var(--machine); color: var(--machine-ink); border-radius: 8px; padding: 18px 18px 14px; min-width: 0; }
.az-readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.az-ro { background: var(--machine-2); border-radius: 4px; padding: 10px 12px; display: grid; gap: 6px; min-width: 0; }
.az-ro .silk { color: var(--machine-ink-3); font-size: .72rem; }
.az-ro .readout { font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); white-space: nowrap; }
.az-seq { position: relative; padding-bottom: 26px; }
.az-seq--mini { padding-bottom: 0; }
.az-keys { display: grid; gap: 3px; height: 72px; }
.az-seq--mini .az-keys { height: 18px; gap: 2px; }
.az-key { background: var(--k); border-radius: 3px; color: #141517; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 4px 5px; min-width: 0; overflow: hidden; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.az-key-n { font: 800 .95rem/1 var(--font-readout); }
.az-key-s { font: 600 .68rem/1 var(--font-body); white-space: nowrap; opacity: .85; }
.az-ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; border-top: 1px solid #3a3c40; }
.az-ruler span { position: absolute; top: 4px; transform: translateX(-50%); font: 800 15px/1 var(--font-readout); color: var(--led); }
.az-ruler span:first-child { transform: none; }
.az-ruler .az-end { transform: translateX(-100%); color: var(--machine-ink-2); }
.az-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: .82rem; color: var(--machine-ink-2); }
.az-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* result layout */
.az-result { display: grid; gap: 16px; }
.az-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 16px; align-items: start; }
.az-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.az-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px; min-width: 0; }
.az-panel h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 4px 0 10px; }
.az-panel p { max-width: 68ch; }
.az-quote { font: 600 1.15rem/1.45 var(--font-body); border-left: 4px solid var(--role-talk); padding-left: 12px; }
.az-none { color: var(--ink-3); font-weight: 500; }
.az-why { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.az-why li { position: relative; padding-left: 22px; line-height: 1.5; }
.az-why li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--led); box-shadow: 0 0 6px rgba(255,90,60,.6); }
.az-facts { padding-left: 18px; display: grid; gap: 6px; line-height: 1.5; margin: 0; }
.az-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.az-table table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .95rem; }
.az-table th { text-align: left; font: 800 .75rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 8px 8px 10px; border-bottom: 1px solid var(--line-strong); }
.az-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.az-t { white-space: nowrap; font-variant-numeric: tabular-nums; }
.az-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; white-space: nowrap; }
.az-chip::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--k); }
.az-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.az-verdict > .readout { font-size: 2.2rem; background: var(--machine); padding: 12px 14px; border-radius: 4px; }
.az-verdict--blocked > .readout { color: #FF7A6B; }
.az-verdict ul { padding-left: 18px; display: grid; gap: 6px; }
.az-cta { border-radius: 8px; text-align: left; }
.az-cta h2 { margin-bottom: 10px; }
.az-cta .lede { margin-bottom: 20px; }
.az-legal { font-size: .85rem; color: var(--ink-3); max-width: 80ch; }

/* official embed, loaded on tap */
.az-embed { position: relative; width: 100%; background: var(--machine); border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.az-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.az-play { appearance: none; border: 0; background: transparent; color: var(--machine-ink); font: 800 1rem/1.3 var(--font-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; display: grid; justify-items: center; gap: 14px; padding: 20px; }
.az-play:focus-visible { outline: 2px solid var(--machine-focus); outline-offset: -6px; }
.az-play-i { width: 64px; height: 64px; border-radius: 50%; background: var(--led); position: relative; box-shadow: 0 0 24px rgba(255,90,60,.45); }
.az-play-i::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.az-embed-note { position: absolute; bottom: 10px; left: 12px; right: 12px; margin: 0; font-size: .75rem; color: var(--machine-ink-3); text-align: center; }
.az-wait { text-align: left; }
.az-leds { display: flex; gap: 8px; margin-bottom: 12px; }
.az-leds i { width: 12px; height: 12px; border-radius: 50%; background: var(--led-off); animation: az-chase 1.2s infinite; }
.az-leds i:nth-child(2) { animation-delay: .2s; } .az-leds i:nth-child(3) { animation-delay: .4s; } .az-leds i:nth-child(4) { animation-delay: .6s; } .az-leds i:nth-child(5) { animation-delay: .8s; }
@keyframes az-chase { 0%, 60%, 100% { background: var(--led-off); } 20% { background: var(--led); box-shadow: 0 0 8px var(--led); } }
@media (prefers-reduced-motion: reduce) { .az-leds i { animation: none; background: var(--led); } }

/* hub */
.az-cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.az-tile { display: grid; gap: 10px; padding: 16px; border-radius: 6px; background: var(--machine); color: var(--machine-ink); text-decoration: none; height: 100%; }
.az-tile:hover { outline: 2px solid var(--primary); }
.az-tile .silk { color: var(--machine-ink-2); }
.az-tile-meta { color: var(--machine-ink-2); font-size: .9rem; }
.az-tile-meta .readout { font-size: 1.05rem; margin-right: 6px; }
.az-tile-hook { color: var(--machine-ink); font-size: .92rem; line-height: 1.4; }
.az-pages { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

@media (max-width: 860px) {
  .az-top, .az-cols { grid-template-columns: minmax(0, 1fr); }
  .az-side { max-width: 320px; width: 100%; justify-self: center; }
  /* Before the tap the player is a compact key, not a tall empty screen. */
  .az-embed:not(.is-on) { aspect-ratio: auto !important; min-height: 150px; }
  .az-embed:not(.is-on) .az-embed-note { position: static; padding: 0 12px 12px; }
}
@media (max-width: 560px) {
  .az-row { grid-template-columns: minmax(0, 1fr); }
  .az-row .btn { width: 100%; }
  .az-form { padding: 16px; }
  .az-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .az-keys { height: 60px; }
  .az-key-s { display: none; }
  .az-verdict { grid-template-columns: minmax(0, 1fr); }
  .az-panel { padding: 16px; }
}
