/* Shared design layer for eveniris.com — 2026-09-13 rebuild.
 *
 * One family: Satoshi (already licensed here, FFL — files used as shipped).
 * Cool off-white ground, black display type, the lens green only ever inside
 * photographs, where it is a real simulator render. No serif, no eyebrows.
 *
 * Token NAMES are unchanged from earlier generations on purpose: every page
 * that used var(--bg)/var(--text)/... flips with this file.
 */

/* @font-face rules live in fonts.css, linked from each page before this file. */

:root {
  --bg: #f3f5f4;        /* cool off-white */
  --surface: #ffffff;
  --surface2: #e9ecea;
  --border: rgba(0,0,0,0.10);   /* hairline: the ink at 10% */
  --border2: rgba(0,0,0,0.18);  /* control borders */
  --text: #000000;
  --dim: rgba(0,0,0,0.82);      /* body copy */
  --muted: rgba(0,0,0,0.58);    /* secondary, 5.1:1 on the ground */
  --header-height: 66px;
  --accent: #0b5c3f;    /* deep green, links only, 7.4:1 */
  --accent2: #06432d;
  --tint: #e7efea;
  --ochre: #2c302d;     /* legacy name; no second colour any more */
  --ochre-tint: #e9ecea;
  --lens: #0b5c3f;
  --mint: #40d2a0;      /* the app accent — ONLY inside dark frames */
  --ink-dark: #070a08;
  --radius: 4px;
  --display: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --ui: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --lensfont: 'Handjet', 'Courier New', monospace;
}

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; background: var(--bg); color-scheme: light; scroll-padding-top: calc(var(--header-height) + 16px); scrollbar-gutter: stable; font-synthesis: none }
body { background: var(--bg); color: var(--text); font-family: var(--ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility }
::selection { background: rgba(0,0,0,0.14) }
:root { caret-color: var(--accent); accent-color: var(--accent) }
a { color: var(--accent) }
a:hover { color: var(--accent2) }

:where(a):focus-visible,
:where(button):focus-visible,
:where(summary):focus-visible { outline: 2px solid #005fcc; outline-offset: 3px; border-radius: 3px }
:focus:not(:focus-visible) { outline: 0 }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243,245,244,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .1s cubic-bezier(.25,.46,.45,.94), background .1s cubic-bezier(.25,.46,.45,.94);
  font-family: var(--ui);
}
.site-nav.stuck { border-bottom-color: var(--border); background: rgba(243,245,244,0.86) }
.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px }
.site-nav .site-wrap { display: flex; align-items: center; gap: 8px; height: var(--header-height) }
.site-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; font-size: 1.125rem; color: var(--text); text-decoration: none }
.site-brand svg { width: 20px; height: 20px; color: var(--accent); fill: currentColor; shape-rendering: crispEdges }
.site-links { display: flex; gap: 2px }
.site-links a { color: var(--dim); font-size: 0.9375rem; font-weight: 400; padding: 8px 12px; text-decoration: none; transition: color .18s }
.site-links a:hover { color: var(--text) }
.site-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent) }
.site-cta { background: var(--text); color: #fff; font-weight: 500; font-size: 0.9375rem; padding: 10px 18px; border-radius: 4px; text-decoration: none; transition: background .15s; white-space: nowrap }
.site-cta:active { transform: scale(0.97); transition-duration: 80ms }
@media (hover: hover) { .site-cta:hover { background: var(--accent); color: #fff } }
@media (max-width: 900px) { .site-links { display: none } }

/* ── Page masthead, for document pages ───────────────────────────────────── */
.site-mast { max-width: 760px; margin: 0 auto; padding: 84px 24px 0 }
.site-mast .eyebrow { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px }
.site-mast h1 { font-family: var(--display); font-size: clamp(2.3rem, 5.6vw, 3.6rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; margin: 0; text-wrap: balance }
.site-mast .lede { color: var(--dim); font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.55; margin: 22px 0 0; max-width: 640px }
.site-mast .meta { color: var(--muted); font-size: 0.88rem; margin: 18px 0 0 }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.site-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 4px; font-weight: 500; font-size: 1rem; text-decoration: none; transition: background .18s, border-color .18s; font-family: var(--ui) }
.site-btn-p { background: var(--text); color: #fff }
.site-btn-p:hover { background: #2c302d; color: #fff }
.site-btn-s { background: transparent; color: var(--text); border: 1px solid var(--border2) }
.site-btn-s:hover { border-color: var(--text); color: var(--text) }
.site-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--text); padding: 54px 0 64px; margin-top: 110px; font-family: var(--ui) }
.site-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px }
.site-foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; font-size: 1.125rem; color: var(--text); text-decoration: none }
.site-foot-brand svg { width: 18px; height: 18px; color: var(--accent); fill: currentColor; shape-rendering: crispEdges }
.site-foot-tag { color: var(--dim); font-size: 0.92rem; margin: 13px 0 0; max-width: 280px; line-height: 1.6 }
.site-foot-col h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 12px }
.site-foot-col a { display: block; color: var(--dim); font-size: 0.95rem; padding: 5px 0; text-decoration: none }
.site-foot-col a:hover { color: var(--text) }
.site-foot-base { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.86rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap }
@media (max-width: 900px) { .site-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px } }
@media (max-width: 520px) { .site-foot-grid { grid-template-columns: 1fr } }

