/*
 * Cherry landing page. Colours are the app's "Just black" theme (the brand asks for true black).
 * Radius rule: buttons are pills, panels 16px, images inside panels 10px. One accent: blue.
 * Layers: grain 1, nav 10, skip link 20.
 */
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #000;
  --s1: #0b0b0c;
  --s2: #141416;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --t1: #f4f4f5;
  --t2: #a1a1aa;
  --t3: #8b8b94;
  --accent: #3b82f6;
  --accent-text: #93b9fa;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --r-panel: 16px;
  --r-img: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Fine grain so the black reads as a surface, not a void. Fixed, never repaints on scroll. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a {
  color: inherit;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--t1);
  color: #000;
  font-weight: 500;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 15px var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--t1);
  color: #09090b;
}
.btn-primary:hover {
  background: #fff;
}
.btn-quiet {
  border-color: var(--line-strong);
  color: var(--t1);
}
.btn-quiet:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: var(--s2);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.gh {
  flex: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.stuck {
  border-bottom-color: var(--line);
}
.nav-in {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--t1);
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
}
.wordmark {
  height: 18px;
  width: auto;
}
.wordmark .cursor {
  fill: var(--accent);
}
.links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.links a {
  color: var(--t2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.links a:hover {
  color: var(--t1);
}

/* Hero: left-aligned copy, the real demo underneath, overlapping into the next band. */
.hero {
  position: relative;
  z-index: 2;
  padding-top: 88px;
}
.hero-copy {
  max-width: 900px;
}
h1 {
  margin: 0;
  font-size: clamp(48px, 7.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero-sub {
  margin: 26px 0 0;
  max-width: 46ch;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--t2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.demo {
  margin: 64px 0 0;
}
.demo video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-panel);
  border: 1px solid var(--line-strong);
  background: var(--s1);
  box-shadow: 0 40px 80px -40px rgba(10, 20, 40, 0.9);
}
.demo figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--t3);
}

/* Proof row: four facts, one hairline above, no cards. */
.proof {
  margin-top: 96px;
}
.proof dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.proof dt {
  font: 500 22px var(--mono);
  letter-spacing: -0.02em;
}
.proof dd {
  margin: 6px 0 0;
  color: var(--t2);
  font-size: 15px;
  max-width: 26ch;
}

/* Section headings */
h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 18ch;
}
.section-sub {
  margin: 16px 0 0;
  max-width: 52ch;
  color: var(--t2);
  font-size: 18px;
}
.section-sub a,
.credit a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

/* Business: a bento of four cells, wide and narrow. */
.features {
  margin-top: 160px;
}
.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 14px;
}
.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  background: var(--s1);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.tile:hover {
  border-color: var(--line-strong);
}
.tile-text {
  padding: 26px 26px 20px;
}
.tile h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.tile p {
  margin: 8px 0 0;
  color: var(--t2);
  font-size: 15px;
  max-width: 44ch;
}
.tile img {
  margin: auto 0 0 26px;
  width: calc(100% - 26px);
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: left top;
  border-top-left-radius: var(--r-img);
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  transition: transform 0.6s var(--ease);
  transform-origin: left top;
}
.tile:hover img {
  transform: scale(1.015);
}
.tile img {
  aspect-ratio: 16 / 10;
}

/* Eyebrow over the hero heading */
.eyebrow {
  margin: 0 0 18px;
  font: 500 14px var(--mono);
  color: var(--accent-text);
  letter-spacing: -0.01em;
}
.kicker {
  margin: 0 0 10px;
  font: 500 13px var(--mono);
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Why: two paragraphs under one heading. */
.why {
  margin-top: 160px;
}
.why-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  max-width: 1000px;
}
.why-grid p {
  margin: 0;
  color: var(--t2);
  font-size: 18px;
  line-height: 1.65;
}

/* The office: eight stage cells in a 4 x 2 grid, then the board. */
.office {
  margin-top: 180px;
}
.stages {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stage {
  padding: 24px 22px 26px;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  background: var(--s1);
  transition: border-color 0.3s var(--ease);
}
.stage:hover {
  border-color: var(--line-strong);
}
.stage .num {
  font: 500 13px var(--mono);
  color: var(--t3);
}
.stage h3 {
  margin: 28px 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.stage .role {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--accent-text);
}
.stage p:last-child {
  margin: 12px 0 0;
  color: var(--t2);
  font-size: 15px;
}
.stage-live {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(59, 130, 246, 0.16), transparent 60%), var(--s2);
}
.shot {
  margin: 56px 0 0;
}
.shot img {
  width: 100%;
  border-radius: var(--r-panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(10, 20, 40, 0.9);
}
.shot figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--t3);
}

