/* DotPeek site — "Ink & Paper" styling, ported from the Claude Design source.
   Plain hand-authored CSS, no build step; this is the only stylesheet.
   Warm paper, near-black ink, one terracotta accent, system fonts only
   (no web fonts → zero external dependencies). Light theme only, to match
   the design source and the marketing surface. */

:root {
  --paper: #F4F1EA;        /* page background */
  --panel: #EBE7DE;        /* hero-shot backplate */
  --card: #F9F6EF;         /* feature / grid cards */
  --surface: #FFFFFF;
  --ink: #1C1C1E;          /* headings, brand mark */
  --ink-2: #555558;        /* body text */
  --faint: #8A8A8E;        /* captions, meta */
  --accent: #A05B2C;       /* terracotta — the one brand color */
  --accent-ink: #7E4620;   /* accent hover */
  --accent-dim: #C8824B;   /* accent on the dark band */
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.10);
  --line-3: rgba(0, 0, 0, 0.12);
  --line-4: rgba(0, 0, 0, 0.14);
  --dark: #1C1C1E;         /* privacy band */
  --dark-text: #F3F3F5;
  --dark-muted: #B6B6BB;
  --ok: #4CC38A;           /* privacy checkmarks */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "PingFang SC", "PingFang TC",
    "Microsoft YaHei", Helvetica, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --shadow-shot: 0 24px 60px -24px rgba(28, 28, 30, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
::selection { background: rgba(160, 91, 44, 0.18); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px); }

/* ---------- brand mark (CSS-drawn dot, no image) ---------- */
.mark {
  width: 28px; height: 28px; flex: none;
  border-radius: 22.5%;
  background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.mark::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- header ---------- */
.hdr .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 0; flex-wrap: wrap;
}
.hdr .nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hdr .nav a { font-size: 13px; color: var(--ink-2); }
.hdr .nav a:hover { color: var(--ink); text-decoration: none; }
.hdr .nav a.active { color: var(--ink); font-weight: 500; }

.langs { display: inline-flex; align-items: center; gap: 2px; }
.langs a {
  font-size: 12px; color: var(--faint); padding: 4px 7px; border-radius: 6px;
}
.langs a:hover { color: var(--ink); text-decoration: none; }
.langs a.active { color: #fff; background: var(--accent); font-weight: 500; }

.pill {
  font-size: 13px; font-weight: 500; color: var(--accent);
  border: 0.5px solid var(--line-4); border-radius: 6px; padding: 5px 12px;
  background: rgba(0, 0, 0, 0.03); white-space: nowrap;
}
.pill:hover { background: rgba(0, 0, 0, 0.06); color: var(--accent-ink); text-decoration: none; }

/* ---------- Mac App Store button ---------- */
.app-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--paper);
  border-radius: 8px; padding: 11px 20px; font-size: 14px; font-weight: 500;
}
.app-btn:hover { background: #000; color: #fff; text-decoration: none; }

/* ---------- image slots (screenshots / placeholders) ---------- */
/* Real screenshots render at their natural aspect (no crop); placeholders get a
   fixed-ratio drop-zone box. */
.shot { width: 100%; }
.shot-img {
  width: 100%; height: auto; display: block; border-radius: 6px; cursor: zoom-in;
}

/* ---------- lightbox (click a screenshot → full-size) ---------- */
.lb {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 9, 8, 0.82);
  align-items: center; justify-content: center; padding: 4vmin; cursor: zoom-out;
}
.lb.open { display: flex; }
.lb img {
  max-width: 92vw; max-height: 92vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.slot {
  width: 100%; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(0, 0, 0, 0.015) 10px, rgba(0, 0, 0, 0.015) 20px);
  display: flex; align-items: center; justify-content: center;
}
.slot .ph {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--faint); text-align: center; padding: 24px;
}
.slot .ph svg { width: 30px; height: 30px; opacity: 0.55; }
.slot .ph span { font-size: 12.5px; line-height: 1.4; max-width: 22em; }

/* ---------- home: hero ---------- */
.hero { text-align: center; padding: clamp(56px, 8vw, 72px) 0 clamp(40px, 6vw, 56px); }
.hero h1 {
  margin: 0; font-size: clamp(34px, 6vw, 52px); font-weight: 650;
  letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance;
}
.hero .lede {
  margin: 20px auto 0; max-width: 560px;
  font-size: clamp(15px, 2vw, 17px); line-height: 1.55; color: var(--ink-2);
  text-wrap: pretty;
}
.hero .get {
  margin-top: 28px; display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.hero .price { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }

.hero-shot {
  margin: clamp(40px, 6vw, 56px) auto 0; max-width: 920px;
  border-radius: 14px; border: 0.5px solid var(--line-4);
  background: var(--panel); padding: 8px; box-shadow: var(--shadow-shot);
}
.hero-shot .slot { aspect-ratio: 16 / 10; border-radius: 8px; }
.hero-shot .shot-img { border-radius: 8px; }

/* ---------- home: feature rows ---------- */
.features { padding: clamp(40px, 6vw, 48px) 0 8px; }
.features .rows { display: grid; gap: clamp(48px, 6vw, 64px); }
.feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 48px);
  align-items: center;
}
.feat:nth-child(even) .feat-media { order: -1; }
.feat .tag {
  margin: 0; font-size: 10px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent);
}
.feat h2 {
  margin: 10px 0 0; font-size: clamp(22px, 3vw, 26px); font-weight: 600;
  letter-spacing: -0.015em;
}
.feat p {
  margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2);
  text-wrap: pretty;
}
.feat-media {
  border-radius: 10px; border: 0.5px solid var(--line-2);
  background: var(--card); padding: 6px;
}
.feat-media .slot { aspect-ratio: 3 / 2; border-radius: 6px; }

