@font-face {
  font-family: Pixelify;
  src: url("/assets/pixelify-sans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #b7e36c;
  --ink: #143b1b;
  --surface: #e8f8bf;
  --accent: #2b7d3b;
  --pink: #ffc7d7;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
figure, p { margin: 0; }
h1, h2, h3, .brand, .step-number, .physical-rail > span {
  font-family: Pixelify, ui-monospace, monospace;
  font-weight: 700;
  line-height: 1.04;
  margin: 0;
}
section { scroll-margin-top: 24px; }
.wrap { width: min(100% - 96px, 1320px); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 12px; background: var(--surface); transform: translateY(-160%); z-index: 2; }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; gap: 36px; padding-block: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 36px; }
.brand img { image-rendering: pixelated; }
nav { display: flex; gap: 28px; align-items: center; }
nav a { text-decoration: none; font-size: 14px; }
nav a:hover { text-decoration: underline; }
.site-header nav { margin-left: auto; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; border: 3px solid var(--ink); padding: 10px 20px; font: 700 15px/1.4 ui-monospace, monospace; text-align: center; text-decoration: none; }
.button:hover { background: var(--surface); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); text-decoration: none; }
.primary { background: var(--accent); color: var(--surface); }
.primary:hover { background: var(--ink); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 28px; padding-block: 56px 64px; }
h1 { font-size: clamp(48px, 5.7vw, 82px); letter-spacing: -1px; }
.hero-copy > p { max-width: 580px; margin-top: 28px; font-size: 19px; line-height: 1.6; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }
.hero-figure { text-align: center; min-width: 0; }
.phone-stage { position: relative; isolation: isolate; }
.phone-stage::before { content: ""; position: absolute; z-index: -1; width: 88%; height: 26%; left: 6%; bottom: 12%; background-image: linear-gradient(#2b7d3b33 1px, transparent 1px), linear-gradient(90deg, #2b7d3b33 1px, transparent 1px); background-size: 24px 24px; transform: skewY(8deg); }
.phone-art { width: 100%; max-width: 520px; height: auto; display: block; margin-inline: auto; image-rendering: pixelated; }
figcaption { font-size: 13px; line-height: 1.6; }
.how-section { background: var(--surface); padding-block: 64px 72px; }
h2 { font-size: clamp(36px, 4.4vw, 60px); }
.steps { list-style: none; padding: 0; margin: 42px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step-number { display: block; font-size: 60px; margin-bottom: 10px; }
h3 { font-size: 31px; line-height: 1.08; }
.steps p { margin-top: 20px; max-width: 350px; }
.physical-section { display: grid; grid-template-columns: max(96px, calc((100vw - 1320px) / 2)) 1fr; }
.physical-rail { background: var(--pink); display: flex; align-items: center; flex-direction: column; gap: 22px; padding: 64px 12px; }
.physical-rail > span { font-size: 44px; }
.physical-rail i { width: 26px; height: 4px; background: var(--ink); }
.physical-rail p { font-size: 13px; line-height: 1.6; }
.physical-content { width: min(100%, 1300px); padding: 64px 48px; display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: 40px; }
.physical-content h2 { font-size: clamp(36px, 3.8vw, 56px); }
.physical-content p { margin-top: 22px; max-width: 700px; }
.physical-content .physical-note { font-size: 13px; margin-top: 26px; }
.hardware-sketch { text-align: center; }
.hardware-sketch svg { width: 100%; max-width: 240px; display: block; margin: 0 auto 18px; }
.site-footer { background: var(--surface); padding-block: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand { font-size: 28px; }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .site-header { gap: 20px; flex-wrap: wrap; }
  .site-header nav { gap: 20px; }
  .brand { font-size: 30px; }
  .header-button { padding-inline: 14px; }
  .hero-copy > p { font-size: 17px; }
  .steps { gap: 28px; }
  h3 { font-size: 27px; }
  .physical-content { padding-inline: 32px; grid-template-columns: 1fr 200px; gap: 24px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 20px; gap: 18px; justify-content: space-between; }
  .brand { font-size: 29px; gap: 8px; }
  .site-header .brand { font-size: 25px; }
  .brand img { width: 36px; height: 36px; }
  .site-header nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 12px; }
  .header-button { font-size: 11px; padding: 7px 8px; min-height: 42px; max-width: 130px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 36px 40px; }
  h1 { font-size: clamp(34px, 9.5vw, 62px); letter-spacing: 0; }
  .hero-copy > p { margin-top: 22px; max-width: 560px; }
  .actions { margin-top: 26px; gap: 12px; }
  .actions .button { font-size: 13px; padding-inline: 14px; }
  .hero-figure { max-width: 400px; margin-inline: auto; width: 100%; }
  .how-section { padding-block: 40px 48px; }
  h2 { font-size: 38px; }
  .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 30px; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step-number { font-size: 44px; grid-row: span 2; }
  h3 { font-size: 29px; }
  .steps h3 br { display: none; }
  .steps p { margin-top: 12px; max-width: none; }
  .physical-section { grid-template-columns: 1fr; }
  .physical-rail { flex-direction: row; align-items: center; padding: 16px 20px; gap: 20px; }
  .physical-rail > span { font-size: 32px; }
  .physical-rail p br { display: none; }
  .physical-content { padding: 36px 20px 40px; grid-template-columns: 1fr; gap: 28px; }
  .physical-content h2 { font-size: 38px; }
  .hardware-sketch { max-width: 220px; margin-inline: auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .site-footer nav { flex-wrap: wrap; gap: 20px; }
}
@media (max-width: 380px) {
  .site-header .brand { font-size: 25px; }
  .site-header .brand img { width: 28px; height: 28px; }
  .header-button { max-width: 116px; }
  .button { width: 100%; }
  .site-footer .button { width: auto; }
  h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
