/*!
 * mtioon-style · v1.2
 * Candy-3D motion UI distilled from https://mtioon.com (style study, not affiliated).
 * Pair with mtioon.js (zero-dependency runtime). Every value here was measured on the live site.
 *
 *  1 tokens          6 nav               11 pricing
 *  2 dark theme      7 buttons           12 gallery shelf · footer · eyeballs
 *  3 base            8 candy (3D chips)  13 app kit (editor-style UI)
 *  4 typography      9 eyes              13b secondary pages (docs, gallery, auth, dialog)
 *  5 layout         10 surfaces          14 motion keyframes + utilities · 15 reduced motion
 */

/* ── 1 · tokens ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* canvas + ink: neutral, Apple-like; colour comes only from candy + brand */
  --mt-paper: #f5f5f5;
  --mt-glow: rgba(255, 90, 31, 0.1);
  --mt-surface: #ffffff;
  --mt-surface-sunk: #f2f2f5;
  --mt-surface-ink: #171717;
  --mt-surface-ink-hover: #262626;
  --mt-on-ink: #ffffff;
  --mt-ink: #171717;
  --mt-ink-2: #262626;
  --mt-ink-mid: #525252;
  --mt-ink-soft: #6b6b70;
  --mt-ink-muted: #737373;
  --mt-ink-faint: #a1a1a6;
  --mt-strike: #a3a3a3;
  --mt-hairline: rgba(0, 0, 0, 0.07);
  --mt-line: rgba(0, 0, 0, 0.06);
  --mt-fill: rgba(0, 0, 0, 0.06);
  --mt-fill-hover: rgba(0, 0, 0, 0.05);
  --mt-nav-bg: rgba(255, 255, 255, 0.8);
  --mt-tile-bg: #1d1d1f;
  --mt-mini: #f5f5f7;               /* small info cards inside white cards */
  --mt-code-bg: #1c1c1e;            /* code blocks + terminal windows (dark in both themes) */
  --mt-seg-track: #e8e8ed;          /* light segmented filter */
  --mt-seg-thumb: #ffffff;
  --mt-glass-card: rgba(255, 255, 255, 0.75);

  /* brand */
  --mt-brand: #ff5a1f;
  --mt-brand-edge: #c43e0c;
  --mt-brand-text: #e8470b;
  --mt-brand-tint: #fff0e8;
  --mt-brand-soft: rgba(255, 90, 31, 0.12);
  --mt-on-brand: #ffffff;
  --mt-info: #2a8cff;
  --mt-info-tint: #eaf2ff;

  /* candy palette — face / edge (edge ≈ face darkened ~25%, never black) */
  --mt-red: #f0524f;        --mt-red-edge: #b93231;
  --mt-coral: #f47b6e;      --mt-coral-edge: #bc4b40;
  --mt-orange: #ff5a1f;     --mt-orange-edge: #c43e0c;
  --mt-tangerine: #ff6a2b;  --mt-tangerine-edge: #c43e0c;
  --mt-amber: #f5a623;      --mt-amber-edge: #c07708;
  --mt-yellow: #f5c518;     --mt-yellow-edge: #c29505;
  --mt-green: #3dc46b;      --mt-green-edge: #23934a;
  --mt-teal: #3ecfaf;       --mt-teal-edge: #21a088;
  --mt-blue: #3a8df7;       --mt-blue-edge: #1f63cc;
  --mt-sky: #2a8cff;        --mt-sky-edge: #1a62c2;
  --mt-purple: #9a5bf5;     --mt-purple-edge: #6b37c4;
  --mt-pink: #f062b0;       --mt-pink-edge: #b93a83;
  --mt-graphite: #2b2b2b;   --mt-graphite-edge: #0a0a0a;   --mt-graphite-edge-top: #2a2a2a;
  --mt-snow: #ffffff;       --mt-snow-edge: #c9c9d1;   --mt-snow-edge-top: #dcdce2;   --mt-snow-ink: #000000;
  --mt-gloss: rgba(255, 255, 255, 0.16);
  --mt-gloss-rim: rgba(255, 255, 255, 0.28);

  /* type */
  --mt-font-display: "Sunghyun Sans", "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  /* CJK families sit before the generic ones so Chinese text gets real weights, not a system fallback */
  --mt-font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mt-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "PingFang SC", "Noto Sans SC", monospace;
  --mt-font-app: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Noto Sans SC", sans-serif;
  --mt-font-hand: "Instrument Serif", Georgia, serif;

  /* radii */
  --mt-r-xs: 7px;
  --mt-r-sm: 10px;
  --mt-r-md: 14px;
  --mt-r-lg: 20px;
  --mt-r-xl: 24px;
  --mt-r-tile: 26px;
  --mt-r-card: 28px;
  --mt-r-plan: 30px;
  --mt-r-feature: 32px;
  --mt-r-pill: 9999px;

  /* shadows: hairline ring + one long, soft, negative-spread drop */
  --mt-shadow-ring: 0 0 0 0.5px rgba(0, 0, 0, 0.07);
  --mt-shadow-card: 0 0 0 0.5px rgba(0, 0, 0, 0.07), 0 20px 50px -30px rgba(0, 0, 0, 0.25);
  --mt-shadow-plan: 0 0 0 0.5px rgba(0, 0, 0, 0.07), 0 30px 60px -40px rgba(0, 0, 0, 0.3);
  --mt-shadow-featured: 0 50px 100px -40px rgba(0, 0, 0, 0.55);
  --mt-shadow-nav: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 40px -16px rgba(0, 0, 0, 0.25), inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  --mt-shadow-showcase: 0 1px 2px rgba(0, 0, 0, 0.06), 0 60px 120px -50px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  --mt-shadow-float: 0 20px 40px -20px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  --mt-shadow-candy: 0 14px 20px -10px rgba(0, 0, 0, 0.35);
  --mt-shadow-btn: 0 12px 20px -10px rgba(0, 0, 0, 0.22);
  --mt-shadow-btn-hover: 0 20px 30px -12px rgba(0, 0, 0, 0.26);
  --mt-shadow-btn-press: 0 3px 7px -4px rgba(0, 0, 0, 0.18);

  /* motion */
  --mt-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mt-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --mt-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --mt-overshoot: cubic-bezier(0.2, 1.15, 0.3, 1);
  --mt-drop: cubic-bezier(0.3, 0.7, 0.4, 1);
  --mt-sheet: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── 2 · dark theme (system preference, or <html data-theme="dark">) ───── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --mt-paper: #18181b;
  --mt-glow: rgba(255, 90, 31, 0.035);
  --mt-surface: #242427;
  --mt-surface-sunk: #1c1c1f;
  --mt-surface-ink: #323236;
  --mt-surface-ink-hover: #414145;
  --mt-ink: #f5f5f7;
  --mt-ink-2: #d1d1d6;
  --mt-ink-mid: #a1a1a6;
  --mt-ink-soft: #a1a1a6;
  --mt-ink-muted: #8e8e93;
  --mt-ink-faint: #636366;
  --mt-strike: #636366;
  --mt-hairline: rgba(255, 255, 255, 0.08);
  --mt-line: rgba(255, 255, 255, 0.1);
  --mt-fill: rgba(255, 255, 255, 0.09);
  --mt-fill-hover: rgba(255, 255, 255, 0.08);
  --mt-nav-bg: rgba(36, 36, 39, 0.8);
  --mt-mini: #2c2c30;
  --mt-code-bg: #111113;
  --mt-seg-track: #2c2c30;
  --mt-seg-thumb: #48484c;
  --mt-glass-card: rgba(36, 36, 39, 0.75);
  --mt-brand-text: #ff7a45;
  --mt-brand-tint: rgba(255, 90, 31, 0.16);
  --mt-info-tint: rgba(42, 140, 255, 0.18);
  --mt-graphite: #3a3a3e;   --mt-graphite-edge: #222225;   --mt-graphite-edge-top: #2c2c30;
  --mt-snow: #3a3a3e;       --mt-snow-edge: #1f1f22;   --mt-snow-edge-top: #2c2c30;   --mt-snow-ink: #f5f5f7;
  --mt-gloss: rgba(255, 255, 255, 0.1);
  --mt-gloss-rim: rgba(255, 255, 255, 0.18);
  --mt-shadow-ring: 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  --mt-shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 20px 50px -30px rgba(0, 0, 0, 0.6);
  --mt-shadow-plan: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 30px 60px -40px rgba(0, 0, 0, 0.6);
  --mt-shadow-nav: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px -16px rgba(0, 0, 0, 0.6), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  --mt-shadow-showcase: 0 1px 2px rgba(0, 0, 0, 0.3), 0 60px 120px -50px rgba(0, 0, 0, 0.8), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  --mt-shadow-float: 0 20px 40px -20px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --mt-paper: #18181b;
    --mt-glow: rgba(255, 90, 31, 0.035);
    --mt-surface: #242427;
    --mt-surface-sunk: #1c1c1f;
    --mt-surface-ink: #323236;
    --mt-surface-ink-hover: #414145;
    --mt-ink: #f5f5f7;
    --mt-ink-2: #d1d1d6;
    --mt-ink-mid: #a1a1a6;
    --mt-ink-soft: #a1a1a6;
    --mt-ink-muted: #8e8e93;
    --mt-ink-faint: #636366;
    --mt-strike: #636366;
    --mt-hairline: rgba(255, 255, 255, 0.08);
    --mt-line: rgba(255, 255, 255, 0.1);
    --mt-fill: rgba(255, 255, 255, 0.09);
    --mt-fill-hover: rgba(255, 255, 255, 0.08);
    --mt-nav-bg: rgba(36, 36, 39, 0.8);
    --mt-mini: #2c2c30;
    --mt-code-bg: #111113;
    --mt-seg-track: #2c2c30;
    --mt-seg-thumb: #48484c;
    --mt-glass-card: rgba(36, 36, 39, 0.75);
    --mt-brand-text: #ff7a45;
    --mt-brand-tint: rgba(255, 90, 31, 0.16);
    --mt-info-tint: rgba(42, 140, 255, 0.18);
    --mt-graphite: #3a3a3e;   --mt-graphite-edge: #222225;   --mt-graphite-edge-top: #2c2c30;
    --mt-snow: #3a3a3e;       --mt-snow-edge: #1f1f22;   --mt-snow-edge-top: #2c2c30;   --mt-snow-ink: #f5f5f7;
    --mt-gloss: rgba(255, 255, 255, 0.1);
    --mt-gloss-rim: rgba(255, 255, 255, 0.18);
    --mt-shadow-ring: 0 0 0 0.5px rgba(255, 255, 255, 0.08);
    --mt-shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 20px 50px -30px rgba(0, 0, 0, 0.6);
    --mt-shadow-plan: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 30px 60px -40px rgba(0, 0, 0, 0.6);
    --mt-shadow-nav: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px -16px rgba(0, 0, 0, 0.6), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
    --mt-shadow-showcase: 0 1px 2px rgba(0, 0, 0, 0.3), 0 60px 120px -50px rgba(0, 0, 0, 0.8), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
    --mt-shadow-float: 0 20px 40px -20px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  }
}

