/* CraftSnap landing page, v3 (Phase 16). Hand-written, no build step, and it loads nothing (T-LP-02).
   Spacing is on the 8pt grid: every padding, margin and gap is a multiple of 8px. Geometry that places an overlay on a
   screenshot is in percent of the 2240 x 1360 still it belongs to (tools/launch-video/src/harvest.json). */

:root {
  color-scheme: dark;
  --bg: #0b0f19;
  --surface: #131927;
  --surface-2: #1a2133;
  --well: #0b0e16;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --ink: #f3f6fb;
  --ink-2: #aeb8c9;
  --ink-3: #8491a5;
  --emerald: #00e599;
  --cyan: #00c7fd;
  --coral: #ff8a65;
  --amber: #ffb020;
  --on-emerald: #04241a;
  --font-display: 'Outfit', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/24px var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
ul, ol { list-style: none; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--emerald); color: var(--on-emerald); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* The container and rhythm utilities the design standard names. */
.w-full { width: 100%; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-inline: auto; }
.px-4 { padding-inline: 16px; }
.py-16 { padding-block: 64px; }
.py-20 { padding-block: 64px; }
.p-6 { padding: 24px; }
.gap-6 { gap: 24px; }
.text-left { text-align: left; }
@media (min-width: 768px) {
  .md\:px-8 { padding-inline: 32px; }
  .md\:p-8 { padding: 32px; }
  .py-20 { padding-block: 80px; }
}

/* One column may not grow past the screen: an auto track takes its content's minimum width */
.hero-top, .scene-captions, .head-split, .grid-2, .flow, .ai, .plans, .refill, .faq, .closer { grid-template-columns: minmax(0, 1fr); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; }
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--emerald);
  color: var(--on-emerald);
  font-weight: 600;
}
.skip:focus { top: 16px; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(40px, 8vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
h1 span { display: block; color: var(--ink-2); }
@media (min-width: 1024px) { h1 { font-size: clamp(56px, 5.6vw, 64px); } }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.015em; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-2); text-wrap: pretty; }
.body { font-size: 15px; line-height: 24px; color: var(--ink-2); text-wrap: pretty; }
.fine { font: 400 12px/16px var(--font-mono); color: var(--ink-3); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
}
kbd {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: 500 12px/16px var(--font-mono);
  white-space: nowrap;
}
.link { color: var(--cyan); }
.link:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 14px/24px var(--font-body);
  white-space: nowrap;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-lg { height: 56px; padding: 0 24px; border-radius: 16px; font-size: 16px; }
