:root {
  --color-canvas: #FDF5EE;
  --color-surface: #FFFDFB;
  --color-surface-alt: #F1EAE3;
  --color-text: #16100C;
  --color-text-muted: #524C46;
  --color-divider: #DED6CF;
  --color-control-border: #6E6862;
  --color-accent: #B6463A;
  --color-accent-hover: #9E3026;
  --color-on-accent: #FFFFFF;
  --color-accent-text: #7F0B07;
  --color-focus-ring: #A03228;
  --font-primary: "Schibsted Grotesk", sans-serif;
  --font-secondary: "Fragment Mono", monospace;
  --text-display: clamp(3rem, 0.875rem + 6.7vw, 7.5rem);
  --text-h1: clamp(2.875rem, 1rem + 6.4vw, 7.25rem);
  --text-h2: clamp(2rem, 1.15rem + 3vw, 4.25rem);
  --text-h3: clamp(1.375rem, 1.1rem + 1vw, 2.125rem);
  --text-body: clamp(1.0625rem, 0.95rem + 0.45vw, 1.5rem);
  --text-small: clamp(0.875rem, 0.82rem + 0.22vw, 1.0625rem);
  --text-label: 0.8125rem;
  --radius-1: 4px;
  --radius-2: 16px;
  --radius-3: 28px;
  --radius-pill: 999px;
  --space-section: clamp(3.5rem, 7vw, 7rem);
  --space-gutter: clamp(1.25rem, 2.2vw, 2.25rem);
  --space-stack: clamp(1rem, 2.25vw, 2rem);
  --light-control: var(--color-surface);
  --light-hover: var(--color-surface-alt);
  --light-ink: var(--color-text);
  --hardware-dark: #050606;
  --space-frame: clamp(12px, 1.1vw, 16px);
  --space-label-y: 8px;
  --space-label-x: 14px;
  --space-button-x: 24px;
  --space-card: 16px;
  --control-height: 52px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
[data-theme="dark"] {
  --color-canvas: #050606;
  --color-surface: #0F0F10;
  --color-surface-alt: #28292A;
  --color-text: #EAEBED;
  --color-text-muted: #9D9EA0;
  --color-divider: #414244;
  --color-control-border: #858688;
  --color-accent: #FF826F;
  --color-accent-hover: #FFA89A;
  --color-on-accent: #000000;
  --color-accent-text: #F67A68;
  --color-focus-ring: #EF7462;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("/assets/fonts/FragmentMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--color-canvas); color: var(--color-text); font: 400 var(--text-body)/1.45 var(--font-primary); }
main { max-inline-size: 96rem; margin-inline: auto; }
h1, h2, p, figure, ul { margin: 0; }
h1 { font-size: var(--text-display); font-weight: 600; line-height: .99; letter-spacing: -.045em; }
h2 { font-size: var(--text-h2); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; }
a { color: inherit; }
button, summary { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; }
.skip { position: fixed; z-index: 4; inset: var(--space-frame) auto auto var(--space-frame); }
.skip:not(:focus) { clip-path: inset(50%); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: var(--control-height); min-inline-size: 44px;
  padding-inline: var(--space-button-x); border: 1px solid transparent;
  border-radius: 14px 14px 5px 14px; text-decoration: none; text-align: center;
  font: 500 var(--text-small)/1.2 var(--font-primary); cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease), border-radius 220ms var(--ease);
}
.primary { background: var(--color-accent); color: var(--color-on-accent); }
.secondary { background: var(--light-control); color: var(--light-ink); border-color: var(--color-divider); }
[data-theme="dark"] .secondary { border-color: transparent; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .7; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .primary:hover:not(:disabled) { background: var(--color-accent-hover); border-radius: 6px 15px 15px 15px; }
  .secondary:hover:not(:disabled) { background: var(--light-hover); border-radius: 6px 15px 15px 15px; }
  .masthead nav a:hover { color: var(--color-accent-text); }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-label-y);
  width: fit-content; max-width: 100%; padding: var(--space-label-y) var(--space-label-x);
  border-radius: var(--radius-pill); background: var(--light-control); color: var(--light-ink);
  font: 400 var(--text-label)/1.2 var(--font-secondary); letter-spacing: .02em;
}
.eyebrow::before {
  content: ""; flex: none; inline-size: .65em; aspect-ratio: 1;
  background: var(--color-accent); border-radius: var(--radius-1);
}
.panel {
  position: relative; margin: var(--space-frame); border-radius: var(--radius-3);
  background: var(--color-surface); color: var(--color-text);
}
.hero {
  isolation: isolate; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto; align-items: center;
  min-block-size: min(61vw, 58rem);
  padding: var(--space-gutter) var(--space-gutter) calc(var(--space-stack) * 1.6);
}
.hero-chassis {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%;
  border-radius: inherit; object-fit: cover; object-position: 70% center;
  opacity: .64;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--color-canvas), transparent 85%),
              linear-gradient(0deg, var(--color-canvas), transparent 28%);
  pointer-events: none;
}
.masthead {
  grid-area: 1 / 1 / 2 / -1; z-index: 2; display: grid;
  grid-template-columns: 1fr auto 1fr; gap: var(--space-stack); align-items: start;
}
.masthead a:not(.button) {
  display: inline-flex; min-block-size: 44px; min-inline-size: 44px; align-items: center;
  text-decoration: none; transition: color 160ms var(--ease);
}
.brand { justify-self: start; font-size: var(--text-h3); font-weight: 600; letter-spacing: -.035em; }
.full-nav { display: flex; gap: var(--space-stack); font-size: var(--text-small); }
.nav-preview, .compact-nav { justify-self: end; }
.compact-nav { display: none; }
.compact-nav summary { list-style: none; }
.compact-nav summary::-webkit-details-marker { display: none; }
.compact-nav nav {
  display: grid; gap: var(--space-label-y); padding-block-start: var(--space-label-y);
  font-size: var(--text-small);
}
.hero-copy {
  grid-area: 2 / 1 / 3 / 7; display: grid; justify-items: start; gap: var(--space-stack);
  padding-block: var(--space-stack);
}
.hero-copy p:last-child { max-inline-size: 56ch; }
.hero-device { grid-area: 2 / 7 / 3 / -1; text-align: center; align-self: center; }
.bar {
  overflow: hidden; aspect-ratio: 9 / 1; background: var(--hardware-dark);
  border: 1px solid var(--color-control-border); border-radius: var(--radius-1);
}
.bar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero-device figcaption { margin-top: var(--space-label-y); color: var(--color-text); font-size: var(--text-small); }
.hero-actions { grid-area: 3 / 7 / 4 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-label-y); }
.gallery { padding-block: var(--space-section); }
.gallery-intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-stack);
  align-items: end; padding-inline: calc(var(--space-frame) + var(--space-gutter));
  margin-bottom: var(--space-section);
}
.gallery-intro .eyebrow { grid-column: 1 / -1; }
.gallery-intro h2 { grid-column: 1 / 8; max-inline-size: 22ch; text-wrap: balance; }
.gallery-caption { grid-column: 8 / -1; justify-self: end; color: var(--color-text-muted); }
.samples {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-stack); padding: 3px calc(var(--space-frame) + var(--space-gutter));
  margin: 0; list-style: none;
}
.sample { min-inline-size: 0; }
.theme-card {
  display: grid; width: 100%; padding: 0; overflow: hidden; text-align: left;
  border: 1px solid var(--color-divider); border-radius: var(--radius-2);
  background: var(--color-surface); color: inherit; font: inherit; cursor: pointer;
}
.theme-card span { padding: .8rem 1rem; }
.theme-card[aria-pressed="true"] { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.theme-card:focus-visible { outline-offset: 3px; }
.sample-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; image-rendering: pixelated; }
.checkout {
  display: grid; justify-items: center; align-content: center; text-align: center;
  min-height: min(42vw, 42rem); padding: var(--space-section) var(--space-gutter);
  gap: var(--space-stack);
}
.checkout h2 { font-size: var(--text-display); }
.checkout [data-reveal] p { margin-top: var(--space-stack); }
.checkout p { color: var(--color-text-muted); }
.store-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-label-y); }
#checkout-note { font-size: var(--text-small); }
.legacy-anchor { position: absolute; inset: 0 auto auto 0; }
@media (max-width: 1023px) {
  .masthead { grid-template-columns: 1fr auto; }
  .nav-preview { display: none; }
  .hero { min-block-size: 70vw; }
  .hero-copy { grid-column-end: 8; }
  .hero-device { grid-area: 3 / 8 / 4 / -1; }
  .hero-actions { grid-area: 3 / 1 / 4 / 8; justify-content: flex-start; }
}
@media (max-width: 639px) {
  .full-nav { display: none; }
  .compact-nav { display: block; }
  .compact-nav[open] { grid-column: 1 / -1; justify-self: stretch; grid-row: 2; }
  .compact-nav summary { float: right; }
  .compact-nav nav { clear: both; padding-inline: var(--space-stack); background: var(--color-surface); }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-block-size: max(145vw, 34rem); }
  .hero-chassis { object-position: 82% 25%; }
  .hero::before {
    background: linear-gradient(0deg, var(--color-canvas) 18%, transparent 93%);
  }
  .hero-device { align-self: stretch; margin-block: calc(var(--space-stack) * 2.5) var(--space-stack); }
  .hero-copy { padding-top: 0; padding-bottom: var(--space-stack); }
  .hero-actions { margin-top: auto; padding-top: var(--space-stack); }
  .gallery-intro { display: grid; grid-template-columns: minmax(0, 1fr); }
  .gallery-intro h2, .gallery-caption { grid-column: 1; justify-self: start; }
  .gallery-intro h2 { max-inline-size: 17ch; text-wrap: wrap; }
  .checkout { min-block-size: 95vw; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .masthead nav a { transition: none; }
}

