/* site.css — papersaver.phd, in the extension's design system "F · Ink + electric blue"
 * (palette and controls mirror pages/tokens.css; keep the two in step).
 * Light theme only (the extension's dark palette lives in pages/tokens.css if it is ever wanted here).
 */

/* ── Palette ──────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg-0: #F6F6F4; --card: #FFFFFF;
  --t1: #1A1A21; --t2: #3D3D47; --t3: #5E5E6A; --t4: rgba(26,26,33,.22);
  --accent: #0B57D0; --accent-hover: #0A4DB8; --accent-text: #0B57D0; --on-accent: #FFFFFF;
  --accent-soft: rgba(11,87,208,.10);
  --ok: #15803D; --ok-badge: #15803D; --ok-soft: rgba(21,128,61,.10);
  --err: #B42335; --err-soft: rgba(180,35,53,.09);
  --warn: #8A5200; --warn-soft: rgba(214,140,20,.15);
  --surface: rgba(26,26,33,.06); --line: rgba(26,26,33,.16); --hover: rgba(26,26,33,.05); --sel: rgba(26,26,33,.07);
  --tag-ink: #1A1A21; --tag-on-ink: #FFFFFF; --tag-soft: rgba(26,26,33,.08);
  --sh-card: 0 1px 2px rgba(26,26,33,.05);
  --sh-lift: 0 1px 2px rgba(26,26,33,.05), 0 10px 28px rgba(26,26,33,.08);
  --sh-page: 0 1px 3px rgba(26,26,33,.10), 0 18px 44px -14px rgba(26,26,33,.28);
  --sh-pop: 0 2px 8px rgba(26,26,33,.08), 0 30px 70px -20px rgba(26,26,33,.30);
  --page: #FFFFFF; --page-filter: none; --ink-on-page: 26,26,33;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --settle: cubic-bezier(.2,.9,.25,1.15);
  --wide: 1200px; --gutter: 24px;
}
/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-0); scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); color: var(--t1); background: var(--bg-0); font-size: 16px; line-height: 1.6;
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::placeholder { color: var(--t3); opacity: 1; }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* Brand: mono hat logo as a mask (takes the text colour) + Space Grotesk wordmark */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--t1); text-decoration: none !important; }
.logo { width: 32px; height: 19px; flex: none; background: currentColor;
        -webkit-mask: url(logo.svg) center / contain no-repeat; mask: url(logo.svg) center / contain no-repeat; }
.brand-name { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }

/* ── Controls (flat, 12px radius) ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 0;
       border-radius: 12px; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none !important;
       transition: background-color .15s, opacity .12s, transform .12s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-p { background: var(--accent); color: var(--on-accent); }
.btn-p:hover { background: var(--accent-hover); }
.btn-s { background: var(--surface); color: var(--t1); }
.btn-s:hover { background: var(--sel); }
.btn-o { background: transparent; color: var(--t1); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-o:hover { background: var(--hover); }
.btn-lg { height: 52px; padding: 0 24px; font-family: var(--display); font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

.fld { width: 100%; border: 0; border-radius: 12px; padding: 11px 14px; font-size: 15px; line-height: 1.45; color: var(--t1);
       background: var(--surface); }
.fld:focus { outline: 2px solid var(--accent); outline-offset: 0; }
select.fld { appearance: none; padding-right: 40px; cursor: pointer;
             background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E5E6A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
             background-repeat: no-repeat; background-position: right 14px center; }
textarea.fld { resize: vertical; min-height: 140px; }

.eyebrow { display: block; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }

/* ── Notice strip (store review etc.) ─────────────────────────────────────── */
.notice { background: var(--tag-ink); color: var(--tag-on-ink); text-align: center; padding: 9px var(--gutter); font-size: 13.5px; font-weight: 500; }

/* ── Site header ──────────────────────────────────────────────────────────── */
.site-hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg-0) 86%, transparent);
            -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.site-hdr.scrolled { box-shadow: 0 1px 0 var(--line); }
.site-hdr .wrap { display: flex; align-items: center; gap: 8px; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--t2); }
.site-nav a:not(.btn):hover { background: var(--hover); color: var(--t1); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--t1); background: var(--surface); }
.site-nav .btn { margin-left: 8px; }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { height: 38px; padding: 0 14px; font-size: 14px; }
}

/* ── Site footer ──────────────────────────────────────────────────────────── */
.site-ftr { margin-top: 96px; padding: 40px 0 48px; box-shadow: 0 -1px 0 var(--line); }
.site-ftr .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-ftr nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.site-ftr nav a { font-size: 14px; color: var(--t3); }
.site-ftr nav a:hover { color: var(--t1); }
.site-ftr .fine { flex-basis: 100%; margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--t3); }

/* ── Document pages (privacy, terms) ──────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 0; }
.doc h1 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(34px, 6vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.doc .updated { margin-bottom: 40px; font-size: 14px; color: var(--t3); }
.doc h2 { margin: 44px 0 12px; font-family: var(--display); font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.doc h3 { margin: 28px 0 8px; font-size: 16px; font-weight: 700; }
.doc p, .doc li { color: var(--t2); font-size: 15.5px; line-height: 1.7; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 8px 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--t1); }
.doc hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0 20px; font-size: 14px; line-height: 1.5;
             border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 640px) { .doc table { display: block; overflow-x: auto; } }
.doc th, .doc td { padding: 11px 14px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.doc td { color: var(--t2); border-top: 1px solid var(--line); }
.doc td strong { color: var(--t1); }
.doc .note { margin-top: 48px; padding: 16px 18px; border-radius: 14px; background: var(--surface); font-size: 14px; color: var(--t3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