.btn-primary { background: var(--emerald); color: var(--on-emerald); box-shadow: 0 16px 40px -16px rgba(0, 229, 153, 0.7); }
.btn-primary:hover { background: #2bf0ad; box-shadow: 0 16px 48px -12px rgba(0, 229, 153, 0.85); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }
.btn-tint { background: rgba(0, 229, 153, 0.12); border-color: rgba(0, 229, 153, 0.4); color: var(--emerald); }
.btn-tint:hover { background: rgba(0, 229, 153, 0.2); }
.btn-quiet { color: var(--ink-2); }
.btn-quiet:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Chips: one pressed member per group */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font: 500 13px/16px var(--font-body);
  white-space: nowrap;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.chip .i { width: 16px; height: 16px; }
.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.34); }
.chip.on { background: rgba(0, 229, 153, 0.12); border-color: rgba(0, 229, 153, 0.48); color: var(--emerald); }
.chip-go { background: rgba(0, 199, 253, 0.12); border-color: rgba(0, 199, 253, 0.48); color: var(--cyan); }
.chip-go:hover { background: rgba(0, 199, 253, 0.2); color: var(--cyan); border-color: var(--cyan); }
.chip-gap { width: 1px; height: 16px; margin-block: 8px; background: var(--line-2); }
@media (pointer: coarse) { .chip { height: 40px; } .chip-gap { margin-block: 8px; height: 24px; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; flex: none; font: 600 18px/24px var(--font-display); letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: none; gap: 24px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.nav a { transition: color 160ms var(--ease); }
.nav a:hover { color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.only-wide { display: none; }
@media (min-width: 640px) { .only-wide { display: inline-flex; } }
@media (min-width: 1024px) { .nav { display: flex; } }

/* Hero: a quiet grid under three soft lights, so the screenshot is the brightest thing on the page */
.hero { position: relative; padding-block: 48px 64px; overflow: clip; }
.hero::before {
  content: '';
  position: absolute;
  inset: -160px 0 auto;
  height: 1120px;
  pointer-events: none;
  background:
    radial-gradient(640px 400px at 10% 22%, rgba(0, 229, 153, 0.16), transparent 72%),
    radial-gradient(760px 480px at 90% 30%, rgba(0, 199, 253, 0.2), transparent 72%),
    radial-gradient(960px 480px at 50% 92%, rgba(255, 138, 101, 0.14), transparent 72%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 640px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 72% 88% at 30% 0, #000, transparent);
  mask-image: radial-gradient(ellipse 72% 88% at 30% 0, #000, transparent);
}
.hero > * { position: relative; z-index: 1; }
.hero-top { display: grid; gap: 24px; margin-bottom: 48px; }
.hero-title { display: grid; gap: 24px; justify-items: start; }
@media (min-width: 1024px) {
  .hero { padding-block: 64px 80px; }
  .hero-top { grid-template-columns: 8fr 4fr; gap: 24px 48px; }
  .hero-lead { align-self: end; }
  .hero-fine { align-self: center; }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(19, 25, 39, 0.8);
  color: var(--ink-2);
  font: 500 12px/16px var(--font-mono);
}
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }

/* A screenshot and the overlays placed on it share one stage */
.window {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--well);
  overflow: hidden;
  box-shadow: 0 48px 120px -32px rgba(0, 0, 0, 0.85), 0 0 120px -32px rgba(0, 199, 253, 0.35);
}
.viewport { position: relative; overflow: hidden; aspect-ratio: 2240 / 1360; background: var(--well); }
.stage { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 2240 / 1360; }
@media (max-width: 767px) {
  .viewport { aspect-ratio: 4 / 3; }
  .stage { width: 200%; left: -48%; top: -32%; }
}
.stack { position: absolute; inset: 0; }
.stack > img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 240ms var(--ease); }
.stack > img.on { opacity: 1; }

/* The hero's showcase: one scene at a time, each with its own overlay, cross-fading */
#hero-window .stage { transition: transform 900ms var(--ease), transform-origin 900ms var(--ease); }
#hero-stack > img { z-index: 0; transition: opacity 0ms linear 720ms; }
#hero-stack > img.on { z-index: 1; transition: opacity 720ms var(--ease); }
#hero-stack { transition: filter 400ms var(--ease); }
#hero-window[data-scene='pin'] #hero-stack { filter: brightness(0.72); }
#hero-window .redact, #hero-window .wipe, #hero-window .pins { z-index: 2; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 400ms var(--ease), visibility 400ms var(--ease); }
#hero-window[data-scene='redact'] .redact, #hero-window[data-scene='translate'] .wipe, #hero-window[data-scene='pin'] .pins { opacity: 1; visibility: visible; }
@media (min-width: 768px) {
  /* x 420..1820 of the still: the whole framed invoice, so a mask is 19 px tall and not 12 */
  #hero-window[data-scene='redact'] .stage { transform: scale(1.6); transform-origin: 50% 49%; }
  /* x 448..2240, y 169..1257 of the still: the guide and the whole drawer that says On This PC, under the Studio's top bar */
  #hero-window[data-scene='translate'] .stage { transform: scale(1.25); transform-origin: 100% 62%; }
}

/* What the scene is showing right now */
.scene-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(11, 15, 25, 0.86);
  color: var(--ink);
  font: 500 12px/16px var(--font-mono);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.scene-tag:empty { display: none; }
.scene-tag.done { border-color: rgba(0, 229, 153, 0.56); color: var(--emerald); }
/* In the still's empty left margin, under the Studio's top bar */
@media (min-width: 768px) { .scene-tag { top: 14%; left: 16px; height: 32px; padding: 0 16px; border-radius: 16px; } }

/* The frame's bottom edge: one caption and where the showcase is */
.scene-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line); background: var(--surface); }
@media (min-width: 768px) { .scene-bar { padding: 16px 24px; } }
/* Every caption keeps its place in one grid cell, so a change of scene never moves the page below it */
.scene-captions { display: grid; }
.scene-caption { grid-area: 1 / 1; font-size: 14px; line-height: 24px; color: var(--ink-2); opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease), visibility 240ms var(--ease); }
.scene-caption b { color: var(--ink); font-weight: 600; }
/* A phone keeps the scene's name; the cards below say the rest */
@media (max-width: 639px) { .scene-caption span { display: none; } }
#hero-window[data-scene='beautify'] [data-for='beautify'], #hero-window[data-scene='redact'] [data-for='redact'], #hero-window[data-scene='translate'] [data-for='translate'], #hero-window[data-scene='pin'] [data-for='pin'] { opacity: 1; visibility: visible; }
.scene-nav { display: flex; align-items: center; }
.scene-pause { display: flex; padding: 8px; border-radius: 8px; color: var(--ink-3); transition: color 160ms var(--ease); }
.scene-pause:hover { color: var(--ink); }
.scene-pause .i { width: 16px; height: 16px; }
.scene-pause[aria-pressed='true'] .when-playing, .scene-pause[aria-pressed='false'] .when-paused { display: none; }
.scene-dot { display: flex; padding: 8px; border-radius: 8px; }
.scene-dot span { position: relative; display: block; width: 8px; height: 8px; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, 0.24); transition: width 240ms var(--ease), background 160ms var(--ease); }
.scene-dot:hover span { background: rgba(255, 255, 255, 0.48); }
.scene-dot.on span { width: 32px; }
.scene-dot.on span::after { content: ''; position: absolute; inset: 0; background: var(--emerald); transform: scaleX(var(--p, 1)); transform-origin: left; }
@media (pointer: coarse) { .scene-dot, .scene-pause { padding-block: 16px; } }

