/* PeekPlain website. Tokens follow DESIGN.md §3-5. No build step. */
:root {
  --brand-moss: #1f7a4d;
  --brand-moss-deep: #17704a;
  --gel-a: #2a9d63;
  --gel-b: #17704a;
  --brand-dawn: #ffb280;
  --brand-mist: #eef3ef;
  --ink: #111318;
  --ink-2: #343a48;
  --ink-3: #5b6172;
  --line: #e3e7ef;
  --line-strong: #d0d6e2;
  --surface: #ffffff;
  --surface-sunken: #f4f6fa;
  --warning: #b45309;
  --danger: #ce2c31;
  --shadow-1: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 19, 24, .04);
  --shadow-3: 0 24px 60px -12px rgba(17, 19, 24, .28), 0 0 0 1px rgba(17, 19, 24, .06);
  --gel-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 16px -4px rgba(23, 112, 74, .55);
  --r-s: 6px; --r-m: 10px; --r-l: 13px; --r-card: 20px; --r-hero: 32px;
  --ease-app: cubic-bezier(.2, 0, 0, 1);
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-text: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-moss: #5fd39a;
    --brand-mist: #141a17;
    --ink: #f2f4f7;
    --ink-2: #c9ced8;
    --ink-3: #8f96a6;
    --line: #262a33;
    --line-strong: #343a46;
    --surface: #0f1115;
    --surface-sunken: #161920;
    --shadow-1: 0 0 0 1px var(--line);
    --shadow-3: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  }
}
:root[data-theme="dark"] {
  --brand-moss: #5fd39a;
  --brand-mist: #141a17;
  --ink: #f2f4f7;
  --ink-2: #c9ced8;
  --ink-3: #8f96a6;
  --line: #262a33;
  --line-strong: #343a46;
  --surface: #0f1115;
  --surface-sunken: #161920;
  --shadow-1: 0 0 0 1px var(--line);
  --shadow-3: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img, picture { max-width: 100%; display: block; }
a { color: var(--brand-moss); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-moss); outline-offset: 3px; border-radius: var(--r-s); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-s); z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { margin: 0; font-weight: 500; }
h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.023em;
  background: linear-gradient(180deg, var(--ink) 30%, var(--ink-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h3 { font-size: 19px; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 36em; }
.eyebrow { font: 500 13px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--brand-moss); margin-bottom: 14px; }
.muted { color: var(--ink-3); }
code, kbd { font-family: var(--font-mono); }
code { background: var(--surface-sunken); border: 1px solid var(--line); padding: .1em .38em; border-radius: var(--r-s); font-size: .88em; }
pre { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; overflow-x: auto; font: 14px/1.55 var(--font-mono); }
pre code { background: none; border: 0; padding: 0; }

/* Keys */
kbd {
  display: inline-block; min-width: 1.7em; padding: .12em .5em; text-align: center;
  font-size: .86em; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: var(--r-s);
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); text-decoration: none; font-size: 19px; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--font-text); padding: 14px 22px; border-radius: var(--r-l);
  text-decoration: none; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface);
  transition: transform 75ms var(--ease-app), box-shadow 120ms var(--ease-app);
}
.btn:active { transform: translateY(1px); }
.btn-gel { color: #fff; border-color: var(--brand-moss-deep); background: linear-gradient(180deg, var(--gel-a), var(--gel-b)); box-shadow: var(--gel-shadow); }
.btn-gel:hover { filter: brightness(1.06); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: var(--r-m); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 14, .55), rgba(10, 18, 14, .25) 45%, rgba(10, 18, 14, .5)); }
.hero .wrap { position: relative; z-index: 1; padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 96px); }
.hero h1 { font: 500 clamp(44px, 8vw, 92px)/1.02 var(--font-display); letter-spacing: -.012em; max-width: 12em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero .lede { color: rgba(255, 255, 255, .92); margin-top: 20px; text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }
.hero .btn:not(.btn-gel) { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(12px); }
.hero .price-note { font-size: 15px; color: rgba(255, 255, 255, .88); }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.mist { background: var(--brand-mist); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.figure { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-1); background: var(--surface-sunken); }
.figure img { width: 100%; height: auto; }

/* App mockup (CSS only) */
.mock { margin-top: -64px; position: relative; z-index: 2; }
.window { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-3); overflow: hidden; border: 1px solid var(--line); }
.titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.tabs { display: flex; gap: 6px; margin-left: 16px; font-size: 13px; }
.tab { padding: 4px 12px; border-radius: var(--r-s); color: var(--ink-3); }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.window-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; position: relative; }
.sidebar { background: var(--surface-sunken); border-right: 1px solid var(--line); padding: 14px 10px; font-size: 14px; color: var(--ink-2); }
.sidebar div { padding: 5px 10px; border-radius: var(--r-s); }
.sidebar .sel { background: color-mix(in srgb, var(--brand-moss) 16%, transparent); color: var(--ink); font-weight: 500; }
.doc { padding: 28px clamp(20px, 4vw, 48px); font-size: 16px; }
.doc h4 { font: 600 28px/1.2 var(--font-text); letter-spacing: -.02em; margin: 0 0 12px; }
.doc p { color: var(--ink-2); }
.doc .callout { border-left: 3px solid var(--brand-moss); background: color-mix(in srgb, var(--brand-moss) 9%, transparent); padding: 10px 14px; border-radius: 0 var(--r-m) var(--r-m) 0; font-size: 15px; }
.palette { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); width: min(420px, 88%); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: var(--r-card); box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255, 255, 255, .25); padding: 10px; font-size: 15px; }
.palette .q { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.palette .row { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: var(--r-m); color: var(--ink-2); }
.palette .row.on { background: color-mix(in srgb, var(--brand-moss) 16%, transparent); color: var(--ink); }

/* Receipt */
.receipt { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 24px; max-width: 420px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--font-text); padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--brand-moss) 14%, transparent); color: var(--brand-moss); }
.receipt ul { list-style: none; padding: 0; margin: 18px 0 0; }
.receipt li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.receipt li::before { content: "✓"; color: var(--brand-moss); font-weight: 700; }
.receipt .file { font: 500 15px var(--font-mono); margin: 14px 0 0; color: var(--ink); }

