/* Palette and type sampled from the app's Theme.swift and the product shots, so the
   site and the app read as one system. */
:root {
  --cream: #f5f2e8;
  --cream-deep: #ece8da;
  --ink: #1c1d16;
  --ink-muted: #5f5d52;
  --ink-faint: #8a8878;
  --green: #2f4a33;
  --green-soft: #94c299;
  --night: #191911;
  --night-deep: #121210;
  --night-card: #201f1b;
  --night-ink: #f2f1e4;
  --night-muted: #a5a398;
  --brand: #dde048;
  --rule-light: rgba(28, 29, 22, 0.12);
  --rule-dark: rgba(242, 241, 228, 0.14);
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --page: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

a { color: inherit; }

img { display: block; max-width: 100%; height: auto; }

/* Motion is progressive enhancement. Content stays visible unless the observer is
   available and the visitor has not asked for reduced motion. */
.reveal--delay-1 { --reveal-delay: 100ms; }
.reveal--delay-2 { --reveal-delay: 180ms; }
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 28px), 0) scale(var(--reveal-scale, 1));
  transform-origin: center;
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready [data-reveal="fade"] { --reveal-y: 0; }
.motion-ready [data-reveal="shot"] { --reveal-y: 52px; --reveal-scale: 0.97; }
.motion-ready [data-reveal="left"] { --reveal-x: -36px; --reveal-y: 0; }
.motion-ready [data-reveal="right"] { --reveal-x: 36px; --reveal-y: 0; }
.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Sections alternate cream and night, the same rhythm the product shots were cut to.
   Each one clips its own shot, which bleeds past the fold on purpose. */
.band {
  overflow: hidden;
  padding: clamp(72px, 11vw, 148px) 24px 0;
}
.band--light { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%); }
.band--night {
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  color: var(--night-ink);
}
.band--flat { padding-bottom: clamp(72px, 11vw, 148px); }

.wrap { max-width: var(--page); margin: 0 auto; }

/* Header */
.masthead {
  max-width: var(--page);
  margin: 0 auto clamp(48px, 8vw, 96px);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.masthead nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.masthead nav a { text-decoration: none; color: var(--ink-muted); }
.masthead nav a:hover { color: var(--ink); }
.platform {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* Headlines */
.pitch { text-align: center; max-width: 900px; margin: 0 auto; }
.pitch h1, .pitch h2 {
  margin: 0;
  font-size: clamp(2.1rem, 6.4vw, 5.1rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.pitch em { font-style: normal; color: var(--green); }
.band--night .pitch em { color: var(--brand); }
.pitch p {
  margin: clamp(20px, 2.6vw, 30px) auto 0;
  max-width: 40ch;
  font-size: clamp(1.02rem, 1.65vw, 1.4rem);
  line-height: 1.42;
  color: var(--ink-muted);
  text-wrap: balance;
}
.band--night .pitch p { color: var(--night-muted); }

/* Product shots: bleed past the fold, exactly as they were framed */
.shot-frame {
  width: 100%;
  margin: clamp(48px, 6vw, 84px) auto 0;
  filter: drop-shadow(0 28px 60px rgba(28, 29, 22, 0.16));
}
.band--night .shot-frame { filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.55)); }
.shot { width: 100%; transform: translate3d(0, var(--parallax-y, 0), 0); }
.shot--wide { max-width: 1180px; }
.shot--mid { max-width: 960px; }
.shot--narrow { max-width: 760px; }

@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .shot { will-change: transform; }
}

.band--design {
  color: #f4f4e8;
  background:
    radial-gradient(circle at 15% 10%, rgba(221, 224, 72, 0.13), transparent 30%),
    radial-gradient(circle at 85% 75%, rgba(113, 156, 128, 0.18), transparent 35%),
    #253129;
}
.band--design .pitch em { color: var(--brand); }
.band--design .pitch p { color: #b9c0b6; max-width: 48ch; }
.band--design .shot-frame { filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.5)); }

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 3.4vw, 40px);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fbfaf3; }
.btn--primary:hover { background: #263c29; }
.btn--ghost { background: transparent; border-color: var(--rule-light); color: var(--ink); }
.btn--ghost:hover { border-color: rgba(28, 29, 22, 0.32); }
.band--night .btn--primary { background: var(--brand); color: var(--night); }
.band--night .btn--primary:hover { background: #e7ea63; }
.band--night .btn--ghost { border-color: var(--rule-dark); color: var(--night-ink); }
.band--night .btn--ghost:hover { border-color: rgba(242, 241, 228, 0.4); }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(52px, 6vw, 80px);
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
  border-radius: 18px;
  overflow: hidden;
}
.cell { background: var(--night); padding: 30px 28px 34px; }
.cell:nth-child(3n + 2) { --reveal-delay: 70ms; }
.cell:nth-child(3n + 3) { --reveal-delay: 140ms; }
.cell h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cell p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--night-muted); }

/* Get started */
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(52px, 6vw, 76px);
  text-align: left;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
}
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--rule-light);
  font-size: 16px;
  position: relative;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.checklist li:last-child { border-bottom: 0; }
.pitch code, .checklist code, .prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(28, 29, 22, 0.07);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.band--night code { background: rgba(242, 241, 228, 0.1); }

.terminal {
  border-radius: 16px;
  overflow: hidden;
  background: var(--night-deep);
  color: var(--night-ink);
  box-shadow: 0 18px 44px rgba(28, 29, 22, 0.14);
}
.terminal header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--night-card);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--night-muted);
}
.terminal header .lights { display: flex; gap: 7px; }
.terminal header .lights i { width: 11px; height: 11px; border-radius: 50%; }
.terminal button {
  margin-left: auto;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--night-muted);
  background: transparent;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.terminal button:hover { color: var(--night-ink); border-color: rgba(242, 241, 228, 0.4); }
.terminal pre {
  margin: 0;
  padding: 22px 20px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.85;
}
.terminal .sigil { color: var(--green-soft); user-select: none; }

.prose { margin: clamp(52px, 6vw, 76px) auto 0; max-width: 62ch; text-align: center; }
.prose h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.prose p { margin: 0 0 14px; color: var(--ink-muted); }
.prose a { color: var(--green); text-underline-offset: 3px; }

/* Footer */
.site-foot {
  background: var(--night-deep);
  color: var(--night-muted);
  padding: 44px 24px;
  font-size: 14.5px;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.site-foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--night-ink); }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell:nth-child(n) { --reveal-delay: 0ms; }
  .cell:nth-child(even) { --reveal-delay: 80ms; }
}

@media (max-width: 860px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
  .motion-ready [data-reveal="left"],
  .motion-ready [data-reveal="right"] { --reveal-x: 0; --reveal-y: 28px; }
  .masthead nav a:not(:last-child) { display: none; }
  .masthead .platform { display: none; }
}

@media (max-width: 660px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .cell:nth-child(n) { --reveal-delay: 0ms; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .pitch h1, .pitch h2 { font-size: clamp(1.95rem, 8.6vw, 2.6rem); }
  .band { padding-left: 18px; padding-right: 18px; }
  .site-foot nav { margin-left: 0; width: 100%; }
}