/* Facts under the hero */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 32px; border-block: 1px solid var(--line); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact dt { font: 600 24px/32px var(--font-display); letter-spacing: -0.015em; }
.fact dd { font-size: 14px; line-height: 24px; color: var(--ink-2); }

/* Section heads stay on the left axis */
.head { display: grid; gap: 16px; justify-items: start; margin-bottom: 48px; max-width: 720px; }
.head-split { display: grid; gap: 16px; margin-bottom: 48px; }
.head-split > div { display: grid; gap: 16px; justify-items: start; }
@media (min-width: 1024px) { .head-split { grid-template-columns: 7fr 5fr; align-items: end; gap: 48px; } }

/* Cards: one recipe for every card on the page */
.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(19, 25, 39, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: border-color 200ms var(--ease);
}
.card:hover { border-color: var(--line-2); }
.grid-2 { display: grid; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.label { display: flex; align-items: center; gap: 8px; font: 500 12px/16px var(--font-mono); color: var(--ink-3); }
.label b { flex: none; color: var(--cyan); font-weight: 500; }
.label kbd { flex: none; }
.copy { display: grid; gap: 8px; justify-items: start; }
.caveat { font-size: 13px; line-height: 24px; color: var(--ink-3); }
.card > .chips { margin-top: auto; }

/* Media frames share a shape, so neighbours line up */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--well);
}
.media > video, .media > img { position: absolute; }
/* x 480..1760, y 260..1060 of the still: the framed document */
.stage.crop-doc { width: 175%; left: -37.5%; top: -32.5%; }
/* x 590..1650, y 330..992 of the still: the invoice alone */
.stage.crop-invoice { width: 211.3%; left: -55.66%; top: -49.8%; }
/* x 590..1310, y 335..785 of the still: the guide's lines, large enough to read */
.stage.crop-translate { width: 311.11%; left: -81.94%; top: -74.44%; }
.stage-still { position: absolute; inset: 0; width: 100%; height: 100%; }
/* x 380..1540, y 120..845 of the 1920 x 1080 clip: the app under the capture overlay */
.crop-loupe { max-width: none; width: 165.5%; left: -32.76%; top: -16.55%; aspect-ratio: 16 / 9; }
.film { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--well); }
.drag-slot { display: flex; justify-content: center; }

