/* Peek site. Plain CSS, no build step.
   Shape rule: panels and media 14px, buttons and tabs 10px, nothing else rounded. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f4f6f9;
  --surface: #fbfcfd;
  --surface-2: #eaeef4;
  --ink: #12151b;
  --ink-2: #4b5260;
  --ink-3: #6b7280;
  --line: #dde2ea;
  --accent: #2f62e6;
  --accent-ink: #ffffff;
  --accent-soft: #e3eafc;
  --code-bg: #171a21;
  --code-ink: #e6e9ef;
  --shadow: 0 24px 60px -28px rgb(26 42 84 / 0.35);
  --r-panel: 14px;
  --r-control: 10px;
  --max: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14;
    --surface: #141720;
    --surface-2: #1b1f2a;
    --ink: #e8ebf1;
    --ink-2: #a5acba;
    --ink-3: #8a91a0;
    --line: #262b37;
    --accent: #7c9fff;
    --accent-ink: #0d0f14;
    --accent-soft: #1c2640;
    --code-bg: #0a0c10;
    --code-ink: #dfe3ea;
    --shadow: 0 24px 60px -28px rgb(0 0 0 / 0.7);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code, pre, kbd { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--surface); padding: 8px 12px; border-radius: var(--r-control); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 12px 20px; border-radius: var(--r-control); font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-color 0.2s; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 56px 0 72px; }
@media (min-width: 1024px) { .hero { padding: 80px 0 96px; } }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero .wrap { grid-template-columns: 11fr 10fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.3rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 700; }
.hero p { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; max-width: 40ch; }
kbd { font-size: 0.9em; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--ink); white-space: nowrap; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; }
.hero-visual > img { border-radius: var(--r-panel); box-shadow: var(--shadow); }
.output { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow);
  padding: 18px 20px; font-size: 14px; line-height: 1.55; }
.output .label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.output .label img { width: 22px; height: 22px; }
.output strong { display: block; font-size: 15px; margin-bottom: 4px; }
.output p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: none; }
.hero .output { margin-top: -56px; margin-left: 24px; margin-right: 24px; position: relative; }
@media (min-width: 1024px) { .hero .output { position: absolute; right: -20px; bottom: -48px; width: 72%; margin: 0; } }

/* The one signature moment: the screenshot settles, then Peek's answer arrives. */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual > img { animation: settle 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero .output { animation: arrive 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both; }
}
@keyframes settle { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 1024px) { section { padding: 104px 0; } }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 700; max-width: 22ch; }
.lede { color: var(--ink-2); font-size: 18px; margin: 0 0 40px; max-width: 60ch; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Formats: tabs over real output */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: calc(var(--r-control) + 4px); margin-bottom: 16px; }
.tab { font: inherit; font-size: 15px; font-weight: 550; padding: 8px 16px; border: 0; border-radius: var(--r-control); background: transparent; color: var(--ink-2); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.formats { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .formats { grid-template-columns: 7fr 5fr; gap: 40px; } }
.panel pre { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: var(--r-panel); padding: 22px 24px;
  font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; min-height: 360px; }
.panel[hidden] { display: none; }
.formats .note { color: var(--ink-2); font-size: 16px; margin: 0; }
.formats .note + .note { margin-top: 14px; }
.formats .note b { color: var(--ink); font-weight: 600; }

/* Redaction comparison */
.compare { position: relative; border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); --pos: 30%; }
.compare img { width: 100%; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; }
.compare-controls { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.compare-controls label { font-size: 15px; color: var(--ink-2); }
.compare-controls input[type="range"] { flex: 1; min-width: 200px; accent-color: var(--accent); }
.caption { font-size: 14px; color: var(--ink-3); margin: 12px 0 0; }

/* Bento of extra tools */
.bento { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(0, auto); }
  .cell-point { grid-column: span 4; }
  .cell-scroll { grid-column: span 2; grid-row: span 2; }
  .cell-agents { grid-column: span 2; }
  .cell-timed { grid-column: span 2; }
}
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.cell h3 { margin: 0; font-size: 20px; letter-spacing: -0.015em; }
.cell p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.cell img { border-radius: 10px; border: 1px solid var(--line); }
.cell-scroll { padding-bottom: 0; }
.cell-scroll .tall { flex: 1; min-height: 360px; max-height: 760px; overflow: hidden; border-radius: 10px 10px 0 0; border: 1px solid var(--line); border-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.cell-scroll .tall img { border: 0; border-radius: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cell-agents { background: var(--code-bg); border-color: var(--code-bg); color: var(--code-ink); }
.cell-agents p { color: color-mix(in srgb, var(--code-ink) 72%, transparent); }
.cell-agents pre { margin: 0; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; color: var(--code-ink); }
.cell-agents pre .c { color: color-mix(in srgb, var(--code-ink) 50%, transparent); }
.cell-timed { background: var(--accent-soft); border-color: transparent; }

/* What happens on ⌃⌘P */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 768px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { border-top: 2px solid var(--accent); padding-top: 16px; }
.flow b { display: block; font-size: 19px; margin-bottom: 6px; letter-spacing: -0.01em; }
.flow span { color: var(--ink-2); font-size: 15.5px; }

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } }
.plan { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 28px; background: var(--surface); display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); }
.plan h3 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.plan .terms { margin: 0 0 20px; color: var(--ink-2); font-size: 15.5px; }
.plan ul { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.trial-note { margin: 20px 0 0; color: var(--ink-2); font-size: 15.5px; }

/* Closing download */
.closing { text-align: center; }
.closing h2 { margin-left: auto; margin-right: auto; }
.closing .lede { margin-left: auto; margin-right: auto; }
.closing .ctas { justify-content: center; }
.closing img { width: 72px; height: 72px; margin: 0 auto 20px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-3); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }

/* Document pages: privacy, refunds, buy, 404 */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
.doc h2 { font-size: 1.45rem; margin: 44px 0 12px; max-width: none; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc .meta { color: var(--ink-3); font-size: 15px; margin: 0 0 32px; }
.draft { display: inline-block; font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-control); background: var(--accent-soft); color: var(--ink); margin: 0 0 24px; }
.table { width: 100%; overflow-x: auto; margin: 0 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-2); }
.doc code { font-size: 0.9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.doc-mascot { margin-bottom: 20px; }

/* Grid items may shrink below their content (images carry 1600px intrinsic widths). */
.hero .wrap > *, .formats > *, .bento > *, .plans > *, .flow > * { min-width: 0; }
