/* Tuck Here — shared site styles (2026-06-12 rebuild)
 *
 * Editorial register evolved from the app's design system: Fraunces serif,
 * warm paper canvas, near-black ink as primary, a single seal-crimson accent
 * for atmosphere. Dark-mode adaptive. One stylesheet shared by every page.
 *
 * Load-bearing files NOT touched by this rebuild:
 *   .well-known/apple-app-site-association  (Universal Links — must stay byte-stable)
 *   _headers, wrangler.toml, .assetsignore
 * The 404 page keeps its custom-scheme open-in-app fallback (re-skinned only).
 */

:root {
  --bg: #f4f1ec;
  --bg-deep: #ece7df;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #17150f;
  --muted: #5f5a51;
  --faint: #8f897e;
  --line: rgba(23, 21, 15, 0.10);
  --line-soft: rgba(23, 21, 15, 0.06);
  /* seal crimson — the app's single accent, paper-tuned */
  --seal: #b23a28;
  --seal-deep: #8f2c1d;
  --seal-wash: rgba(178, 58, 40, 0.08);
  --seal-line: rgba(178, 58, 40, 0.28);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --maxw: 1060px;
  --shadow-soft: 0 1px 2px rgba(23,21,15,0.04), 0 8px 28px rgba(23,21,15,0.06);
  --shadow-lift: 0 2px 6px rgba(23,21,15,0.06), 0 18px 50px rgba(23,21,15,0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131217;
    --bg-deep: #0e0d12;
    --surface: #1c1b22;
    --surface-2: #201f27;
    --ink: #f3f0ea;
    --muted: #a8a399;
    --faint: #79746c;
    --line: rgba(255, 255, 255, 0.11);
    --line-soft: rgba(255, 255, 255, 0.06);
    --seal: #e0664f;
    --seal-deep: #c5482f;
    --seal-wash: rgba(224, 102, 79, 0.12);
    --seal-line: rgba(224, 102, 79, 0.34);
    --shadow-soft: 0 1px 2px rgba(0,0,0,0.3), 0 8px 28px rgba(0,0,0,0.4);
    --shadow-lift: 0 2px 6px rgba(0,0,0,0.35), 0 18px 50px rgba(0,0,0,0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; }
a { color: var(--ink); text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: var(--seal-wash); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif);
  font-weight: 600; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.brand .pin { width: 30px; height: 30px; border-radius: 9px; background: var(--ink);
  display: grid; place-items: center; flex: none; box-shadow: var(--shadow-soft); }
.brand .pin svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.navlink { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s ease; }
.nav-links a.navlink:hover, .nav-links a.navlink[aria-current="page"] { color: var(--ink); }
@media (max-width: 720px) { .nav-links .navlink { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600;
  font-family: var(--sans); padding: 13px 24px; border-radius: 13px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, opacity .12s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.92; }
.btn-seal { background: var(--seal); color: #fff; box-shadow: var(--shadow-soft); }
.btn-seal:hover { background: var(--seal-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 9px 17px; font-size: 14.5px; border-radius: 11px; }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface); padding: 7px 15px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--seal);
  box-shadow: 0 0 0 0 var(--seal-wash); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(178,58,40,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(178,58,40,0); }
}
.eyebrow.seal { color: var(--seal-deep); border-color: var(--seal-line); background: var(--seal-wash); }
@media (prefers-color-scheme: dark) { .eyebrow.seal { color: var(--seal); } }

/* ---------- Headings & type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.022em; }
h1 em, h2 em, .final h2 { font-style: italic; font-weight: 500; }
.page-title { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; margin: 0 0 18px; }
.section-head { text-align: center; margin: 0 auto 44px; max-width: 640px; }
.section-title { font-size: clamp(28px, 5vw, 42px); margin: 0 0 12px; }
.section-sub { color: var(--muted); font-size: 17px; margin: 0; }
.lede { font-size: clamp(17px, 2.3vw, 21px); color: var(--muted); line-height: 1.55; }

/* ---------- Sections ---------- */
section { padding: 62px 0; }
.section-tight { padding: 40px 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px; box-shadow: var(--shadow-soft); }
.card .num { font-family: var(--serif); font-weight: 600; font-size: 14px; color: var(--seal);
  letter-spacing: 0.08em; margin-bottom: 16px; }
.card .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--surface-2);
  border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 18px; }
.card .ic svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; margin: 0 0 9px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Band ---------- */
.band { background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 54px 44px; text-align: center; box-shadow: var(--shadow-soft); }
.band h2 { font-size: clamp(26px, 4.4vw, 38px); margin: 0 0 16px; }
.band p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 17px; }
.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pill { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; }

/* ---------- FAQ / details ---------- */
.faq { max-width: 780px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
details summary { font-family: var(--serif); font-weight: 600; font-size: 19px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 26px;
  color: var(--seal); transition: transform .2s ease; line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
details > div, details > p { color: var(--muted); font-size: 16px; margin: 14px 0 2px; }

/* ---------- Prose (legal + content pages) ---------- */
.prose h2 { font-size: 23px; margin: 40px 0 10px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink); font-size: 16.5px; }
.prose .muted { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; margin: 24px 0; box-shadow: var(--shadow-soft); }
.callout.seal { border-color: var(--seal-line); background: var(--seal-wash); }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 36px; }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding: 88px 0 64px; }
.final h2 { font-size: clamp(30px, 5.5vw, 50px); margin: 0 0 26px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { font-size: 13.5px; color: var(--faint); margin-top: 18px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 46px 0 60px; margin-top: 20px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot-brand { max-width: 280px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; margin: 0; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 9px; transition: color .15s; }
.foot-col a:hover { color: var(--ink); }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-base .copy { color: var(--faint); font-size: 13.5px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow .dot { animation: none; }
  html { scroll-behavior: auto; }
}