/* brand presets — <html data-mt-brand="blue|green|purple|pink|ink">; orange is the default.
   Candy colours stay the same; only the action colour, its edge, links, tints and the glow change. */
:root[data-mt-brand="blue"]   { --mt-brand: #2f6bff; --mt-brand-edge: #1d47b8; --mt-brand-text: #1f55e0; --mt-brand-tint: #eaf0ff; --mt-brand-soft: rgba(47, 107, 255, 0.12); --mt-glow: rgba(47, 107, 255, 0.1); }
:root[data-mt-brand="green"]  { --mt-brand: #16a34a; --mt-brand-edge: #0f7a37; --mt-brand-text: #15803d; --mt-brand-tint: #e7f6ec; --mt-brand-soft: rgba(22, 163, 74, 0.12); --mt-glow: rgba(22, 163, 74, 0.1); }
:root[data-mt-brand="purple"] { --mt-brand: #7c3aed; --mt-brand-edge: #5b21b6; --mt-brand-text: #6d28d9; --mt-brand-tint: #f1eafe; --mt-brand-soft: rgba(124, 58, 237, 0.12); --mt-glow: rgba(124, 58, 237, 0.1); }
:root[data-mt-brand="pink"]   { --mt-brand: #e6338a; --mt-brand-edge: #a8215f; --mt-brand-text: #c21f6e; --mt-brand-tint: #fde8f2; --mt-brand-soft: rgba(230, 51, 138, 0.12); --mt-glow: rgba(230, 51, 138, 0.1); }
:root[data-mt-brand="ink"]    { --mt-brand: #171717; --mt-brand-edge: #000000; --mt-brand-text: #171717; --mt-brand-tint: #ededed; --mt-brand-soft: rgba(0, 0, 0, 0.06); --mt-glow: rgba(0, 0, 0, 0.05); }
/* ink = black brand: inside surfaces that are already near-black, brand elements flip to white */
:root[data-mt-brand="ink"] :is(.mt-plan--featured, .mt-cta-card, .mt-terminal) { --mt-brand: #ffffff; --mt-brand-edge: #c9c9d1; --mt-on-brand: #171717; --mt-brand-text: #ffffff; }
:root[data-mt-brand][data-theme="dark"] { --mt-brand-text: color-mix(in srgb, var(--mt-brand) 62%, white); --mt-brand-tint: color-mix(in srgb, var(--mt-brand) 18%, transparent); --mt-glow: color-mix(in srgb, var(--mt-brand) 5%, transparent); }
:root[data-mt-brand="ink"][data-theme="dark"] { --mt-brand: #f5f5f7; --mt-brand-edge: #a1a1a6; --mt-on-brand: #171717; --mt-brand-text: #f5f5f7; }
@media (prefers-color-scheme: dark) {
  :root[data-mt-brand]:not([data-theme="light"]) { --mt-brand-text: color-mix(in srgb, var(--mt-brand) 62%, white); --mt-brand-tint: color-mix(in srgb, var(--mt-brand) 18%, transparent); --mt-glow: color-mix(in srgb, var(--mt-brand) 5%, transparent); }
  :root[data-mt-brand="ink"]:not([data-theme="light"]) { --mt-brand: #f5f5f7; --mt-brand-edge: #a1a1a6; --mt-on-brand: #171717; --mt-brand-text: #f5f5f7; }
}

/* Japanese / Korean: rounded display glyphs from Sunghyun Sans JP / KR when loaded, native UI fonts */
:lang(ja) { --mt-font-display: "Sunghyun Sans", "Sunghyun Sans JP", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; --mt-font-sans: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif; }
:lang(ko) { --mt-font-display: "Sunghyun Sans", "Sunghyun Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; --mt-font-sans: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }

/* candy colour modifiers — shared by .mt-candy, .mt-btn, .mt-slab, .mt-clip.
   Components read var(--face, <default>) instead of declaring defaults, so these always win. */
.mt-red       { --face: var(--mt-red);       --edge: var(--mt-red-edge); }
.mt-coral     { --face: var(--mt-coral);     --edge: var(--mt-coral-edge); }
.mt-orange    { --face: var(--mt-orange);    --edge: var(--mt-orange-edge); }
.mt-tangerine { --face: var(--mt-tangerine); --edge: var(--mt-tangerine-edge); }
.mt-amber     { --face: var(--mt-amber);     --edge: var(--mt-amber-edge); }
.mt-yellow    { --face: var(--mt-yellow);    --edge: var(--mt-yellow-edge); }
.mt-green     { --face: var(--mt-green);     --edge: var(--mt-green-edge); }
.mt-teal      { --face: var(--mt-teal);      --edge: var(--mt-teal-edge); }
.mt-blue      { --face: var(--mt-blue);      --edge: var(--mt-blue-edge); }
.mt-sky       { --face: var(--mt-sky);       --edge: var(--mt-sky-edge); }
.mt-purple    { --face: var(--mt-purple);    --edge: var(--mt-purple-edge); }
.mt-pink      { --face: var(--mt-pink);      --edge: var(--mt-pink-edge); }
.mt-graphite  { --face: var(--mt-graphite);  --edge: var(--mt-graphite-edge); --edge-top: var(--mt-graphite-edge-top); --on: #fff; }
.mt-snow      { --face: var(--mt-snow);      --edge: var(--mt-snow-edge); --edge-top: var(--mt-snow-edge-top); --on: var(--mt-snow-ink); }

/* ── 3 · base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

.mt-page {
  min-height: 100vh;
  overflow-x: clip;
  background: radial-gradient(60% 40% at 50% 0%, var(--mt-glow), transparent 70%), var(--mt-paper);
  color: var(--mt-ink);
  font-family: var(--mt-font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.mt-page :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol) { margin: 0; }
.mt-page :where(ul, ol) { padding: 0; list-style: none; }
.mt-page :where(a) { color: inherit; text-decoration: none; }
.mt-page :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mt-page :where(img, video, canvas) { display: block; max-width: 100%; }
.mt-page :where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--mt-brand); outline-offset: 3px; }
.mt-page ::selection { background: color-mix(in srgb, var(--mt-brand) 22%, transparent); }
[data-mt-cycle] > [hidden] { display: none !important; }
html:not(.mt-js) [data-mt-cycle] > :not(:first-child) { display: none; }
.mt-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; }

/* ── 4 · typography ─────────────────────────────────────────────────────── */
.mt-display { font-family: var(--mt-font-display); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.mt-hero-title { font-size: clamp(40px, 13.5vw, 96px); line-height: 0.95; letter-spacing: -0.04em; max-width: 900px; margin-inline: auto; }
.mt-h2 { font-size: 38px; }
.mt-h2--xl { font-size: 38px; }
.mt-cta-title { font-size: 40px; line-height: 1; letter-spacing: -0.035em; max-width: 720px; }
.mt-h3 { font-size: 22px; line-height: 1.05; letter-spacing: -0.02em; }
.mt-h3--lg { font-size: 26px; }
@media (min-width: 640px) {
  .mt-h2 { font-size: 52px; }
  .mt-h2--xl { font-size: 56px; }
  .mt-cta-title { font-size: 64px; }
}
.mt-lead { margin-top: 16px; max-width: 520px; font-size: 17px; line-height: 1.625; color: var(--mt-ink-mid); }
.mt-lead--hero { margin-top: 28px; max-width: 560px; font-size: 16px; }
@media (min-width: 640px) { .mt-lead--hero { font-size: 18px; } }
.mt-copy { font-size: 14px; line-height: 1.625; color: var(--mt-ink-mid); }
.mt-copy--lg { font-size: 15px; }
.mt-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mt-ink-faint); }
.mt-mono { font-family: var(--mt-font-mono); }
.mt-hand { font-family: var(--mt-font-hand); font-style: italic; font-weight: 400; }
.mt-tabular { font-variant-numeric: tabular-nums; }
.mt-muted { color: var(--mt-ink-muted); }
.mt-brand-text { color: var(--mt-brand-text); }
/* CJK headlines need air (tight Latin tracking crushes Han glyphs) and should break at 。，not mid-phrase */
:where(:lang(zh), :lang(ja), :lang(ko)) .mt-display { letter-spacing: -0.01em; line-height: 1.12; word-break: keep-all; overflow-wrap: anywhere; }
:where(:lang(zh), :lang(ja), :lang(ko)) .mt-hero-title { line-height: 1.08; }

/* ── 5 · layout ─────────────────────────────────────────────────────────── */
.mt-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .mt-wrap { padding-inline: 24px; } }
.mt-section { padding-top: 128px; scroll-margin-top: 96px; }
.mt-section-head { max-width: 640px; }
.mt-section-head--center { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mt-section-head--split { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) { .mt-section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.mt-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 144px; }
@media (min-width: 640px) { .mt-hero { padding-top: 192px; } }
.mt-hero__stage { position: relative; width: 100%; }
.mt-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; }

/* ── 6 · nav: floating glass pill ───────────────────────────────────────── */
.mt-nav-shell { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: center; padding: 16px 16px 0; pointer-events: none; }
.mt-nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 1120px; height: 56px;
  padding: 0 6px 0 12px;
  border-radius: var(--mt-r-pill);
  background: var(--mt-nav-bg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: var(--mt-shadow-nav);
  animation: mt-nav-in 0.7s var(--mt-expo) both;
}
@media (min-width: 640px) { .mt-nav { padding: 0 8px 0 16px; } }
.mt-nav__links { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .mt-nav__links { display: flex; } }
.mt-nav__link { padding: 8px 14px; border-radius: var(--mt-r-pill); font-size: 14px; font-weight: 500; color: var(--mt-ink-mid); transition: color 0.15s; }
.mt-nav__link:hover, .mt-nav__link[aria-current] { color: var(--mt-ink); }
.mt-nav__actions { display: flex; align-items: center; gap: 8px; }
.mt-nav__text { display: none; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--mt-ink-mid); white-space: nowrap; transition: color 0.15s; }
.mt-nav__text:hover { color: var(--mt-ink); }
@media (min-width: 400px) { .mt-nav__text { display: block; } }
.mt-logo { display: inline-flex; align-items: center; flex-shrink: 0; font-family: var(--mt-font-display); font-weight: 900; font-size: 25px; line-height: 1; letter-spacing: -0.04em; color: var(--mt-ink); }

/* ── 7 · buttons ────────────────────────────────────────────────────────── */
/* 7a candy button: static edge (::before) + face (child span) that springs up on hover and squashes on press */
.mt-btn {
  --depth: 8px; --h: 48px; --px: 24px; --fs: 15px;
  position: relative; display: inline-flex; flex-direction: column;
  padding-bottom: var(--depth);
  border-radius: var(--mt-r-pill);
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.mt-btn::before {
  content: ""; position: absolute; inset: var(--depth) 0 0 0; border-radius: inherit;
  background: linear-gradient(180deg, var(--edge-top, color-mix(in srgb, var(--edge, var(--mt-brand-edge)) 72%, white)), var(--edge, var(--mt-brand-edge)));
  box-shadow: var(--mt-shadow-btn);
  transition: box-shadow 0.34s var(--mt-ease);
}
.mt-btn > span {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 var(--px);
  border-radius: inherit; background: var(--face, var(--mt-brand)); color: var(--on, var(--mt-on-brand));
  font-size: var(--fs); font-weight: 600; line-height: 1; white-space: nowrap;
  transition: transform 0.34s var(--mt-spring);
}
.mt-btn > span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}
@media (hover: hover) {
  .mt-btn:hover > span { transform: translateY(-4px); }
  .mt-btn:hover::before { box-shadow: var(--mt-shadow-btn-hover); }
}
.mt-btn:active > span { transform: translateY(calc(var(--depth) * 0.8)) scale(1.02, 0.97); transition-duration: 0.12s; }
.mt-btn:active::before { box-shadow: var(--mt-shadow-btn-press); }
.mt-btn:focus-visible { outline: 2px solid var(--mt-brand); outline-offset: 4px; }
.mt-btn.mt-snow > span { box-shadow: inset 0 0 0 0.5px var(--mt-hairline); }
.mt-btn--sm { --depth: 6px; --h: 40px; --px: 16px; --fs: 13.5px; }
.mt-btn--lg { --depth: 10px; --h: 56px; --px: 30px; --fs: 17px; }
.mt-btn[aria-disabled="true"], .mt-btn:disabled { opacity: 0.6; pointer-events: none; }

/* 7b flat pill buttons (nav CTA, plan CTAs, trial) */
.mt-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--mt-r-pill);
  background: var(--mt-surface-ink); color: var(--mt-on-ink);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.3, 1.15, 0.5, 1), background-color 0.22s var(--mt-ease), box-shadow 0.28s var(--mt-ease);
}
.mt-pill:hover { background: var(--mt-surface-ink-hover); transform: translateY(-1px) scale(1.03); }
.mt-pill:active { transform: scale(0.97); }
.mt-pill--lg { height: 48px; padding: 0 24px; font-size: 15px; }
.mt-pill--block { display: flex; width: 100%; }
.mt-pill--brand { background: var(--mt-brand); color: var(--mt-on-brand); box-shadow: 0 2px 10px color-mix(in srgb, var(--mt-brand) 35%, transparent); }
.mt-pill--brand:hover { background: var(--mt-brand); filter: brightness(1.05); }
.mt-pill--soft { background: var(--mt-fill); color: var(--mt-ink); }
.mt-pill--soft:hover { background: rgba(0, 0, 0, 0.09); }
.mt-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: var(--mt-r-pill); color: var(--mt-ink-mid);
  transition: transform 0.22s var(--mt-ease), background-color 0.22s var(--mt-ease), color 0.15s;
}
.mt-icon-btn:hover { background: var(--mt-fill-hover); color: var(--mt-ink); transform: translateY(-1px); }
.mt-icon-btn:active { transform: scale(0.97); }
.mt-press { transition: transform 0.22s var(--mt-ease), background-color 0.22s var(--mt-ease), box-shadow 0.28s var(--mt-ease); }
.mt-press:hover { transform: translateY(-1px); }
.mt-press:active { transform: scale(0.97); }
.mt-when-dark { display: none !important; }
:root[data-theme="dark"] .mt-when-light { display: none !important; }
:root[data-theme="dark"] .mt-when-dark { display: revert !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mt-when-light { display: none !important; }
  :root:not([data-theme="light"]) .mt-when-dark { display: revert !important; }
}
.mt-if-sound-on { display: none !important; }
:root[data-mt-sound-state="on"] .mt-if-sound-on { display: revert !important; }
:root[data-mt-sound-state="on"] .mt-if-sound-off { display: none !important; }
html.mt-smooth { scroll-behavior: auto !important; }
.mt-link { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 600; color: var(--mt-brand); white-space: nowrap; }
.mt-link svg { transition: transform 0.15s var(--mt-ease); }
.mt-link:hover svg { transform: translateX(2px); }

/* 7c AI dock: orange pill with live eyes + key hint */
.mt-dock {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 14px;
  border-radius: var(--mt-r-pill); background: var(--mt-brand); color: var(--mt-on-brand);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.06), 0 3px 0 var(--mt-brand-edge), 0 16px 30px -12px color-mix(in srgb, var(--mt-brand) 55%, transparent);
  transition: transform 0.25s var(--mt-spring);
}
.mt-dock:hover { transform: translateY(-1px); }
.mt-dock:active { transform: translateY(2px) scale(0.98); }
.mt-dock .mt-eyes { height: 22px; width: 44px; color: #171717; --mt-pupil: #fff; }
.mt-kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 9px; background: rgba(0, 0, 0, 0.12); color: var(--mt-on-brand); font: 600 13px/1 var(--mt-font-sans);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ── 8 · candy: extruded 3D pills ───────────────────────────────────────── */
/* Flat by default (keycap edge). Inside .mt-tilt / .mt-float / .mt-iso / .mt-terminal the runtime
   stacks real translateZ layers (2px apart) under a lifted face — that is the signature look. */
.mt-candy {
  --depth: 18px; --h: 36px; --px: 16px; --fs: 12.5px; --gap: 8px;
  position: relative; display: inline-flex; align-items: center; gap: var(--gap);
  height: var(--h); padding: 0 var(--pr, var(--px)) 0 var(--pl, var(--px)); flex-shrink: 0;
  border-radius: var(--mt-r-pill);
  background: linear-gradient(180deg, var(--mt-gloss) 0%, rgba(255, 255, 255, 0) 60%), var(--face, var(--mt-orange));
  color: var(--on, #fff);
  font: 500 var(--fs) / 1 var(--mt-font-mono);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--mt-gloss-rim), 0 4px 0 var(--edge, var(--mt-orange-edge)), 0 10px 16px -8px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
}
.mt-candy svg { flex-shrink: 0; }
.mt-candy--sm { --depth: 8px; --h: 28px; --px: 12px; --fs: 11.5px; --gap: 6px; }
.mt-candy--lg { --depth: 20px; --h: 54px; --px: 22px; --fs: 17px; --gap: 12px; }
.mt-candy--xl { --depth: 20px; --h: 72px; --px: 30px; --fs: 30px; --gap: 12px; }
.mt-candy--sans { font-family: var(--mt-font-sans); font-weight: 600; }
.mt-candy--display { font-family: var(--mt-font-display); font-weight: 900; letter-spacing: -0.02em; }
:lang(zh) .mt-candy, :lang(ja) .mt-candy, :lang(ko) .mt-candy { font-family: var(--mt-font-sans); font-weight: 600; }   /* CJK labels: sans, not a thin mono fallback */
:lang(zh) .mt-candy.mt-candy--display, :lang(ja) .mt-candy.mt-candy--display, :lang(ko) .mt-candy.mt-candy--display { font-family: var(--mt-font-display); font-weight: 900; }
.mt-slab { --depth: 8px; --h: auto; --px: 14px; display: flex; width: 100%; padding-block: 14px; gap: 14px; border-radius: var(--mt-r-lg); font-family: var(--mt-font-sans); font-size: 14.5px; white-space: normal; text-align: left; }
/* built (3D) state */
.mt-candy.is-3d { display: inline-block; height: auto; padding: 0; background: none; box-shadow: none; }
.mt-candy.is-3d > .mt-candy__layer { position: absolute; inset: 0; border-radius: inherit; background: var(--edge, var(--mt-orange-edge)); transform: translateZ(var(--z)); pointer-events: none; }
.mt-candy.is-3d > .mt-candy__layer:first-child { box-shadow: var(--candy-shadow, var(--mt-shadow-candy)); }
.mt-candy.is-3d > .mt-candy__face {
  position: relative; display: flex; align-items: center; gap: var(--gap);
  height: var(--h); padding: 0 var(--pr, var(--px)) 0 var(--pl, var(--px)); border-radius: inherit;
  background: linear-gradient(180deg, var(--mt-gloss) 0%, rgba(255, 255, 255, 0) 60%), var(--face, var(--mt-orange));
  box-shadow: inset 0 1px 0 var(--mt-gloss-rim), 0 3px 0 var(--edge, var(--mt-orange-edge));
  transform: translateZ(var(--depth)); transform-style: preserve-3d;
}
.mt-slab.is-3d { display: block; }
.mt-slab.is-3d > .mt-candy__face { padding: 14px; height: auto; }
/* tilt context — gives any candy, slab or terminal its 3D read */
.mt-tilt { perspective: var(--persp, 900px); }
.mt-tilt > * { transform-style: preserve-3d; transform: rotateX(var(--rx, 18deg)) rotateZ(var(--rz, 0deg)); }

/* hero candy field ("toys"): pop in, bob, lean toward the pointer, lift on hover,
   backflip on click, drag and spring home — runtime drives drag/swing/flip */
.mt-float-field { position: absolute; inset: 0; display: none; perspective: 1400px; pointer-events: none; --tilt-x: 0deg; --tilt-y: 0deg; }
@media (min-width: 1280px) { .mt-float-field { display: block; } }
.mt-float-field--always { display: block; }
.mt-float {
  position: absolute; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}
.mt-float.is-dragging { cursor: grabbing; scale: 1.14; }
.mt-float__pose {
  display: block; transform-style: preserve-3d;
  transform: translateZ(0) scale(1) rotateX(40deg) rotateZ(var(--rz, -7deg));
  transition: transform 0.45s cubic-bezier(0.3, 1.35, 0.55, 1);
  animation: mt-float-in 1.2s linear backwards;
  animation-delay: var(--delay, 0.5s);
}
.mt-float:hover .mt-float__pose { transform: translateZ(26px) scale(1.08) rotateX(14deg) rotateZ(var(--rz, -7deg)); }
.mt-float__bob { display: block; transform-style: preserve-3d; animation: mt-bob var(--bob, 5s) ease-in-out infinite; }
.mt-float__squish { display: block; transform-style: preserve-3d; transition: rotate 1s cubic-bezier(0.3, 1.25, 0.55, 1); }
.mt-float__squish.is-squash { animation: mt-squash 0.55s ease-out; }

/* isometric belt: a tilted floor of chips drifting past */
.mt-iso { position: relative; overflow: hidden; height: 100%; min-height: 240px; }
.mt-iso--fade { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 82%, transparent 99%); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 82%, transparent 99%); }
.mt-iso__plane {
  position: absolute; left: 50%; top: 50%; width: 2800px;
  display: flex; flex-direction: column; gap: 24px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(48deg) rotate(-16deg) scale(var(--iso-scale, 0.78));
}
.mt-iso__row { display: flex; gap: 20px; width: max-content; transform-style: preserve-3d; animation: mt-iso-drift var(--dur, 34s) linear infinite; }
.mt-iso__row--reverse { animation-direction: reverse; }
.mt-iso__row:nth-child(2n) { margin-left: -120px; }
.mt-iso .mt-candy { transition: transform 0.35s var(--mt-spring); }
.mt-iso .mt-candy:hover { transform: translateZ(22px); }

/* terminal pill: graphite candy tilted back, mono command, orange copy key */
.mt-terminal { position: relative; width: fit-content; max-width: 100%; perspective: 1100px; }
.mt-terminal__body {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  transform-style: preserve-3d; transform: rotateX(22deg);
  border-radius: var(--mt-r-pill);
}
.mt-terminal .mt-candy {
  --face: var(--mt-graphite); --edge: var(--mt-graphite-edge); --depth: 16px; --h: 60px; --pl: 24px; --pr: 10px; --gap: 12px;
  --candy-shadow: 0 26px 34px -18px rgba(0, 0, 0, 0.5);
  display: flex; width: 100%; font-family: var(--mt-font-sans);
}
.mt-terminal .mt-candy.is-3d { display: block; }
.mt-terminal code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  font: 400 12.5px/1.625 var(--mt-font-mono); color: rgba(255, 255, 255, 0.85);
  padding-right: 24px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.mt-terminal code::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .mt-terminal code { font-size: 13.5px; } }
