/* CraftMotion landing page (craftmotion.online, PHASE-27). Tokens from design/craftmotion_mockup.html :root and
   src/CraftMotion.UI/Theme/Tokens.xaml. Display face: Space Grotesk 600/700 (SIL OFL 1.1, fonts/OFL.txt, R-P27-13);
   body and code use the Windows system faces. Spacing is on an 8 px grid; text is left-aligned throughout. */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
/* Metric-matched stand-ins while the display face loads (widths and ascent measured against Segoe UI in Chrome), so the
   swap moves nothing. */
@font-face {
  font-family: 'Space Grotesk Fallback';
  font-weight: 600;
  font-display: swap;
  src: local('Segoe UI Semibold'), local('SegoeUI-Semibold');
  size-adjust: 107.22%;
  ascent-override: 91.4%;
  descent-override: 27.05%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Space Grotesk Fallback';
  font-weight: 700;
  font-display: swap;
  src: local('Segoe UI Bold'), local('SegoeUI-Bold');
  size-adjust: 102.82%;
  ascent-override: 95.31%;
  descent-override: 28.2%;
  line-gap-override: 0%;
}

:root {
  --bg: #07080c;
  --stage: #0c0d12;
  --panel: #14151c;
  --surface: rgba(24, 26, 36, 0.95);
  --flyout: #2c2c32;
  --text-main: #f3f4f6;
  --text-sub: #9ca3af;
  --text-dim: #6b7280;
  --hairline: rgba(255, 255, 255, 0.16);
  --thin: rgba(255, 255, 255, 0.09);
  --specular: rgba(255, 255, 255, 0.06);
  --violet: #a78bfa;
  --violet-strong: #8b5cf6;
  --violet-deep: #6d28d9;
  --pink: #f472b6;
  --violet-soft: rgba(167, 139, 250, 0.16);
  --violet-line: rgba(167, 139, 250, 0.5);
  --cyan: #00c7fd;
  --ok: #34d399;
  --font-display: 'Space Grotesk', 'Space Grotesk Fallback', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --font-ui: 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text-main); font: 16px/1.6 var(--font-ui); text-align: left; -webkit-font-smoothing: antialiased; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; padding: 8px 16px; background: var(--panel); }
