/* SahiUni sub-pages (legal pages, sample report, 404). Rebuilt 1 Dec 2026 to match the home page:
   same palette (off-white paper, black ink, one rose accent), Source Serif 4 headings, Libre Franklin text,
   the tick-U mark beside the name, and the dark footer. No JavaScript on these pages. */
:root {
  --bg: #f7f7f5;
  --surface: #ebebe8;
  --card: #ffffff;
  --ink: #000000;
  --muted: #5e5e5a;
  --line: #dcdcd6;
  --accent: #d0106f;
  --accent-dark: #a30c57;
  --ok: #1f6b46;
  --warn: #8a5a00;
  --info: #24508f;
  --inv-bg: #000000;
  --inv-ink: #f7f7f5;
  --inv-muted: #a3a39e;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-text: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font-text); }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
::selection { background: color-mix(in oklab, var(--accent) 22%, transparent); }
a { color: var(--accent-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }

/* capacity switch: <body data-status="open"> or "full" */
[data-status="open"] .when-full { display: none; }
[data-status="full"] .when-open { display: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--inv-ink); padding: 10px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 500 22px/1 var(--font-display); letter-spacing: -0.02em; }
.brand__mark { height: 21px; width: auto; flex: none; }
.brand__mark path, .foot__mark path { fill: none; stroke: var(--accent); stroke-width: 100; stroke-linecap: round; stroke-linejoin: round; }
.nav nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding-block: 6px; }
@media (max-width: 560px) { .top { position: static; } .nav { min-height: 56px; } .nav nav { gap: 4px 16px; } .nav nav a { font-size: 0.9rem; } }

/* page body */
main { display: block; }
.doc { max-width: 760px; padding-block: 48px 72px; }
.doc > :first-child { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.3rem); line-height: 1.06; margin: 0 0 12px; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.75rem); line-height: 1.2; margin: 44px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 14px; max-width: 68ch; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 6px; }
li::marker { color: var(--accent); }
strong { font-weight: 600; }
.updated, .small { font-size: 0.92rem; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.draft { background: #fff6e8; border: 1px solid #f3d3a2; color: #5c3d00; border-radius: 8px; padding: 10px 14px; font-size: 0.9rem; margin: 0 0 28px; }

/* tables */
.table-scroll { overflow-x: auto; margin: 6px 0 18px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: color-mix(in oklab, var(--surface) 55%, var(--card)); }
@media (max-width: 640px) { .table-scroll > table:not(.contact) { min-width: 560px; } .table-scroll { margin-inline: -20px; padding-inline: 20px; } }
.contact th { text-transform: none; letter-spacing: 0; font-size: 0.95rem; width: 34%; color: var(--ink); background: transparent; font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; border-radius: 6px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform 120ms var(--ease-out), background-color 120ms ease; }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .nav nav a:hover { color: var(--ink); }
  .btn:hover { background: var(--accent-dark); }
  .btn--ghost:hover { background: var(--card); }
  .foot a:hover { color: var(--inv-ink); }
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* footer (matches the home page's dark footer) */
.foot { background: var(--inv-bg); color: var(--inv-muted); padding-block: 48px 36px; font-size: 0.95rem; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px; align-items: start; }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--inv-ink); text-decoration: none; font: 400 30px/1 var(--font-display); letter-spacing: -0.02em; }
.foot__mark { height: 28px; width: auto; }
.foot__lede { color: var(--inv-ink); font: 400 1.05rem/1.4 var(--font-display); max-width: 34ch; margin: 14px 0 0; }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 40px; justify-content: end; }
.foot__links a { color: var(--inv-muted); text-decoration: none; }
.foot__legal { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid #2a2a28; font-size: 0.85rem; max-width: none; }
@media (max-width: 720px) { .foot__top { grid-template-columns: 1fr; } .foot__links { justify-content: start; } }

/* sample report */
.report h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.howmade, .unlock { border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.howmade { background: var(--card); border: 1px solid var(--line); }
.unlock { background: color-mix(in oklab, var(--accent) 7%, var(--card)); border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line)); }
.howmade p, .unlock p { margin: 6px 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.locked td { color: var(--muted); background: color-mix(in oklab, var(--surface) 50%, var(--card)); }
.grade { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 5px; font-weight: 700; color: #fff; font-size: 0.9em; }
.gA { background: var(--ok); } .gB { background: var(--info); } .gC { background: var(--warn); }
.res { font-weight: 600; white-space: nowrap; }
.res.pass { color: var(--ok); } .res.contested { color: var(--warn); } .res.fail { color: var(--accent-dark); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; }

/* 404 */
.nf { padding-block: 14vh 18vh; }

@media (prefers-reduced-motion: reduce) { .btn { transition: background-color 120ms ease; } .btn:active { transform: none; } }
@media print { .top, .foot, .skip { display: none; } body { background: #fff; } .doc { padding-block: 0; } }

/* Sample report: page images of the PDF (readable on any phone, no download) */
.doc.sample { max-width: 900px; }
.pages { display: grid; gap: 18px; margin-top: 28px; }
.pages a { display: block; border-radius: 6px; }
.pages a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pages img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06); }
.sample .actions { margin-top: 20px; }
@media (max-width: 560px) { .sample .actions .btn { flex: 1 1 100%; justify-content: center; } .pages { gap: 12px; } }


/* design v3 (2 Dec 2026): "Sahi" in go-green, a free-preview button in every header, squared paper behind the title */
.sahi { color: #22c55e; }
.brand__word { white-space: nowrap; }
body { position: relative; isolation: isolate; }
body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 420px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(52, 64, 92, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 64, 92, .10) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center top;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.nav nav { margin-left: auto; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.top__cta { flex: none; }
@media (max-width: 560px) {
  .nav { row-gap: 6px; }
  .nav nav { order: 3; width: 100%; margin-left: 0; }
  .top__cta { margin-left: auto; min-height: 38px; padding: 0 12px; font-size: 0.88rem; }
}

/* company pages (About, Contact, Pricing; 2 Dec 2026) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 18px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0 0 8px; font-size: 0.98rem; }
.card p:last-child { margin-bottom: 0; }
.card .big { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.card .pkg__price { font: 400 2.7rem/1 var(--font-display); letter-spacing: -0.02em; margin: 2px 0 14px !important; font-variant-numeric: tabular-nums; }
.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticklist li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 0.98rem; }
.ticklist svg { width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 3px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 12%, transparent); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
address { font-style: normal; }
@media (max-width: 720px) { .cards, .cards--3 { grid-template-columns: minmax(0, 1fr); } }
.table-scroll > table.fit:not(.contact) { min-width: 0; }
@media (max-width: 480px) { table.fit th, table.fit td { padding: 9px 8px; font-size: 0.86rem; } table.fit th { letter-spacing: 0.02em; } }