.mt-terminal__prompt { margin-right: 8px; color: rgba(255, 255, 255, 0.35); }
.mt-terminal__copy {
  position: relative; display: grid; place-items: center; flex-shrink: 0; height: 40px; padding: 0 16px;
  border-radius: var(--mt-r-pill); background: var(--mt-brand); color: var(--mt-on-brand); font: 600 13px/1 var(--mt-font-sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 var(--mt-brand-edge);
  transform: translateZ(1px);
}
.mt-terminal__copy > * { grid-area: 1 / 1; transition: opacity 0.2s var(--mt-ease), transform 0.35s var(--mt-spring); }
.mt-terminal__copy .mt-terminal__check { opacity: 0; transform: scale(0.4); }
.mt-terminal.is-copied .mt-terminal__label { opacity: 0; transform: scale(0.4); }
.mt-terminal.is-copied .mt-terminal__check { opacity: 1; transform: none; }

/* ── 9 · eyes: the mascot motif (o → eye), pupils follow the pointer, random blinks ── */
.mt-eyes { display: inline-block; width: 1.24em; height: 0.62em; vertical-align: -0.02em; margin: 0 0.01em; overflow: visible; color: currentColor; }
.mt-eyes .mt-eye__ball { fill: currentColor; }
.mt-eyes .mt-eye__pupil { fill: var(--mt-pupil, var(--mt-paper)); }
.mt-eye__look { will-change: transform; }
.mt-eye__lid, .mt-eyeball__lid { transform-box: fill-box; transform-origin: 50% 50%; }
/* giant 3D eyeballs that peek over the bottom of the footer */
.mt-eyeballs { position: relative; width: 100%; max-width: 1240px; margin: 64px auto 0; aspect-ratio: 252 / 78; overflow: hidden; }
@media (min-width: 640px) { .mt-eyeballs { margin-top: 96px; } }
.mt-eyeballs__pair { position: absolute; inset: 14% 2% auto 2%; aspect-ratio: 252 / 121; transform: translateY(38%); transition: transform 1.4s var(--mt-overshoot); }
.mt-eyeballs.is-in .mt-eyeballs__pair { transform: translateY(0); }
.mt-eyeball { position: absolute; top: 0; width: 48.016%; aspect-ratio: 1; }
.mt-eyeball:first-child { left: 0; }
.mt-eyeball:last-child { left: 51.984%; }
.mt-eyeball::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mt-graphite-edge); transform: translateY(3.5%); }
.mt-eyeball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 60%), var(--mt-graphite); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.22); }
.mt-eyeball__socket { position: absolute; z-index: 1; left: 50%; top: 50%; width: 42.975%; aspect-ratio: 1; margin: -21.49% 0 0 -21.49%; }
.mt-eyeball__pupil { width: 100%; height: 100%; will-change: transform; }
.mt-eyeball__lid { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(180deg, #fff 0%, #fff 50%, #ededf0 100%); }

/* ── 10 · surfaces ──────────────────────────────────────────────────────── */
.mt-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--mt-r-card); background: var(--mt-surface); box-shadow: var(--mt-shadow-card); }
.mt-card--feature { border-radius: var(--mt-r-feature); }
.mt-card--visible { overflow: visible; z-index: 1; }
.mt-card__media { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.mt-card__well { position: relative; height: 280px; flex: none; overflow: hidden; background: var(--mt-surface-sunk); }
.mt-card__body { padding: 16px 24px 24px; }
.mt-card__body .mt-copy { margin-top: 6px; }
.mt-card__body--lg { padding: 24px; }
.mt-card__body--lg .mt-copy { margin-top: 10px; font-size: 15px; }
@media (min-width: 640px) { .mt-card__body--lg { padding: 28px; } }
.mt-banner { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px; border-radius: var(--mt-r-xl); background: var(--mt-surface); box-shadow: var(--mt-shadow-ring); text-align: center; }
@media (min-width: 640px) { .mt-banner { flex-direction: row; justify-content: space-between; padding: 24px 32px; text-align: left; } }
.mt-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--mt-r-pill); background: var(--mt-fill); color: var(--mt-ink-2); font: 500 11.5px/1 var(--mt-font-mono); white-space: nowrap; }
.mt-chip--sans { font-family: var(--mt-font-sans); font-size: 12px; }
.mt-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--mt-r-pill); background: var(--mt-brand); color: var(--mt-on-brand); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.mt-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--mt-r-pill); background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.mt-badge--brand { height: auto; padding: 2px 6px; background: var(--mt-brand-soft); color: var(--mt-brand-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-badge--soft { background: var(--mt-fill); color: var(--mt-ink-2); }
.mt-tip { position: relative; cursor: help; outline: none; }
.mt-tip__bubble {
  position: absolute; left: 100%; top: 50%; z-index: 20; margin-left: 8px; white-space: nowrap; pointer-events: none;
  padding: 4px 10px; border-radius: var(--mt-r-pill); background: #171717; color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: 0;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 8px 20px -8px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translate(-4px, -50%); transition: opacity 0.15s, transform 0.15s;
}
.mt-tip:hover .mt-tip__bubble, .mt-tip:focus .mt-tip__bubble { opacity: 1; transform: translate(0, -50%); }
.mt-window { border-radius: var(--mt-r-md); background: #171717; padding: 16px; color: rgba(255, 255, 255, 0.85); font: 400 12.5px/1.7 var(--mt-font-mono); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.6); }
.mt-window__dots { display: flex; gap: 6px; margin-bottom: 8px; }
.mt-window__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.mt-bubble { max-width: 85%; padding: 8px 12px; border-radius: var(--mt-r-md); background: #171717; color: #fff; font-size: 12.5px; line-height: 1.45; }
.mt-popover { border-radius: var(--mt-r-md); background: var(--mt-surface); padding: 12px; box-shadow: var(--mt-shadow-float); }
.mt-dots { background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1px, transparent 1.2px); background-size: 18px 18px; }

/* sticky "showcase" frame: tilts flat as it scrolls into view (runtime writes --p 0→1) */
.mt-showcase { position: relative; height: var(--scene, 180vh); margin-top: 24px; }
.mt-showcase__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 12px; perspective: 1600px; }
@media (min-width: 640px) { .mt-showcase__stage { padding: 16px; } }
.mt-showcase__frame {
  height: 100%; overflow: hidden; border-radius: var(--mt-r-card); box-shadow: var(--mt-shadow-showcase);
  transform-origin: 50% 0;
  transform: translateY(calc((1 - var(--p, 1)) * 40px)) scale(calc(0.88 + 0.12 * var(--p, 1))) rotateX(calc((1 - var(--p, 1)) * 12deg));
  opacity: calc(0.9 + 0.1 * var(--p, 1));
  will-change: transform;
}

/* scroll scrubbing: .mt-showcase and [data-mt-scene] also get --s (0→1 while pinned/passing).
   [data-mt-scrub] shows one child per slice of --s; [data-mt-clock="15"] prints s × 15 as m:ss.s */
[data-mt-scrub] > [hidden] { display: none !important; }
html:not(.mt-js) [data-mt-scrub] > :not(:first-child) { display: none; }
.mt-playhead { position: absolute; top: 0; bottom: 0; left: calc(var(--s, 0) * 100%); width: 2px; margin-left: -1px; border-radius: 2px; background: var(--app-accent, #007aff); pointer-events: none; }
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

@media (max-width: 767.98px) {
  .mt-showcase { height: auto; }
  .mt-showcase__stage { position: relative; height: auto; }
  .mt-showcase__frame { height: 560px; transform: none; opacity: 1; }
}

/* bento grid (feature cards) */
.mt-bento { display: grid; gap: 16px; grid-auto-rows: 340px; margin-top: 40px; }
@media (min-width: 640px) { .mt-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mt-span-2 { grid-column: span 2; } }
@media (min-width: 1024px) { .mt-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mt-row-2 { grid-row: span 2; } }
.mt-steps { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 768px) { .mt-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── 11 · pricing ───────────────────────────────────────────────────────── */
.mt-segment { position: relative; display: inline-flex; padding: 4px; border-radius: var(--mt-r-pill); background: var(--mt-fill); }
.mt-segment__btn { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: var(--mt-r-pill); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--mt-ink-mid); transition: color 0.3s; }
.mt-segment__btn[aria-selected="true"] { color: #fff; }
.mt-segment__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--mt-r-pill); background: var(--mt-surface-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); transition: transform 0.46s var(--mt-spring), width 0.46s var(--mt-spring); }
.mt-plans { display: grid; align-items: start; gap: 20px; margin-top: 48px; }
@media (min-width: 1024px) { .mt-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 16px; } }
.mt-plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--mt-r-plan); background: var(--mt-surface); color: var(--mt-ink); box-shadow: var(--mt-shadow-plan); }
@media (min-width: 640px) { .mt-plan { padding: 32px; } }
.mt-plan--featured { background: var(--mt-surface-ink); color: #fff; box-shadow: var(--mt-shadow-featured); }
@media (min-width: 1024px) { .mt-plan--featured { margin-block: -16px; padding-block: 48px; } }
.mt-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-plan__sub { margin-top: 4px; font-size: 14px; color: var(--mt-ink-muted); }
.mt-plan--featured .mt-plan__sub { color: rgba(255, 255, 255, 0.6); }
.mt-plan__deal { display: flex; align-items: center; gap: 8px; margin: 24px 0 10px; }
.mt-plan__deal s { font-size: 15px; font-weight: 600; color: var(--mt-strike); }
.mt-plan--featured .mt-plan__deal s { color: rgba(255, 255, 255, 0.45); }
.mt-price { display: flex; align-items: baseline; gap: 6px; }
.mt-price__num { font-family: var(--mt-font-display); font-size: 54px; font-weight: 900; line-height: 1; letter-spacing: -0.045em; }
.mt-price__num small { font-size: 0.5em; letter-spacing: -0.02em; }
.mt-price__per { font-size: 14px; color: var(--mt-ink-muted); }
.mt-plan--featured .mt-price__per { color: rgba(255, 255, 255, 0.55); }
.mt-plan__note { margin-top: 8px; min-height: 20px; font-size: 13px; color: var(--mt-ink-muted); }
.mt-plan--featured .mt-plan__note { color: rgba(255, 255, 255, 0.5); }
.mt-plan__cta { margin-top: 28px; }
.mt-plan__fine { margin-top: 10px; text-align: center; font-size: 12px; color: #8a8a8a; }
.mt-plan--featured .mt-plan__fine { color: rgba(255, 255, 255, 0.45); }
.mt-plan__extra { margin-top: 28px; }
.mt-checklist { margin-top: 16px; font-size: 14px; }
.mt-checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--mt-ink-2); }
.mt-checklist li + li { border-top: 1px solid var(--mt-line); }
.mt-plan--featured .mt-checklist li { color: rgba(255, 255, 255, 0.92); }
.mt-plan--featured .mt-checklist li + li { border-color: rgba(255, 255, 255, 0.1); }
.mt-check { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--mt-surface-ink); color: #fff; }
.mt-plan--featured .mt-check { background: var(--mt-brand); color: var(--mt-on-brand); }
.mt-swap-char { display: inline-block; animation: mt-digit-in 0.45s var(--mt-expo) backwards; animation-delay: calc(var(--k, 0) * 30ms); }
.mt-voice { display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, 0.2); color: #fff; }
.mt-voice i { display: block; width: 3px; border-radius: 2px; background: currentColor; transform-origin: 50%; animation: mt-voice-bar 1.1s ease-in-out infinite; }
.mt-voice i:nth-child(1) { height: 9px; } .mt-voice i:nth-child(2) { height: 16px; animation-delay: -0.18s; } .mt-voice i:nth-child(3) { height: 20px; animation-delay: -0.36s; } .mt-voice i:nth-child(4) { height: 13px; animation-delay: -0.54s; } .mt-voice i:nth-child(5) { height: 8px; animation-delay: -0.72s; }

