/*
 * PRYVA — public site.
 *
 * The same palette and the same two voices as the app: Manrope for the work, an old-style serif for
 * the promises. Manrope is served from this domain, not from a font service: a site whose argument
 * is privacy should not ask a third party to watch its visitors arrive.
 *
 * No framework and no build step. One stylesheet and pages a search engine can read without
 * running anything.
 */
@font-face {
  font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-ui: "Manrope Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Hoefler Text", Georgia, serif;
  --bg: #faf9f7; --surface: #fff; --mist: #f0f0ee; --line: #e5e5e1;
  --text: #252525; --muted: #6b6b67; --ink: #252525; --on-ink: #faf9f7;
  --accent: #8e5a64; --accent-soft: #a8707a; --accent-wash: #f7eef0; --page-wash: #fbeff1;
  --sage: #4f6257; --sage-wash: #eaf2ed;
  --max: 1120px; --r: 16px; --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 0 0 10px 0; }
.skip:focus { inset-inline-start: 0; }

/* ---------- Header: compact, and it stays ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page-wash) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 19px; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.top nav { display: none; gap: 22px; margin-inline-start: auto; }
.top nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .top nav { display: flex; } .top-cta { margin-inline-start: 0; } }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang a { padding: 5px 11px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--accent-wash); color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 180ms var(--ease), background 180ms var(--ease); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7e4f58; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; background: linear-gradient(180deg, var(--page-wash) 0, var(--page-wash) 62%, var(--bg) 100%); overflow: hidden; }
.hero-in { position: relative; display: grid; gap: 24px; padding-block: 28px 40px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(32px, 4.3vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; max-width: 17ch; }
.hero p.lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/*
 * The photograph is a wide strip, not a portrait. Cropped to a tall box it becomes a face filling
 * the screen; given its own band it stays a photograph of somebody in a room. Same treatment as the
 * app's own Discover page, which is where it came from.
 */
.hero-figure { position: relative; margin: 0; height: 200px; }
.hero-figure img { width: 100%; height: 100%; border-radius: var(--r); object-fit: cover; object-position: 64% 38%; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; padding-block: 36px 48px; }
  .hero-figure { height: 340px; margin-inline-end: calc(50% - 50vw); }
  .hero-figure img {
    border-radius: 0; object-position: 62% 36%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%), linear-gradient(180deg, #000 78%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 26%), linear-gradient(180deg, #000 78%, transparent);
    mask-composite: intersect;
  }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 48px 0; }
.sec-head { max-width: 58ch; margin-bottom: 36px; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(27px, 3.1vw, 40px); line-height: 1.16; letter-spacing: -.015em; margin: 0 0 14px; }
h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
.sec-head p { color: var(--muted); margin: 0; font-size: 18px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }

.grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card .shot { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.card .tag { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 17px; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.ids { display: grid; gap: 16px; }
@media (min-width: 680px) { .ids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.id-card { border-radius: var(--r); padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.id-card.personal { background: var(--accent-wash); border-color: transparent; }
.id-card.pro { background: var(--sage-wash); border-color: transparent; }
.id-card .handle { font-family: var(--font-display); font-size: 21px; letter-spacing: .04em; margin: 0 0 6px; }
.id-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pull { font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 2.4vw, 30px); line-height: 1.3; margin: 32px 0 0; max-width: 24ch; }

.band { background: var(--page-wash); }
.band-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .band-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; } }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; }
.ticks svg { flex: none; margin-top: 3px; color: var(--accent); }
.ticks b { display: block; font-weight: 700; }
.ticks span { color: var(--muted); font-size: 15px; }
.note { font-size: 14.5px; color: var(--muted); border-inline-start: 2px solid var(--line); padding-inline-start: 14px; margin-top: 26px; max-width: 64ch; }

.close { background: linear-gradient(180deg, var(--bg) 0, var(--page-wash) 100%); text-align: center; }
.close h2 { max-width: 20ch; margin-inline: auto; }
.close .sig { font-weight: 700; letter-spacing: .02em; margin: 6px 0 26px; }

footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 56px; font-size: 14.5px; }
.foot-in { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.2fr 2fr; align-items: start; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-note { color: var(--muted); margin: 18px 0 0; max-width: 60ch; }

/* ---------- Long-form: privacy, terms, security ---------- */
.doc { padding: 40px 0 72px; }
.doc-in { max-width: 72ch; }
.doc h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 0 0 10px; }
.doc .updated { color: var(--muted); font-size: 14.5px; margin: 0 0 32px; }
.doc h2 { font-family: var(--font-ui); font-weight: 700; font-size: 21px; margin: 40px 0 10px; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: #3a3a38; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin-bottom: 7px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 15px; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--mist); font-weight: 700; }
.doc .box { background: var(--accent-wash); border-radius: 12px; padding: 18px 20px; margin: 24px 0; }
.doc .box p:last-child { margin-bottom: 0; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 32px; }
.doc .toc ol { margin: 0; }
.doc a { color: var(--accent); }

.oops { min-height: 56vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.shot svg { display: block; width: 100%; height: auto; }
