:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-2: #ebe4d7;
  --ink: #11110f;
  --muted: #736d63;
  --line: #11110f;
  --orange: #ff6a00;
  --orange-soft: #ffb36b;
  --green: #1d8f57;
  --red: #c7432f;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.45;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

::selection {
  background: var(--orange);
  color: var(--paper);
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--orange);
  color: var(--paper);
  font-size: 0.76rem;
  letter-spacing: -0.08em;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: lowercase;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
}

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  padding: clamp(38px, 6vw, 76px) 0 clamp(34px, 5vw, 62px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-weight: 560;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

h1 {
  font-size: clamp(3.3rem, 6.8vw, 7rem);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 5.8rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.lede {
  max-width: 590px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.signup {
  width: min(100%, 520px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.signup > label:first-child {
  display: block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.form-row input {
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.form-row input:focus {
  box-shadow: inset 0 0 0 2px var(--orange);
}

.form-row button,
.pixel-button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0 18px;
  text-decoration: none;
  text-transform: lowercase;
  cursor: pointer;
}

.form-row button:hover,
.form-row button:focus-visible,
.pixel-button:hover,
.pixel-button:focus-visible {
  background: var(--orange);
  color: var(--paper);
}

.form-row button[disabled] {
  cursor: wait;
  opacity: 0.62;
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.74rem;
}

.consent-row input {
  margin-top: 3px;
  accent-color: var(--orange);
}

.turnstile-slot {
  margin-top: 12px;
}

.form-status {
  min-height: 1.3em;
  margin: 9px 0 0;
  color: var(--green);
  font-size: 0.78rem;
}

.form-status[data-tone="error"] {
  color: var(--red);
}

.bot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.product-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  padding: 14px;
  transform: rotate(1deg);
}

.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.iphone-frame-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2760 / 1350;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.iphone-frame-stage::before {
  content: "";
  position: absolute;
  inset: 4.75% 2.1%;
  z-index: 0;
  border-radius: 5.5% / 11.5%;
  background: #fff;
}

.iphone-screen-shot {
  position: absolute;
  top: 4.75%;
  right: 2.1%;
  bottom: 4.75%;
  left: 2.1%;
  z-index: 1;
  width: 95.8%;
  height: 90.5%;
  max-width: none;
  object-fit: cover;
  border-radius: 5.5% / 11.5%;
}

.iphone-frame-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.hero-device {
  filter: drop-shadow(0 18px 24px rgba(17, 17, 15, 0.12));
}

.product-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.product-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.product-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  object-fit: cover;
  image-rendering: pixelated;
}

.phone-frame {
  min-height: 150px;
  border: 10px solid var(--ink);
  border-radius: 28px;
  background: #1a1a18;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.pad i {
  display: grid;
  place-items: center;
  border: 1px solid #000;
  background: var(--paper);
  color: var(--ink);
  font-style: normal;
  font-size: 0.68rem;
  text-transform: lowercase;
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 22px);
  grid-template-rows: repeat(3, 22px);
  justify-content: center;
}

.dpad i:nth-child(1) { grid-column: 2; grid-row: 1; }
.dpad i:nth-child(2) { grid-column: 1; grid-row: 2; }
.dpad i:nth-child(3) { grid-column: 2; grid-row: 2; background: #2d2d2a; }
.dpad i:nth-child(4) { grid-column: 3; grid-row: 2; }
.dpad i:nth-child(5) { grid-column: 2; grid-row: 3; }

.keys {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.keys i {
  min-height: 30px;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  grid-template-rows: repeat(2, 36px);
  justify-content: center;
  gap: 8px;
}

.buttons i {
  border-radius: 50%;
  background: var(--orange);
  color: var(--paper);
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.spec-strip div {
  min-height: 94px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.spec-strip div:last-child {
  border-right: 0;
}

.spec-strip span,
.feature-list article > span,
.workflow-line span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.spec-strip strong {
  display: block;
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

.screens,
.details,
.workflow,
.use-cases,
.download,
.final-cta,
.privacy-copy {
  padding-block: clamp(72px, 11vw, 132px);
}

.section-heading {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.feature-list article {
  min-height: 260px;
  padding: 22px 18px 26px;
  border-right: 1px solid var(--line);
}

.feature-list article:last-child {
  border-right: 0;
}

.feature-list p {
  color: var(--muted);
  font-size: 0.92rem;
}

.screen-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.45fr);
  gap: 16px;
  padding-top: 16px;
}

.screen-card {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.screen-card.wide {
  grid-column: 1 / -1;
}

.screen-card.editor {
  grid-column: span 1;
}

.screen-card > img {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.device-frame-card .iphone-frame-stage {
  width: calc(100% - 28px);
  margin: 14px;
}

.screen-card.wide > img {
  aspect-ratio: 2.175 / 1;
  object-fit: cover;
}

.screen-card.portrait > img {
  aspect-ratio: 0.46 / 1;
  object-fit: cover;
  object-position: top center;
}

.screen-card.editor > img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.screen-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: lowercase;
}

.screen-card figcaption span {
  color: var(--ink);
}

.workflow-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.workflow-line div {
  min-height: 160px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.workflow-line div:last-child {
  border-right: 0;
}

.workflow-line strong {
  display: block;
  margin-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  font-weight: 560;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.use-cases {
  padding-top: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tags span {
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
  color: var(--muted);
  text-transform: lowercase;
}

.download {
  padding-top: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.download-card {
  min-height: 360px;
  padding: clamp(20px, 4vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
}

.download-card > span {
  display: block;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.download-card p {
  max-width: 520px;
  color: var(--muted);
}

.download-card .pixel-button {
  margin: 12px 0 18px;
}

.release-meta {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  border-top: 1px solid rgba(17, 17, 15, 0.22);
}

.release-meta div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(17, 17, 15, 0.16);
}

.release-meta dt,
.release-meta dd {
  margin: 0;
  font-size: 0.76rem;
}

.release-meta dt {
  color: var(--muted);
  text-transform: uppercase;
}

.release-meta dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  align-items: start;
  gap: clamp(28px, 8vw, 86px);
  border-top: 1px solid var(--line);
}

.final-cta .signup {
  padding-top: 0;
  border-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: lowercase;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.pixel-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.25);
  padding: clamp(22px, 4vw, 42px);
}

.privacy-page {
  min-height: 100vh;
}

.privacy-copy {
  max-width: 880px;
}

.privacy-copy h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.privacy-copy h2 {
  margin-top: 34px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}

.privacy-copy p,
.privacy-copy li {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .section-heading,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 520px;
  }

  .screen-gallery {
    grid-template-columns: 1fr;
  }

  .screen-card.wide,
  .screen-card.editor {
    grid-column: auto;
  }

  .screen-card.portrait img {
    aspect-ratio: 3 / 4;
    object-position: top center;
  }

  .screen-card.editor img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .spec-strip,
  .feature-list,
  .workflow-line,
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-strip div:nth-child(2),
  .feature-list article:nth-child(2),
  .workflow-line div:nth-child(2) {
    border-right: 0;
  }

  .feature-list article:nth-child(-n + 2),
  .workflow-line div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .section-shell,
  .site-header {
    width: min(100% - 24px, var(--max));
  }

  .site-header nav a:first-child {
    display: none;
  }

  .landing-page .site-header nav a[href="#details"],
  .landing-page .site-header nav a[href="#download"] {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.7rem);
  }

  .form-row,
  .spec-strip,
  .feature-list,
  .workflow-line,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .spec-strip div,
  .feature-list article,
  .workflow-line div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .spec-strip div:last-child,
  .feature-list article:last-child,
  .workflow-line div:last-child {
    border-bottom: 0;
  }

  .phone-frame {
    min-height: 154px;
    grid-template-columns: 1fr 1fr;
  }

  .keys {
    display: none;
  }
}

/* Documentation + richer marketing sections */
.nav-cta {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--orange);
  color: var(--paper) !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.pixel-button[aria-disabled="true"] {
  opacity: 0.58;
  pointer-events: none;
}

.pixel-button-secondary {
  background: transparent;
  color: var(--ink);
}

.pixel-button-secondary:hover,
.pixel-button-secondary:focus-visible {
  background: var(--orange);
  color: var(--paper);
}

.footer-links {
  display: inline-flex;
  gap: 16px;
}

.docs-preview {
  padding-block: clamp(72px, 11vw, 132px);
}

.docs-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.docs-preview-grid a {
  min-height: 240px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.20);
  text-decoration: none;
}

.docs-preview-grid a:hover,
.docs-preview-grid a:focus-visible {
  background: rgba(255, 106, 0, 0.12);
}

.docs-preview-grid span,
.doc-card span {
  display: block;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.docs-preview-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.docs-preview-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.docs-preview-grid code,
.docs-copy code {
  padding: 0.08em 0.28em;
  background: rgba(17, 17, 15, 0.08);
  border: 1px solid rgba(17, 17, 15, 0.12);
}

.docs-page {
  background-size: 20px 20px;
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  padding-block: clamp(56px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
}

.docs-hero-art {
  position: relative;
  min-height: 460px;
}

.docs-floating-shot {
  position: absolute;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  padding: 10px;
  box-shadow: 12px 12px 0 rgba(17, 17, 15, 0.09);
}

.docs-floating-shot img {
  width: 100%;
}

.docs-floating-shot.editor-shot {
  inset: 0 5% auto 0;
  transform: rotate(-1deg);
}

.docs-floating-shot.editor-shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.docs-floating-shot.phone-shot {
  right: 0;
  bottom: 0;
  width: min(72%, 520px);
  transform: rotate(2deg);
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(52px, 8vw, 96px);
}

.docs-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.25);
  padding: 14px;
}

.docs-toc strong {
  margin-bottom: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.docs-toc a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: lowercase;
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  color: var(--ink);
}

.docs-copy {
  min-width: 0;
}

.doc-section {
  padding-block: clamp(46px, 7vw, 82px);
  border-bottom: 1px solid var(--line);
}

.doc-section:first-child {
  padding-top: 0;
}

.doc-section h2 {
  font-size: clamp(2.45rem, 5vw, 5.2rem);
}

.doc-section h3 {
  margin-top: 26px;
}

.doc-section p,
.doc-section li,
.doc-section summary {
  color: var(--muted);
}

.doc-section > p,
.doc-section > ul,
.doc-section > ol {
  max-width: 820px;
}

.doc-card-grid {
  display: grid;
  gap: 1px;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--line);
}

.doc-card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.doc-card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.doc-card {
  min-height: 210px;
  padding: 18px;
  background: color-mix(in srgb, var(--paper) 82%, white);
}

.doc-card span {
  margin-bottom: 36px;
}

.doc-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.doc-checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.doc-checklist li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
}

.doc-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
}

.doc-steps li {
  position: relative;
  padding: 16px 16px 16px 58px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
  counter-increment: docs-step;
}

.doc-steps li::before {
  content: counter(docs-step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--orange);
  font-weight: 700;
}

.doc-steps p {
  margin: 6px 0 0;
}

.doc-steps.compact li {
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ---- Blog ------------------------------------------------------------ */

.blog-hero .hero-actions {
  margin-top: 18px;
}

.post-list {
  display: grid;
  gap: 18px;
  padding-block: 8px 72px;
}

.post-card {
  display: block;
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 6px 6px 0 rgba(17, 17, 15, 0.14);
  padding: 22px 24px;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.post-card:hover,
.post-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(17, 17, 15, 0.18);
}

.post-card h2 {
  margin: 6px 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.post-read {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 700;
}

.blog-post .docs-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

@media (max-width: 720px) {
  .post-card {
    padding: 18px;
  }
}

.with-media {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.with-media.flip > div {
  order: 2;
}

.with-media.flip > figure {
  order: 1;
}

.doc-media-card {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
  padding: 10px;
}

.doc-media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(17, 17, 15, 0.14);
}

.doc-media-card.portrait-card {
  max-width: 330px;
}

.doc-media-card.portrait-card img {
  aspect-ratio: 9 / 16;
  object-position: top center;
}

.doc-media-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: lowercase;
}

.doc-table {
  display: grid;
  margin-block: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.doc-table > div {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 1fr;
}

.doc-table span,
.doc-table strong {
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doc-table strong {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
}

.doc-table span {
  color: var(--muted);
}

.docs-copy pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 18px 0 26px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #171717;
  color: #f4efe5;
  font-size: 0.82rem;
  line-height: 1.55;
}

.docs-copy pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.docs-copy kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.35em;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 2px 0 rgba(17, 17, 15, 0.18);
}

.docs-copy details {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
  padding: 14px 16px;
  margin: 10px 0;
}

.docs-copy summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.docs-copy details p {
  margin: 12px 0 0;
}

@media (max-width: 980px) {
  .docs-hero,
  .docs-layout,
  .with-media {
    grid-template-columns: 1fr;
  }

  .docs-hero-art {
    min-height: 420px;
  }

  .docs-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-toc strong {
    grid-column: 1 / -1;
  }

  .docs-preview-grid,
  .download-grid,
  .doc-card-grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .with-media.flip > div,
  .with-media.flip > figure {
    order: initial;
  }
}

@media (max-width: 620px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .pixel-button {
    width: 100%;
  }

  .docs-preview-grid,
  .download-grid,
  .doc-card-grid.two,
  .doc-card-grid.three,
  .docs-toc,
  .doc-table > div {
    grid-template-columns: 1fr;
  }

  .docs-hero-art {
    min-height: 300px;
  }

  .docs-floating-shot.editor-shot {
    inset: 0 0 auto 0;
  }

  .docs-floating-shot.phone-shot {
    width: 82%;
  }

  .doc-steps li {
    padding-left: 16px;
  }

  .doc-steps li::before {
    position: static;
    display: block;
    margin-bottom: 8px;
  }
}

[hidden] {
  display: none !important;
}

@media (min-width: 981px) {
  .docs-preview-grid a:nth-child(5) {
    grid-column: span 4;
    min-height: 170px;
  }

  .docs-preview-grid a:nth-child(5) span {
    margin-bottom: 20px;
  }
}

/* Native controller screenshots preserve their complete app viewport. */
.gaming {
  padding-top: 88px;
  scroll-margin-top: 100px;
}

.gaming-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin-bottom: 32px;
}

.gaming-heading .eyebrow { margin-bottom: 18px; }
.gaming-heading h2 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 1.02; letter-spacing: -0.055em; }
.gaming-heading > p { max-width: 340px; margin: 0 0 3px; font-size: 0.9rem; line-height: 1.65; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.game-capture { margin: 0; background: #000; color: #b4b4b4; border-bottom: 1px solid var(--line); }
.game-capture > a { display: block; padding: 12px 8px; }
.game-capture img { display: block; width: 100%; height: auto; aspect-ratio: 2622 / 1206; object-fit: contain; }
.game-capture > a:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.game-capture figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid #272727; font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.02em; }
.game-copy { padding: 26px 28px 24px; }
.game-copy h3 { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; text-transform: none; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.045em; margin-bottom: 12px; }
.game-copy p { color: var(--muted); font-size: 0.86rem; line-height: 1.65; margin: 0 0 24px; max-width: 50ch; }
.game-copy a, .controller-summary a { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 0.78rem; font-weight: 700; text-decoration: none; }
.game-copy a { padding-top: 16px; border-top: 1px solid #d4cdbf; }
.game-copy a:hover, .controller-summary a:hover { color: #ae4600; }
.game-copy a:focus-visible, .controller-summary a:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
.controller-summary { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 32px; padding: 28px 0; margin-top: 8px; border-bottom: 1px solid #c9c1b3; }
.controller-summary .eyebrow { font-size: 0.6rem; }
.controller-summary h3 { margin: 8px 0 0; text-transform: none; font-size: 0.95rem; letter-spacing: -0.035em; }
.controller-summary p { margin: 0; max-width: 36ch; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.gaming-release-note { max-width: 100ch; margin: 18px 0 0; color: var(--muted); font-size: 0.67rem; line-height: 1.7; }
.gaming-release-note a { text-underline-offset: 3px; }

@media (max-width: 900px) {
  .gaming-heading { gap: 24px; }
  .gaming-heading > p { max-width: 280px; }
  .game-grid { gap: 16px; }
  .game-copy { padding: 22px; }
}

@media (max-width: 680px) {
  .gaming { padding-top: 56px; scroll-margin-top: 125px; }
  .gaming-heading { display: block; margin-bottom: 24px; }
  .gaming-heading > p { max-width: 38ch; margin-top: 18px; font-size: 0.85rem; }
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .controller-summary { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .controller-summary a { justify-content: start; }
}