/* ── 12 · gallery shelf · footer ────────────────────────────────────────── */
/* vertical scroll drives a horizontal track while the section is pinned (runtime); native swipe on small screens */
.mt-shelf { position: relative; padding-top: 64px; }
.mt-shelf__pin { display: flex; flex-direction: column; justify-content: center; gap: 40px; overflow: hidden; }
.mt-shelf.is-pinned .mt-shelf__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 64px; }
.mt-shelf__viewport { --shelf-h: calc((100vw - 64px) * 0.5625); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mt-shelf__viewport::-webkit-scrollbar { display: none; }
.mt-shelf.is-pinned .mt-shelf__viewport { overflow: visible; }
@media (min-width: 640px) { .mt-shelf__viewport { --shelf-h: min(360px, 42svh); } }
@media (min-width: 1024px) { .mt-shelf__viewport { --shelf-h: min(400px, 46svh); } }
.mt-shelf__track { display: flex; gap: 20px; width: max-content; padding-inline: max(20px, calc((100vw - 1120px) / 2 + 24px)); will-change: transform; }
.mt-tile { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; scroll-snap-align: start; }
.mt-tile__media { position: relative; display: block; height: var(--shelf-h); aspect-ratio: var(--ar, 16 / 9); overflow: hidden; border-radius: var(--mt-r-tile); background: var(--mt-tile-bg); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
.mt-tile__media > img, .mt-tile__media > video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--mt-ease); }
.mt-tile:hover .mt-tile__media > img, .mt-tile:hover .mt-tile__media > video { transform: scale(1.03); }
.mt-tile__play { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #171717; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45); transition: transform 0.25s var(--mt-spring); }
.mt-tile:hover .mt-tile__play { transform: scale(1.08); }
.mt-tile__cap { padding-inline: 4px; }
.mt-tile__title { margin-top: 2px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--mt-ink); }
.mt-tile__meta { margin-top: 2px; font-size: 13px; color: var(--mt-ink-faint); font-variant-numeric: tabular-nums; }