/* Extract — two cases stacked in the media column */
.feat-media.dual { border: none; background: none; padding: 0; display: grid; gap: 18px; }
.feat-shot { margin: 0; }
.feat-shot .shot-card {
  border-radius: 10px; border: 0.5px solid var(--line-2); background: var(--card); padding: 6px;
}
.feat-shot figcaption { margin-top: 8px; font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- home: "and the rest" grid ---------- */
.rest { padding: clamp(56px, 8vw, 72px) 0; }
.rest-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.rest-grid {
  margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 0.5px solid var(--line); border-radius: 10px; overflow: hidden;
}
.rest-grid .cell { background: var(--card); padding: 18px 20px; }
.rest-grid h3 { margin: 0; font-size: 13px; font-weight: 600; }
.rest-grid p { margin: 6px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-2); }

/* ---------- home: privacy band (dark) ---------- */
.band-dark { background: var(--dark); color: var(--dark-text); }
.band-dark .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 48px);
  align-items: start; padding: clamp(56px, 8vw, 72px) 0;
}
.band-dark .tag {
  margin: 0; font-size: 10px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent-dim);
}
.band-dark h2 {
  margin: 10px 0 0; font-size: clamp(22px, 3vw, 26px); font-weight: 600;
  letter-spacing: -0.015em;
}
.band-dark .body { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--dark-muted); text-wrap: pretty; }
.band-dark .more { margin: 12px 0 0; font-size: 13px; }
.band-dark .more a { color: var(--accent-dim); }
.band-dark .more a:hover { color: #fff; }
.band-dark .points { display: grid; gap: 14px; align-self: center; }
.band-dark .points .pt {
  display: flex; gap: 12px; align-items: baseline;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08); padding-bottom: 14px;
}
.band-dark .points .pt .tick { color: var(--ok); font-size: 13px; }
.band-dark .points .pt span:last-child { font-size: 13px; line-height: 1.5; color: var(--dark-text); }

/* ---------- home: closing CTA ---------- */
.get-cta { padding: clamp(56px, 8vw, 64px) 0 0; text-align: center; }
.get-cta h2 { margin: 0; font-size: clamp(26px, 4vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.get-cta .sub { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.get-cta .app-btn { margin-top: 20px; }

/* ---------- document pages (privacy / support) ---------- */
main.page { padding: clamp(40px, 6vw, 48px) 0 clamp(56px, 8vw, 80px); }
.doc h1 { margin: 0; font-size: clamp(28px, 5vw, 34px); font-weight: 650; letter-spacing: -0.02em; }
.doc .meta { margin: 10px 0 0; font-size: 13px; color: var(--faint); }
.doc .lede { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }

/* privacy summary callout */
.callout {
  margin-top: 36px; border: 0.5px solid var(--line-3); border-radius: 10px;
  background: var(--card); padding: 20px 22px;
}
.callout p { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 500; }

/* privacy prose sections */
.sec { margin-top: 32px; }
.sec:first-of-type { margin-top: 40px; }
.sec h2 { margin: 0; font-size: 19px; font-weight: 600; }
.sec p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }

/* email button (support) */
.email-btn { margin-top: 20px; }

/* card list (faq / shortcuts) */
.doc h2.block-title { margin: 0; font-size: 19px; font-weight: 600; }
.stack {
  margin-top: 16px; display: grid; gap: 1px; background: var(--line);
  border: 0.5px solid var(--line); border-radius: 10px; overflow: hidden;
}
.stack .row { background: var(--card); padding: 18px 22px; }
.stack .row h3 { margin: 0; font-size: 14px; font-weight: 600; }
.stack .row p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }

.keys {
  margin-top: 16px; border: 0.5px solid var(--line); border-radius: 10px; overflow: hidden;
}
.keys .row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); padding: 10px 22px; border-bottom: 0.5px solid var(--line);
}
.keys .row:last-child { border-bottom: none; }
.keys .row .act { font-size: 13px; color: var(--ink-2); }
.keys .row kbd {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  background: rgba(0, 0, 0, 0.05); border: 0.5px solid var(--line-2);
  border-radius: 5px; padding: 2px 8px;
}

.block { margin-top: 48px; }
.block > p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }

/* ---------- footer ---------- */
.ftr .inner {
  border-top: 0.5px solid var(--line); padding: 24px 0 20px;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.ftr.wide .inner { margin-top: 56px; }
.ftr .brandcol { display: flex; flex-direction: column; gap: 8px; }
.ftr .by { font-size: 13px; font-weight: 500; color: var(--accent); }
.ftr .by:hover { color: var(--accent-ink); text-decoration: none; }
.ftr .links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.ftr .links a { font-size: 12px; color: var(--ink-2); }
.ftr .links a:hover { color: var(--accent); }
.ftr .legal {
  padding: 16px 0 48px; display: flex; gap: 6px 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--faint);
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hdr .nav {
    flex: 1 1 100%; width: 100%; min-width: 0;
    gap: 10px 14px;
  }
  .langs { flex-wrap: wrap; }
  .feat { grid-template-columns: 1fr; }
  .feat:nth-child(even) .feat-media { order: 0; }
  .band-dark .grid { grid-template-columns: 1fr; }
  .rest-grid { grid-template-columns: 1fr; }
}
