/* Pinza — pinza.app
   Hand-written, zero-JS, self-hosted. Palette drawn from the app
   icon: paperclip steel on paper white, one cobalt for links.
   Both color schemes; motion respects prefers-reduced-motion. */

:root {
  --paper: #f7f7f5;
  --ink: #1b1c1e;
  --ink-soft: #55585e;
  --steel: #8e9298;
  --steel-soft: #d4d6d9;
  --hairline: #e2e3e5;
  --card: #ffffff;
  --cobalt: #2450c0;
  --cobalt-ink: #ffffff;
  --kbd-top: #fdfdfd;
  --kbd-bottom: #e7e8ea;
  --kbd-edge: #b9bcc1;
  --good: #1d7a3d;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141519;
    --ink: #e8e9eb;
    --ink-soft: #a3a7ae;
    --steel: #82868d;
    --steel-soft: #3a3d43;
    --hairline: #2b2d32;
    --card: #1d1f24;
    --cobalt: #7ea2ff;
    --cobalt-ink: #10131b;
    --kbd-top: #34373d;
    --kbd-bottom: #23252a;
    --kbd-edge: #4b4e55;
    --good: #58c07d;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-text-size-adjust: 100%;
}

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cobalt);
  color: var(--cobalt-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

/* ── Focus ─────────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Layout ────────────────────────────────────────────────── */
.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}
header.site img {
  width: 28px;
  height: 28px;
}
header.site .brand {
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
header.site nav {
  margin-left: auto;
}
header.site nav ul {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
header.site nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
header.site nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

main {
  display: block; /* older engines */
}

footer.site {
  border-top: 1px solid var(--hairline);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer.site ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0;
  margin: 0 0 0.8rem;
  flex-wrap: wrap;
}
footer.site a {
  color: var(--ink-soft);
}
footer.site a:hover {
  color: var(--ink);
}

/* ── Type ──────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: ui-serif, "New York", Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  margin: 0 0 0.6rem;
}
h2 {
  font-size: 1.65rem;
  margin: 0 0 0.8rem;
}
h3 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.4rem;
}
p { margin: 0 0 1rem; }
a { color: var(--cobalt); }
code, kbd, .mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
code {
  font-size: 0.92em;
  background: var(--steel-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 0.5rem;
}

section {
  margin-top: 4rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* ── Keycaps (signature motif) ─────────────────────────────── */
kbd.cap {
  display: inline-block;
  min-width: 1.5em;
  padding: 0.18em 0.42em;
  text-align: center;
  font-size: 0.95em;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--kbd-top), var(--kbd-bottom));
  border: 1px solid var(--kbd-edge);
  border-bottom-width: 3px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
}
@media (prefers-color-scheme: dark) {
  kbd.cap { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); }
}
.hero kbd.cap {
  font-size: 1.8rem;
  border-radius: 10px;
  padding: 0.2em 0.5em;
}
.hero .chord {
  display: inline-flex;
  gap: 0.35rem;
  margin: 1.4rem 0 0.4rem;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding-top: 5.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
}
.hero .tagline {
  color: var(--ink-soft);
  font-size: 1.25rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.hero .chord {
  margin: 2.2rem 0 0;
}
.hero .hero-shot {
  margin: 2.8rem 0 2.4rem;
}
.hero .hero-shot img {
  width: min(563px, 100%);
  height: auto;
}
.hero .cta-row {
  justify-content: center;
  margin-top: 1.4rem;
}

/* ── Clipboard ledger (signature element) ──────────────────── */
.ledger {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0 0;
  font-size: 0.95rem;
}
.ledger caption {
  text-align: left;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding-bottom: 0.6rem;
}
.ledger th[scope="row"] {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.55rem 1.2rem 0.55rem 0;
  vertical-align: top;
  width: 1%;
}
.ledger td {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.55rem 0;
  word-break: break-all;
}
.ledger tr {
  border-bottom: 1px solid var(--hairline);
}
.ledger tr:first-child {
  border-top: 1px solid var(--hairline);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
}
.btn-primary {
  background: var(--cobalt);
  color: var(--cobalt-ink);
  border: 1px solid transparent;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-secondary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--kbd-top), var(--kbd-bottom));
  border: 1px solid var(--kbd-edge);
}
.cta-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin: 1.6rem 0 0.6rem;
  flex-wrap: wrap;
}
.cta-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ── Steps ─────────────────────────────────────────────────── */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.2rem;
}
.steps li {
  counter-increment: step;
  padding-left: 2.6rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--kbd-top), var(--kbd-bottom));
  border: 1px solid var(--kbd-edge);
  border-bottom-width: 2px;
}
.steps .step-title {
  font-weight: 650;
  display: block;
}

/* ── App list ──────────────────────────────────────────────── */
.applist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.2rem 2rem;
  margin-top: 1.4rem;
}
.applist h3 {
  margin: 0 0 0.3rem;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 650;
}
.applist ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
}
.applist li { padding: 0.1rem 0; }

/* ── Compare table ─────────────────────────────────────────── */
.compare-scroll { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  min-width: 34rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.compare thead th {
  font-size: 0.9rem;
}
.compare thead th:not(:first-child) {
  width: 27%;
}
.compare tbody th[scope="row"] {
  font-weight: 500;
}
.compare .yes { color: var(--good); font-weight: 600; }
.compare .cap-note { color: var(--ink-soft); }
.price {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 0.4rem 0;
}
.faq details:first-of-type {
  border-top: 1px solid var(--hairline);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.55rem 0;
}
.faq summary:hover { color: var(--cobalt); }
.faq details p { color: var(--ink-soft); }

/* ── Screenshots ───────────────────────────────────────────── */
figure {
  margin: 1.6rem 0;
}
figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
/* Captures that carry their own rounded corners + alpha shadow
   (floating HUD cards) — no extra frame on top. */
figure.floating img {
  border: none;
  border-radius: 0;
}
figcaption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* ── Legal / prose pages ───────────────────────────────────── */
.prose { padding-top: 3rem; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.updated {
  color: var(--steel);
  font-size: 0.9rem;
}

/* ── Tables in prose (privacy network table) ───────────────── */
.net-scroll { overflow-x: auto; }
table.net {
  border-collapse: collapse;
  width: 100%;
  min-width: 40rem;
  font-size: 0.92rem;
  margin: 1rem 0;
}
table.net th, table.net td {
  text-align: left;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
table.net thead th { font-size: 0.85rem; }

/* ── Motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  a, .btn, .faq summary { transition: color 120ms ease, filter 120ms ease; }
}

/* 200% zoom / narrow screens */
@media (max-width: 30rem) {
  header.site nav { margin-left: 0; }
  .hero { padding-top: 2.5rem; }
}

/* ── Utilities ─────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