/* The before and after stills register exactly, so a clip between them reads as text changing in place */
.wipe { position: absolute; inset: 0; --x: 0%; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-user-drag: none; }
.wipe .after { clip-path: inset(0 calc(100% - var(--x)) 0 0); transition: clip-path 720ms var(--ease); }
.wipe-line {
  position: absolute;
  top: 21%;
  bottom: 23.8%;
  left: var(--x);
  width: 2px;
  transform: translateX(-50%);
  background: var(--cyan);
  box-shadow: 0 0 16px 2px rgba(0, 199, 253, 0.8);
  transition: left 720ms var(--ease), opacity 160ms var(--ease);
}
.wipe[data-state='on'] .wipe-line:not(:focus-within), .wipe[data-state='off'] .wipe-line:not(:focus-within) { opacity: 0; pointer-events: none; }
.wipe.dragging .after, .wipe.dragging .wipe-line { transition: none; }
.wipe-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cyan);
  color: #03212c;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  cursor: ew-resize;
}
/* Card 02: live layers in the still's 2240 x 1360 coordinates, so they sit on the invoice at every width. Handles and the
   dashed box follow what the Studio draws (OverlayElements.DrawHandle). The cursor and its layer travel together. */
.vector-layers { position: absolute; inset: 0; width: 100%; height: 100%; }
.file-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(11, 15, 25, 0.86);
  color: var(--ink-2);
  font: 500 12px/16px var(--font-mono);
}
.v-fill { fill: #000; transform-origin: 644px 566px; transition: transform 600ms var(--ease); }
.v-lower { transition: transform 600ms var(--ease); }
#vector-stage[data-box='wide'] .v-fill { transform: scaleY(1.964); }
#vector-stage[data-box='wide'] .v-lower { transform: translateY(27px); }
.v-handles { opacity: 0; transition: opacity 160ms var(--ease); }
.v-handles rect { fill: #fff; stroke: var(--cyan); stroke-width: 4; }
.v-handles .v-frame { fill: none; stroke-width: 3; stroke-dasharray: 12 8; }
#vector-stage[data-selected='box'] .v-box .v-handles, #vector-stage[data-selected='arrow'] .v-arrow .v-handles { opacity: 1; }
.v-arrow { color: var(--cyan); transition: color 240ms var(--ease), transform 600ms var(--ease); }
.v-line { fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; }
.v-head { fill: currentColor; stroke: currentColor; stroke-width: 4; stroke-linejoin: round; }
#vector-stage[data-arrow='moved'] .v-arrow { transform: translate(-210px, -3px); }
#vector-stage[data-color='emerald'] .v-arrow { color: var(--emerald); }
#vector-stage[data-color='amber'] .v-arrow { color: var(--amber); }
.v-step circle { fill: var(--emerald); }
.v-step text { fill: var(--on-emerald); font: 700 30px var(--font-body); }
.v-palette { opacity: 0; transition: opacity 160ms var(--ease); }
#vector-stage[data-grip='restyle'] .v-palette { opacity: 1; }
.v-cyan { fill: var(--cyan); }
.v-emerald { fill: var(--emerald); }
.v-amber { fill: var(--amber); }
.v-cursor { fill: #fff; stroke: #0b0f19; stroke-width: 3; stroke-linejoin: round; opacity: 0; transform: translate(1700px, 1100px); transition: transform 600ms var(--ease), opacity 160ms var(--ease); }
#vector-stage[data-grip] .v-cursor { opacity: 1; }
#vector-stage[data-grip='move'] .v-cursor { transform: translate(1351px, 512px); }
#vector-stage[data-grip='move'][data-arrow='moved'] .v-cursor { transform: translate(1141px, 509px); }
#vector-stage[data-grip='resize'] .v-cursor { transform: translate(894px, 594px); }
#vector-stage[data-grip='resize'][data-box='wide'] .v-cursor { transform: translate(894px, 621px); }
#vector-stage[data-grip='restyle'][data-next='cyan'] .v-cursor { transform: translate(1456px, 424px); }
#vector-stage[data-grip='restyle'][data-next='emerald'] .v-cursor { transform: translate(1500px, 424px); }
#vector-stage[data-grip='restyle'][data-next='amber'] .v-cursor { transform: translate(1544px, 424px); }

/* Redaction: masks are painted from the still's own pixels */
.redact { position: absolute; inset: 0; }
.redact canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.snap { position: absolute; border-radius: 4px; transition: background 120ms var(--ease), box-shadow 120ms var(--ease); }
.snap:hover, .snap:focus-visible { background: rgba(0, 199, 253, 0.2); box-shadow: 0 0 0 2px var(--cyan); outline: 0; }
.snap-email { left: 28.75%; top: 41.76%; width: 11.07%; height: 1.76%; }
.snap-phone { left: 28.75%; top: 43.75%; width: 6.16%; height: 1.76%; }
.snap-card { left: 51.03%; top: 41.76%; width: 7.72%; height: 1.76%; }
.snap-name { left: 28.75%; top: 39.71%; width: 4.29%; height: 1.84%; }

/* Pins rise into place one after the other */
.pins { position: absolute; inset: 0; }
.pin {
  position: absolute;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 64px -8px rgba(0, 0, 0, 0.8);
  background: var(--surface);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 400ms var(--ease), transform 720ms var(--ease);
}
#hero-window[data-scene='pin'] .pin { opacity: 1; transform: none; }
#hero-window[data-scene='pin'] .pin-prefs { transition-delay: 240ms; }
.pin-chart { left: 58%; top: 16%; width: 26%; }
.pin-prefs { left: 8%; top: 28%; width: 22%; }
@media (max-width: 767px) {
  .pin-chart { left: 46%; top: 24%; }
  .pin-prefs { left: 26%; top: 44%; }
}

/* Search: launcher stills of different heights hang from the top */
.search-stack { position: absolute; inset: 16px 8px auto; aspect-ratio: 2013 / 1263; }
.search-stack > img { position: absolute; inset: 0 0 auto; width: 100%; height: auto; opacity: 0; transition: opacity 200ms var(--ease); }
.search-stack > img.on { opacity: 1; }

/* Hand-off demo: drag the thumbnail into the chat */
.drag-demo { display: grid; grid-template-columns: 4fr 5fr; align-items: center; gap: 8px; padding: 8px; min-height: 320px; }
@media (min-width: 768px) { .drag-demo { min-height: 0; } }
.drag-thumb {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 200px;
  justify-self: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 240ms var(--ease), opacity 200ms var(--ease);
}
.drag-thumb.dragging { cursor: grabbing; transition: none; }
.sent .drag-thumb { opacity: 0; pointer-events: none; }
.chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  line-height: 16px;
  transition: border-color 160ms var(--ease);
}
.chat.over { border-color: var(--cyan); }
.chat-name { margin-bottom: auto; font: 500 12px/16px var(--font-mono); color: var(--ink-3); }
.bubble { width: fit-content; max-width: 88%; padding: 8px 16px; border-radius: 16px; background: var(--surface-2); color: var(--ink-2); }
.bubble-me { align-self: flex-end; padding: 8px; background: rgba(0, 199, 253, 0.16); }
.bubble-me img { width: 100%; max-width: 160px; border-radius: 8px; }
.drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  border-radius: 8px;
  border: 1px dashed var(--line-2);
  font: 500 12px/16px var(--font-mono);
  color: var(--ink-3);
}
.sent .drop { display: none; }
.bubble-me { display: none; }
.sent .bubble-me { display: block; }
.when-sent { display: none; }
.sent .when-sent { display: inline; }
.sent .when-idle { display: none; }

/* Workflow */
.flow { display: grid; gap: 48px; }
@media (min-width: 1024px) { .flow { grid-template-columns: 5fr 7fr; align-items: start; } }
.steps { display: grid; gap: 32px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0, 199, 253, 0.32);
  background: rgba(0, 199, 253, 0.1);
  color: var(--cyan);
  font: 500 14px/16px var(--font-mono);
}
.step h3 { margin-bottom: 8px; font-size: 20px; line-height: 24px; }
.keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.flow-shots { display: grid; gap: 16px; }
.prefs-shot { width: 78%; justify-self: center; margin-inline: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.8); }

