/* Pixel Soup. One text face (the system UI face, same as the app) plus Modak for
   the wordmark. App palette: red BF0811, cream EEEDEA, ink 0D0D0D. */

:root {
  --red: #bf0811;
  --ink: #0d0d0d;
  --cream: #eeedea;
  --paper: #f1efea;
  --dim: #6e6a63;
  --hair: rgba(13, 13, 13, 0.12);
  --gut: clamp(20px, 4.4vw, 68px);
  --ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 var(--ui);
  letter-spacing: -0.014em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(13, 13, 13, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}

h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
canvas { display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gut); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(241, 239, 234, 0.84);
  backdrop-filter: blur(14px) saturate(1.4);
}
.nav .in { display: flex; align-items: center; gap: 11px; height: 62px; }
.nav .mark { width: 25px; height: 25px; }
.nav b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14.5px; color: var(--dim); }
.nav .right a:hover { color: var(--ink); }
.nav .right .pill {
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav .right .pill:hover { color: #fff; background: #a90710; }

/* ---------- hero ---------- */

/* The hero owns one screenful: the text takes what it needs, the machine takes
   the rest, so the MacBook can never run off the bottom. */
.hero {
  min-height: calc(100svh - 62px);
  display: flex;
  flex-direction: column;
  padding-top: clamp(18px, 2.4vw, 38px);
  padding-bottom: clamp(10px, 1.6vw, 22px);
  text-align: center;
}

.hero h1 {
  font-family: Modak, var(--ui);
  font-weight: 400;
  /* scales with the shorter of width and height, so a short window still fits */
  font-size: clamp(42px, min(9vw, 13svh), 128px);
  line-height: 0.82;
  color: var(--red);
  letter-spacing: 0;
}
.lead {
  margin-top: clamp(10px, 1.6vh, 22px);
  font-size: clamp(20px, min(2.7vw, 4.2svh), 38px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sub {
  margin: clamp(8px, 1.2vh, 12px) auto 0;
  max-width: 52ch;
  font-size: clamp(14.5px, min(1.2vw, 2.1svh), 17.5px);
  color: var(--dim);
  text-wrap: balance;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(14px, 2.4vh, 22px); }
.cta-row, .cta-row.centred { justify-content: center; }

.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow: 0 12px 26px -10px rgba(191, 8, 17, 0.85);
  transition: transform 0.18s cubic-bezier(.2,.8,.3,1), box-shadow 0.18s, background 0.18s;
}
.cta:hover { transform: translateY(-2px); background: #a90710; box-shadow: 0 18px 32px -10px rgba(191, 8, 17, 0.85); }
.cta em { font-style: normal; font-size: 14px; opacity: 0.78; }
.cta.quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hair);
  box-shadow: none;
  font-weight: 500;
}
.cta.quiet:hover { background: rgba(13, 13, 13, 0.05); transform: none; }
/* Before sales open: same look, nothing to press. */
.cta.soon { cursor: default; }
.cta.soon:hover { transform: none; background: var(--red); box-shadow: 0 12px 26px -10px rgba(191, 8, 17, 0.85); }
.cta.quiet.soon:hover { background: transparent; box-shadow: none; }

.fine { margin-top: clamp(9px, 1.5vh, 13px); font-size: 13px; color: var(--dim); }

/* ---------- the machine ---------- */

.stage {
  margin-top: clamp(6px, 1.4vw, 18px);
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* flex-basis 0 and an absolute canvas, so the renderer's own pixel size can
   never feed back into the layout and stretch the hero. */
#mac {
  flex: 1 1 0;
  position: relative;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  min-height: 230px;
}
#mac canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* The source canvas for the screen texture. Real pixels, parked off to the side. */
#pot {
  position: absolute;
  left: -300vw;
  top: 0;
  width: 1120px;
  height: 700px;
  pointer-events: none;
}

.now {
  margin-top: 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- sections ---------- */

section { padding: clamp(58px, 8vw, 116px) 0; }

/* facts */

.facts { border-top: 1px solid var(--hair); padding-top: 0; }
.fact {
  display: grid;
  grid-template-columns: 46px minmax(190px, 1fr) 1.5fr;
  gap: clamp(14px, 3vw, 44px);
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--hair);
}
.fact .n { font-size: 12.5px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }
.fact h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; letter-spacing: -0.028em; }
.fact p { color: var(--dim); font-size: 16.5px; }

/* the editor, as it really looks */

.shot { padding-bottom: 0; }
.shot figure { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: clamp(10px, 1.4vw, 18px);
  border: 1px solid var(--hair);
  box-shadow: 0 30px 60px -34px rgba(13, 13, 13, 0.45);
}
.shot figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--dim); }

/* what is in it, and questions */

