/*
 * Video Transcriber welcome page. Design system: docs/design/DESIGN.md ("Night Ride", Light by default).
 * Sections: fonts · tokens · palettes · base · layout · hero · pin step · switch links · Chrome illustration ·
 * how to use (the screenshots) · data note · more (toolbar icon, shortcuts) · more from (X2) · footer · motion ·
 * responsive.
 */

/* ---------- Fonts (the extension's own files, served from this site) ---------- */
@font-face {
  font-family: 'VTT Urbanist';
  src: url('assets/fonts/urbanist-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'VTT Manrope';
  src: url('assets/fonts/manrope-cyrillic-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Tokens ----------
 * EVERY colour of the page lives in this one block (lime, the base palette) and in the five palette blocks
 * right after it (the first one, lavender, is the default: index.html and palette.js set it). Each line is light-dark(LIGHT, DARK): the browser picks the value for the visitor's system
 * theme. Lime is a FILL with ink text on it, never text on a light background.
 */
:root {
  color-scheme: light dark;

  /* Surfaces and text */
  --bg: light-dark(#F3F3EF, #0A0A0A);            /* page canvas, the panel's canvas */
  --surface-1: light-dark(#FFFFFF, #161616);     /* cards */
  --surface-2: light-dark(#EAEAE4, #1F1F1F);     /* chips, icon circles, secondary button */
  --surface-3: light-dark(#DEDED6, #2A2A2A);     /* hover */
  --line: light-dark(rgba(10, 10, 10, 0.07), rgba(255, 255, 255, 0.07));
  --line-strong: light-dark(rgba(10, 10, 10, 0.13), rgba(255, 255, 255, 0.12));
  --fg: light-dark(#0A0A0A, #F4F4F2);            /* headings, primary text */
  --fg-2: light-dark(#1C1C1A, #DCDCD6);          /* body text */
  --muted: light-dark(#57574F, #A3A39B);         /* secondary text (>= 5.3:1 on every surface) */

  /* Accent */
  --accent: #DFFB5A;                             /* lime: fill only */
  --accent-press: #CBEA3C;
  --on-accent: #0A0A0A;                          /* text and icons on lime */
  --seg-bg: light-dark(#0A0A0A, #DFFB5A);        /* active tab pill: ink with lime text / lime with ink */
  --seg-fg: light-dark(#DFFB5A, #0A0A0A);
  --ring-1: light-dark(#0A0A0A, #DFFB5A);        /* focus and highlight ring */
  --ring-2: light-dark(#DFFB5A, rgba(223, 251, 90, 0.32));
  /* The logo, the mark v2: colours from src/shared/mark.ts MARK_COLORS (site/scripts/check-plans.mjs compares them). */
  --logo-bg: #DFFB5A;                            /* the logo square (a palette: its gradient, --logo-tile-1..3) */
  --logo-line1: #0A0A0A;                         /* the top line */
  --logo-bar: #0A0A0A;                           /* the highlighter bar under the middle line */
  --logo-nub: #DFFB5A;                           /* the time-pill nub at the start of the bar (close to the tile) */
  --logo-ink: #DFFB5A;                           /* the middle line, on the bar */
  --logo-line3: #0A0A0A;                         /* the short bottom line, and its opacity */
  --logo-line3-opacity: 1;
  --logo-tile-1: #DFFB5A;                        /* a palette's tile gradient, top left -> bottom right (0, 55 %, 100 %) */
  --logo-tile-2: #DFFB5A;
  --logo-tile-3: #DFFB5A;
  --logo-rim: transparent;                       /* Ocean's faint rim around the big hero mark */

  /* Depth */
  --shadow: light-dark(rgba(24, 24, 16, 0.10), rgba(0, 0, 0, 0.50));
  --shadow-strong: light-dark(rgba(24, 24, 16, 0.18), rgba(0, 0, 0, 0.65));
  --glow: light-dark(rgba(223, 251, 90, 0.55), rgba(223, 251, 90, 0.16));
  --tip-bg: light-dark(#0A0A0A, #2A2A2A);
  --tip-fg: #F4F4F2;

  /* Chrome illustration (the browser's own look, kept neutral) */
  --chrome-well: light-dark(#F3F3EF, #0E0E0E);
  --chrome-frame: light-dark(#E4E4DE, #1D1D1D);
  --chrome-toolbar: light-dark(#FFFFFF, #262626);
  --chrome-omnibox: light-dark(#F1F1EC, #171717);
  --chrome-page: light-dark(#FFFFFF, #1A1A1A);
  --chrome-menu: light-dark(#FFFFFF, #262626);
  --chrome-icon: light-dark(#3A3A36, #CFCFC9);
  --chrome-icon-off: light-dark(#B9B9B1, #5C5C57);
  --chrome-skeleton: light-dark(#ECECE6, #2E2E2E);
  --chrome-hover: light-dark(rgba(10, 10, 10, 0.06), rgba(255, 255, 255, 0.08));
  --chrome-avatar: light-dark(#D6D6CE, #3E3E3B);
  --chrome-ext-a: light-dark(#D3D3CB, #3A3A37);
  --chrome-ext-b: light-dark(#C4C4BB, #46463F);
  --chrome-pin-on: light-dark(#0B57D0, #A8C7FA); /* Chrome's own colour for a pinned pin */
  --cursor-fill: #FFFFFF;
  --cursor-stroke: #0A0A0A;
  --cursor-shadow: rgba(0, 0, 0, 0.28);
  --ripple: light-dark(rgba(10, 10, 10, 0.16), rgba(255, 255, 255, 0.22));

  /* The screenshots of the "how to use" steps: a frame tinted with the accent, a ring around what to click */
  --shot-bg: light-dark(color-mix(in srgb, var(--accent) 10%, var(--surface-2)), color-mix(in srgb, var(--accent) 12%, var(--surface-2)));
  --shot-shadow: light-dark(rgba(24, 24, 40, 0.16), rgba(0, 0, 0, 0.55));
  --shot-ring-in: #FFFFFF;

  /* Confetti */
  --confetti-1: #DFFB5A;
  --confetti-2: light-dark(#0A0A0A, #F4F4F2);
  --confetti-3: light-dark(#B9D83C, #A6C632);
  --confetti-4: light-dark(#C9C9C0, #57574F);

  /* Shape and type */
  --r-card: 32px;
  --r-tile: 24px;
  --r-pill: 999px;
  --font: 'VTT Urbanist', 'VTT Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Motion (DESIGN.md §7) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 120ms;
  --dur-fade: 150ms;
  --dur-pop: 160ms;
  --dur-pop-out: 110ms;
  --dur-rise: 220ms;
  --dur-fold: 280ms;
}
/* ---------- Palettes ----------
 * The extension's owner picks one colour palette for every surface (docs/design/DESIGN.md §8). The extension
 * opens this page with ?palette=<id> and repeats it in its 'vtt:welcome:state' answer; palette.js sets
 * <html data-palette="<id>"> before the first paint (lavender, the default, is already on <html> in index.html;
 * none for lime: the :root block above). ?palette= also works by hand, for previews.
 * Values: copies of src/ui/theme/palettes.ts (PALETTES, Light / Dark) mapped onto this page's tokens:
 * bg, surface-1..3, line, fg, fg-2, muted, accent, accent-press, on-accent as they are there; seg = the active
 * tab (--vtt-tab-active-bg / -fg); ring-1 = --vtt-focus; tip = --vtt-strong-bg (Light) / surface-3 (Dark) and
 * --vtt-strong-fg; confetti-3 = the logo's
 * first gradient stop (Light) / --vtt-strong-accent (Dark). The logo colours: store/icons/generate-icons.mjs.
 * Derived the same way in all five: line-strong = the line colour 6 % more opaque (Dark 5 %), ring-2 = the accent at
 * 30 % (Dark 36 %), glow = the logo's middle stop at 30 % (Dark 22 %), confetti-4 = 85 % surface-3 + 15 % muted
 * (Dark: the Light muted). The Chrome and video illustrations: the last block.
 */
:root[data-palette='lavender'] {
  --bg: light-dark(#F6F6FA, #0E0E14);
  --surface-1: light-dark(#FFFFFF, #17161F);
  --surface-2: light-dark(#ECEBF4, #201F2B);
  --surface-3: light-dark(#E0DEEC, #2B2A39);
  --line: light-dark(rgba(27, 24, 74, 0.07), rgba(196, 190, 255, 0.07));
  --line-strong: light-dark(rgba(27, 24, 74, 0.13), rgba(196, 190, 255, 0.12));
  --fg: light-dark(#14132B, #F3F2FA);
  --fg-2: light-dark(#262541, #DEDCEC);
  --muted: light-dark(#5D5B76, #A6A3BF);
  --accent: light-dark(#5B4FE0, #6A57F0);
  --accent-press: light-dark(#4B3FCC, #5B48E2);
  --on-accent: #FFFFFF;
  --seg-bg: light-dark(#5B4FE0, #6A57F0);
  --seg-fg: #FFFFFF;
  --ring-1: light-dark(#5B4FE0, #6A57F0);
  --ring-2: light-dark(rgba(91, 79, 224, 0.30), rgba(106, 87, 240, 0.36));
  --logo-bg: #5E50E2;
  --logo-line1: #FFFFFF;
  --logo-bar: #DFFB5A;
  --logo-nub: #5B4FE0;
  --logo-ink: #0A0A0A;
  --logo-line3: #D9D3FF;
  --logo-line3-opacity: 1;
  --logo-tile-1: #8A7CFB;
  --logo-tile-2: #5E50E2;
  --logo-tile-3: #4A3CD2;
  --glow: light-dark(rgba(94, 80, 226, 0.30), rgba(94, 80, 226, 0.22));
  --tip-bg: light-dark(#14132B, #2B2A39);
  --tip-fg: #F3F2FA;
  --confetti-1: light-dark(#5B4FE0, #6A57F0);
  --confetti-2: light-dark(#14132B, #F3F2FA);
  --confetti-3: light-dark(#8A7CFB, #ABA0FF);
  --confetti-4: light-dark(#CCCADA, #5D5B76);
}
:root[data-palette='sage'] {
  --bg: light-dark(#F6F3EB, #101412);
  --surface-1: light-dark(#FFFDF8, #181D1A);
  --surface-2: light-dark(#ECE8DE, #202623);
  --surface-3: light-dark(#E1DCD0, #2A312D);
  --line: light-dark(rgba(58, 52, 36, 0.08), rgba(220, 235, 223, 0.07));
  --line-strong: light-dark(rgba(58, 52, 36, 0.14), rgba(220, 235, 223, 0.12));
  --fg: light-dark(#1B201C, #EEF1EC);
  --fg-2: light-dark(#2A302B, #D6DCD5);
  --muted: light-dark(#515851, #9DA89F);
  --accent: light-dark(#4A765B, #8FBB9C);
  --accent-press: light-dark(#3E664E, #7DAA8B);
  --on-accent: light-dark(#FFFFFF, #0E1611);
  --seg-bg: light-dark(#4A765B, #8FBB9C);
  --seg-fg: light-dark(#FFFFFF, #0E1611);
  --ring-1: light-dark(#2F5A41, #8FBB9C);
  --ring-2: light-dark(rgba(74, 118, 91, 0.30), rgba(143, 187, 156, 0.36));
  --logo-bg: #4A765B;
  --logo-line1: #F7F4EC;
  --logo-bar: #DFFB5A;
  --logo-nub: #4A765B;
  --logo-ink: #0A0A0A;
  --logo-line3: #F7F4EC;
  --logo-line3-opacity: 0.78;
  --logo-tile-1: #6A967A;
  --logo-tile-2: #4A765B;
  --logo-tile-3: #3B624B;
  --glow: light-dark(rgba(74, 118, 91, 0.30), rgba(74, 118, 91, 0.22));
  --tip-bg: light-dark(#1B201C, #2A312D);
  --tip-fg: #EEF1EC;
  --confetti-1: light-dark(#4A765B, #8FBB9C);
  --confetti-2: light-dark(#1B201C, #EEF1EC);
  --confetti-3: light-dark(#6A967A, #A9CDB3);
  --confetti-4: light-dark(#CBC8BD, #515851);
}
:root[data-palette='ocean'] {
  --bg: light-dark(#F3F6F7, #0B1416);
  --surface-1: light-dark(#FFFFFF, #122023);
  --surface-2: light-dark(#E5EDEE, #19292D);
  --surface-3: light-dark(#D6E2E4, #223538);
  --line: light-dark(rgba(11, 52, 56, 0.07), rgba(190, 240, 235, 0.07));
  --line-strong: light-dark(rgba(11, 52, 56, 0.13), rgba(190, 240, 235, 0.12));
  --fg: light-dark(#0B1C1F, #EAF3F2);
  --fg-2: light-dark(#172A2E, #CFE0DF);
  --muted: light-dark(#4A5F63, #8FA6A6);
  --accent: #0F7F7A;
  --accent-press: light-dark(#0B6B67, #0C6D69);
  --on-accent: #FFFFFF;
  --seg-bg: #0F7F7A;
  --seg-fg: #FFFFFF;
  --ring-1: #0F7F7A;
  --ring-2: light-dark(rgba(15, 127, 122, 0.30), rgba(15, 127, 122, 0.36));
  --logo-bg: #0F7F7A;
  --logo-line1: #FFFFFF;
  --logo-bar: #DFFB5A;
  --logo-nub: #0E7B76;
  --logo-ink: #0A0A0A;
  --logo-line3: #FFFFFF;
  --logo-line3-opacity: 0.72;
  --logo-tile-1: #1AA99D;
  --logo-tile-2: #0F7F7A;
  --logo-tile-3: #0A615D;
  --logo-rim: rgba(255, 255, 255, 0.14);
  --glow: light-dark(rgba(15, 127, 122, 0.30), rgba(15, 127, 122, 0.22));
  --tip-bg: light-dark(#0B1C1F, #223538);
  --tip-fg: #EAF3F2;
  --confetti-1: #0F7F7A;
  --confetti-2: light-dark(#0B1C1F, #EAF3F2);
  --confetti-3: light-dark(#1AA99D, #3DBEB2);
  --confetti-4: light-dark(#C1CED1, #4A5F63);
}
/* Peach: the action fill is the darker coral #C84B30 (Dark: light coral with dark text), the active tab a peach
   tint with coral text, the bright brand coral #E8664B only without text (confetti). */
:root[data-palette='peach'] {
  --bg: light-dark(#FAF4F0, #141010);
  --surface-1: light-dark(#FFFFFF, #1E1817);
  --surface-2: light-dark(#F4E9E3, #2A2220);
  --surface-3: light-dark(#EBDCD4, #362C29);
  --line: light-dark(rgba(90, 40, 25, 0.07), rgba(255, 230, 220, 0.07));
  --line-strong: light-dark(rgba(90, 40, 25, 0.13), rgba(255, 230, 220, 0.12));
  --fg: light-dark(#2A1612, #FAF0EB);
  --fg-2: light-dark(#3A2520, #EADBD5);
  --muted: light-dark(#6F554D, #B5A29B);
  --accent: light-dark(#C84B30, #F27A5E);
  --accent-press: light-dark(#B4432A, #E36A4E);
  --on-accent: light-dark(#FFFFFF, #1A0E0B);
  --seg-bg: light-dark(#FFE3D8, #4D2E27);
  --seg-fg: light-dark(#A8391F, #FFB39E);
  --ring-1: light-dark(#C84B30, #F27A5E);
  --ring-2: light-dark(rgba(200, 75, 48, 0.30), rgba(242, 122, 94, 0.36));
  --logo-bg: #E8664B;
  --logo-line1: #FFFFFF;
  --logo-bar: #F2FF9E;
  --logo-nub: #E25B40;
  --logo-ink: #0A0A0A;
  --logo-line3: #FFFFFF;
  --logo-line3-opacity: 0.72;
  --logo-tile-1: #F68F71;
  --logo-tile-2: #E8664B;
  --logo-tile-3: #D9533A;
  --glow: light-dark(rgba(232, 102, 75, 0.30), rgba(232, 102, 75, 0.22));
  --tip-bg: light-dark(#2A1612, #362C29);
  --tip-fg: #FAF0EB;
  --confetti-1: light-dark(#E8664B, #F27A5E);
  --confetti-2: light-dark(#2A1612, #FAF0EB);
  --confetti-3: light-dark(#F68F71, #FFA088);
  --confetti-4: light-dark(#D8C8C0, #6F554D);
}
/* Sky: a two-stop logo gradient; --logo-tile-2 is its colour at 55 %. */
:root[data-palette='sky'] {
  --bg: light-dark(#F4F6F9, #0D1117);
  --surface-1: light-dark(#FFFFFF, #161B22);
  --surface-2: light-dark(#EAEEF3, #21262D);
  --surface-3: light-dark(#DDE3EA, #2D333B);
  --line: light-dark(rgba(14, 23, 38, 0.07), rgba(240, 246, 252, 0.08));
  --line-strong: light-dark(rgba(14, 23, 38, 0.13), rgba(240, 246, 252, 0.13));
  --fg: light-dark(#0E1726, #E6EDF3);
  --fg-2: light-dark(#1E293A, #D2D9E1);
  --muted: light-dark(#525E70, #A2ABB6);
  --accent: #2B68E4;
  --accent-press: #2257C8;
  --on-accent: #FFFFFF;
  --seg-bg: #2B68E4;
  --seg-fg: #FFFFFF;
  --ring-1: #2B68E4;
  --ring-2: light-dark(rgba(43, 104, 228, 0.30), rgba(43, 104, 228, 0.36));
  --logo-bg: #3670EA;
  --logo-line1: #FFFFFF;
  --logo-bar: #DFFB5A;
  --logo-nub: #2E6AE6;
  --logo-ink: #0A0A0A;
  --logo-line3: #FFFFFF;
  --logo-line3-opacity: 1;
  --logo-tile-1: #4C8DFF;
  --logo-tile-2: #3670EA;
  --logo-tile-3: #2459D8;
  --glow: light-dark(rgba(54, 112, 234, 0.30), rgba(54, 112, 234, 0.22));
  --tip-bg: light-dark(#0E1726, #2D333B);
  --tip-fg: #E6EDF3;
  --confetti-1: #2B68E4;
  --confetti-2: light-dark(#0E1726, #E6EDF3);
  --confetti-3: light-dark(#4C8DFF, #6CA8FF);
  --confetti-4: light-dark(#C8CFD8, #525E70);
}

/* The Chrome and video illustrations in a palette: the same greys as lime's, mixed from the palette's own
   neutrals (each mix gives the lime value above from lime's neutrals), so the browser never looks beige next to
   a cool palette. Light first, then Dark (the two modes mix differently). */
:root[data-palette] {
  --chrome-well: light-dark(var(--bg), color-mix(in srgb, var(--bg) 70%, var(--surface-1)));
  --chrome-frame: light-dark(color-mix(in srgb, var(--surface-2) 50%, var(--surface-3)), var(--surface-2));
  --chrome-toolbar: light-dark(var(--surface-1), color-mix(in srgb, var(--surface-2) 50%, var(--surface-3)));
  --chrome-omnibox: light-dark(color-mix(in srgb, var(--bg) 80%, var(--surface-2)), var(--surface-1));
  --chrome-page: light-dark(var(--surface-1), color-mix(in srgb, var(--surface-1) 50%, var(--surface-2)));
  --chrome-menu: light-dark(var(--surface-1), color-mix(in srgb, var(--surface-2) 50%, var(--surface-3)));
  --chrome-icon: light-dark(color-mix(in srgb, var(--muted) 60%, var(--fg)), color-mix(in srgb, var(--fg) 60%, var(--muted)));
  --chrome-icon-off: light-dark(color-mix(in srgb, var(--surface-3) 73%, var(--muted)), color-mix(in srgb, var(--surface-3) 60%, var(--muted)));
  --chrome-skeleton: light-dark(color-mix(in srgb, var(--surface-2) 80%, var(--bg)), color-mix(in srgb, var(--surface-3) 96%, var(--muted)));
  --chrome-hover: light-dark(color-mix(in srgb, var(--fg) 6%, transparent), color-mix(in srgb, var(--fg) 8%, transparent));
  --chrome-avatar: light-dark(color-mix(in srgb, var(--surface-3) 94%, var(--muted)), color-mix(in srgb, var(--surface-3) 85%, var(--muted)));
  --chrome-ext-a: light-dark(color-mix(in srgb, var(--surface-3) 92%, var(--muted)), color-mix(in srgb, var(--surface-3) 88%, var(--muted)));
  --chrome-ext-b: light-dark(color-mix(in srgb, var(--surface-3) 80%, var(--muted)), color-mix(in srgb, var(--surface-3) 80%, var(--muted)));
}

/* ?theme=light / ?theme=dark (previews and screenshots) */
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font: 450 16.5px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
svg { flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[data-logo] { display: block; }
.logo-mark { display: block; width: 100%; height: 100%; }
.lg-bg { fill: var(--logo-bg); }
.lg-line1 { fill: var(--logo-line1); }
.lg-bar { fill: var(--logo-bar); }
.lg-nub { fill: var(--logo-nub); }
.lg-ink { fill: var(--logo-ink); }
.lg-line3 { fill: var(--logo-line3); fill-opacity: var(--logo-line3-opacity); }
/* a palette's tile is a gradient: #lg-tile in the icon sprite (index.html), its stops are tokens */
:root[data-palette] .lg-bg { fill: url(#lg-tile); }
.lg-stop-1 { stop-color: var(--logo-tile-1); }
.lg-stop-2 { stop-color: var(--logo-tile-2); }
.lg-stop-3 { stop-color: var(--logo-tile-3); }
/* the rim only on the big hero mark (Ocean's faint edge on the page; the icon files have none since the mark v2) */
.lg-rim { display: none; fill: none; stroke: var(--logo-rim); stroke-width: 2; }
:root[data-palette] .hero-logo .lg-rim { display: inline; }
:focus-visible { outline: 2px solid var(--ring-1); outline-offset: 3px; }

/* The page stays invisible until app.js has picked the state (no flash of the wrong one); a fallback shows it anyway. */
html[data-state='loading'] .page { opacity: 0; animation: show-anyway 0s 2.5s forwards; }
@keyframes show-anyway { to { opacity: 1; } }

/* ---------- Layout ---------- */
.page { position: relative; z-index: 1; max-width: 1008px; margin: 0 auto; padding: 0 24px; }
.main > * { margin-bottom: 20px; }
.main > .fold { margin-bottom: 0; }
.fold-inner > :last-child { margin-bottom: 20px; }

.card { background: var(--surface-1); border-radius: var(--r-card); padding: 40px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 84px 0 52px; }
.hero-logo { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.hero-glow {
  position: absolute; inset: -70px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.hero-logo [data-logo] { position: relative; width: 100%; height: 100%; }
/* positioned, so they paint after the logo's glow (a positioned glow otherwise tints the title's ink) */
.hero-title, .hero-sub, .hero-cta { position: relative; }
.hero-title:focus { outline: none; } /* focused only by script, after a switch link */
.hero-title {
  margin-top: 30px;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.032em;
  color: var(--fg);
  text-wrap: balance;
}
.hero-sub {
  margin: 16px auto 0;
  max-width: 32em;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-cta { margin-top: 30px; }
/* the sample video (filled) and "Transcribe a file" (outlined): side by side, stacked on a phone */
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-note { margin: 16px auto 0; max-width: 31em; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: balance; }

/* ---------- Pin step ---------- */
.step--pin {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 40px;
  align-items: center;
}
.step-title {
  font-size: clamp(26px, 2.9vw, 34px);
  line-height: 1.12;
  font-weight: 640;
  letter-spacing: -0.024em;
  color: var(--fg);
  text-wrap: balance;
}
.step-lead { margin-top: 12px; max-width: 36em; font-size: 17px; color: var(--muted); text-wrap: pretty; }

.howto { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 4px; }
.howto li { position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 0 -12px; padding: 10px 12px; border-radius: 18px; }
.howto li::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--bg); opacity: 0;
  transition: opacity var(--dur-rise) var(--ease-out);
}
.howto[data-active='1'] li[data-n='1']::before,
.howto[data-active='2'] li[data-n='2']::before,
.howto[data-active='3'] li[data-n='3']::before { opacity: 1; }
.howto-n {
  position: relative; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.howto-t { position: relative; padding-top: 2px; font-size: 16px; line-height: 1.45; color: var(--fg-2); }

/* "unknown" state: the same step, quieter (no number, outlined instead of filled) */
.step--pin.is-soft { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.step--pin.is-soft .howto li::before { background: var(--surface-1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px 0 20px; border: 0; border-radius: var(--r-pill);
  font: 620 16.5px/1.2 var(--font); text-decoration: none; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fade) var(--ease-out);
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn.is-busy { cursor: progress; }
/* lime controls draw their focus ring inside the fill (DESIGN.md §4) */
.btn--primary:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px var(--on-accent); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-press); }
  .btn--outline:hover { background: var(--surface-2); }
}

/* ---------- Switch links (the bottom of each mode: the visitor's choice beats what the page guessed) ---------- */
.switch { margin: 18px 0 0; text-align: center; }
.switch-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 6px;
  font-size: 15.5px; font-weight: 560; color: var(--fg-2);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  border-radius: 10px;
  transition: color var(--dur-fade) var(--ease-out), text-decoration-color var(--dur-fade) var(--ease-out);
}
.switch-link svg { width: 18px; height: 18px; color: var(--muted); transition: transform var(--dur-rise) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .switch-link:hover { color: var(--fg); text-decoration-color: currentColor; }
  .switch-link:hover svg { transform: translateX(3px); }
}

/* The success row the pin step collapses into */
.done { display: flex; justify-content: center; }
.done-row {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  padding: 10px 22px 10px 10px; border-radius: var(--r-pill); background: var(--surface-1);
}
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px 0 12px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 680;
}
.chip svg { width: 18px; height: 18px; }
.chip--ok { background: var(--accent); color: var(--on-accent); }
.done-text { font-weight: 560; color: var(--fg); text-wrap: balance; }

/* Collapsible block (grid rows 1fr <-> 0fr, like the popup's cards) */
.fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-fold) var(--ease-drawer); }
.fold-inner { min-height: 0; overflow: hidden; }
.fold.is-closed { grid-template-rows: 0fr; }

/* ---------- Chrome illustration ----------
 * Drawn in em: the whole picture scales with the width of its box (container query units).
 */
.art { position: relative; min-width: 0; container-type: inline-size; }
.browser {
  --w: 34;
  position: relative;
  width: calc(var(--w) * 1em);
  height: 23em;
  margin: 0 auto;
  font-size: min(15px, calc(100cqw / var(--w)));
  line-height: 1.2;
  border-radius: 1.6em;
  background: var(--chrome-well);
  overflow: hidden;
  color: var(--chrome-icon);
  -webkit-user-select: none;
  user-select: none;
  /* the window is a cropped corner: its cut left and bottom edges fade out (the mask only reads opacity) */
  --fade: 2.4em;
  -webkit-mask-image: linear-gradient(to right, transparent, currentColor var(--fade)), linear-gradient(to top, transparent, currentColor var(--fade));
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, currentColor var(--fade)), linear-gradient(to top, transparent, currentColor var(--fade));
  mask-composite: intersect;
}
@container (max-width: 430px) {
  .browser { --w: 27; }
  /* the page's text starts further left, so it reads as content behind the open menu, not as slivers peeking out */
  .browser:not(.browser--mini) .b-page { padding-left: 2.2em; }
}

.b-window {
  position: absolute; left: -1.5em; top: 1.5em; right: 1.5em; bottom: -2em;
  border-radius: 1em; overflow: hidden;
  background: var(--chrome-page);
  box-shadow: 0 0 0 1px var(--line), 0 1.2em 3em -1em var(--shadow);
}
.b-tabs { height: 2.6em; display: flex; align-items: flex-end; gap: 0.5em; padding-left: 3.2em; background: var(--chrome-frame); }
.b-tab {
  display: flex; align-items: center; gap: 0.6em;
  width: 13em; height: 2.15em; padding: 0 0.75em 0 0.85em;
  border-radius: 0.75em 0.75em 0 0;
  background: var(--chrome-toolbar);
}
.b-favicon { width: 1.05em; height: 1.05em; flex: none; }
.b-tab-x { width: 0.85em; height: 0.85em; margin-left: auto; }
.b-newtab { width: 1.05em; height: 1.05em; align-self: center; margin: 0.25em 0 0 0.2em; }
.sk { display: block; height: 0.62em; border-radius: var(--r-pill); background: var(--chrome-skeleton); }
.sk--tab { flex: 1; max-width: 7em; }

.b-toolbar {
  display: flex; align-items: center; gap: 0.2em;
  height: 3.3em; padding: 0 0.6em 0 0.8em;
  background: var(--chrome-toolbar);
  box-shadow: 0 1px 0 var(--line);
  position: relative; z-index: 2;
}
.b-nav { width: 2.2em; height: 2.2em; display: grid; place-items: center; flex: none; }
.b-nav svg { width: 1.2em; height: 1.2em; }
.b-nav--off { color: var(--chrome-icon-off); }
.b-omni {
  flex: 1; min-width: 0; height: 2.3em; margin: 0 0.5em 0 0.35em;
  display: flex; align-items: center; gap: 0.7em; padding: 0 0.9em;
  border-radius: var(--r-pill); background: var(--chrome-omnibox);
}
.b-omni-ico { width: 1.05em; height: 1.05em; }
.sk--url { width: 58%; max-width: 10em; }
.b-omni-star { width: 1.05em; height: 1.05em; margin-left: auto; }
.b-actions { display: flex; align-items: center; gap: 0.15em; flex: none; }
.b-btn { position: relative; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; flex: none; }
.b-btn > svg { position: relative; width: 1.3em; height: 1.3em; }
.b-avatar { width: 1.6em; height: 1.6em; margin: 0 0.3em; border-radius: 50%; background: var(--chrome-avatar); flex: none; }
.b-hover { position: absolute; inset: 0; border-radius: 50%; background: var(--chrome-hover); opacity: 0; transition: opacity var(--dur-fade) var(--ease-out); }
.b-ours-logo { position: relative; width: 1.3em; height: 1.3em; }
.b-ours { opacity: 0; transform: scale(0.9); transition: opacity var(--dur-pop-out) var(--ease-out), transform var(--dur-pop-out) var(--ease-out); }

.b-ring {
  position: absolute; inset: -0.12em; border-radius: 50%;
  box-shadow: 0 0 0 0.14em var(--ring-1), 0 0 0 0.34em var(--ring-2);
  opacity: 0; transition: opacity 180ms var(--ease-out);
  pointer-events: none;
}
.b-badge {
  position: absolute; top: -0.5em; right: -0.55em; z-index: 3;
  width: 1.6em; height: 1.6em; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8em; font-weight: 760; line-height: 1;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 0.16em var(--chrome-toolbar);
  opacity: 0; transform: scale(0.9);
  transition: opacity var(--dur-pop-out) var(--ease-out), transform var(--dur-pop-out) var(--ease-out);
}
.b-tip {
  position: absolute; top: calc(100% + 0.5em); right: 0.6em; z-index: 3;
  padding: 0.45em 0.7em; border-radius: 0.45em;
  font-size: 0.8em; font-weight: 560; white-space: nowrap;
  background: var(--tip-bg); color: var(--tip-fg);
  opacity: 0; transform: translateY(-0.2em);
  transition: opacity var(--dur-pop-out) var(--ease-out), transform var(--dur-pop-out) var(--ease-out);
}

.b-page { display: grid; gap: 0.75em; padding: 1.7em 1.6em 0 4em; }
.b-page .sk--h { width: 11em; height: 1.1em; }
.b-page .sk--l1 { width: 17em; }
.b-page .sk--l2 { width: 13em; }
.b-page-card { display: block; width: 62%; height: 6em; margin-top: 0.4em; border-radius: 0.9em; background: var(--chrome-skeleton); }

.b-menu {
  position: absolute; top: 7.05em; right: 6.6em; z-index: 4;
  width: 17.5em; padding: 0.45em 0 0.3em;
  border-radius: 0.95em;
  background: var(--chrome-menu);
  color: var(--chrome-icon);
  box-shadow: 0 0 0 1px var(--line), 0 0.9em 2.4em -0.3em var(--shadow-strong), 0 0.15em 0.5em var(--shadow);
  transform-origin: top right;
  opacity: 0; transform: scale(0.96);
  transition: opacity var(--dur-pop-out) var(--ease-out), transform var(--dur-pop-out) var(--ease-out);
}
.b-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 0.55em 1em 0.7em 1.15em; }
.b-menu-title { font-size: 1.02em; font-weight: 620; color: var(--fg); }
.b-menu-x { width: 0.95em; height: 0.95em; }
.b-row { position: relative; display: flex; align-items: center; gap: 0.75em; height: 2.6em; padding: 0 0.75em 0 1.15em; }
.b-row-hover { position: absolute; inset: 0; background: var(--chrome-hover); opacity: 0; transition: opacity var(--dur-fade) var(--ease-out); }
.b-ext { position: relative; width: 1.25em; height: 1.25em; border-radius: 0.32em; flex: none; }
.b-ext--a { background: var(--chrome-ext-a); }
.b-ext--b { background: var(--chrome-ext-b); border-radius: 50%; }
.sk--name1 { width: 6.5em; }
.sk--name2 { width: 5.2em; }
.b-name { position: relative; min-width: 0; font-size: 0.95em; font-weight: 560; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-pin { position: relative; margin-left: auto; width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; flex: none; }
.b-pin svg { grid-area: 1 / 1; width: 1.1em; height: 1.1em; transition: opacity var(--dur-fade) var(--ease-out); }
.b-pin-on { color: var(--chrome-pin-on); opacity: 0; }
.b-pin .b-badge { top: -0.55em; right: -0.65em; box-shadow: 0 0 0 0.16em var(--chrome-menu); }
.b-more { width: 1.05em; height: 1.05em; flex: none; position: relative; }
.b-menu-foot { display: flex; align-items: center; gap: 0.75em; height: 2.6em; margin-top: 0.3em; padding: 0 1.15em; border-top: 1px solid var(--line); font-size: 0.95em; color: var(--fg-2); }
.b-menu-foot svg { width: 1.1em; height: 1.1em; color: var(--chrome-icon); }

.b-cursor {
  position: absolute; left: 0; top: 0; z-index: 6;
  width: 1.3em; height: 1.56em;
  translate: var(--cx, 10em) var(--cy, 17em);
  transition: translate 640ms var(--ease-in-out), opacity var(--dur-fade) var(--ease-out);
  filter: drop-shadow(0 0.08em 0.16em var(--cursor-shadow));
  pointer-events: none;
}
.b-cursor-body { fill: var(--cursor-fill); stroke: var(--cursor-stroke); stroke-width: 1.3; stroke-linejoin: round; }
.b-ripple {
  position: absolute; left: 0; top: 0; z-index: 5;
  width: 2.4em; height: 2.4em; margin: -1.2em 0 0 -1.2em;
  border-radius: 50%; background: var(--ripple);
  translate: var(--rx, 0) var(--ry, 0);
  opacity: 0; pointer-events: none;
}

/* The demo's states (app.js sets the data-* attributes) */
.browser[data-hover='puzzle'] .b-puzzle .b-hover,
.browser[data-hover='row'] .b-row-hover { opacity: 1; }
.browser[data-menu='open'] .b-menu {
  opacity: 1; transform: none;
  transition: opacity var(--dur-pop) var(--ease-out), transform var(--dur-pop) var(--ease-out);
}
.browser[data-pinned='1'] .b-pin-on { opacity: 1; }
.browser[data-pinned='1'] .b-pin-off { opacity: 0; }
.browser[data-pinned='1'] .b-ours {
  opacity: 1; transform: none;
  transition: opacity var(--dur-rise) var(--ease-out), transform var(--dur-rise) var(--ease-out);
}
.browser[data-hl='1'] .b-puzzle .b-ring,
.browser[data-hl='2'] .b-pin .b-ring,
.browser[data-hl='3'] .b-ours .b-ring { opacity: 1; }
.browser[data-hl='1'] [data-badge='1'],
.browser[data-hl='2'] [data-badge='2'],
.browser[data-hl='3'] [data-badge='3'] {
  opacity: 1; transform: none;
  transition: opacity var(--dur-pop) var(--ease-out), transform var(--dur-pop) var(--ease-out);
}
.browser[data-tip='1'] .b-tip { opacity: 1; transform: none; transition: opacity var(--dur-pop) var(--ease-out), transform var(--dur-pop) var(--ease-out); }
.browser[data-cursor='off'] .b-cursor { opacity: 0; }

/* Reduced motion: one still, annotated frame (menu open, the pin pressed, the icon on the toolbar, all three marks) */
.browser[data-static='1'] [data-badge] { opacity: 1; transform: none; }
.browser[data-static='1'] *, .browser[data-static='1'] { transition: none !important; }

/* "Your icon is here": just the toolbar, the icon ringed, Chrome's tooltip under the cursor */
.browser--mini { --w: 30; --fade: 2em; height: 10.6em; border-radius: 1.4em; }
.browser--mini .b-window { top: 1.2em; }
.browser--mini .b-menu, .browser--mini .b-badge { display: none; }
.browser--mini .b-page { padding-top: 1.4em; }
@container (max-width: 430px) { .browser--mini { --w: 25; } .browser--mini .b-nav { display: none; } }

/* ---------- How to use it: four steps, one action each, each with a real screenshot (assets/steps/) ---------- */
.usage { margin-bottom: 0 !important; }
.usage > .section-title { margin: 6px 4px 18px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; font-weight: 640; letter-spacing: -0.02em; color: var(--fg); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shot-step { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: var(--r-card); background: var(--surface-1); }
/* The step whose turn it is (app.js, Turns): an outline in the ring's colour fades in around its card */
.shot-step::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--ring-1); opacity: 0;
  transition: opacity var(--dur-rise) var(--ease-out);
}
.shot-step.is-turn::after { opacity: 1; }
.shot-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
.shot-text .howto-n { grid-row: span 2; margin-top: 1px; }
.shot-title { font-size: 19.5px; line-height: 1.3; font-weight: 650; letter-spacing: -0.012em; color: var(--fg); text-wrap: balance; }
.shot-desc { margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* The frame: one shape for all four (6:5); the picture inside is a real, unedited crop of the extension */
.shot { position: relative; margin: auto 0 0; aspect-ratio: 6 / 5; border-radius: 20px; overflow: hidden; background: var(--shot-bg); }
.shot img { display: block; }
/* 1: the video page, edge to edge */
.shot--page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 2-4: the panel (its real top corners are in the picture), centred, its cut lower edge fading into the frame */
.shot-panel { position: absolute; left: 50%; top: 8%; width: 74%; translate: -50% 0; }
.shot-panel img {
  width: 100%; height: auto;
  filter: drop-shadow(0 12px 22px var(--shot-shadow));
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 96%);
}
/* The ring always means one thing: the control that its own step's text names (step 1 the button that appears,
   step 3 the tabs to pick, step 4 the copy icon and the ⋮ menu). Its box is that control's box, in % of the picture. */
.shot-ring {
  position: absolute; border-radius: var(--r-pill); pointer-events: none;
  box-shadow: 0 0 0 2.5px var(--shot-ring-in), 0 0 0 5.5px var(--ring-1), 0 0 18px 6px var(--ring-2);
}
/* At rest the ring is still. It pulses once when its step's turn comes: 1 → 2 → 3 → 4, two rounds (app.js, Turns). */
.shot-ring::after {
  content: ''; position: absolute; inset: -5.5px; border-radius: inherit;
  border: 3px solid var(--ring-1); opacity: 0;
}
.shot-step.is-turn .shot-ring::after { animation: ring-pulse 1.1s var(--ease-out); }
@keyframes ring-pulse { from { opacity: 0.75; transform: scale(1); } to { opacity: 0; transform: scale(1.12, 1.45); } }
/* the button (the collapsed pill) in step-1-video.webp: CSS px (393, 16, 208 × 52) of the 624 × 520 crop */
.shot-ring--pill { left: 63%; top: 3.08%; width: 33.32%; height: 10%; }
/* the Captions and AI transcript tabs in step-3-ai.webp: CSS px (16, 106.7, 228.6 × 36) of the 372 × 420 crop */
.shot-ring--tabs { left: 4.3%; top: 25.4%; width: 61.44%; height: 8.57%; }
/* the copy icon and the ⋮ button in step-4-copy-save.webp: CSS px (240, 8.7) and (324, 8.7), 36 × 36, of the 372 × 408 crop */
.shot-ring--copy, .shot-ring--more { top: 2.133%; width: 9.677%; height: 8.824%; }
.shot-ring--copy { left: 64.516%; }
.shot-ring--more { left: 87.097%; }

/* ---------- The data note (the same facts as the extension's consent card) ---------- */
.data-note {
  display: flex; gap: 10px; align-items: flex-start; justify-content: center;
  margin: 22px auto 0; max-width: 64em; padding: 0 8px;
  font-size: 14.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty;
}
.data-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.data-note a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .data-note a:hover { color: var(--fg); text-decoration-color: currentColor; } }

/* ---------- More (collapsed): the toolbar icon and the keyboard shortcuts ---------- */
.more { margin-top: 22px; border-radius: var(--r-tile); background: var(--surface-1); }
.more-summary {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 14px 14px; border-radius: inherit;
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.more-summary::-webkit-details-marker { display: none; }
.more-title { font-size: 17px; font-weight: 620; color: var(--fg); }
.more-chevron { width: 20px; height: 20px; margin-left: auto; color: var(--muted); transition: transform var(--dur-rise) var(--ease-out); }
.more[open] .more-chevron { transform: rotate(180deg); }
.more-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 6px 28px 28px; }
.more-caption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.keys-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--fg); flex: none; }
.keys-ico svg { width: 21px; height: 21px; }
.keys-title { font-size: 17px; font-weight: 640; color: var(--fg); letter-spacing: -0.01em; }
.keys-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.key { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; background: var(--bg); }
.kbds { display: inline-flex; gap: 6px; font: inherit; }
.kbds kbd {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  font: 650 14px/1 var(--font);
  background: var(--surface-1); color: var(--fg);
  box-shadow: 0 0 0 1px var(--line), inset 0 -2px 0 var(--line-strong);
}
.key-label { font-size: 15.5px; line-height: 1.4; color: var(--fg-2); }
.keys-note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.keys-note code { font: 560 14px/1 var(--font); color: var(--fg-2); padding: 3px 8px; border-radius: 8px; background: var(--surface-2); white-space: nowrap; }

/* ---------- More from Video Transcriber (X2): the last block of the "how to use" mode, above its switch link ----------
 * Quiet on purpose: a small muted title and up to three plain links in the chip shape on a surface fill (never the
 * accent: the hero's buttons are the page's loud part). Tokens only, so both themes and every palette follow.
 * Static: no entrance and no motion, only the hover colour.
 */
.more-from { margin-top: 30px; text-align: center; }
.more-from-title { font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); }
.more-from-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip--quiet {
  border: 1px solid transparent; /* shows as a line in forced colours, where the fill is dropped */
  background: var(--surface-2); color: var(--fg-2);
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fade) var(--ease-out), color var(--dur-fade) var(--ease-out);
}
.chip--quiet svg { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .chip--quiet:hover { background: var(--surface-3); color: var(--fg); }
}

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px;
  padding: 36px 4px 56px; font-size: 14.5px; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 26px; height: 26px; }
.footer-name { font-weight: 620; color: var(--fg); }
.footer-version { padding-left: 10px; border-left: 1px solid var(--line-strong); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; border-radius: 6px; transition: color var(--dur-fade) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- Confetti (app.js) ----------
 * Behind the page's content: it bursts from behind the chip and never covers text.
 */
.confetti { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: 0; top: 0; width: 7px; height: 11px; border-radius: 2px; will-change: transform, opacity; }
.confetti i.is-dot { width: 7px; height: 7px; border-radius: 50%; }
.confetti .c1 { background: var(--confetti-1); }
.confetti .c2 { background: var(--confetti-2); }
.confetti .c3 { background: var(--confetti-3); }
.confetti .c4 { background: var(--confetti-4); }

/* ---------- Motion ----------
 * Entrance: once, on first paint. Only transform and opacity move; ease-out; nothing starts below scale(.9).
 */
@keyframes enter-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes enter-pop { from { opacity: 0; transform: scale(0.9); } }
@keyframes enter-fade { from { opacity: 0; } }
html.is-ready [data-enter] { animation: enter-rise 300ms var(--ease-out) backwards; }
html.is-ready .hero-logo[data-enter] { animation-name: enter-pop; }
html.is-ready [data-enter='2'] { animation-delay: 50ms; }
html.is-ready [data-enter='3'] { animation-delay: 100ms; }
html.is-ready [data-enter='4'] { animation-delay: 160ms; }
html.is-ready [data-enter='5'] { animation-delay: 220ms; }
html.is-ready [data-enter='6'] { animation-delay: 280ms; }
html.is-ready [data-enter='7'] { animation-delay: 320ms; }

/* The flip to "pinned" (app.js adds the classes) */
.fold.is-closed > .fold-inner > .card { opacity: 0; transform: scale(0.98); transition: opacity var(--dur-fade) var(--ease-out), transform var(--dur-rise) var(--ease-out); }
.done-fold.is-closed .done-row { opacity: 0; transform: scale(0.9); }
.done-fold .done-row { transition: opacity var(--dur-rise) var(--ease-out) 90ms, transform var(--dur-rise) var(--ease-out) 90ms; }

@media (prefers-reduced-motion: reduce) {
  html.is-ready [data-enter], html.is-ready .hero-logo[data-enter] { animation-name: enter-fade; }
  .fold { transition: none; }
  .fold.is-closed > .fold-inner > .card, .done-fold.is-closed .done-row { transform: none; }
  .done-fold .done-row { transition: opacity var(--dur-rise) var(--ease-out); }
  .btn:active { transform: none; }
  /* no turns at all (app.js never starts them); the rule covers a setting that changes in the middle of one */
  .shot-step.is-turn .shot-ring::after { animation: none; }
  .shot-step.is-turn::after { opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .step--pin { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .more-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .page { padding: 0 16px; }
  .hero { padding: 48px 0 32px; }
  .hero-logo { width: 68px; height: 68px; }
  .hero-title { margin-top: 24px; }
  .hero-sub { margin-top: 12px; }
  .hero-cta { margin-top: 24px; }
  .card { padding: 24px 20px; border-radius: 26px; }
  .main > * { margin-bottom: 14px; }
  .main > .fold { margin-bottom: 0; }
  .fold-inner > :last-child { margin-bottom: 14px; }
  .step-lead { font-size: 16px; }
  .howto-t { font-size: 15.5px; }
  .cta-row { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; padding: 0 16px; gap: 9px; font-size: 16px; }
  .cta-note { margin-top: 14px; font-size: 14.5px; }
  .shot-step { padding: 20px; gap: 16px; border-radius: 26px; }
  .steps { gap: 14px; }
  .more-body { padding: 4px 20px 22px; }
  /* the chip and the line side by side (the line wraps next to the chip instead of under it) */
  .done-row { flex-wrap: nowrap; justify-content: flex-start; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 26px; text-align: left; }
  .done-text { font-size: 15px; line-height: 1.35; }
  .footer { flex-direction: column; align-items: flex-start; padding: 28px 4px 44px; }
}
@media (max-width: 420px) {
  .btn span { text-wrap: balance; }
}
