/* Provenance. Continuous residence evidence service.
   Palette: cool paper + ink, single rust accent. Radius system: 6px everywhere. */

:root {
  --paper: #fcfcfb;
  --paper-2: #f2f2ef;
  --paper-3: #e9e9e5;
  --ink: #16171b;
  --ink-2: #55585f;
  --ink-3: #6b6e75;
  --line: #e2e2dd;
  --line-strong: #cfcfc9;
  --accent: #a8391b;
  --accent-ink: #ffffff;
  --accent-soft: #faf1ee;
  --good: #1f6a45;
  --r: 6px;
  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 3.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121316;
    --paper-2: #191a1e;
    --paper-3: #212329;
    --ink: #ecedee;
    --ink-2: #a2a5ac;
    --ink-3: #878a91;
    --line: #292b30;
    --line-strong: #3a3d43;
    --accent: #e07a52;
    --accent-ink: #1a0f0a;
    --accent-soft: #231914;
    --good: #4bab7d;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #121316;
  --paper-2: #191a1e;
  --paper-3: #212329;
  --ink: #ecedee;
  --ink-2: #a2a5ac;
  --ink-3: #878a91;
  --line: #292b30;
  --line-strong: #3a3d43;
  --accent: #e07a52;
  --accent-ink: #1a0f0a;
  --accent-soft: #231914;
  --good: #4bab7d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.14; }
h3 { font-size: 1.0625rem; letter-spacing: -0.012em; line-height: 1.35; }
p { margin: 0; }

.lede { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; max-width: 62ch; }
.small { font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.mono { font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3); margin-bottom: 1rem;
}

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* ---------- nav ---------- */
header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) { header { background: var(--paper); backdrop-filter: none; } }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { font-weight: 600; letter-spacing: -0.03em; font-size: 1.0625rem; text-decoration: none; white-space: nowrap; }
.brand i { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 0.875rem; color: var(--ink-2); white-space: nowrap; transition: color .18s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.nav-links + .nav-right { margin-left: 0; }
@media (max-width: 900px) { .nav-links { display: none; } }

select.lang {
  appearance: none;
  font: inherit; font-size: 0.8125rem;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: .4rem 1.8rem .4rem .6rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 14px) 51%, calc(100% - 9px) 51%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select.lang:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: .9375rem; font-weight: 500;
  padding: .7rem 1.15rem; border-radius: var(--r); border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .12s ease, background-color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-sm { padding: .5rem .85rem; font-size: .875rem; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero h1 { margin-bottom: 1.25rem; text-wrap: balance; }
.hero .lede { font-size: 1.125rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.doc-frame {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: #fff; box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--ink) 42%, transparent);
  max-height: 460px;
}
.doc-frame img { width: 100%; height: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc-frame img { filter: brightness(.9) contrast(1.02); } }
:root[data-theme="dark"] .doc-frame img { filter: brightness(.9) contrast(1.02); }
.doc-cap { margin-top: .65rem; font-size: .75rem; color: var(--ink-3); letter-spacing: .02em; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .doc-frame { max-height: 300px; }
}

/* ---------- facts band ---------- */
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.fact { padding: 2rem 2rem 2rem 0; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact:not(:first-child) { padding-left: 2rem; }
.fact b { display: block; font-family: "Geist Mono", monospace; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: .5rem; }
.fact p { font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 780px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
  .fact:not(:first-child) { padding-left: 0; }
  .fact:last-child { border-bottom: 0; }
}

/* ---------- statement / by hand ---------- */
.statement h2 { max-width: 20ch; margin-bottom: 1.25rem; }
.statement .lede { margin-bottom: 2.5rem; }
.workload { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.work-item { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.work-item .n { font-family: "Geist Mono", monospace; font-size: 1.0625rem; color: var(--accent); font-weight: 500; min-width: 3.4ch; }
.work-item p { font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
.work-item p b { color: var(--ink); font-weight: 500; }
@media (max-width: 780px) { .workload { grid-template-columns: 1fr; } }

/* ---------- sources ---------- */
.sources-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.logo-wall { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.logo-cell { background: var(--paper); aspect-ratio: 1 / 0.82; display: grid; place-items: center; transition: background-color .2s ease; }
.logo-cell:hover { background: var(--paper-2); }
.logo-cell i {
  display: block; width: 26px; height: 26px; background: var(--ink-3);
  transition: background-color .2s ease;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-image: var(--u); mask-image: var(--u);
}
.logo-cell:hover i { background: var(--ink); }
@media (max-width: 1000px) { .sources-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
.records { border-top: 1px solid var(--ink); padding-top: 1rem; }
.records li { list-style: none; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; display: flex; justify-content: space-between; gap: 1rem; }
.records ul { margin: 0; padding: 0; }
.records li span { color: var(--ink-3); font-family: "Geist Mono", monospace; font-size: .75rem; text-align: right; white-space: nowrap; }
.records li > span:first-child { color: var(--ink); font-family: inherit; font-size: inherit; text-align: left; white-space: normal; }

/* ---------- method ---------- */
.steps { border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 8.5rem 1fr 1fr; gap: clamp(1rem, 3vw, 3rem); padding: 1.85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step > h3 { letter-spacing: -0.015em; }
.step .k { font-family: "Geist Mono", monospace; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.step p { font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 820px) { .step { grid-template-columns: 1fr; gap: .5rem; } }

/* ---------- deliverables bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cell { background: var(--paper); padding: 1.65rem; display: flex; flex-direction: column; gap: .5rem; }
.cell h3 { margin-bottom: .15rem; }
.cell p { font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.cell-wide { grid-column: span 2; }
.cell-accent { background: var(--accent-soft); justify-content: center; }
.cell-img { padding: 0; background: var(--paper-2); position: relative; height: 240px; overflow: hidden; }
.cell-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.cell .tag { font-family: "Geist Mono", monospace; font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .cell-wide { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .cell-wide { grid-column: span 1; } }

/* ---------- case ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.stat b { display: block; font-family: "Geist Mono", monospace; font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: .6rem; }
.stat p { font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
.stat .zero { color: var(--good); }
@media (max-width: 880px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
.case-note { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.case-note p { font-size: .9375rem; color: var(--ink-2); }
.case-note p b { color: var(--ink); font-weight: 500; }
@media (max-width: 780px) { .case-note { grid-template-columns: 1fr; } }

/* ---------- boundaries ---------- */
.cols2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 820px) { .cols2 { grid-template-columns: 1fr; } }
.note-block h3 { margin-bottom: .75rem; }
.note-block p { color: var(--ink-2); font-size: .9375rem; margin-bottom: .85rem; }
.note-block p:last-child { margin-bottom: 0; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 2.5rem; }
.plan { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem); }
.plan h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.plan > p { color: var(--ink-2); font-size: .9375rem; margin-bottom: 1.35rem; }
.plan .price { font-family: "Geist Mono", monospace; font-size: 1.0625rem; color: var(--ink); margin-bottom: 1.35rem; display: block; }
.plan ul { margin: 0 0 1.6rem; padding: 0; list-style: none; }
.plan li { font-size: .9rem; color: var(--ink-2); padding: .55rem 0; border-bottom: 1px solid var(--line); }
.plan li:last-child { border-bottom: 0; }
.plans-note { margin-top: 1.15rem; font-size: .8125rem; color: var(--ink-3); max-width: 60ch; }
@media (max-width: 780px) { .plans { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.012em; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.55rem;
  width: 11px; height: 11px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details p { padding: 0 0 1.35rem; color: var(--ink-2); font-size: .9375rem; max-width: 72ch; }

/* ---------- final cta ---------- */
.final { background: var(--accent-soft); border-top: 1px solid var(--line); }
.final-inner h2, .final-inner .lede { max-width: 38rem; }
.final h2 { margin-bottom: 1rem; }
.final .lede { margin-bottom: 1.75rem; }
.final-meta { margin-top: 1.25rem; font-size: .8125rem; color: var(--ink-3); }

/* ---------- mobile sticky cta ---------- */
.mobile-cta { display: none; }
@media (max-width: 620px) {
  .nav-right .btn { display: none; }
  .hero-cta { display: grid; grid-template-columns: 1fr; }
  body { padding-bottom: 4.75rem; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: .7rem var(--pad) calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { width: 100%; }
}
@media (prefers-reduced-transparency: reduce) { .mobile-cta { background: var(--paper); backdrop-filter: none; } }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.foot-top { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: baseline; margin-bottom: 1.75rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-links a { font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { font-size: .75rem; color: var(--ink-3); line-height: 1.65; max-width: 80ch; }