/* ── Typography shared by every page ──────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.022em; text-wrap: balance }
h4 { font-family: var(--ui); font-weight: 600 }

/* The lens line: a sentence set the way the glasses set it. Dark ground only. */
.site-lens { font-family: var(--lensfont); font-weight: 500; color: var(--mint); background: var(--ink-dark); border-radius: 4px; padding: 14px 18px; font-size: 1.35rem; line-height: 1.25; letter-spacing: 0.01em }
.site-lens-inline { font-family: var(--lensfont); font-weight: 500; color: var(--accent); font-size: 1.2em }

/* Document pages (privacy, fair use, terms). */
.site-doc { max-width: 700px; margin: 0 auto; padding: 34px 0 0 }
.site-doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em }
.site-doc h2 { font-size: 1.55rem; font-weight: 400; margin: 50px 0 12px; letter-spacing: -0.01em }
.site-doc h3 { font-size: 1.15rem; font-family: var(--ui); font-weight: 600; margin: 30px 0 8px }
.site-doc .logo { margin-bottom: 22px }
.site-doc .updated { font-size: 0.86rem; color: var(--muted); margin: 14px 0 34px }
.site-doc .lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--dim); line-height: 1.6 }
.site-doc p, .site-doc li { font-size: 1.02rem; line-height: 1.68 }
.site-doc .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 26px 0 }
.site-doc .foot { margin-top: 46px; border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); font-size: 0.88rem; line-height: 1.7 }
.site-doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem }
.site-doc th, .site-doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border) }
.site-doc th { font-family: var(--ui); font-weight: 600; color: var(--dim); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase }
.site-doc code, .site-doc pre { background: var(--surface2); border-radius: 3px; color: var(--text) }
.site-doc code { padding: 0.1em 0.35em; font-size: 0.9em }
.site-doc pre { padding: 14px 16px; overflow-x: auto }

/* A flex item defaults to min-width:auto, so a <pre> with overflow-x:auto can
   never actually shrink — one long shell command then pushes the whole page
   sideways on a phone (agent.html, 286px of it). */
pre { max-width: 100% }
ol.steps li > div, .steps li > div, ul.pts li > span { min-width: 0 }
img { max-width: 100%; height: auto }

/* Contents box on the legal pages (privacy, terms). Specific to .site-doc so
   its heading is an eyebrow, not the document h2 that .site-doc h2 would make it. */
.site-doc .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px 10px; margin: 0 0 10px }
.site-doc .toc h2 { font-family: var(--ui); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px }
.site-doc .toc ol { columns: 2; column-gap: 28px; margin: 0 0 6px; padding-left: 20px }
.site-doc .toc li { font-size: 0.92rem; line-height: 1.5; margin-bottom: 5px; break-inside: avoid }
.site-doc .toc a { color: var(--dim); text-decoration: none }
.site-doc .toc a:hover { color: var(--text); text-decoration: underline }
@media (max-width: 560px) { .site-doc .toc ol { columns: 1 } }
/* Anchored headings land below the sticky nav, not under it. */
.site-doc h2, .site-doc h3 { scroll-margin-top: 84px }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important }
}
