/* Round lp3, hero only (2026-10-30, at the user's word): Home's hero on its own for the deck, with the board's
   underline stroke taken out of the image (assets/hero/canvas-light-noline.webp and its crop), a scribbled circle
   drawing itself around "Spring launch" after the user's scribble video, a tic-tac-toe note playing itself in place
   of the orange ladders clip after the user's tiktat video, and a dot grid after mochiboard.app's that shows only
   around the board and fades out before the copy. No stars, by day or night (2026-10-31, at the user's word:
   the star canvas and sky.js are left out of hero2.html, so the sky is its gradient alone); no Mimos, no meteors. The pills float and the title types, as on Home. Everything here is decorative and hidden from readers. */

.home-main .hp-hero-shot { position: relative; }

/* Drawing on the board (hero2.js adds the canvas on devices with a mouse or pen): it covers the board above the
   scribble and the note, takes the board's rounded corners so lines stay inside them, and shows our pen as the
   cursor, tip at (3, 29). The browser swaps the cursor at the board's edge, instantly, as Freenotes' does; a
   cursor crossed tens of times a minute gets no animation. Off the board the usual cursor is back. */
.h2-pen { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border-radius: inherit; cursor: url("/landing-preview/assets/hero/pen-cursor.svg") 3 29, crosshair; }

/* The scribble: two loose loops and an inward hook, like the video's circle, in the board's own marker blue
   (#0190f8, the colour of the underline it replaces; 3.03:1 on the board's cream #f6f5ee). Drawn in once, 1.1s,
   with three ticks that flick out at the pen's end and fade, as the video's do. Placed in % of the image so it
   stays on the title at every width; the phone crop frames the title differently, so it has its own place. */
.h2-scribble { position: absolute; z-index: 2; left: 3.6%; top: 10.4%; width: 30%; height: 13.6%; pointer-events: none; }
.h2-scribble svg { width: 100%; height: 100%; overflow: visible; }
.h2-scribble path { fill: none; stroke: #0190f8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.h2-loop { stroke-width: 3px; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.h2-ticks path { stroke-width: 2.5px; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.h2-scribble.is-on .h2-loop { animation: h2-draw 1.1s cubic-bezier(0.45, 0, 0.55, 1) forwards; }
.h2-scribble.is-on .h2-ticks path { animation: h2-tick 0.9s var(--ease-out-soft) 1s forwards; }
.h2-scribble.is-on .h2-ticks path:nth-child(2) { animation-delay: 1.06s; }
.h2-scribble.is-on .h2-ticks path:nth-child(3) { animation-delay: 1.12s; }
@keyframes h2-draw { to { stroke-dashoffset: 0; } }
@keyframes h2-tick { 0% { opacity: 1; stroke-dashoffset: 1; } 35% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
@media (max-width: 767px) { .h2-scribble { left: 2.6%; top: 1.6%; width: 45.5%; height: 16.4%; } }

/* The tic-tac-toe note, our own after the video's: a lined paper note with a strip of tape, a hand-drawn grid, and
   Mimo playing you to a draw with emoji for pieces, as the video plays egg against chicken: Mimo an orange (his
   persimmon), you a blueberry (our blue), each popping in; then a fresh game. Ink header 17.40:1 on the paper. At
   the user's word it sits top right, where the Launch plan card was; the card moved into the ladders clip's place
   in this round's image (canvas-light-swap.webp). Sized with the board (container units). Phones show the crop,
   where that corner is off the edge, so the note is left out there. */
.h2-ttt { position: absolute; z-index: 2; left: 77.2%; top: 6.5%; width: 17.6%; aspect-ratio: 0.96; container-type: inline-size; }
.h2-ttt-in {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 9cqw 10cqw 8cqw;
  background: repeating-linear-gradient(180deg, transparent 0 calc(9cqw - 1px), rgb(50 100 183 / 0.10) calc(9cqw - 1px) 9cqw) #faf9f6;
  border-radius: 2px; transform: rotate(2.5deg);
  box-shadow: 0 1px 2px rgb(18 26 42 / 0.10), 0 8px 18px -6px rgb(18 26 42 / 0.22);
}
.h2-tape { position: absolute; top: -4cqw; left: 50%; width: 30cqw; height: 9cqw; transform: translateX(-50%) rotate(-3deg); background: rgb(242 201 76 / 0.75); }
.h2-ttt-head { margin: 0 0 4cqw; font: 600 8.5cqw/1.2 var(--font-sans); color: #121a2a; white-space: nowrap; transition: opacity .2s var(--ease-out-soft); }
.h2-ttt-board { width: 62cqw; height: 62cqw; flex: none; }
.h2-grid { fill: none; stroke: #121a2a; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.h2-ttt .h2-mark { font-size: 19px; text-anchor: middle; dominant-baseline: central; transform-box: fill-box; transform-origin: center; animation: h2-pop .42s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes h2-pop { 0% { opacity: 0; transform: scale(.3) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
.h2-ttt.is-clearing .h2-marks { opacity: 0; transition: opacity .35s var(--ease-out-soft); }
@media (max-width: 767px) { .h2-ttt { display: none; } }

/* The dot grid, after mochiboard.app (read in the browser: radial-gradient dots 1.4px, soft edge to 1.6px, every
   22px, on its body, everywhere). Ours sits only around the board: a mask keeps it clear of the title, lead and
   buttons and brings it in from just below them (from 55 % of the hero's height on desktop, 64 % on tablets and
   phones, where the copy runs lower) to full by the board. Day: cobalt at 22 %, a step darker than the sky, as
   Mochiboard's dots are a step darker than its pink. Night: white at 16 % on the night sky's lower blues and pinks. */
.home-main .hp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background-image: radial-gradient(rgb(40 86 158 / 0.22) 1.4px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 55%, #000 72%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 55%, #000 72%);
}
@media (max-width: 1023px) {
  .home-main .hp-hero::after {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 64%, #000 78%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 64%, #000 78%);
  }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home-main .hp-hero::after { background-image: radial-gradient(rgb(255 255 255 / 0.16) 1.4px, transparent 1.6px); } }
:root[data-theme="dark"] .home-main .hp-hero::after { background-image: radial-gradient(rgb(255 255 255 / 0.16) 1.4px, transparent 1.6px); }

@media (prefers-reduced-motion: reduce) {
  .h2-loop, .h2-ttt .h2-mark { animation: none !important; stroke-dashoffset: 0; }
  .h2-ticks path { display: none; }
}


/* The draw (at the user's word): when the board fills with no winner, a scrim dims the paper (ink at 40 %) and a
   small popover rises in, "It's a draw" with a handshake, ink on white 17.40:1, held 2.2s before the board clears.
   0.25s in, popover up 6px and from 0.92 scale on --ease-out-soft. Reduced motion: the finished board shows it, still. */
.h2-ttt-draw { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgb(18 26 42 / 0.4); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease-out-soft); }
.h2-ttt-pop { margin: 0; padding: 4.5cqw 7cqw; border-radius: 4cqw; background: #faf9f6; color: #121a2a; font: 600 9cqw/1.2 var(--font-sans); white-space: nowrap; box-shadow: 0 6px 16px -6px rgb(18 26 42 / 0.45); transform: translateY(6px) scale(.92); transition: transform .25s var(--ease-out-soft); }
.h2-ttt.is-draw .h2-ttt-draw { opacity: 1; }
.h2-ttt.is-draw .h2-ttt-pop { transform: none; }
@media (prefers-reduced-motion: reduce) { .h2-ttt-draw, .h2-ttt-pop { transition: none; } }