.i { display: inline-block; vertical-align: middle; flex: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* One container scale (design skill rule 2): hero 1280, sections 1152, legal 896. */
.wrap { width: 100%; max-width: 1152px; margin-inline: auto; padding-inline: 24px; }
.wrap-hero { max-width: 1280px; }
.wrap-legal { max-width: 896px; }
/* The app opens /#pricing and /#suite (SettingsPages.BuyProUrl, BuySuiteUrl): a target lands below the 64 px header. */
main [id] { scroll-margin-top: 88px; }

/* ================= HEADER ================= */
.site-header { position: sticky; top: 0; z-index: 10; background: #07080c; border-bottom: 1px solid var(--thin); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 19px/1 var(--font-display); letter-spacing: -0.01em; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--text-sub); text-decoration: none; font-size: 14px; transition: color 160ms ease; }
.nav a:hover { color: var(--text-main); }
.bar .btn { flex: none; }

/* ================= BUTTONS AND CHIPS ================= */
/* Hover, press and focus move only transforms, shadows and colours, so nothing reflows (no layout shift); reduced motion turns
   the movement off (end of file). The primary face stays the solid violet the Store button shares with the header's. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--hairline); border-radius: 8px; background: transparent; color: var(--text-main); font: 600 14px/1.2 var(--font-ui); text-decoration: none; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { box-shadow: 0 0 0 4px var(--violet-soft); }
.btn-lg { min-height: 48px; padding: 8px 24px; font-size: 15px; }
.btn-primary { background: var(--violet-strong); border-color: var(--violet-strong); }
.btn-primary:hover { background: var(--violet-deep); border-color: var(--violet-deep); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45); }
.btn-ghost:hover, .btn-quiet:hover { background: var(--violet-soft); }
.btn-ghost:hover { border-color: var(--violet-line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.btn-quiet { border-color: transparent; color: var(--text-sub); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--text-sub); font: 600 13px/1 var(--font-ui); cursor: pointer; transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease; }
.chip.on { background: var(--violet-soft); color: var(--violet); }
.chip:hover { color: var(--text-main); background: rgba(167, 139, 250, 0.08); }
.chip.on:hover { color: var(--violet); background: var(--violet-soft); }
.chip:active { transform: scale(0.96); }

/* ================= HERO AND DEMO ================= */
.hero { padding-block: 64px 80px; background: radial-gradient(48% 56% at 78% 32%, rgba(139, 92, 246, 0.18), transparent 70%), radial-gradient(36% 44% at 96% 88%, rgba(244, 114, 182, 0.1), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 0 16px; border: 1px solid var(--violet-line); border-radius: 999px; background: var(--violet-soft); color: var(--violet); font: 600 13px/32px var(--font-ui); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
h1, h2, h3 { font-family: var(--font-display); }
h1 { margin: 0 0 24px; font-size: 52px; font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
h2 { margin: 0 0 16px; font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.grad { background: linear-gradient(90deg, var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-bottom: 32px; color: var(--text-sub); font-size: 18px; line-height: 1.6; max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.fine { margin-top: 16px; color: var(--text-dim); font-size: 13px; }
.eyebrow { margin-bottom: 8px; color: var(--violet); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.intro { margin-bottom: 32px; color: var(--text-sub); max-width: 72ch; }

.demo { margin: 0; overflow: hidden; border: 1px solid var(--hairline); border-radius: 16px; background: var(--stage); box-shadow: inset 0 1px 0 var(--specular), 0 24px 64px rgba(0, 0, 0, 0.5); }
.demo canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--panel); cursor: crosshair; touch-action: pan-y; }
.demo[data-state="armed"] canvas, .demo[data-state="recording"] canvas { touch-action: none; }
/* The control strip reads like the Studio timeline: a ruler of 16 px ticks along its top edge. */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; border-top: 1px solid var(--thin); background: repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 16px) top left / 100% 8px no-repeat; }
.seg { display: inline-flex; border: 1px solid var(--thin); border-radius: 8px; }
.chip-go { border: 1px solid var(--violet-line); color: var(--text-main); }
.chip-go:hover { border-color: var(--violet); box-shadow: 0 0 16px rgba(167, 139, 250, 0.3); }
.chip-go .i { color: var(--pink); }
.chip-go .when-rec, .demo[data-state="armed"] .chip-go .when-idle, .demo[data-state="recording"] .chip-go .when-idle { display: none; }
.demo[data-state="armed"] .chip-go .when-rec, .demo[data-state="recording"] .chip-go .when-rec { display: inline; }
.demo-note { flex-basis: 100%; color: var(--text-dim); font-size: 13px; }

/* ================= PROOF STRIP ================= */
.proof { border-block: 1px solid var(--thin); background: var(--stage); }
.proof-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 32px 0; list-style: none; }
.proof-list li { display: grid; gap: 8px; color: var(--text-sub); font-size: 14px; line-height: 1.5; }
.proof-list b { color: var(--text-main); font: 700 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }

/* ================= SECTIONS AND CARDS ================= */
.band { padding-block: 80px; }
.band + .band { border-top: 1px solid var(--thin); }
.card { position: relative; padding: 24px; border: 1px solid var(--thin); border-radius: 16px; background: var(--panel); box-shadow: inset 0 1px 0 var(--specular); transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease; }
.card p { color: var(--text-sub); }
/* Feature rows: the media (a clip, a set of stills or the pin) beside its copy, sides alternating; one column below 1024 px. */
.features { display: grid; gap: 64px; }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature:nth-child(even) > .media { order: 2; }
/* A wide still (the timeline) takes the full row, its copy above as a two-column header: the text on the left, the switches,
   the Fit to size presets and their result on the right. A jump to the card stops below the sticky header. */
.feature.feature-wide { grid-template-columns: minmax(0, 1fr); gap: 24px; scroll-margin-top: 88px; }
.feature.feature-wide > .media { order: 0; }
.feature-wide .copy { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 48px; align-items: end; }
.copy-main, .copy-side { display: grid; gap: 16px; align-content: start; }
.copy-side .seg { justify-self: start; }
.shield-marks { grid-area: 1 / 1; width: 100%; height: 100%; pointer-events: none; display: none; }
.shots[data-view="detected"] .shield-marks { display: block; }
.shield-marks rect { fill: none; stroke: var(--pink); stroke-width: 2; stroke-dasharray: 10 6; vector-effect: non-scaling-stroke; }
.copy { display: grid; gap: 16px; align-content: start; }
.copy .seg, .copy .pin-controls { justify-self: start; }
.copy h3 { margin: 0; font-size: 24px; }
.copy p { color: var(--text-sub); }
.kicker { color: var(--violet); font: 600 13px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; }
.copy .settings { color: var(--text-dim); font: 13px/1.5 var(--font-mono); }
.feature > .copy > .settings { min-height: 4.5em; }
.media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--thin); border-radius: 16px; background: radial-gradient(60% 70% at 30% 20%, rgba(167, 139, 250, 0.2), transparent 70%), var(--stage); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45); transition: border-color 200ms ease, box-shadow 200ms ease; }
.media:hover { border-color: var(--violet-line); box-shadow: 0 0 0 1px var(--violet-soft), 0 24px 64px rgba(0, 0, 0, 0.45); }
.media video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.media img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.media img[hidden] { display: none; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--thin); border-radius: 16px; background: var(--stage); transition: border-color 200ms ease, box-shadow 200ms ease; }
.film video:hover { border-color: var(--violet-line); box-shadow: 0 0 0 1px var(--violet-soft), 0 24px 64px rgba(139, 92, 246, 0.16); }
.shots.wide { aspect-ratio: auto; }
/* The timeline stills are 1520 x 300; the ratio holds their box before they load, so nothing below moves. */
.shots.wide img { height: auto; aspect-ratio: 1520 / 300; object-fit: contain; }
.play { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: var(--flyout); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.play[hidden] { display: none; }
/* The 2 px bar along a clip's bottom edge, as on a floating pin: driven by the clip's time (value set by the script). */
.clip-bar { position: absolute; left: 0; bottom: 0; z-index: 1; width: 100%; height: 2px; border: 0; appearance: none; -webkit-appearance: none; background: rgba(255, 255, 255, 0.12); color: var(--violet); pointer-events: none; }
.clip-bar::-webkit-progress-bar { background: rgba(255, 255, 255, 0.12); }
.clip-bar::-webkit-progress-value { background: linear-gradient(90deg, var(--violet), var(--pink)); }
.clip-bar::-moz-progress-bar { background: linear-gradient(90deg, var(--violet), var(--pink)); }
/* The floating pin, drawn after the app's pin window: #181A24 surface, 12 px corners, a top bar with the PINNED chip. */
.pin { position: absolute; top: 24px; right: 24px; width: 48%; overflow: hidden; border-radius: 12px; background: #181a24; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.16); transition: opacity 160ms ease; }
.pin.ghost { opacity: 0.5; }
.pin video { height: auto; }
.pin-top { position: absolute; top: 0; left: 0; right: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 8px; background: linear-gradient(180deg, rgba(24, 26, 36, 0.78), rgba(24, 26, 36, 0.5)); font: 600 12px/16px var(--font-ui); }
.pin-name { flex: 1; color: #ffffff; }
.pin-chip { padding: 0 8px; border-radius: 4px; background: var(--violet); color: #1a1033; font: 700 9px/16px var(--font-mono); letter-spacing: 0.04em; }
.pin .play { left: 8px; bottom: 8px; }
.pin-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
kbd { padding: 0 8px; border: 1px solid var(--hairline); border-radius: 4px; color: var(--text-sub); font: 600 11px/18px var(--font-mono); }
.tag-pro { margin-left: 8px; padding: 0 8px; border-radius: 8px; background: var(--violet-soft); color: var(--violet); font: 700 11px/24px var(--font-ui); letter-spacing: 0.04em; vertical-align: middle; }

/* ================= PRICING ================= */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; margin-bottom: 48px; }
.plan { display: flex; flex-direction: column; gap: 16px; }
.plan .btn { margin-top: auto; }
.plan h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.plan:hover, .dl:hover { transform: translateY(-2px); border-color: var(--hairline); box-shadow: inset 0 1px 0 var(--specular), 0 16px 48px rgba(0, 0, 0, 0.35); }
.plan-pro { border-color: var(--violet-line); background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), transparent 40%), var(--panel); }
.plan-pro:hover { border-color: var(--violet); box-shadow: inset 0 1px 0 var(--specular), 0 0 0 1px var(--violet-soft), 0 16px 48px rgba(139, 92, 246, 0.22); }
.plan-suite { border-color: rgba(0, 199, 253, 0.4); }
.plan-suite:hover { border-color: rgba(0, 199, 253, 0.6); box-shadow: inset 0 1px 0 var(--specular), 0 16px 48px rgba(0, 199, 253, 0.12); }
.plan-suite h3 { padding-right: 96px; }
.plan-suite .tag { position: absolute; top: 24px; right: 24px; padding: 0 8px; border-radius: 8px; background: rgba(0, 199, 253, 0.14); color: var(--cyan); font: 700 12px/24px var(--font-ui); }
.plan-suite .snap { color: var(--cyan); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price b { font: 700 44px/1 var(--font-display); color: var(--text-main); font-variant-numeric: tabular-nums; }
.price span { color: var(--text-dim); font-size: 13px; }
.list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--text-sub); font-size: 15px; }
.list li { display: flex; align-items: flex-start; gap: 8px; line-height: 24px; }
/* A 24 px tall icon box centres the 20 px check on the first 24 px line. */
.list .i { height: 24px; color: var(--violet); }
.table-wrap { overflow-x: auto; border: 1px solid var(--thin); border-radius: 16px; background: var(--panel); }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
caption { padding: 16px 24px; color: var(--text-sub); font-weight: 600; text-align: left; }
th, td { padding: 16px 24px; border-top: 1px solid var(--thin); text-align: left; vertical-align: top; }
thead th { color: var(--text-main); font-family: var(--font-display); font-size: 15px; }
tbody th { color: var(--text-sub); font-weight: 600; }
td { color: var(--text-main); }