/* Rooms: text and a screenshot side by side, alternating. */
.rooms {
  margin-top: 180px;
}
.feature-rows {
  margin-top: 64px;
  display: grid;
  gap: 96px;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: center;
}
.row:nth-child(even) {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}
.row:nth-child(even) .row-text {
  order: 2;
}
.row h3 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.row-text p:last-child {
  margin: 14px 0 0;
  color: var(--t2);
  font-size: 16px;
}
.row img {
  width: 100%;
  border-radius: var(--r-panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -40px rgba(10, 20, 40, 0.9);
}

/* The crew: copy and a real run on the left, two crew panels on the right. */
.crew {
  margin-top: 180px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 64px;
  align-items: start;
}
.checks {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.checks li {
  color: var(--t2);
  font-size: 16px;
  padding-left: 18px;
  position: relative;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.checks b {
  color: var(--t1);
  font-weight: 600;
}
.run {
  margin-top: 40px;
  padding: 26px;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(59, 130, 246, 0.14), transparent 60%), var(--s2);
}
.run > p:not(.kicker) {
  margin: 0;
  color: var(--t2);
  font-size: 15px;
}
.run dl {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.run dt {
  font: 500 22px var(--mono);
  letter-spacing: -0.02em;
}
.run dd {
  margin: 2px 0 0;
  color: var(--t3);
  font-size: 13px;
}
.crew-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: sticky;
  top: 110px;
}
.crew-shots img {
  width: 100%;
  border-radius: var(--r-panel);
  border: 1px solid var(--line-strong);
}
.crew-shots img + img {
  margin-top: 56px;
}

/* Business bento cells */
.t-wide {
  grid-column: span 4;
}
.t-narrow {
  grid-column: span 2;
}
.tile .img-page {
  aspect-ratio: auto;
  margin: auto 26px 0;
  width: calc(100% - 52px);
  max-height: 330px;
  border-radius: var(--r-img) var(--r-img) 0 0;
  border-right: 1px solid var(--line);
}

/* Who it is for: four short columns. */
.who {
  margin-top: 180px;
}
.who-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.who-grid article {
  padding: 28px 28px 8px 0;
}
.who-grid article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.who h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.who p {
  margin: 10px 0 0;
  color: var(--t2);
  font-size: 15px;
}

/* Everything in the box: six lists. */
.all {
  margin-top: 180px;
}
.all-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
}
.all h3 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.all ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.all li {
  color: var(--t2);
  font-size: 15px;
  padding-left: 18px;
  position: relative;
}
.all li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* Gallery: one horizontal strip that bleeds past the container. */
.gallery-sec {
  margin-top: 180px;
}
.gallery {
  margin-top: 40px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74vw, 860px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(32px, calc((100vw - 1200px) / 2 + 32px)) 18px;
  scroll-padding: 0 max(32px, calc((100vw - 1200px) / 2 + 32px));
  scrollbar-width: thin;
  scrollbar-color: #2a2a2e transparent;
}
.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
}
.gallery figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--t3);
}

/* Safety: text in a 2 x 2 grid, no boxes. */
.safety {
  margin-top: 180px;
}
.safety-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 64px;
  max-width: 940px;
}
.safety h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.safety p {
  margin: 8px 0 0;
  color: var(--t2);
  font-size: 16px;
  max-width: 44ch;
}

/* Install: words on the left, the commands on the right. */
.install {
  margin-top: 180px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}
.note {
  margin: 18px 0 0;
  color: var(--t3);
  font-size: 15px;
  max-width: 48ch;
}
.code {
  position: relative;
  border-radius: var(--r-panel);
  border: 1px solid var(--line-strong);
  background: var(--s1);
}
.code pre {
  margin: 0;
  padding: 58px 28px 28px;
  overflow-x: auto;
  font: 14.5px/1.85 var(--mono);
  color: #e4e4e7;
}
.copy {
  position: absolute;
  top: 14px;
  right: 14px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--s2);
  color: var(--t1);
  font: 500 13px var(--sans);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.copy:hover {
  border-color: rgba(255, 255, 255, 0.32);
}
.copy:active {
  transform: scale(0.97);
}

/* Footer */
.foot {
  margin-top: 180px;
  border-top: 1px solid var(--line);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 36px;
  padding-bottom: 48px;
}
.foot .wordmark {
  height: 16px;
}
.credit {
  margin: 0;
  color: var(--t2);
  font-size: 14px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-left: auto;
}
.foot-links a {
  color: var(--t2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.foot-links a:hover {
  color: var(--t1);
}

/* Motion: a staggered hero entrance and one-time reveals. Off when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  .in-1,
  .in-2,
  .in-3,
  .in-4 {
    animation: rise 0.9s var(--ease) both;
  }
  .in-2 {
    animation-delay: 0.08s;
  }
  .in-3 {
    animation-delay: 0.16s;
  }
  .in-4 {
    animation-delay: 0.28s;
  }
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
  }
  .reveal.shown {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .wordmark animate {
    display: none;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .t-wide {
    grid-column: span 2;
  }
  .t-narrow {
    grid-column: span 1;
  }
  .install,
  .crew,
  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .row:nth-child(even) .row-text {
    order: 0;
  }
  .crew-shots {
    position: static;
  }
  .stages,
  .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .who-grid article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .all-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone: one column everywhere. */
@media (max-width: 767px) {
  .wrap {
    padding: 0 16px;
  }
  .links {
    display: none;
  }
  .nav-in {
    justify-content: space-between;
  }
  .hero {
    padding-top: 48px;
  }
  .demo {
    margin-top: 44px;
  }
  .proof {
    margin-top: 64px;
  }
  .proof dl,
  .bento,
  .safety-grid,
  .why-grid,
  .stages,
  .who-grid,
  .all-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .bento,
  .stages {
    gap: 12px;
  }
  .t-wide,
  .t-narrow {
    grid-column: auto;
  }
  .who-grid article,
  .who-grid article + article {
    padding: 22px 0 0;
    border-left: 0;
  }
  .crew-shots img + img {
    margin-top: 0;
  }
  .run dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .why,
  .office,
  .rooms,
  .crew,
  .features,
  .who,
  .all,
  .gallery-sec,
  .safety,
  .install,
  .foot {
    margin-top: 112px;
  }
  .feature-rows {
    gap: 64px;
  }
  .gallery {
    grid-auto-columns: 86vw;
    padding: 0 16px 14px;
    scroll-padding: 0 16px;
  }
  .foot-links {
    margin-left: 0;
  }
}