.live-bar { position: relative; aspect-ratio: auto; min-block-size: 30px; }
.live-bar img { display: block; min-block-size: 24px; width: 100%; object-fit: fill; }
.live-bar canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-device .preview-tools { display: flex; justify-content: center; align-items: center; gap: .75rem; }
.preview-tools .button { min-block-size: 36px; min-inline-size: 40px; padding: 0; }

/* The stepped corners echo a film frame. Icon controls mirror each other. */
.preview-tools #prev { border-radius: 12px 4px 12px 12px; }
.preview-tools #next { border-radius: 4px 12px 12px 12px; }

/* Bevelled, keycap-like controls, with a short physical press. */
.button {
  border-radius: 6px; border-bottom-width: 3px;
  min-block-size: 45px; font-weight: 650; letter-spacing: -.015em;
  box-shadow: inset 0 1px 0 #ffffff35, 0 2px 6px #00000020;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.button.primary { border-color: #0000 #0000 #64271e; }
.button.secondary { border-bottom-color: #b7aba4; }
@media (hover: hover) and (pointer: fine) {
  .button.primary:hover:not(:disabled), .button.secondary:hover:not(:disabled) {
    border-radius: 6px; transform: translateY(-2px); box-shadow: inset 0 1px 0 #ffffff45, 0 5px 10px #0004;
  }
}
.button:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 1px 2px #0004; }
.device-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(18px, 3.2vw, 33px); gap: 5px;
  padding: 8px 7px 5px; background: linear-gradient(175deg, #343438, #202023 45%, #171719);
  border: 1px solid #67676b; border-radius: 9px;
  box-shadow: inset 0 1px 0 #fff2, 0 8px 18px #0008;
}
.device-shell .live-bar {
  position: relative; min-block-size: 0; aspect-ratio: 36.16; border: 1px solid #000;
  border-radius: 4px; background: #07070b; overflow: hidden;
  box-shadow: 0 0 0 1px #ffffff18;
}
.device-shell .live-bar img { width: 100%; height: 100%; min-block-size: 0; object-fit: fill; }
.device-shell .live-bar canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.touch-id { display: block; min-block-size: 9px; border: 1px solid #09090a; border-radius: 4px; background: linear-gradient(140deg,#17171a,#070708); box-shadow: inset 0 1px 0 #fff2; }
.keyboard-hint { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.keyboard-hint i { height: 6px; border-radius: 2px 2px 0 0; background: #111113; border-top: 1px solid #44444a; }
.hero-device .preview-tools, .audio-preview { display: flex; align-items: flex-end; justify-content: flex-start; gap: 8px; flex-wrap: wrap; margin-top: 13px; text-align: left; }
.preview-tools label, .audio-preview label { display: grid; gap: 4px; flex: 1; min-inline-size: 0; font-size: 11px; color: #eee3dd; }
.preview-tools select, .audio-preview select {
  min-height: 36px; width: 100%; padding-inline: 8px; border: 1px solid #696268;
  border-bottom-width: 2px; border-radius: 5px; background: #222126; color: #fff9f3; font: inherit; font-size: 12px;
}
.preview-tools .play-motion { min-inline-size: 36px; min-block-size: 36px; border-radius: 6px; }
.audio-preview small { color: #ede3db; align-self: center; }
.audio-preview label { flex: 0 1 11rem; }
.compatibility { padding: clamp(24px, 5vw, 70px) var(--space-gutter); max-width: 1060px; margin-inline: auto; }
.compatibility h2 { margin: 0 0 12px; }
.compatibility p { margin: 0 0 14px; color: var(--color-text-muted); }
.compatibility .compatibility-note { margin-top: 14px; font-size: .88rem; }
.compatibility a { text-decoration: underline; text-underline-offset: .2em; }
.model-table { border-block: 1px solid var(--color-divider); }
.model-table table { width: 100%; border-collapse: collapse; text-align: left; }
.model-table :is(th,td) { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--color-divider); }
.model-table tr:last-child :is(th,td) { border-bottom: 0; }
.model-table thead th { font-size: .85rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
.model-table { overflow-x: auto; }
.model-table td small { display: block; color: var(--color-text-muted); }
.model-table td code { display: inline-block; font-size: .79em; }
@media (max-width: 520px) {
  .model-table :is(td, th) { padding-inline-end: 8px; font-size: .84em; }
}

.hero[data-theme="dark"] { background: radial-gradient(ellipse at 76% 38%, #302831, #111013 54%, #0c0b0c 83%); }
.hero::before { display: none; }
.device-shell {
  grid-template-columns: clamp(20px,3vw,34px) minmax(0,1fr) clamp(20px,3vw,34px);
  padding: 12px 10px 6px; gap: 5px;
  background: linear-gradient(175deg, #48494c, #292a2f 40%, #242428);
}
.device-shell .live-bar { aspect-ratio: 36.16; min-height: 15px; }
.escape-key, .touch-id { border-radius: 3px; border: 1px solid #101010; background: #101013; }
.escape-key { display: grid; place-items: center; color: #e9e9eb; font: 9px system-ui; }
.keyboard-hint { column-gap: 5px; }
.keyboard-hint i { height: 12px; }
.hero-device .preview-tools { padding: 10px; border: 1px solid #ffffff36; border-radius: 7px; background: #131216; gap: 10px; }
.preview-tools label { font-weight: 650; color: #f0e5df; }
.preview-tools select { min-height: 41px; background: #29262e; border-color: #726675; }
.preview-tools button.play-motion { min-height: 41px; min-width: 41px; }
.trio-links { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.trio-links button { gap: 5px; padding: 5px 8px; min-height: 30px; }
.trio-links img { width: 15px; height: 15px; object-fit: contain; }
.trio-links output { color: #efe8e0; font-size: .75rem; }
.theme-swatches { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 5px; margin-top: 8px; }
.theme-swatches button { display: block; min-width: 0; height: 23px; padding: 2px; border: 1px solid #6c626e; border-radius: 4px; background: #222126; cursor: pointer; }
.theme-swatches img { width: 100%; height: 100%; display: block; border-radius: 1px; object-fit: cover; }
.theme-swatches button[aria-pressed="true"] { border-color: #ff9783; box-shadow: inset 0 0 0 1px #ff9783; }
.theme-swatches button:hover { border-color: #f3e7e4; }
@media (max-width: 380px) { .theme-swatches { grid-template-columns: repeat(5,minmax(0,1fr)); } }
.device-shell .live-bar { width: 100%; min-width: 0; }
.hero-device { min-width: 0; }
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-copy { grid-area: 2 / 1 / 3 / -1; }
  .hero-device { grid-area: 3 / 1 / 4 / -1; width: 100%; }
  .hero-actions { grid-area: 4 / 1 / 5 / -1; justify-content: flex-start; }
}


.hero-device .preview-tools {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}
.preview-tools select, .preview-tools button.play-motion { min-height: 44px; }
.preview-tools button.play-motion { padding-inline: .65rem; white-space: nowrap; }
.theme-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.theme-swatches button, .trio-links button { min-height: 44px; }
@media (max-width: 460px) {
  .hero-device .preview-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-tools button.play-motion { grid-column: 1 / -1; width: 100%; }
}