/* ================= DOWNLOAD ================= */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dl { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
/* The Microsoft Store card leads the row (PHASE-28D Round 3): a violet edge, a soft violet and pink light from its corners, a
   Recommended tag clear of its heading and its button's glow; the glow stays within the 24 px the film's Store crop keeps. */
.dl-store { border-color: var(--violet-line); background: radial-gradient(90% 120% at 100% 0%, rgba(167, 139, 250, 0.16), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(244, 114, 182, 0.08), transparent 70%), var(--panel); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px var(--violet-soft), 0 0 20px rgba(139, 92, 246, 0.18); }
.dl-store:hover { border-color: var(--violet); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px var(--violet-soft), 0 16px 48px rgba(139, 92, 246, 0.22); }
.dl-store h3 { padding-right: 128px; }
.dl-store .tag { position: absolute; top: 24px; right: 24px; padding: 0 8px; border: 1px solid var(--violet-line); border-radius: 8px; background: var(--violet-soft); color: var(--violet); font: 700 12px/24px var(--font-ui); }
.dl-store .btn-primary { box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35); }
.soon { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: 1px dashed var(--hairline); border-radius: 8px; color: var(--text-dim); font-weight: 600; }
.soon[hidden], .dl a[hidden] { display: none; }
.hash { font-size: 13px; }