.pot h2, .faq h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.035em; margin-bottom: clamp(14px, 2vw, 26px); }
.pot dl { margin: 0; border-top: 1px solid var(--hair); }
.pot .row {
  display: grid; grid-template-columns: minmax(120px, 1fr) 3fr; gap: clamp(14px, 3vw, 44px);
  padding: clamp(16px, 2vw, 24px) 0; border-bottom: 1px solid var(--hair); align-items: baseline;
}
.pot dt { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.028em; }
.pot dd { margin: 0; color: var(--dim); font-size: 16.5px; max-width: 62ch; }

.faq { padding-top: 0; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-of-type { border-top: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-weight: 400; font-size: 22px; color: var(--red);
  transition: transform 0.2s cubic-bezier(.2,.8,.3,1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red); }
.faq details p { color: var(--dim); font-size: 16.5px; max-width: 62ch; padding-bottom: 20px; }

/* Arrives once: opacity and a short rise, ease-out. Off for reduced motion. */
.rise { opacity: 0; transform: translateY(14px); transition: opacity 0.5s cubic-bezier(.2,.8,.3,1), transform 0.5s cubic-bezier(.2,.8,.3,1); }
.rise.in { opacity: 1; transform: none; }

/* buy */

.buy { text-align: center; }
.buy .price {
  font-family: Modak, var(--ui);
  font-weight: 400;
  font-size: clamp(94px, 16vw, 224px);
  line-height: 0.8;
  color: var(--red);
  letter-spacing: 0;
}
.buy .price .was {
  font-size: 0.32em; color: var(--dim); margin-right: 0.18em; vertical-align: 0.9em;
  text-decoration-thickness: 0.06em;
}
.buy .once { font-size: clamp(19px, 2.2vw, 27px); font-weight: 600; letter-spacing: -0.03em; margin-top: 10px; }
.buy .specs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px;
  margin-top: 26px; font-size: 13px; font-weight: 500; color: var(--dim);
}
.buy .note { margin: 18px auto 0; max-width: 54ch; font-size: 13.5px; color: var(--dim); }

/* footer */

footer { border-top: 1px solid var(--hair); padding: 30px 0 44px; }
.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 24px; font-size: 14px; color: var(--dim); }
.foot .mark { width: 23px; height: 23px; }
.foot a { color: var(--ink); }
.foot nav { margin-left: auto; display: flex; gap: 21px; }
.foot nav a { color: var(--dim); }
.foot nav a:hover { color: var(--ink); }
.foot .cr { flex-basis: 100%; font-size: 12px; opacity: 0.75; line-height: 1.6; }

/* ---------- prose pages ---------- */

.prose { max-width: 64ch; padding: clamp(40px, 6vw, 84px) 0 clamp(60px, 8vw, 110px); }
.prose h1 {
  font-family: Modak, var(--ui);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.88;
  color: var(--red);
  margin-bottom: 22px;
  letter-spacing: 0;
}
.prose .lede { font-size: 20px; line-height: 1.48; letter-spacing: -0.022em; }
.prose h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.028em; margin: 40px 0 9px; }
.prose p, .prose li { color: #3f3b36; margin-bottom: 11px; }
.prose ul { padding-left: 18px; }
.prose a { color: var(--red); font-weight: 500; border-bottom: 1px solid rgba(191, 8, 17, 0.3); }

/* guides: prose with pictures */

.prose.guide { max-width: 78ch; }
.prose ol { padding-left: 20px; }
.guide figure { margin: 28px 0; }
.guide img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--hair); background: rgba(13, 13, 13, 0.06);
}
.guide figcaption { margin-top: 9px; font-size: 14px; line-height: 1.45; color: var(--dim); }
.guide figcaption b { color: var(--ink); font-weight: 600; }
.guide .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 22px; margin: 30px 0 8px; }
.guide .grid figure { margin: 0; }
.guide .getit {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--hair);
}
.guide .getit .cta { border-bottom: 0; color: #fff; }
.guide .getit span { font-size: 14px; color: var(--dim); }
.foot .guides { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: 13.5px; }
.foot .guides a { color: var(--dim); }
.foot .guides a:hover { color: var(--ink); }
.pot dd a { color: var(--ink); border-bottom: 1px solid var(--hair); }
.pot dd a:hover { border-bottom-color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .fact { grid-template-columns: 34px 1fr; }
  .fact p { grid-column: 2; }
}

.nav b, .nav .right a { white-space: nowrap; }

@media (max-width: 640px) {
  .nav .right .hide-sm { display: none; }
  .nav .right { gap: 16px; }
  .pot .row { grid-template-columns: 1fr; gap: 4px; }
  .guide .grid { grid-template-columns: 1fr; }
  .foot nav { margin-left: 0; flex-wrap: wrap; gap: 8px 18px; }
  .buy .price .was { display: block; font-size: 30px; margin: 0 0 6px; vertical-align: 0; }
  #mac { min-height: 210px; }
  .cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; }
  * { transition: none !important; }
}