.mt-cta { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mt-cta .mt-lead { max-width: 480px; margin-top: 20px; font-size: 16px; }

.mt-footer { margin-top: 160px; }
.mt-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
@media (min-width: 640px) { .mt-footer__grid { grid-template-columns: 1fr auto auto auto 1fr; column-gap: 64px; } }
.mt-footer__brand { grid-column: span 2; }
@media (min-width: 640px) { .mt-footer__brand { grid-column: auto; } }
.mt-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.mt-footer__col > p { font-weight: 600; color: var(--mt-ink); }
.mt-footer__col > a { width: fit-content; color: var(--mt-ink-soft); transition: color 0.15s; }
.mt-footer__col > a:hover { color: var(--mt-ink); }
.mt-footer__legal { grid-column: span 2; font-size: 14px; color: var(--mt-ink-faint); }
@media (min-width: 640px) { .mt-footer__legal { grid-column: auto; justify-self: end; } }

/* ── 13 · app kit: the editor's iOS-flavoured chrome (scope with .mt-app) ── */
.mt-app {
  --app-bg: #f2f2f7; --app-surface: #fff; --app-surface-2: #ececf1; --app-surface-3: #e3e3e8;
  --app-ink: #1c1c1e; --app-ink-2: rgba(28, 28, 30, 0.62); --app-ink-3: rgba(28, 28, 30, 0.42); --app-ink-4: rgba(28, 28, 30, 0.22);
  --app-line: rgba(0, 0, 0, 0.06); --app-line-2: rgba(0, 0, 0, 0.1);
  --app-accent: #007aff; --app-accent-2: #409cff; --app-accent-soft: rgba(0, 122, 255, 0.12); --app-on-accent: #fff;
  --app-danger: #ff3b30; --app-good: #1f9d48; --app-warn: #b25e00;
  --app-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 26px -14px rgba(0, 0, 0, 0.12);
  --app-pop-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 60px -20px rgba(0, 0, 0, 0.32);
  --app-glass: rgba(255, 255, 255, 0.7); --app-glass-edge: rgba(255, 255, 255, 0.9); --app-glass-rim: rgba(0, 0, 0, 0.05);
  --app-key-face: #ececf1; --app-key-face-hover: #e5e5ea; --app-key-edge: #d1d1d6; --app-key-drop: rgba(0, 0, 0, 0.1);
  --app-field: rgba(118, 118, 128, 0.1);
  background: var(--app-bg); color: var(--app-ink); font-family: var(--mt-font-app); font-size: 13.5px;
}
:root[data-theme="dark"] .mt-app {
  --app-bg: #18181b; --app-surface: #242427; --app-surface-2: #323236; --app-surface-3: #414145;
  --app-ink: #f3f3f5; --app-ink-2: rgba(243, 243, 245, 0.64); --app-ink-3: rgba(243, 243, 245, 0.42); --app-ink-4: rgba(243, 243, 245, 0.2);
  --app-line: rgba(255, 255, 255, 0.07); --app-line-2: rgba(255, 255, 255, 0.12);
  --app-accent: #0a84ff; --app-accent-soft: rgba(10, 132, 255, 0.2); --app-danger: #ff453a; --app-good: #30d158; --app-warn: #ffb547;
  --app-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  --app-pop-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  --app-glass: rgba(36, 36, 39, 0.72); --app-glass-edge: rgba(255, 255, 255, 0.06); --app-glass-rim: rgba(255, 255, 255, 0.05);
  --app-key-face: #323236; --app-key-face-hover: #39393d; --app-key-edge: #1f1f22; --app-key-drop: rgba(0, 0, 0, 0.3);
  --app-field: rgba(118, 118, 128, 0.22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mt-app {
    --app-bg: #18181b; --app-surface: #242427; --app-surface-2: #323236; --app-surface-3: #414145;
    --app-ink: #f3f3f5; --app-ink-2: rgba(243, 243, 245, 0.64); --app-ink-3: rgba(243, 243, 245, 0.42); --app-ink-4: rgba(243, 243, 245, 0.2);
    --app-line: rgba(255, 255, 255, 0.07); --app-line-2: rgba(255, 255, 255, 0.12);
    --app-accent: #0a84ff; --app-accent-soft: rgba(10, 132, 255, 0.2); --app-danger: #ff453a; --app-good: #30d158; --app-warn: #ffb547;
    --app-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
    --app-pop-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -20px rgba(0, 0, 0, 0.8);
    --app-glass: rgba(36, 36, 39, 0.72); --app-glass-edge: rgba(255, 255, 255, 0.06); --app-glass-rim: rgba(255, 255, 255, 0.05);
    --app-key-face: #323236; --app-key-face-hover: #39393d; --app-key-edge: #1f1f22; --app-key-drop: rgba(0, 0, 0, 0.3);
    --app-field: rgba(118, 118, 128, 0.22);
  }
}
.mt-app-card { background: var(--app-surface); border-radius: 18px; box-shadow: var(--app-card-shadow), 0 0 0 0.5px var(--app-line-2); }
.mt-glass { background: var(--app-glass); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); box-shadow: inset 0 0.5px 0 var(--app-glass-edge), 0 0 0 0.5px var(--app-glass-rim), 0 8px 24px -12px rgba(0, 0, 0, 0.16); }
.mt-menu { background: var(--app-surface); border-radius: 14px; box-shadow: 0 0 0 0.5px var(--app-line-2), var(--app-pop-shadow); }
/* key: 3px pixel edge; hover lifts to 4px, press sinks to 1px */
.mt-key {
  --t: 3px; --edge: var(--app-key-edge); --drop: var(--app-key-drop);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 10px; background: var(--app-key-face); color: var(--app-ink); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 var(--t) 0 var(--edge), 0 calc(var(--t) + 6px) 14px -8px var(--drop);
  transform: translateY(0);
  transition: transform 0.34s var(--mt-spring), box-shadow 0.34s var(--mt-ease), background-color 0.2s var(--mt-ease), filter 0.2s var(--mt-ease);
}
.mt-key:hover { --t: 4px; transform: translateY(-1px); background: var(--app-key-face-hover); }
.mt-key:active { --t: 1px; transform: translateY(3px); transition-duration: 0.12s; }
.mt-key--accent { background: var(--app-accent); color: var(--app-on-accent); --edge: color-mix(in srgb, var(--app-accent) 72%, #001a40); --drop: color-mix(in srgb, var(--app-accent) 32%, transparent); }
.mt-key--accent:hover { background: var(--app-accent); filter: brightness(1.06); }
.mt-key--brand { background: var(--mt-brand); color: var(--mt-on-brand); --edge: var(--mt-brand-edge); --drop: color-mix(in srgb, var(--mt-brand) 35%, transparent); }
.mt-key--brand:hover { background: var(--mt-brand); filter: brightness(1.05); }
.mt-key--icon { width: 36px; padding: 0; }
.mt-keys { display: inline-flex; gap: 1px; }
.mt-keys > .mt-key:first-child { border-radius: 10px 0 0 10px; }
.mt-keys > .mt-key:last-child { border-radius: 0 10px 10px 0; }
/* rail: segmented tabs with a raised sliding thumb */
.mt-rail { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 12px; }
.mt-rail__btn { position: relative; z-index: 1; display: flex; flex: 1; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--app-ink-3); transition: color 0.25s var(--mt-ease), transform 0.25s var(--mt-spring); }
.mt-rail__btn:hover, .mt-rail__btn[aria-selected="true"] { color: var(--app-ink); }
.mt-rail__btn:active { transform: scale(0.88); }
.mt-rail .mt-segment__thumb { top: 4px; bottom: 4px; border-radius: 8px; background: var(--app-surface); box-shadow: 0 0 0 0.5px var(--app-glass-rim), 0 2px 0 var(--app-key-edge), 0 4px 8px rgba(0, 0, 0, 0.14); }
.mt-section-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-ink-3); }
.mt-field {
  width: 100%; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; outline: none;
  background: var(--app-field); box-shadow: inset 0 0 0 0.5px var(--app-line);
  color: var(--app-ink); font: inherit; font-size: 13.5px;
  transition: box-shadow 0.28s var(--mt-ease), background-color 0.22s var(--mt-ease);
}
.mt-field::placeholder { color: var(--app-ink-4); }
.mt-field:focus { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--app-accent) 40%, transparent); }
.mt-row-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--app-field); color: var(--app-ink-2); }
.mt-row-field b { font-weight: 500; color: var(--app-ink); }
.mt-switch { position: relative; flex-shrink: 0; width: 42px; height: 25px; border-radius: 999px; background: var(--app-surface-3); transition: background-color 0.22s var(--mt-ease); }
.mt-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 999px; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.06); transition: translate 0.32s var(--mt-spring); }
.mt-switch[aria-checked="true"] { background: var(--app-accent); }
.mt-switch[aria-checked="true"]::after { translate: 17px; }
.mt-range { --p: 50%; width: 100%; height: 22px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.mt-range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(to right, var(--app-accent) var(--p), var(--app-surface-3) var(--p)); }
.mt-range::-moz-range-track { height: 4px; border-radius: 99px; background: var(--app-surface-3); }
.mt-range::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--app-accent); }
.mt-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.18); transition: transform 0.2s var(--mt-spring); }
.mt-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.mt-range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18); }
/* timeline clip: candy-coloured bar with a 3px edge, optional wave texture */
.mt-clip {
  --t: 3px;
  position: relative; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; overflow: hidden;
  border-radius: 10px; background: var(--face, var(--mt-teal)); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 var(--t) 0 var(--edge, var(--mt-teal-edge)), 0 6px 16px -10px var(--edge, var(--mt-teal-edge));
  outline: 2px solid transparent; outline-offset: 2px;
  transition: box-shadow 0.4s var(--mt-ease), outline-color 0.2s var(--mt-ease), transform 0.3s var(--mt-spring);
}
.mt-clip[aria-selected="true"] { outline-color: var(--app-accent, #007aff); }
.mt-clip:hover { --t: 4px; transform: translateY(-1px); }
.mt-clip > * { position: relative; }
.mt-clip--wave::before {
  content: ""; position: absolute; inset: 40% 0 0 0; opacity: 0.22; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='40' viewBox='0 0 160 40' preserveAspectRatio='none'><path d='M0 30 C10 30 10 12 20 12 S30 34 40 34 S50 8 60 8 S70 28 80 28 S90 16 100 16 S110 36 120 36 S130 10 140 10 S150 30 160 30 L160 40 L0 40 Z' fill='white'/></svg>") 0 0 / 160px 100% repeat-x;
  animation: mt-wave-drift 9s linear infinite;
}
.mt-composer { border-radius: 18px; background: var(--app-surface-2); box-shadow: 0 0 0 1px var(--app-line-2); transition: box-shadow 0.3s var(--mt-ease), background-color 0.3s var(--mt-ease); }
.mt-composer:focus-within { background: var(--app-surface); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--app-accent) 55%, transparent), 0 0 0 5px var(--app-accent-soft), 0 12px 28px -14px rgba(0, 0, 0, 0.3); }
.mt-send { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; background: var(--app-ink-4); color: var(--app-surface); transform: scale(0.86); transition: transform 0.35s var(--mt-spring), background-color 0.25s var(--mt-ease), box-shadow 0.3s var(--mt-ease); }
.mt-send[data-on] { background: var(--app-accent); color: #fff; transform: scale(1); box-shadow: 0 4px 12px -2px rgba(42, 140, 255, 0.5); }
.mt-send[data-on]:active { transform: scale(0.88); }
/* AI-at-work ring: rotating conic rainbow, masked to a 2px border, with a blurred halo */
@property --mt-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.mt-ai-ring, .mt-ai-halo { position: absolute; pointer-events: none; border-radius: var(--ring-r, 24px); background: conic-gradient(from var(--mt-spin), #bc82f3, #f5b9ea, #8d9fff, #ff6778, #ffba71, #c686ff, #bc82f3); animation: mt-ai-spin 3.2s linear infinite; }
.mt-ai-ring { inset: -2px; padding: 2px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.mt-ai-halo { inset: 2px; filter: blur(18px); opacity: 0.6; }
.mt-shimmer { color: transparent; background: linear-gradient(90deg, var(--app-ink-3, #a1a1a6) 0%, var(--app-ink, #171717) 40%, var(--app-ink-3, #a1a1a6) 80%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; animation: mt-shimmer 2.4s linear infinite; }
.mt-spinner { position: relative; display: inline-block; width: 13px; height: 13px; color: #8a8a8a; animation: mt-ios-spin 0.9s steps(8, end) infinite; }
.mt-spinner > i { position: absolute; top: 0; left: 5.75px; width: 1.5px; height: 3.8px; border-radius: 1px; background: currentColor; transform-origin: 0.75px 6.5px; }
.mt-spinner > i:nth-child(1) { transform: rotate(0deg); opacity: 1; } .mt-spinner > i:nth-child(2) { transform: rotate(45deg); opacity: 0.88; } .mt-spinner > i:nth-child(3) { transform: rotate(90deg); opacity: 0.76; } .mt-spinner > i:nth-child(4) { transform: rotate(135deg); opacity: 0.64; } .mt-spinner > i:nth-child(5) { transform: rotate(180deg); opacity: 0.52; } .mt-spinner > i:nth-child(6) { transform: rotate(225deg); opacity: 0.4; } .mt-spinner > i:nth-child(7) { transform: rotate(270deg); opacity: 0.28; } .mt-spinner > i:nth-child(8) { transform: rotate(315deg); opacity: 0.16; }
.mt-progress { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: var(--mt-fill); }
.mt-progress > i { position: absolute; inset: 0 auto 0 0; width: var(--value, 40%); overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, #2a8cff, #62adff); transition: width 0.4s var(--mt-ease); }
.mt-progress > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%); transform: translateX(-100%); animation: mt-sweep 1.6s var(--mt-ease) infinite; }
.mt-toast { position: fixed; left: 50%; top: 20px; z-index: 80; padding: 10px 16px; border-radius: 999px; background: #171717; color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); animation: mt-toast-in 0.35s var(--mt-spring) both; transform: translateX(-50%); }
.mt-ping { position: relative; display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 999px; background: var(--mt-brand); }
.mt-ping::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: mt-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
.mt-caret { display: inline-block; width: 7px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: color-mix(in srgb, var(--mt-brand) 72%, white); animation: mt-caret-blink 1s steps(2, end) infinite; }
.mt-sheen { position: relative; overflow: hidden; }
.mt-sheen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%) 0 0 / 250% 100%; animation: mt-sheen 6s var(--mt-ease) infinite; }
.mt-stage-dots { background-image: radial-gradient(var(--app-ink-4, rgba(0, 0, 0, 0.22)) 1.2px, transparent 1.4px); background-size: 24px 24px; background-position: 12px 12px; }

/* ── 13b · secondary pages: guide/docs, gallery, sign-in, 404, dialogs ───── */
/* eyebrow pill above a page title ("The guide", "Gallery", "404 · not found") */
.mt-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--mt-r-pill); background: var(--mt-surface); color: var(--mt-ink-mid); font-size: 13px; font-weight: 600; line-height: 1.2; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
.mt-kicker--mono { font-family: var(--mt-font-mono); font-size: 12.5px; font-weight: 500; }
.mt-page-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 144px; }
@media (min-width: 640px) { .mt-page-hero { padding-top: 176px; } }
.mt-page-title { margin-top: 24px; max-width: 820px; font-size: clamp(40px, 10vw, 80px); line-height: 0.97; letter-spacing: -0.04em; }
.mt-page-hero .mt-lead { margin-top: 24px; max-width: 580px; }
.mt-page-hero .mt-actions { margin-top: 32px; }
/* flat pills used on secondary pages: white, and secondary on dark cards */
.mt-pill--snow { background: var(--mt-surface); color: var(--mt-ink); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 2px 8px -2px rgba(0, 0, 0, 0.15); }
.mt-pill--snow:hover { background: var(--mt-surface); }
.mt-pill--on-dark { background: rgba(255, 255, 255, 0.1); color: #fff; }
.mt-pill--on-dark:hover { background: rgba(255, 255, 255, 0.16); }
.mt-nav__link[aria-current="page"] { background: var(--mt-fill-hover); color: var(--mt-ink); }
/* light segmented filter (gallery: All / Landscape / Portrait) */
.mt-segment--light { padding: 3px; background: var(--mt-seg-track); }
.mt-segment--light .mt-segment__btn { height: 36px; padding: 0 16px; color: var(--mt-ink-soft); }
@media (min-width: 640px) { .mt-segment--light .mt-segment__btn { padding: 0 20px; } }
.mt-segment--light .mt-segment__btn[aria-selected="true"] { color: var(--mt-ink); }
.mt-segment--light .mt-segment__thumb { top: 3px; bottom: 3px; background: var(--mt-seg-thumb); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
[data-mt-filter-group][hidden] { display: none !important; }

/* docs / guide layout: sticky "on this page" + stacked doc cards */
.mt-docs { display: grid; gap: 40px; margin-top: 80px; }
@media (min-width: 1024px) { .mt-docs { grid-template-columns: 210px minmax(0, 1fr); } }
.mt-docs__main { display: flex; min-width: 0; flex-direction: column; gap: 24px; }
.mt-toc { position: sticky; top: 112px; display: none; flex-direction: column; gap: 2px; isolation: isolate; }
@media (min-width: 1024px) { .mt-toc { display: flex; } }
.mt-toc__title { margin-bottom: 8px; padding: 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mt-strike); }
.mt-toc a { position: relative; padding: 8px 12px; border-radius: var(--mt-r-pill); font-size: 14px; font-weight: 500; color: var(--mt-ink-muted); transition: color 0.2s var(--mt-ease); }
.mt-toc a:hover, .mt-toc a[aria-current="true"] { color: var(--mt-ink); }
.mt-toc__thumb { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 0; border-radius: var(--mt-r-pill); background: var(--mt-surface); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.07), 0 6px 16px -10px rgba(0, 0, 0, 0.3); opacity: 0; transition: transform 0.46s var(--mt-spring), height 0.3s var(--mt-ease), opacity 0.2s; }
.mt-doc { overflow: hidden; border-radius: var(--mt-r-plan); background: var(--mt-surface); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.07), 0 24px 60px -34px rgba(0, 0, 0, 0.3); scroll-margin-top: 112px; }
.mt-doc__art { position: relative; aspect-ratio: 14 / 9; overflow: hidden; background: var(--mt-surface-sunk); }
.mt-doc__art::before { content: ""; position: absolute; right: -96px; top: -96px; width: 288px; height: 288px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--mt-brand) 28%, transparent), transparent 65%); filter: blur(40px); opacity: 0.6; pointer-events: none; }
.mt-doc__body { padding: 24px; }
@media (min-width: 640px) { .mt-doc__body { padding: 36px; } }
.mt-doc__title { margin-top: 6px; font-size: 30px; line-height: 1.03; letter-spacing: -0.035em; }
@media (min-width: 640px) { .mt-doc__title { font-size: 40px; } }
.mt-step-label { font-size: 13px; font-weight: 600; color: var(--mt-brand-text); }
.mt-prose { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; font-size: 16px; line-height: 1.625; color: var(--mt-ink-mid); }
.mt-prose a { color: var(--mt-brand-text); font-weight: 600; }
.mt-prose b, .mt-prose strong { color: var(--mt-ink); font-weight: 600; }
.mt-prose :not(pre) > code, .mt-mini code { padding: 1px 6px; border-radius: 6px; background: var(--mt-fill); color: var(--mt-ink); font: 500 0.88em var(--mt-font-mono); }
.mt-code { margin: 0; overflow-x: auto; border-radius: 18px; background: var(--mt-code-bg); padding: 16px 20px; color: rgba(255, 255, 255, 0.85); font: 400 14px/1.625 var(--mt-font-mono); white-space: pre; }
.mt-code .mt-code__prompt { color: rgba(255, 255, 255, 0.35); user-select: none; }
.mt-minis { display: grid; gap: 12px; }
@media (min-width: 640px) { .mt-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mt-mini { border-radius: 20px; background: var(--mt-mini); padding: 16px; }
.mt-mini > b, .mt-mini > strong { display: block; font-size: 15px; font-weight: 600; color: var(--mt-ink); }
.mt-mini > p { margin-top: 4px; font-size: 14px; line-height: 1.375; color: var(--mt-ink-mid); }
/* numbered stepper: black number dots joined by a hairline, text left, mock right */
.mt-stepper { counter-reset: mt-step; }
.mt-stepper > li { position: relative; display: grid; gap: 16px; padding: 0 0 40px 48px; counter-increment: mt-step; }
@media (min-width: 768px) { .mt-stepper > li { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; } }
.mt-stepper > li::before { content: counter(mt-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mt-surface-ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5); }
.mt-stepper > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 0; width: 2px; border-radius: 2px; background: var(--mt-line); }
.mt-stepper h3 { padding-top: 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--mt-ink); }
.mt-stepper h3 + * { margin-top: 8px; }
.mt-stepper p { font-size: 15px; line-height: 1.625; color: var(--mt-ink-mid); }
.mt-stepper .mt-note { margin-top: 8px; color: var(--mt-ink-muted); }
/* window mocks: macOS terminal and browser chrome */
.mt-traffic { display: inline-flex; gap: 8px; }
.mt-traffic i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.mt-traffic i:nth-child(2) { background: #febc2e; }
.mt-traffic i:nth-child(3) { background: #28c840; }
.mt-term { overflow: hidden; border-radius: var(--mt-r-md); background: var(--mt-code-bg); color: rgba(255, 255, 255, 0.85); font: 400 12.5px/1.65 var(--mt-font-mono); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 255, 255, 0.08); }
.mt-term__bar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: #2a2a2c; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mt-term__title { flex: 1; text-align: center; font: 500 11.5px var(--mt-font-sans); color: rgba(255, 255, 255, 0.45); padding-right: 48px; }
.mt-term__body { padding: 12px 16px; }
.mt-term__ok { color: #5ad7a4; }
.mt-term__warn { color: #febc2e; }
.mt-term__pick { margin: 2px -8px; padding: 0 8px; border-radius: 5px; background: rgba(217, 119, 87, 0.25); color: #fff; }
.mt-browser { overflow: hidden; border-radius: 16px; background: var(--mt-surface); color: var(--mt-ink); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.mt-browser__bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: var(--mt-mini); border-bottom: 1px solid var(--mt-line); }
.mt-browser__url { margin-inline: auto; display: flex; align-items: center; gap: 6px; height: 24px; min-width: 0; max-width: 70%; padding: 0 12px; border-radius: 7px; background: var(--mt-surface); color: var(--mt-ink-mid); font-size: 11.5px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-browser__body { display: flex; justify-content: center; padding: 24px 16px; background: var(--mt-paper); }
/* FAQ: hairline rows, "+" turns into "×"; smooth height where the browser can animate <details> */
.mt-faq { display: flex; flex-direction: column; margin-top: 24px; }
.mt-faq details { padding: 16px 0; border-bottom: 1px solid var(--mt-line); }
.mt-faq details:last-child { border-bottom: 0; }
.mt-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; color: var(--mt-ink); }
.mt-faq summary::-webkit-details-marker { display: none; }
.mt-faq summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--mt-surface-sunk); color: var(--mt-ink-mid); font-size: 16px; font-weight: 500; transition: transform 0.3s var(--mt-ease); }
.mt-faq details[open] > summary::after { transform: rotate(45deg); }
.mt-faq details > :not(summary) { margin-top: 12px; max-width: 640px; font-size: 15px; line-height: 1.625; color: var(--mt-ink-mid); }
@supports (interpolate-size: allow-keywords) {
  .mt-faq { interpolate-size: allow-keywords; }
  .mt-faq details::details-content { height: 0; overflow: clip; transition: height 0.32s var(--mt-ease), content-visibility 0.32s allow-discrete; }
  .mt-faq details[open]::details-content { height: auto; }
}
/* dark call-to-action card that closes docs and gallery pages */
.mt-cta-card { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 56px 24px; border-radius: var(--mt-r-plan); background: #171717; color: #fff; text-align: center; }
:root[data-theme="dark"] .mt-cta-card { background: var(--mt-surface-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mt-cta-card { background: var(--mt-surface-ink); } }
.mt-cta-card h2 { font-size: 32px; line-height: 1.02; letter-spacing: -0.035em; }
@media (min-width: 640px) { .mt-cta-card h2 { font-size: 44px; } }
.mt-cta-card p { max-width: 440px; font-size: 15.5px; line-height: 1.625; color: rgba(255, 255, 255, 0.6); }
.mt-cta-card .mt-actions { margin-top: 0; }
/* gallery page: one big card per piece — copy left, media right */
.mt-showcard { display: grid; align-items: center; gap: 24px; overflow: hidden; padding: 28px; border-radius: var(--mt-r-plan); background: var(--mt-surface); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.07), 0 24px 60px -34px rgba(0, 0, 0, 0.3); }
@media (min-width: 640px) { .mt-showcard { padding: 36px; } }
@media (min-width: 768px) { .mt-showcard { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; } .mt-showcard--portrait { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.mt-showcard__copy { max-width: 420px; }
.mt-showcard__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mt-brand-text); }
.mt-showcard__title { margin-top: 6px; font-size: 28px; line-height: 1.04; letter-spacing: -0.035em; }
@media (min-width: 640px) { .mt-showcard__title { font-size: 34px; } }
.mt-showcard__text { margin-top: 10px; font-size: 15px; line-height: 1.625; color: var(--mt-ink-soft); }
.mt-showcard__meta { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-size: 13px; color: var(--mt-ink-faint); }
.mt-showcard__media { position: relative; display: block; width: 100%; aspect-ratio: var(--ar, 16 / 9); overflow: hidden; border-radius: 20px; background: var(--mt-tile-bg); justify-self: center; }
.mt-showcard--portrait .mt-showcard__media { max-width: 320px; }
.mt-showcard__media > img, .mt-showcard__media > video { width: 100%; height: 100%; object-fit: cover; }
/* announcement strip above the nav */
.mt-announce { position: relative; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; min-height: 44px; padding: 6px 16px; background: var(--mt-brand); color: var(--mt-on-brand); font-size: 14px; font-weight: 500; text-align: center; }
.mt-announce > a, .mt-announce > button { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--mt-r-pill); background: #fff; color: #171717; font-size: 13px; font-weight: 600; }
.mt-announce + .mt-nav-shell { top: 44px; }
/* sign-in: glass card over a full-page candy wallpaper and a soft brand glow */
.mt-auth { position: relative; display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; align-items: center; justify-content: center; padding: 112px 16px 64px; overflow-x: clip; }
.mt-auth__glow { position: fixed; left: 50%; top: 50%; width: 720px; height: 720px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--mt-brand) 14%, transparent), transparent 70%); pointer-events: none; }
.mt-auth__card { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 28px; border-radius: var(--mt-r-card); background: var(--mt-glass-card); -webkit-backdrop-filter: blur(40px) saturate(1.5); backdrop-filter: blur(40px) saturate(1.5); box-shadow: var(--mt-shadow-card); text-align: center; }
@media (min-width: 640px) { .mt-auth__card { padding: 36px; } }
.mt-auth__card h1 { margin-top: 24px; font-size: 34px; line-height: 1.02; letter-spacing: -0.035em; }
.mt-auth__card .mt-lead { margin: 12px auto 0; max-width: 330px; font-size: 15px; }
.mt-auth__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.mt-auth__fine { margin-top: 16px; font-size: 12.5px; color: #8a8a8e; }
.mt-float-field--page { position: fixed; inset: 0; display: none; }
@media (min-width: 768px) { .mt-float-field--page { display: block; } }
.mt-candy--md { --depth: 18px; --h: 48px; --px: 20px; --fs: 15.5px; --gap: 8px; }
/* dialog (native <dialog>): small rounded card, springs in, soft blurred backdrop */
.mt-dialog { width: calc(100% - 32px); max-width: 340px; padding: 20px; border: 0; border-radius: 20px; background: var(--mt-surface); color: var(--mt-ink); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.07), 0 16px 40px -24px rgba(0, 0, 0, 0.35), 0 40px 90px -30px rgba(0, 0, 0, 0.3); }
.mt-dialog[open] { animation: mt-pop-in 0.28s var(--mt-spring) both; }
.mt-dialog::backdrop { background: rgba(23, 23, 23, 0.24); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mt-dialog h2 { font-family: var(--mt-font-display); font-size: 18px; font-weight: 900; line-height: 1.2; letter-spacing: -0.03em; }
.mt-dialog p { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--mt-ink-mid); }
.mt-dialog__code { margin-top: 10px; padding: 6px 12px; border-radius: 10px; background: var(--mt-fill); font: 600 11.5px var(--mt-font-mono); color: var(--mt-ink); }
.mt-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.mt-dialog__actions > * { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: var(--mt-r-pill); background: var(--mt-fill); color: var(--mt-ink); font-size: 13px; font-weight: 600; }
.mt-dialog__actions > .is-primary { background: var(--mt-brand); color: var(--mt-on-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mt-brand) 20%, transparent); }