/* ================= FAQ ================= */
.faq { display: grid; gap: 0; max-width: 896px; }
details { padding-block: 16px; border-top: 1px solid var(--thin); }
details:last-child { border-bottom: 1px solid var(--thin); }
summary { cursor: pointer; font-weight: 600; transition: color 160ms ease; }
summary:hover { color: var(--violet); }
details p { margin-top: 8px; color: var(--text-sub); max-width: 72ch; }

/* ================= LEGAL PAGES ================= */
.legal { padding-block: 64px 80px; }
.legal h2 { margin-top: 48px; font-size: 24px; }
.legal p, .legal li { color: var(--text-sub); }
.legal p + p, .legal ul { margin-top: 16px; }
.legal ul { display: grid; gap: 8px; padding-left: 24px; }

/* ================= FOOTER ================= */
.site-footer { padding-block: 32px; border-top: 1px solid var(--thin); color: var(--text-dim); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.foot p { margin-right: auto; }
.foot a { color: var(--text-sub); }

/* ================= DIALOGS ================= */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(6, 7, 12, 0.72); }
.modal[hidden] { display: none; }
.dialog { position: relative; display: grid; gap: 16px; width: 100%; max-width: 480px; padding: 32px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--flyout); }
.dialog h3 { margin: 0; padding-right: 32px; font-size: 22px; }
.dialog p { color: var(--text-sub); }
.dialog-close { position: absolute; top: 16px; right: 16px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-sub); cursor: pointer; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1023px) {
  .hero-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature:nth-child(even), .feature-wide .copy { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature:nth-child(even) > .media { order: 0; }
}
@media (max-width: 767px) {
  .nav, .wide-only { display: none; }
  .wrap { padding-inline: 16px; }
  .bar { gap: 16px; }
  .pin { top: 16px; right: 16px; width: 72%; }
  .bar .btn-primary { margin-left: auto; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero { padding-block: 32px 48px; }
  .band { padding-block: 56px; }
  .features, .downloads { grid-template-columns: minmax(0, 1fr); }
  .shield-marks rect { stroke-width: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pin, .card, .chip, .media, .film video, .nav a, summary { transition: none; }
  .btn:hover, .btn:active, .chip:active, .plan:hover, .dl:hover { transform: none; }
}