/* Format grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 22px; }
.card p { color: var(--ink-3); font-size: 15px; margin: 6px 0 0; }
.tag { display: inline-block; font: 500 12px/1 var(--font-mono); padding: 5px 8px; border-radius: 999px; margin-top: 12px; border: 1px solid var(--line-strong); color: var(--ink-3); }
.tag.now { background: color-mix(in srgb, var(--brand-moss) 14%, transparent); color: var(--brand-moss); border-color: transparent; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); box-shadow: var(--shadow-1); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 14px; color: var(--ink-3); }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--brand-moss); font-weight: 600; }
td.no { color: var(--ink-3); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 32px; display: flex; flex-direction: column; }
.plan.pro { box-shadow: 0 0 0 2px var(--brand-moss); }
.price { font: 500 56px/1 var(--font-display); letter-spacing: -.02em; margin: 14px 0 4px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); font-size: 16px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-moss); font-weight: 700; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-2); }

/* Closing CTA */
.closing { text-align: center; background: linear-gradient(180deg, var(--surface), var(--brand-mist)); }
.closing .cta-row { justify-content: center; }
.closing h2 { margin-inline: auto; }

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

/* Text pages */
.page-head { padding: clamp(48px, 7vw, 88px) 0 24px; }
.page-head h1 { font: 500 clamp(40px, 6vw, 64px)/1.05 var(--font-display); letter-spacing: -.012em; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
.prose li { margin-bottom: 6px; }
.release { padding: 28px 0; border-top: 1px solid var(--line); }
.release h2 { font-size: 28px; background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
.release time { font: 500 14px var(--font-mono); color: var(--ink-3); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .window-body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .nav-links .hide-sm { display: none; }
  .mock { margin-top: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