/* phone frame (measured from mtioon's mobile showcase): titanium rim, side buttons, bezel, Dynamic Island.
   The device is drawn at its native 433×886 and scaled to --phone (a unitless px width, default 300);
   the screen is 393×852 — lay out screen content at that size, or drop in an <img>/<video>. */
.mt-phone { --phone: 300; position: relative; flex-shrink: 0; width: calc(var(--phone) * 1px); aspect-ratio: 433 / 886; }
.mt-phone__device {
  position: absolute; left: 0; top: 0; width: 427px; height: 886px; padding: 17px;
  border-radius: 72px; transform-origin: 0 0; transform: scale(calc(var(--phone) / 433)) translateX(3px);
  background: linear-gradient(135deg, #8a8a8f 0%, #3c3c3f 9%, #1e1e20 30%, #2a2a2d 62%, #4a4a4e 86%, #9a9a9f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.45), inset 0 0 0 2px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.12), 0 30px 60px -24px rgba(0, 0, 0, 0.35), 0 70px 120px -50px rgba(0, 0, 0, 0.45);
}
.mt-phone__device::before, .mt-phone__device::after { content: ""; position: absolute; z-index: -1; width: 5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.4); }
.mt-phone__device::before { left: -3px; top: 178px; height: 210px; border-radius: 2px 0 0 2px; background: linear-gradient(180deg, #4a4a4e 0 34px, transparent 34px 68px, #4a4a4e 68px 132px, transparent 132px 146px, #4a4a4e 146px 210px); }
.mt-phone__device::after { right: -3px; top: 268px; height: 338px; border-radius: 0 2px 2px 0; background: linear-gradient(180deg, #4a4a4e 0 104px, transparent 104px 280px, #2a2a2d 280px 338px); }
.mt-phone__screen {
  --safe-top: 59px; --safe-bottom: 34px;
  position: relative; isolation: isolate; width: 393px; height: 852px; overflow: hidden; border-radius: 55px;
  background: var(--mt-surface); color: var(--mt-ink); font-size: 17px;
  box-shadow: 0 0 0 12px #050506, 0 0 0 13px rgba(0, 0, 0, 0.7);
}
.mt-phone__screen::after { content: ""; position: absolute; z-index: 20; left: 50%; top: 11px; width: 126px; height: 37px; border-radius: 20px; background: #000; transform: translateX(-50%); pointer-events: none; }
.mt-phone__screen > img, .mt-phone__screen > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mt-phone__safe { height: var(--safe-top); flex-shrink: 0; }

/* ── 14 · motion ────────────────────────────────────────────────────────── */
/* load choreography: nav drops in, headline/lead/actions rise in a 90ms stagger, candies pop last */
.mt-rise { animation: mt-rise 0.6s var(--mt-expo) backwards; animation-delay: calc(var(--rise-delay, 0.1s) + var(--rise-step, 0.09s) * var(--i, 0)); }
/* scroll reveal (runtime adds .mt-js on <html> and .is-in on entry; content stays visible without JS) */
.mt-js .mt-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--mt-expo) var(--d, 0s), transform 0.6s var(--mt-expo) var(--d, 0s); }
.mt-js .mt-reveal.is-in { opacity: 1; transform: none; }
/* named entrance presets — apply once, e.g. when a word swaps */
.mt-in-pop   { animation: mt-pop-in 0.28s var(--mt-spring) both; }
.mt-in-up    { animation: mt-pop-up 0.28s var(--mt-spring) both; }
.mt-in-fade  { animation: mt-fade-in 0.3s var(--mt-ease) both; }
.mt-in-drop  { display: inline-block; animation: mt-candy-drop 0.55s var(--mt-drop) both; }
.mt-in-slam  { display: inline-block; animation: mt-slam 0.6s var(--mt-spring) both; }
.mt-in-slide { display: inline-block; animation: mt-slide-in 0.6s var(--mt-expo) both; }
.mt-in-blur  { display: inline-block; animation: mt-blur-in 0.7s var(--mt-expo) both; }
.mt-in-spin  { display: inline-block; animation: mt-spin-in 0.8s var(--mt-spring) both; }
.mt-msg-in   { animation: mt-msg-in 0.35s var(--mt-ease) both; }
.mt-msg-user { transform-origin: 100% 100%; animation: mt-msg-user-in 0.4s var(--mt-spring) both; }
.mt-bob      { animation: mt-bob var(--bob, 5s) ease-in-out infinite; }
.mt-breathe  { animation: mt-orb-breathe 3.2s ease-in-out infinite; }

@keyframes mt-nav-in { from { opacity: 0; transform: translateY(-16px); } }
@keyframes mt-rise { from { opacity: 0.01; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* two springs, measured: scale/rotateZ (stiffness 420, damping 22) now; rotateX 0→40deg (190, 11) 0.45s later */
@keyframes mt-float-in {
  0% { opacity: 0; transform: translateZ(0) scale(0.5) rotateX(0deg) rotateZ(calc(var(--rz, -7deg) * 2)); animation-timing-function: cubic-bezier(0.25, 0.6, 0.4, 1); }
  15% { opacity: 0.75; transform: translateZ(0) scale(1.068) rotateX(0deg) rotateZ(calc(var(--rz, -7deg) * 0.865)); animation-timing-function: ease-in-out; }
  21% { opacity: 1; }
  30% { transform: translateZ(0) scale(0.991) rotateX(0deg) rotateZ(calc(var(--rz, -7deg) * 1.018)); animation-timing-function: ease-in-out; }
  37.5% { transform: translateZ(0) scale(1) rotateX(0deg) rotateZ(var(--rz, -7deg)); animation-timing-function: cubic-bezier(0.3, 0.6, 0.45, 1); }
  57% { transform: translateZ(0) scale(1) rotateX(49.4deg) rotateZ(var(--rz, -7deg)); animation-timing-function: ease-in-out; }
  77% { transform: translateZ(0) scale(1) rotateX(37.8deg) rotateZ(var(--rz, -7deg)); animation-timing-function: ease-in-out; }
  97% { transform: translateZ(0) scale(1) rotateX(40.5deg) rotateZ(var(--rz, -7deg)); }
  100% { opacity: 1; transform: translateZ(0) scale(1) rotateX(40deg) rotateZ(var(--rz, -7deg)); }
}
@keyframes mt-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes mt-squash { 25% { scale: 1.16 0.86; } 50% { scale: 0.92 1.08; } 75% { scale: 1.04 0.97; } 100% { scale: 1 1; } }
@keyframes mt-iso-drift { to { transform: translateX(calc(var(--w, 1400px) * -1)); } }
@keyframes mt-digit-in { from { opacity: 0; filter: blur(6px); transform: translateY(0.35em); } }
@keyframes mt-voice-bar { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@keyframes mt-candy-drop { 0% { opacity: 0; transform: translateY(-26px) scale(0.6); } 55% { opacity: 1; transform: translateY(3px) scale(1.04); } 78% { transform: translateY(-1.5px) scale(0.99); } 100% { opacity: 1; transform: none; } }
@keyframes mt-slam { 0% { opacity: 0; transform: scale(2.4); filter: blur(8px); } 60% { opacity: 1; transform: scale(0.94); filter: blur(0); } 100% { transform: none; } }
@keyframes mt-slide-in { from { opacity: 0; transform: translateX(-0.6em); } }
@keyframes mt-blur-in { from { opacity: 0; filter: blur(12px); transform: scale(1.06); } }
@keyframes mt-spin-in { from { opacity: 0; transform: rotate(-90deg) scale(0.4); } }
@keyframes mt-pop-in { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes mt-pop-up { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes mt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mt-msg-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes mt-msg-user-in { from { opacity: 0; transform: translateY(10px) scale(0.9); } }
@keyframes mt-toast-in { from { opacity: 0; transform: translate(-50%, -8px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes mt-orb-breathe { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.22); } 50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(217, 119, 87, 0); } }
@keyframes mt-ai-spin { to { --mt-spin: 360deg; } }
@keyframes mt-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes mt-ios-spin { to { transform: rotate(360deg); } }
@keyframes mt-sweep { to { transform: translateX(100%); } }
@keyframes mt-ping { 75%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes mt-caret-blink { to { background: transparent; } }
@keyframes mt-wave-drift { to { background-position-x: 160px; } }
@keyframes mt-sheen { 0% { background-position-x: 120%; } 60%, 100% { background-position-x: -130%; } }

/* ── 15 · reduced motion: keep the look, drop the movement ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .mt-nav, .mt-rise, .mt-float__pose, .mt-float__bob, .mt-bob, .mt-iso__row, .mt-voice i, .mt-swap-char,
  .mt-in-pop, .mt-in-up, .mt-in-fade, .mt-in-drop, .mt-in-slam, .mt-in-slide, .mt-in-blur, .mt-in-spin,
  .mt-msg-in, .mt-msg-user, .mt-breathe, .mt-ai-ring, .mt-ai-halo, .mt-shimmer, .mt-ping::after, .mt-caret,
  .mt-progress > i::after, .mt-sheen::after, .mt-clip--wave::before, .mt-toast { animation: none !important; }
  .mt-js .mt-reveal { opacity: 1; transform: none; transition: none; }
  .mt-eyeballs__pair { transform: none; transition: none; }
  .mt-float__squish, .mt-float__pose, .mt-toc__thumb { transition: none; }
  .mt-dialog[open] { animation: none; }
  .mt-showcase__frame { transform: none; opacity: 1; }
  .mt-btn > span, .mt-key, .mt-pill, .mt-segment__thumb { transition-duration: 0.01s; }
}
