/* Petik website. Brand: Ink & Signal (design/TOKENS.md, design/brand/BRAND.md).
   The page is paper with ink text so the dark app screenshots stand out; orange marks only
   the buy action and the live word in the demo videos, as in the app. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #f2f1ec;
  --paper-2: #fbfaf7;
  --ink: #0a0a0b;
  --ink-2: #2b2a27;
  --muted: #64625c;
  --line: #dcd9d0;
  --signal: #ff5a1f;
  --signal-press: #e64b12;
  --radius: 14px;
  --ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
figure {
  margin: 0;
}
kbd {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--paper-2);
  font: 13px var(--mono);
}

/* the one action: pre-order */
.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 12px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transition: background 120ms;
}
.buy:hover {
  background: var(--signal-press);
}
.buy:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.buy.small {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 15px;
}
.buy.wide {
  width: 100%;
  margin-top: 8px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* full-width bar, content lined up with the 1152px page column */
  padding: 14px max(24px, calc((100% - 1152px) / 2));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand img {
  width: 92px;
  height: auto;
}

main > section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  padding-top: 56px !important;
  padding-bottom: 96px !important;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 750;
}
.lead {
  margin: 22px 0 30px;
  color: var(--ink-2);
  font-size: 19px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.fine {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.hero-shot img,
.shot img {
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgb(0 0 0 / 0.04),
    0 24px 60px -18px rgb(20 18 12 / 0.38);
}

/* the demo videos sit on ink, like they would in a video app */
.studio {
  max-width: none !important;
  padding: 88px 24px 96px !important;
  background: var(--ink);
  color: var(--paper);
}
.studio > * {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}
.studio-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 720;
}
.studio-head p {
  max-width: 560px;
  margin: 14px 0 0;
  color: #b9b8b1;
}
.videos {
  display: grid;
  grid-template-columns: 1fr minmax(0, 0.375fr);
  gap: 28px;
  align-items: end;
  margin-top: 44px;
}
.videos video {
  width: 100%;
  border-radius: 12px;
  background: #161618;
}
.videos figcaption {
  margin-top: 10px;
  color: #8b8b86;
  font: 12px var(--mono);
  letter-spacing: 0.04em;
}
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
  color: #c9c8c2;
  font-size: 16px;
}
.points b {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-size: 18px;
}

.feature {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 64px;
  align-items: center;
  padding-top: 112px !important;
}
.feature.flip .shot {
  order: 2;
}
.copy h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 720;
}
.copy ul {
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
}
.copy li + li {
  margin-top: 10px;
}
.copy li::marker {
  color: var(--muted);
}

.preorder {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 48px;
  align-items: start;
  padding-top: 128px !important;
  scroll-margin-top: 80px;
}
.po-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
}
.po-card h2 {
  font-size: 32px;
  font-weight: 720;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 6px;
}
.amount {
  font-size: 56px;
  font-weight: 760;
  letter-spacing: -0.03em;
}
.once {
  color: var(--muted);
}
.po-card ul {
  margin: 12px 0 20px;
  padding-left: 20px;
  color: var(--ink-2);
}
.po-card li + li {
  margin-top: 6px;
}
.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.po-honest {
  padding-top: 8px;
  color: var(--ink-2);
}
.po-honest h3 {
  font-size: 20px;
}
.po-honest p {
  margin: 12px 0 0;
}

.faq {
  max-width: 760px !important;
  padding-top: 112px !important;
  padding-bottom: 96px !important;
}
.faq h2 {
  margin-bottom: 18px;
  font-size: 32px;
  font-weight: 720;
}
details {
  border-top: 1px solid var(--line);
}
details:last-of-type {
  border-bottom: 1px solid var(--line);
}
summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
}
details p {
  margin: 0 0 18px;
  color: var(--ink-2);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  color: var(--muted);
  font-size: 14px;
}
.foot nav {
  display: flex;
  gap: 20px;
}

/* legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.legal h1 {
  font-size: 40px;
  font-weight: 740;
}
.legal h2 {
  margin-top: 36px;
  font-size: 21px;
}
.legal p,
.legal li {
  color: var(--ink-2);
}
.legal .updated {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .feature,
  .preorder {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature.flip .shot {
    order: 0;
  }
  .hero {
    padding-top: 28px !important;
    padding-bottom: 64px !important;
  }
  .videos {
    grid-template-columns: 1fr;
  }
  .v-tall {
    max-width: 320px;
  }
  .points {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .feature,
  .preorder,
  .faq {
    padding-top: 72px !important;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .lead {
    font-size: 17px;
  }
  .po-card {
    padding: 24px 20px;
  }
  .buy.small {
    padding: 8px 12px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
