@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/CourierPrime-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f4ead2;
  --paper-deep: #ecdcb4;
  --desk: #e8e0d3;
  --ink: #23201b;
  --ink-soft: #5b554b;
  --green: #1f7a68;
  --green-dark: #165c4e;
  --mint: #a6d3c3;
  --machine: #2f3b37;
  --red: #b3262d;
  --line: rgba(35, 32, 27, 0.14);
  --type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--green-dark); }
a:hover { color: var(--green); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--type); font-size: 20px; color: var(--ink); text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding-top: 40px; padding-bottom: 72px;
}
.kicker { font-family: var(--type); color: var(--red); letter-spacing: .04em; margin: 0 0 12px; }
h1 {
  font-family: var(--type); font-weight: 400;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.lede { font-size: 20px; color: var(--ink-soft); margin: 0 0 28px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 16px;
}
.btn:hover { background: #000; color: #fff; }
.btn.soon { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink-soft); cursor: default; }
.price { font-family: var(--type); color: var(--ink-soft); font-size: 15px; }

.hero-art { position: relative; min-height: 460px; overflow: visible; }
.device {
  position: absolute; width: 62%; border-radius: 28px; overflow: hidden;
  background: #111; padding: 7px; box-shadow: 0 24px 50px rgba(30, 25, 15, .28);
}
.device img { display: block; width: 100%; border-radius: 22px; }
.device.one { left: 0; top: 0; transform: rotate(-4deg); }
.device.two { right: 0; top: 70px; width: 50%; transform: rotate(5deg); }

/* Sections */
section { padding: 64px 0; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-family: var(--type); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.section-lede { color: var(--ink-soft); max-width: 36em; margin: 0 0 36px; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fffdf7; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.step .num { font-family: var(--type); color: var(--red); font-size: 15px; margin-bottom: 10px; display: block; }
.step p { margin: 0; color: var(--ink-soft); }

.letter-sample { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.letter-sample img, .letter-sample video { width: 100%; border-radius: 6px; box-shadow: 0 18px 40px rgba(30,25,15,.18); display: block; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; list-style: none; padding: 0; margin: 0; }
.features li { padding-left: 28px; position: relative; }
.features li::before { content: "✕"; position: absolute; left: 0; top: 0; font-family: var(--type); color: var(--red); }
.features strong { display: block; }
.features span { color: var(--ink-soft); }

.promise {
  font-family: var(--type); font-size: clamp(20px, 3vw, 26px); text-align: center;
  padding: 56px 20px; margin: 0;
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 16px; display: block; border: 1px solid var(--line); }
.gallery figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

/* Prose pages */
.doc { padding-top: 24px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc p, .doc li { color: #3a352d; }
.doc .meta { font-family: var(--type); color: var(--ink-soft); font-size: 15px; }
.card { background: #fffdf7; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin: 24px 0; }
.card p:last-child { margin-bottom: 0; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.downloads a { display: block; text-decoration: none; color: var(--ink); background: #fffdf7; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.downloads img { width: 100%; border-radius: 10px; display: block; margin-bottom: 10px; background: var(--desk); }
.downloads span { font-size: 14px; color: var(--ink-soft); }
.facts { width: 100%; border-collapse: collapse; }
.facts td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts td:first-child { width: 34%; color: var(--ink-soft); padding-right: 16px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink-soft); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .hero-art { min-height: 0; aspect-ratio: 1 / 1.05; margin: 0 8px; }
  .steps { grid-template-columns: 1fr; }
  .letter-sample { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: 1fr 1fr; }
  .nav { gap: 14px; font-size: 14px; }
}
@media (max-width: 420px) {
  .nav a.hide-sm { display: none; }
}

/* v2: machines and wide shot */
.machines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.machines figure { margin: 0; }
.machines img { width: 100%; display: block; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(30,25,15,.14); }
.machines figcaption { margin-top: 14px; }
.machines figcaption strong { display: block; font-family: var(--type); font-weight: 400; font-size: 22px; }
.machines figcaption span { color: var(--ink-soft); font-size: 15px; }
.wide-shot { margin: 28px 0 0; }
.wide-shot img { width: 100%; display: block; border-radius: 18px; border: 1px solid var(--line); }
.wide-shot figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 820px) {
  .machines { grid-template-columns: 1fr; gap: 32px; }
}

.film { padding-top: 0; }
.film video { width: 100%; display: block; border-radius: 18px; background: #141817; box-shadow: 0 24px 60px rgba(30,25,15,.25); }

/* v3: rendered hero (3D Duo in the office) */
.hero-shot { margin: 0; }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 24px 50px rgba(30, 25, 15, .22); }
.machines picture, .gallery picture { display: block; }
.machines img, .gallery img { height: auto; }

/* v4: two strong fold renders instead of a gallery of screenshots */
.fold-pair { display: grid; grid-template-columns: 1.33fr 1fr; gap: 24px; align-items: end; }
.fold-pair figure { margin: 0; }
.fold-pair picture { display: block; }
.fold-pair img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(30, 25, 15, .14); }
.fold-pair figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 820px) { .fold-pair { grid-template-columns: 1fr; } }
