:root {
  --paper: #f2f0eb;
  --stone: #e4e1da;
  --ink: #111;
  --muted: #55524b;
  --line: 2px solid var(--ink);
  --thin: 1px solid var(--ink);
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* room for the mobile buy bar */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.6;
}
h1,
h2,
p,
dl,
dd,
figure,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header */

.top {
  display: flex;
  align-items: stretch;
  min-height: 56px;
  border-bottom: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--pad);
  border-right: var(--line);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.crumb {
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
}

.crumb .wide,
.nav {
  display: none;
}

/* Hero */

.cover {
  display: flex;
  justify-content: center;
  padding: 36px 40px;
  background: var(--stone);
  border-bottom: var(--line);
}

.cover img {
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 2px 0 var(--ink),
    0 20px 40px -18px rgb(0 0 0 / 0.4);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px var(--pad) 24px;
  border-bottom: var(--line);
}

h1 {
  font-size: clamp(56px, 16vw, 112px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.lead {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.5;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: var(--line);
}

.specs > div {
  min-width: 0;
  padding: 14px 12px;
  border-right: var(--line);
}

.specs > div:first-child {
  padding-left: var(--pad);
}
.specs > div:last-child {
  border-right: 0;
}

.specs dd {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.buy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px var(--pad);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 56px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
}

.btn span {
  font-family: var(--mono);
  font-weight: 500;
}
.btn.light {
  background: var(--paper);
  color: var(--ink);
}

.actions .btn {
  flex: 1 1 auto;
}

.more {
  padding: 12px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.note {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

/* Text rows: Why three, Details, Questions */

.row {
  border-top: var(--line);
}

.row > h2 {
  padding: 14px var(--pad);
  border-bottom: var(--line);
}

.big {
  padding: 24px var(--pad) 28px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.table > div {
  padding: 14px var(--pad);
  border-bottom: var(--thin);
}

.table > div:last-child {
  border-bottom: 0;
}

.table dd {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
}

.faq details {
  border-bottom: var(--thin);
}
.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  padding: 18px var(--pad);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.faq p {
  padding: 0 var(--pad) 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #3a372f;
}

/* What's inside */

.inside {
  border-top: var(--line);
}

.inside .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px var(--pad);
  border-bottom: var(--line);
}

/* Swipes inside its own box on small screens; the page itself never scrolls sideways. */
.parts {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.parts::-webkit-scrollbar {
  display: none;
}

.part {
  flex: 0 0 84%;
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px var(--pad) 28px;
  border-right: var(--line);
}

.part:last-child {
  border-right: 0;
}

.part-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.part figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--stone);
}

.part figure img {
  border: var(--thin);
  background: #fff;
}

.part summary {
  padding: 10px 0;
  border-top: var(--thin);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.part li {
  padding: 9px 0;
  border-top: var(--thin);
  font-size: 15px;
}

/* Closing CTA and footer */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px var(--pad);
  background: var(--ink);
  color: var(--paper);
}

.cta p {
  font-size: clamp(32px, 9vw, 56px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px var(--pad);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.foot > * {
  padding: 10px 0;
}

/* Mobile buy bar: shown by main.js once the main buy button is off screen */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--paper);
  border-top: var(--line);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.bar.show {
  transform: none;
}

.bar > span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.bar .btn {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

/* Intro animation (hero only)
   1. cover wipes up   2. headline lines rise   3. the rest fades in */

:root {
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
}

.line {
  display: block;
  overflow: hidden;
  padding-top: 0.08em; /* keeps cap tops from being clipped by the mask */
  margin-top: -0.08em;
}

.line > span {
  display: block;
}

.cover img {
  animation: wipe 1.1s var(--ease) both;
}

.line > span {
  animation: rise 1s var(--ease) 0.15s both;
}
.line + .line > span {
  animation-delay: 0.23s;
}

.intro > .label {
  animation: fade 0.8s var(--ease) 0.45s both;
}
.lead {
  animation: fade 0.8s var(--ease) 0.55s both;
}
.specs,
.buy {
  animation: fade 0.8s var(--ease) 0.65s both;
}

/* Wait for the fonts (main.js adds .ready) so the headline doesn't swap mid-animation.
   Without JS there is no .js class and everything plays straight away. */
.js:not(.ready)
  :is(.cover img, .line > span, .intro > .label, .lead, .specs, .buy) {
  animation-play-state: paused;
}

@keyframes wipe {
  from {
    clip-path: inset(110% -10% -15% -10%);
    transform: scale(1.06);
  }
  to {
    clip-path: inset(-10% -10% -15% -10%);
    transform: none;
  }
}

@keyframes rise {
  from {
    transform: translateY(105%);
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.cover img, .line > span, .intro > .label, .lead, .specs, .buy) {
    animation: none;
  }
}

/* Desktop */

@media (min-width: 900px) {
  :root {
    --pad: 48px;
  }

  body {
    padding-bottom: 0;
  }

  html {
    scroll-padding-top: 64px;
  }

  .top {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 64px;
    background: var(--paper);
  }
  .logo {
    padding: 0 32px;
    font-size: 17px;
  }
  .crumb {
    flex: 1;
    padding: 0 32px;
  }
  .crumb .wide {
    display: inline;
  }

  .nav {
    display: flex;
  }

  .nav a {
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-left: var(--line);
  }

  .label {
    font-size: 12px;
  }

  .hero {
    display: flex;
  }

  .cover {
    flex: 1 1 50%;
    align-items: center;
    padding: 72px 32px;
    border-bottom: 0;
    border-right: var(--line);
  }

  .info {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
  }

  .intro {
    padding: 56px var(--pad) 40px;
    gap: 24px;
  }
  .lead {
    font-size: 18px;
    line-height: 1.55;
  }

  .specs > div {
    padding: 20px 24px;
  }
  .specs dd {
    font-size: 28px;
  }

  .buy {
    padding: 32px var(--pad) 48px;
    gap: 16px;
  }
  .actions .btn {
    flex: 0 0 auto;
    min-height: 60px;
    padding: 0 28px;
  }

  .row {
    display: flex;
  }

  .row > h2 {
    flex: 0 0 360px;
    padding: 48px;
    border-bottom: 0;
    border-right: var(--line);
  }

  .row > :last-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .big {
    max-width: 920px;
    padding: 48px;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.3;
    letter-spacing: -0.025em;
  }

  .table > div {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: baseline;
    padding: 20px 48px;
  }

  .table dd {
    margin-top: 0;
    font-size: 16px;
  }

  .faq summary {
    padding: 22px 48px;
    font-size: 17px;
  }
  .faq p {
    padding: 0 48px 24px;
    max-width: 760px;
    font-size: 16px;
  }

  .inside .head {
    padding: 24px 48px;
  }
  .swipe {
    display: none;
  }

  .parts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .part {
    padding: 32px 32px 40px;
    gap: 20px;
  }
  .num {
    font-size: 56px;
  }
  .part figure {
    padding: 20px;
  }

  .cta {
    padding: 48px;
  }

  .foot {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 48px;
  }

  .bar {
    display: none;
  }
}
