/* Osmosis public site — brand system: BRAND_SYSTEM.md / BRAND_EXPRESSION_GUIDE.md.
   Deep still surface; one interactive accent (brand teal); line language; settle motion only. */

:root {
  /* Canonical Osmosis brand tokens (founder-approved package, brand/osmosis/). One hue family + one gradient. */
  --brand-800: #073540;   /* depth field — dark sections / app icon */
  --brand-700: #0A4A58;   /* primary ink — the resolved "known"; primary actions */
  --brand-600: #0E5E6F;   /* accent — gradient midpoint */
  --muted-400: #8A938F;   /* gradient origin — the dilute "unknown" */
  --ink-900: #16211F;     /* warm-black — headings */
  --ink-600: #5A6664;     /* secondary ink — body copy */
  --ink-500: #8A938F;     /* muted captions */
  --ink-300: #D8D6CE;     /* warm hairline */
  --ground: #FBFAF7;      /* warm white — primary ground */
  --ground-alt: #F2F1EC;  /* warm ground — panels */
  --brand-100: #E3EEF1;   /* light teal tint (derived, same family) */
  --brand-050: #F2F1EC;
  /* Semantic product colors preserved (status/accessibility — never flattened into brand). */
  --green: #1E7A46;
  --yellow: #B3820F;
  --red: #B23A32;
  --osmosis-gradient: linear-gradient(90deg, #8A938F 0%, #0E5E6F 52%, #0A4A58 100%);
  --radius-card: 12px;
  --radius-input: 10px;
  --radius-pill: 24px;
  --max: 1080px;
  /* Local/system Inter path — NO external font request (zero-external-requests doctrine preserved). */
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* PRIMARY WORDMARK — lowercase "osmosis", Inter 500, +1% tracking, the one approved gradient on light
   grounds. Local/system Inter (no Google Fonts). Reversed = solid warm white; mono = solid teal. */
.osmosis-wordmark {
  font-family: var(--font); font-weight: 500; letter-spacing: 0.01em; line-height: 1;
  text-transform: lowercase; white-space: nowrap;
  background: var(--osmosis-gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.osmosis-wordmark--reversed { background: none; -webkit-text-fill-color: initial; color: var(--ground); }
.osmosis-wordmark--mono { background: none; -webkit-text-fill-color: initial; color: var(--brand-700); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; font-family: var(--font); color: var(--ink-900); background: var(--ground);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand-600); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand-700); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--brand-100);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 20px;
}
/* Nav identity = the WORDMARK alone (never the O beside it). The gradient wordmark on the warm ground. */
.brandmark { display: inline-flex; align-items: center; text-decoration: none; }
.brandmark .word { font-size: 21px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--ink-600); font-size: 15px; font-weight: 600; }
.nav-links a[aria-current="page"] { color: var(--brand-700); }
.nav-links a:hover { color: var(--brand-700); }
.btn {
  /* Primary action = solid Brand 700 (the gradient is not a button fill — brand doctrine, Part N). */
  display: inline-block; background: var(--brand-700); color: var(--ground) !important; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-700);
}
.btn:hover { background: var(--brand-800); border-color: var(--brand-800); }
.btn.ghost { background: transparent; color: var(--brand-700) !important; }
.btn.ghost:hover { background: var(--brand-050); }
.btn.big { font-size: 17px; padding: 14px 28px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
section.alt { background: var(--ground-alt); }
section.deep { background: var(--brand-800); color: var(--ground); }
section.deep a { color: #C7D2D0; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -0.5px; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: clamp(24px, 3.5vw, 32px); line-height: 1.2; letter-spacing: -0.3px; margin: 0 0 12px; font-weight: 800; color: var(--brand-700); }
section.deep h2 { color: #fff; }
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.4px; font-size: 12.5px; font-weight: 700;
  color: var(--brand-600); margin: 0 0 10px;
}
section.deep .eyebrow { color: #9FB6B4; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-600); max-width: 46em; }
section.deep .lede { color: #C7D2D0; }
.muted { color: var(--ink-500); }
.grid { display: grid; gap: 24px; }
@media (min-width: 760px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--ground); border: 1px solid var(--brand-100); border-radius: var(--radius-card);
  padding: 24px;
}
section.deep .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }

/* ---------- membrane motif (the brand's signature line) ---------- */
.membrane-rule { display: flex; justify-content: center; padding: 8px 0 0; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero .wrap { max-width: 900px; }
.settle { animation: settle 700ms ease-out both; }
.settle.d1 { animation-delay: 120ms; }
.settle.d2 { animation-delay: 240ms; }
@keyframes settle {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- product mockups (hand-built, real-shaped content) ---------- */
.mock {
  background: var(--ground); border: 1px solid var(--ink-300); border-radius: 18px;
  padding: 18px; box-shadow: 0 12px 32px rgba(10, 74, 88, 0.10);
  font-size: 14px; line-height: 1.45; max-width: 380px; margin: 0 auto;
}
.mock .mock-title { font-weight: 800; color: var(--brand-700); font-size: 15px; margin-bottom: 10px; }
.mock .row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--brand-100); border-radius: var(--radius-card); margin-bottom: 8px;
  background: #fff;
}
.mock .row.done { background: var(--brand-050); border-color: var(--brand-600); }
.mock .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mock .dot.g { background: var(--green); }
.mock .dot.y { background: var(--yellow); }
.mock .meta { color: var(--ink-500); font-size: 12.5px; }
.mock .big-calm { font-size: 16px; color: var(--ink-600); padding: 26px 6px; text-align: center; }
.mock .chip {
  display: inline-block; border: 1px solid var(--ink-300); border-radius: var(--radius-pill);
  padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--ink-600);
}
.mock .chip.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
figure.mockfig { margin: 0; }
figure.mockfig figcaption { text-align: center; font-size: 13px; color: var(--ink-500); margin-top: 10px; }

/* ---------- pricing ---------- */
.band-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.band-table th, .band-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--brand-100); }
.band-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-500); }
.band-table .free { color: var(--green); font-weight: 800; }
.table-scroll { overflow-x: auto; }

/* ---------- prose (legal etc.) ---------- */
.prose { max-width: 46em; }
.prose h1 { font-size: 32px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose h3 { font-size: 18px; margin-top: 24px; }
.legal-doc mark.placeholder { background: #FEF3C7; padding: 0 4px; border-radius: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-800); color: #C7D2D0; padding: 48px 0; font-size: 14.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cols { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr; } }
.footer-cols ul { list-style: none; padding: 0; margin: 8px 0 0; }
.footer-cols li { margin: 6px 0; }
.footer-principle { font-style: italic; opacity: 0.9; margin-top: 10px; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 13px; opacity: 0.85; }

/* ---------- mobile nav ---------- */
@media (max-width: 640px) {
  .nav-inner { padding: 12px 14px; gap: 12px; }
  .nav-links { gap: 12px; white-space: nowrap; }
  .nav-links a.hide-sm, .nav-links a.hide-home { display: none; }
  .nav-links .btn { padding: 8px 14px; font-size: 14px; }
  section { padding: 52px 0; }
  .hero { padding: 64px 0 48px; }
}