/* Cloud AI */
.ai-head { display: grid; gap: 16px; justify-items: start; }
.ai { display: grid; gap: 48px; }
@media (min-width: 1024px) { .ai { grid-template-columns: 7fr 5fr; align-items: start; } }
.ai-left { display: grid; gap: 24px; justify-items: start; }
.ops { display: grid; gap: 16px; }
.op { display: grid; grid-template-columns: 24px 1fr; gap: 16px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.op .i { width: 24px; height: 24px; color: var(--cyan); }
.op .safe { color: var(--emerald); }
.preview { display: grid; gap: 16px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--well); }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 12px/16px var(--font-mono); color: var(--ink-3); }
.preview-out { display: grid; gap: 8px; min-height: 160px; align-content: start; font-size: 14px; line-height: 24px; }
.preview-out li { display: flex; gap: 8px; color: var(--ink); }
.preview-out .i { width: 16px; height: 24px; color: var(--cyan); }
.sent-strip { display: grid; gap: 8px; padding: 16px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font: 400 12px/16px var(--font-mono); color: var(--ink-2); }
.sent-strip b { color: var(--emerald); font-weight: 500; }
.sent-strip mark { padding: 0 8px; border-radius: 4px; background: rgba(0, 229, 153, 0.14); color: var(--emerald); }

