/* re:Cap — therecap.cloud */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fcfbff;
  --paper-2: #f3f0fb;
  --ink: #1d1830;
  --ink-2: #4f4866;
  --ink-3: #7a7392;
  --line: #e4dff1;
  --accent: #f47a00;          /* the app's accent */
  --accent-ink: #b85a00;      /* accent for text on paper (AA) */
  --headline-accent: #e86a00; /* the app's orange, a touch deeper so big type keeps 3:1 on paper */
  --summary: #fbecdc;         /* AI summary card */
  --summary-line: #f2d9bd;
  --glow-1: #c9b8ff;
  --glow-2: #ffd2b0;
  --glow-3: #bfeee6;
  --bezel: #1b1724;
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14111d;
    --paper-2: #1c1828;
    --ink: #f3f0fa;
    --ink-2: #c3bcd6;
    --ink-3: #958da9;
    --line: #2c2740;
    --accent: #ff992e;
    --accent-ink: #ffab55;
    --headline-accent: #ff992e;
    --summary: #2f2418;
    --summary-line: #4a3824;
    --glow-1: #4a3399;
    --glow-2: #7a3f1c;
    --glow-3: #1f5c55;
    --bezel: #000;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }

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

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 10px; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* --- Header ------------------------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand:hover { color: inherit; }

.header-link {
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--ink); color: var(--paper);
}
.header-link:hover { color: var(--paper); background: var(--accent-ink); }

/* --- Footer ------------------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--line); padding-block: 2.2rem 2.8rem; font-size: 0.92rem; color: var(--ink-3); }
.site-footer .wrap { display: grid; gap: 1.1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--accent-ink); }
.site-footer p { margin: 0; max-width: 46rem; line-height: 1.5; }

/* --- Text pages (privacy, terms, support) ------------------------------------------------- */

.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); }
.doc .wrap { max-width: 44rem; }
.doc h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; font-weight: 820; }
.doc .updated { margin: 0.9rem 0 0; color: var(--ink-3); font-size: 0.95rem; }
.doc .intro { margin: 1.6rem 0 0; font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); }
.doc h2 { margin: 2.6rem 0 0; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 760; }
.doc h3 { margin: 1.8rem 0 0; font-size: 1.12rem; font-weight: 720; }
.doc p, .doc ul, .doc dl { margin: 0.8rem 0 0; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.4rem; }
.doc li::marker { color: var(--accent); }
.doc strong { font-weight: 700; }
.doc .callout { margin-top: 1.8rem; padding: 1.1rem 1.25rem; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); }
.doc .callout p:first-child { margin-top: 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem 0.7rem 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 700; width: 34%; }
.doc details { border-top: 1px solid var(--line); padding-block: 1rem; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; color: var(--accent-ink); font-weight: 600; font-size: 1.3rem; line-height: 1; }
.doc details[open] summary::after { content: "\2212"; }
.doc details p { color: var(--ink-2); }
.contact { margin-top: 1.4rem; display: inline-flex; padding: 0.75rem 1.2rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 650; text-decoration: none; }
.contact:hover { background: var(--accent-ink); color: var(--paper); }

@media (max-width: 860px) {
  .doc .wrap { max-width: none; }
}
