/* home.css - Home the Format Finder way, without the slop (research/23 checklist, research/24): his latest video washed out under his
   view goal (home-hero.js), every format as a small thumbnail with its label under it, one sort row (view-templates.js draw, home).
   No gradient on this screen, no glow, no blobs, one accent (the yellow arc), headings 700 at most, body 400; the one 800 is the big
   number (Grady, 2026-11-07: "that entire screen looks like AI slop ... the gradient and the font, so thick, multiple small gradient
   buttons"). Every move is transform or opacity (selfcheck-screens.js). */
body.home-plain::after { display: none; }
html:has(body.home-plain) { background: var(--bg); }
html:has(body.home-plain)::before { display: none; }
body.home-plain .ttl { font-weight: 600; }
/* the hero (Grady, 2026-11-11, his last word that morning: "get rid of the box, make the arc bigger and put all the info below the
   arc"): the arc first and big, the goal under it, then one plain row of three numbers with hairlines between (no box), then the
   sparkline of his last posts. The sweep's cyan where the arc was yellow (home-hero.js) */
.hero { --pop: #5bc8e8; position: relative; display: grid; gap: 6px; margin: 0 calc(-1 * var(--pad)); padding: 8px var(--pad) 10px; overflow: hidden; text-align: center; }
.hero-goal { display: grid; }
.hero-stats { display: flex; justify-content: center; margin: 8px 0 0; }
.hero-stat { flex: 1 1 0; display: grid; gap: 3px; padding: 6px 4px; border-left: 1px solid var(--line); min-width: 0; }
.hero-stat:first-child { border-left: 0; }
.hero-stat b { font-family: var(--display); font-size: 1.4rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-trend { padding: 0 6px; }
.hero-spark { display: block; width: 100%; height: 36px; overflow: visible; }
.hero-spark .line { fill: none; stroke: var(--pop); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero-spark .area { fill: var(--pop); opacity: .14; }
.hero-spark circle { fill: var(--pop); }
.hero-arc { display: block; width: min(100%, 330px); height: auto; margin: 0 auto -128px; overflow: visible; }   /* bigger since 2026-11-11; the goal words and the numbers pulled up into the arc (Grady, 2026-11-12: "move all of that up a little bit so that it fits kind of inside the arc") */
.hero-arc .track { stroke: var(--ink); opacity: .14; }
.hero-arc .fill { stroke: var(--pop); }   /* the sweep's cyan since 2026-11-11 (Grady: "no bland yellow"); yellow from 11-07 evening before that */
.hero-arc text { fill: var(--muted); font-size: 11px; font-weight: 400; }
.hero-kicker { margin: 0; font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero-big { margin: 0; font-family: var(--display); font-size: clamp(3rem, 15vw, 3.6rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-of { margin: 4px auto 0; max-width: 30ch; font-size: .95rem; font-weight: 400; color: var(--muted); }
.hero [hidden] { display: none; }   /* the stat row and the kicker wait for real numbers (home-hero.js) */
/* the card under the goal that teaches what snpz does and when it works (home-chair.js; Grady, 2026-11-08 night: "educate them that
   this app will do all the shot planning, editing, and posting but it only works when you have someone who wants to do a video"; then
   "wayy too much text"): ink, four beats and nothing else (his one, lit yellow, then our three popping in turn: transform and opacity
   only, selfcheck-screens). No gradient: the arc's yellow is this screen's one accent */
.chair { display: flex; flex-direction: column; align-items: center; margin: 14px 0 0; padding: 18px 12px 16px; border-radius: 22px; background: var(--on-bg); color: var(--on-fg); text-align: center; }
.chair-strip { display: flex; align-items: flex-start; justify-content: center; gap: 4px; width: 100%; }
.chair-beat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; font-weight: 400; line-height: 1.2; color: var(--on-fg); opacity: .6; animation: chair-pop 5.4s ease-in-out infinite; }
.chair-beat.you { opacity: 1; animation: none; }
.chair-beat.b2 { animation-delay: .6s; }
.chair-beat.b3 { animation-delay: 1.8s; }
.chair-beat.b4 { animation-delay: 3s; }
.chair-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #ffffff1a; color: var(--on-fg); }
.chair-beat.you .chair-ico { background: var(--grad); color: var(--on-bg); }   /* the one sweep on Home: his part (Grady, 2026-11-08 night: the sweep subtly across the flow) */
.chair-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.chair-arrow { flex: none; color: var(--on-fg); opacity: .35; font-size: 1rem; margin-top: 14px; }
@keyframes chair-pop { 0%, 22%, 100% { transform: scale(1); opacity: .6; } 7%, 15% { transform: scale(1.12); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chair-beat { animation: none; opacity: 1; } }
/* the marks (Grady, 2026-11-08 night: "remove the sort yet. make a color system ... each video should have its own tag"): one tag pill
   on each tile, colour by tag (five colours that read on a photo; Hardest is ink; none of them the yellow accent), and a small ink
   icon before the name for what the format asks of him, named once in the legend row over the grid */
:root { --tag-trending: #e0318f; --tag-popular: #e4572e; --tag-views: #7a5af8; --tag-steady: #3b7bd9; --tag-easy: #2e9e6b; --tag-hard: #0a0a0a; --tag-need: #5b6472; }   /* --tag-need: the four requirement tags */
.tgrid.all .tile .ttag { position: absolute; top: 6px; left: 6px; z-index: 3; padding: 3px 8px 4px; border-radius: 999px; background: var(--tag-easy); color: #fff;
  font-size: .64rem; font-weight: 700; line-height: 1; letter-spacing: .01em; white-space: nowrap; pointer-events: none; }
.tgrid.all .tile .ttag.tag-trending { background: var(--tag-trending); } .tgrid.all .tile .ttag.tag-popular { background: var(--tag-popular); } .tgrid.all .tile .ttag.tag-views { background: var(--tag-views); }
.tgrid.all .tile .ttag.tag-steady { background: var(--tag-steady); } .tgrid.all .tile .ttag.tag-hard { background: var(--tag-hard); }
.tgrid.all .tile .ttag.tag-script, .tgrid.all .tile .ttag.tag-gear, .tgrid.all .tile .ttag.tag-noclient, .tgrid.all .tile .ttag.tag-long { background: var(--tag-need); }
.cico { display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; color: var(--muted); }
.cico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 16px 0 0; font-size: .76rem; font-weight: 500; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
/* every format, three across: the cover alone on the tile, the words under it */
.tgrid.all { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; margin-top: 12px; }
.tgrid.all .tile { border-radius: 10px; box-shadow: none; background: var(--line); }
.tgrid.all .tile .poster { background: var(--line); }   /* no picture yet: a flat tile, never the drawn blobs (one gradient on this screen at most) */
.tgrid.all .tile-words, .tgrid.all .tile-play { display: none; }
/* the one tile playing (tile-onscreen.js): TikTok's player sits over the stored frame and shows only once it plays (has-original) */
/* his half-filmed video: a veil on its format's tile and one button (Grady, 2026-11-10: "an overlay saying finish editing") */
/* a chip at the tile's foot, never a cover: the tile itself always starts a new video (Grady, 2026-11-15: "it wont let me start a new
   edit, it says finish editing ... make a rule that doesnt let that happen"); before that the veil filled the tile (2026-11-10) */
.tgrid.all .tile .tfinish { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4; display: flex; justify-content: center; text-decoration: none; }
.tgrid.all .tile .tfinish b { padding: 8px 12px; border-radius: 999px; background: var(--on-bg); color: var(--on-fg); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tgrid.all .tile iframe.tile-video { opacity: 0; }
.tgrid.all .tile.has-original iframe.tile-video { opacity: 1; }
.tcell { min-width: 0; }
/* every tile in three planes (the ayoships reel, 2026-11-12: "big type in the back, your subject in the middle, the buttons on top";
   Grady that morning: "make every single card like that"): the format's name huge behind on ONE line in its tag colour's field, the
   frame centred in front of the letters, the tag pill on top at the bottom left; no words under the tile. The name's size is the
   widest that fits the tile (view-templates.js fitWords writes --em, the word's width in ems), capped at the size he liked (24cqw).
   The frame nearly fills the tile under the word, a thin ring of the field round it, cropped top or bottom per frame (view-templates.js
   CROP; Grady, 2026-11-12: "scale it up so that you can just barely see the outside ring of the color behind it"); the field is each
   tile's own colour by its place (FIELDS). The Let AI decide tile is its picture alone (.pic) */
.tgrid.all .tile { background: var(--plane, var(--tag-easy)); }
.tgrid.all .tile .tword { position: absolute; left: 5cqw; top: 5cqw; z-index: 1; width: calc(100% - 10cqw); max-width: none; font-family: var(--display);
  font-size: min(24cqw, calc(90cqw / var(--em, 6))); font-weight: 900; line-height: .9; letter-spacing: -.05em; white-space: normal; overflow-wrap: normal; text-transform: uppercase; color: #fff; opacity: .94; pointer-events: none; }
.tgrid.all .tile button.tile-open { z-index: 2; }
.tgrid.all .tile .poster, .tgrid.all .tile .tile-cover { left: 5cqw; top: calc(var(--band, 14cqw) + 9cqw); width: calc(100% - 10cqw); height: calc(100% - var(--band, 14cqw) - 14cqw); object-fit: cover; object-position: center var(--crop, center); border-radius: 6px; box-shadow: 0 4px 14px #0000004d; }
.tgrid.all .tile.pic .poster, .tgrid.all .tile.pic .tile-cover { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.tgrid.all .tile .ttag { top: auto; bottom: 10px; left: 10px; background: #0a0a0a; box-shadow: 0 0 0 1px #ffffff2e; }   /* the pill on top, bottom left (Grady, 2026-11-12) */
.tgrid.all .tile.pic .ttag { top: 10px; bottom: auto; }   /* Let AI decide's picture has its own title at the bottom: the pill goes top left, off it (audit 11-14) */
.tgrid.all .tile .poster { background: #0a0a0a; }
/* one bar between his views and the grid (Grady, 2026-11-10 night: 'a bar across that says pick a template to get started') */
/* centred, the wordmark's font, the snpz sweep as the words (Grady, 2026-11-11: "center it ... use the Snips font, and give it the Snips
   gradient"): his word on the one-button gradient law for this line only */
.tstart { margin: 22px 2px 4px; text-align: center; font-family: var(--display); font-size: 1.7rem; font-weight: 900; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.tstart mark { padding: 0; border-radius: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.tstart-down { display: inline-block; margin-left: .25em; color: #5bc8e8; animation: tstart-bob 1.4s ease-in-out infinite; }
@keyframes tstart-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .tstart-down { animation: none; } }