/* Pricing */
.plans { display: grid; gap: 24px; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); font: 500 12px/16px var(--font-mono); color: var(--ink-2); }
.plan-pro { border-color: rgba(0, 229, 153, 0.56); background: rgba(19, 25, 39, 0.82); box-shadow: 0 0 96px -32px rgba(0, 229, 153, 0.5); }
.plan-pro:hover { border-color: var(--emerald); }
.plan-pro .plan-tag { border-color: rgba(0, 229, 153, 0.48); color: var(--emerald); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price b { font: 700 48px/56px var(--font-display); letter-spacing: -0.02em; }
.price span { font: 400 14px/24px var(--font-mono); color: var(--ink-3); }
.plan-list { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 24px; color: var(--ink-2); }
.plan-list li { display: flex; gap: 8px; }
.plan-list .i { width: 16px; height: 24px; color: var(--emerald); }
.plan-gift { padding: 8px; margin-inline: -8px; border-radius: 8px; border: 1px solid rgba(0, 229, 153, 0.32); background: rgba(0, 229, 153, 0.08); color: var(--ink); font-weight: 600; }
.plan .btn { width: 100%; margin-top: auto; }
.refill { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 1024px) { .refill { grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; } }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pack { display: grid; gap: 8px; padding: 16px; border-radius: 8px; border: 1px solid var(--line); }
.pack b { font: 600 20px/24px var(--font-display); }
.pack span { font: 400 12px/16px var(--font-mono); color: var(--ink-2); }
.pack span + span { color: var(--emerald); font-size: 14px; }

/* FAQ */
.faq { display: grid; gap: 48px; }
@media (min-width: 1024px) { .faq { grid-template-columns: 4fr 8fr; } .faq-side { position: sticky; top: 96px; align-self: start; } }
.faq-side { display: grid; gap: 16px; justify-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  list-style: none;
  cursor: pointer;
  font: 600 16px/24px var(--font-body);
  transition: color 160ms var(--ease);
}
.faq summary:hover { color: var(--cyan); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--ink-3); transition: transform 200ms var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); color: var(--cyan); }
.faq details p { padding-bottom: 24px; max-width: 680px; }

/* Download */
.closer {
  position: relative;
  display: grid;
  gap: 32px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(0, 229, 153, 0.32);
  background:
    radial-gradient(640px 320px at 0 0, rgba(0, 229, 153, 0.18), transparent 72%),
    radial-gradient(640px 320px at 100% 100%, rgba(0, 199, 253, 0.18), transparent 72%),
    var(--surface);
}
@media (min-width: 1024px) { .closer { grid-template-columns: 6fr 6fr; align-items: center; gap: 48px; } }
.closer-copy { display: grid; gap: 16px; justify-items: start; }
.closer-actions { display: grid; gap: 16px; }
.closer-actions .btn { width: 100%; }
.badge-free { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(4, 36, 26, 0.16); font: 700 12px/16px var(--font-mono); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--well); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px; font-size: 14px; color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a:hover, .footer-links button:hover { color: var(--ink); }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dialog {
  position: relative;
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 512px;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: 0 48px 120px -24px rgba(0, 0, 0, 0.9);
}
.dialog h3 { padding-right: 32px; }
.dialog .btn { width: 100%; }
.dialog-close { position: absolute; top: 16px; right: 16px; display: flex; padding: 8px; border-radius: 8px; color: var(--ink-3); }
.dialog-close:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font: 400 12px/16px var(--font-mono); color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}
