/* Auvren — shared design system for document pages (/privacy /terms /start).
   The landing page (index.html) is self-contained by design; this file mirrors
   its tokens so subpages stay visually identical. */

@font-face { font-family: 'Newsreader'; src: url(/assets/fonts/newsreader-roman.woff2) format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/assets/fonts/publicsans-roman.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --spruce: #12302A;
  --spruce-deep: #0F2822;
  --spruce-footer: #0B1F1A;
  --cream: #F7F2E7;
  --cream-card: #FDFBF4;
  --ink: #22302A;
  --ink-soft: #4A5A52;
  --ink-mute: #5C6B63;
  --copper: #A85F22;
  --copper-bright: #D9924A;
  --copper-link: #8F4E1B;
  --hairline: rgba(20, 50, 42, .16);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cream); overflow-x: clip; }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; background-image: var(--grain); }
h1, h2, h3 { overflow-wrap: anywhere; min-width: 0; font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
a { color: var(--copper-link); text-decoration: none; border-bottom: 1px solid rgba(143, 78, 27, .35); }
a:hover { color: #6E3C13; border-bottom-color: #6E3C13; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: fadein .7s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rise, .rise-2, .rise-3 { opacity: 1 !important; }
}

/* header / footer — mirrors index.html */
.site-header { background: var(--spruce); color: #EFE7D6; }
.site-header .inner { max-width: 1140px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .brand { display: flex; align-items: center; gap: 12px; color: #EFE7D6; border-bottom: 0; }
.site-header .wordmark { font-family: var(--serif); font-size: 25px; line-height: 1; letter-spacing: .01em; }
.site-header .divider { width: 1px; height: 14px; background: rgba(239, 231, 214, .3); }
.site-header .desk { font-size: 11.5px; line-height: 1; letter-spacing: .22em; text-transform: uppercase; color: rgba(239, 231, 214, .66); font-weight: 500; }
.site-header .cta { background: #EFE7D6; color: var(--spruce); border-bottom: 0; white-space: nowrap; flex: 0 0 auto; padding: 10px 20px; border-radius: 3px; font-size: 14.5px; font-weight: 600; transition: background .25s cubic-bezier(0.19, 1, 0.22, 1); }
.site-header .cta:hover { background: #E0D5BE; color: var(--spruce); }
@media (max-width: 560px) { .site-header .desk, .site-header .divider { display: none; } }

.page-hero { background-color: var(--spruce-deep); background-image: var(--grain), linear-gradient(178deg, #12302A 0%, #0F2822 62%, #0C221D 100%); color: #EFE7D6; padding: clamp(40px, 6vw, 72px) 24px; }
.page-hero .inner { max-width: 880px; margin: 0 auto; }
.page-hero .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.page-hero .eyebrow .tick { width: 22px; height: 1px; background: var(--copper-bright); }
.page-hero .eyebrow span:last-child { font-size: 12px; line-height: 1; letter-spacing: .22em; text-transform: uppercase; color: rgba(239, 231, 214, .66); font-weight: 500; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.015em; }
.page-hero .sub { font-size: clamp(16px, 1.8vw, 18px); line-height: 1.6; color: rgba(239, 231, 214, .8); max-width: 36em; margin: 18px 0 0; }

.doc { max-width: 880px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px clamp(56px, 8vw, 96px); }
.doc h2 { font-size: clamp(24px, 3vw, 32px); margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); max-width: 42em; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 8px 0; }
.doc .rule { height: 1px; background: var(--hairline); margin: 32px 0; border: 0; }
.doc .kicker { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: #6B5A44; font-weight: 500; }
.doc .updated { font-size: 13.5px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.doc strong { color: var(--ink); }

.site-footer { background-color: var(--spruce-footer); background-image: var(--grain); color: rgba(239, 231, 214, .66); padding: 40px 24px 48px; }
.site-footer .inner { max-width: 1140px; margin: 0 auto; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: baseline; font-size: 14px; }
.site-footer .brand { display: flex; align-items: center; gap: 10px; }
.site-footer .brand span:last-child { font-family: var(--serif); font-size: 19px; color: rgba(239, 231, 214, .88); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: rgba(239, 231, 214, .75); border-bottom-color: rgba(239, 231, 214, .3); }
.site-footer .fine { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(239, 231, 214, .12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 12.5px; line-height: 1.6; color: rgba(239, 231, 214, .5); }
.site-footer .fine .badge { letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* the paper artifact (used on /start) — mirrors the sample-audit sheet */
.paper-wrap { position: relative; }
.paper-back-2 { position: absolute; inset: 18px -10px -14px 22px; background: #F4EFE2; border: 1px solid rgba(20, 50, 42, .12); border-radius: 2px; transform: rotate(1.4deg); }
.paper-back-1 { position: absolute; inset: 10px -4px -8px 12px; background: #F9F5EA; border: 1px solid rgba(20, 50, 42, .12); border-radius: 2px; transform: rotate(.6deg); }
.paper { background: var(--cream-card); border: 1px solid rgba(20, 50, 42, .14); box-shadow: 0 36px 64px -32px rgba(20, 50, 42, .5); padding: clamp(24px, 3.4vw, 40px); position: relative; border-radius: 2px; }
.paper .term-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dotted rgba(20, 50, 42, .2); font-size: 15.5px; }
.paper .term-row span:first-child { color: #33443C; }
.paper .term-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }

.btn-primary { display: inline-block; background: #EFE7D6; color: var(--spruce); border: 1px solid #C9803A; padding: 15px 28px; border-radius: 3px; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; cursor: pointer; transition: background .25s cubic-bezier(0.19, 1, 0.22, 1); }
.btn-primary:hover { background: #FFF9EC; color: var(--spruce); }
.btn-dark { display: inline-block; background: var(--spruce); color: var(--cream); border: 0; border-bottom: 0; padding: 14px 28px; border-radius: 3px; font-weight: 600; font-size: 16px; white-space: nowrap; cursor: pointer; transition: background .25s cubic-bezier(0.19, 1, 0.22, 1); }
.btn-dark:hover { background: #1A4038; color: var(--cream); }
button:active { transform: translateY(1px); }

.field { display: block; margin: 0 0 14px; }
.field .lbl { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6B5A44; margin-bottom: 6px; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] { width: 100%; padding: 12px 14px; border: 1px solid rgba(20, 50, 42, .3); background: #FFFDF8; border-radius: 3px; font-size: 16px; color: var(--ink); }
.field .hint { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; line-height: 1.5; }

/* mobile sticky CTA on document pages */
.doc-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(16, 40, 34, .96); border-top: 1px solid rgba(239, 231, 214, .14); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; backdrop-filter: blur(10px); }
.doc-sticky[hidden] { display: none !important; }
.doc-sticky .t { flex: 1 1 auto; min-width: 0; }
.doc-sticky .t b { display: block; color: #EFE7D6; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-sticky .t span { display: block; color: rgba(239, 231, 214, .7); font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-sticky .go { flex: 0 0 auto; margin-left: auto; background: #EFE7D6; color: #12302A; border: 1px solid #C9803A; border-bottom: 1px solid #C9803A; padding: 11px 22px; border-radius: 3px; font-weight: 700; font-size: 15.5px; white-space: nowrap; }
@media (min-width: 781px) { .doc-sticky { display: none !important; } }
