/* Omnigral Growth Engine — shared stylesheet (home + legal pages). No framework, no build step.
   Design: Claude Design project "Omnigral" (2026-09-24); tokens in docs/ui/tokeny-strony.md. */

/* ---------- Fonts (IBM Plex, SIL OFL 1.1 — see fonts/OFL.txt) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-serif-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light dark;

  /* Colour — light theme */
  --c-bg: #fbfaf7;
  --c-surface: #f2f0ea;
  --c-ink: #16211d;
  --c-muted: #4c5853;
  --c-line: #dcd8cf;
  --c-line-strong: #16211d;
  --c-accent: #1f6f5c;
  --c-accent-hover: #185a4a;
  --c-on-accent: #ffffff;
  --c-focus: #1f6f5c;

  /* Type */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.9375rem;   /* 15px */
  --text-base: 1.0625rem; /* 17px */
  --text-md: 1.25rem;     /* 20px */
  --text-lg: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --text-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --text-2xl: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
  --leading-tight: 1.12;
  --leading-snug: 1.35;
  --leading-body: 1.6;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --gutter: 1rem;
  --measure: 38rem;
  --page: 72rem;

  /* Radii */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0f1412;
    --c-surface: #161d1a;
    --c-ink: #e7ebe8;
    --c-muted: #a4b0ab;
    --c-line: #2c3632;
    --c-line-strong: #e7ebe8;
    --c-accent: #6cc9a8;
    --c-accent-hover: #8ad8bb;
    --c-on-accent: #0b1a15;
    --c-focus: #8ad8bb;
  }
}

@media (min-width: 48em) { :root { --gutter: 2.5rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: var(--leading-tight); font-weight: 600; text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: var(--c-accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
::selection { background: var(--c-accent); color: var(--c-on-accent); }

.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 10; padding: var(--space-2) var(--space-4);
  background: var(--c-ink); color: var(--c-bg); text-decoration: none; }
.skip-link:focus { top: var(--space-3); color: var(--c-bg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding-block: var(--space-4); border-bottom: 1px solid var(--c-line); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--c-ink); text-decoration: none; font-weight: 600; margin-right: auto; }
.brand:hover { color: var(--c-ink); }
.brand img { width: 24px; height: 24px; }
.brand__sub { color: var(--c-muted); font-weight: 400; }
.site-nav { order: 3; flex-basis: 100%; }
.site-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); font-size: var(--text-sm); }
.site-nav a { color: var(--c-muted); text-decoration: none; padding-block: var(--space-1); display: inline-block; }
.site-nav a:hover { color: var(--c-ink); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.lang { display: flex; gap: var(--space-2); list-style: none; padding: 0; font-size: var(--text-sm); overflow-wrap: normal; white-space: nowrap; }
.lang a, .lang span { display: block; padding: var(--space-1) 0; text-decoration: none; color: var(--c-muted); }
.lang li + li::before { content: "/"; color: var(--c-line); margin-right: var(--space-2); float: left; padding-block: var(--space-1); }
.lang a:hover { color: var(--c-ink); text-decoration: underline; }
.lang [aria-current] { color: var(--c-ink); font-weight: 600; }
@media (min-width: 60em) {
  .site-nav { order: 0; flex-basis: auto; margin-right: auto; }
  .brand { margin-right: var(--space-5); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease; overflow-wrap: normal; white-space: nowrap; }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--primary:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.btn--sm { min-height: 40px; padding: 0.45rem 0.9rem; font-size: var(--text-sm); }

/* ---------- Sections: report layout, heading column + body column ---------- */
.section { padding-block: var(--space-8); }
.section__grid { display: grid; gap: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--c-line-strong); }
.section__head { display: grid; gap: var(--space-3); align-content: start; }
.section__no { font-family: var(--font-serif); font-size: var(--text-md); color: var(--c-muted); font-variant-numeric: lining-nums; }
.section__head h2 { font-size: var(--text-xl); }
.section__body { display: grid; gap: var(--space-6); min-width: 0; }
.lead { font-size: var(--text-md); line-height: var(--leading-snug); color: var(--c-muted); max-width: var(--measure); }
.note { font-size: var(--text-sm); color: var(--c-muted); max-width: var(--measure); }
@media (min-width: 56em) {
  .section { padding-block: var(--space-9) 0; }
  .section:last-of-type { padding-bottom: var(--space-9); }
  .section__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--space-7); }
  .section__head { position: sticky; top: var(--space-5); }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-7) var(--space-8); }
.hero__grid { display: grid; gap: var(--space-8); align-items: center; }
.hero__copy { display: grid; gap: var(--space-5); }
.hero h1 { font-size: var(--text-2xl); max-width: 15ch; letter-spacing: -0.025em; }
.hero .lead { color: var(--c-ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; }
.actions p { font-size: var(--text-sm); color: var(--c-muted); }
.principle { margin-top: var(--space-4); padding-left: var(--space-4); border-left: 2px solid var(--c-accent); max-width: var(--measure); }
.principle p { font-family: var(--font-serif); font-size: var(--text-lg); line-height: var(--leading-snug); }
.principle footer { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--c-muted); }
@media (min-width: 60em) {
  .hero { padding-block: var(--space-9); }
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}

/* ---------- Loop diagram ---------- */
.loop { display: grid; gap: var(--space-4); }
.loop__caption { font-size: var(--text-sm); color: var(--c-muted); }
.loop__stage { position: relative; }
.loop__ring { display: none; color: var(--c-muted); }
.loop__ring .ring-arc { fill: none; stroke: currentColor; stroke-width: 0.35; }
.loop__ring .ring-head { fill: currentColor; }
.loop__ring .ring-dot { fill: var(--c-bg); stroke: var(--c-accent); stroke-width: 0.6; }
.loop__list { list-style: none; padding: 0 0 0 var(--space-5); display: grid; gap: var(--space-4); border-left: 1px solid var(--c-line); }
.loop__node strong { display: block; font-weight: 600; }
.loop__node span { display: block; font-size: var(--text-sm); color: var(--c-muted); line-height: var(--leading-snug); }
.loop__core { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--c-muted); }
.loop__core b { color: var(--c-ink); font-weight: 400; font-family: var(--font-serif); }

@media (min-width: 36em) {
  .loop__stage { aspect-ratio: 4 / 3; max-width: 34rem; width: 100%; margin-inline: auto; }
  .loop__ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .loop__list { display: block; padding: 0; border: 0; }
  .loop__node { position: absolute; width: 26%; }
  .loop__node:nth-child(1) { top: 0; left: 50%; transform: translate(-50%, 0); text-align: center; width: 44%; }
  .loop__node:nth-child(2) { right: 0; top: 50%; transform: translateY(-50%); padding-left: var(--space-2); }
  .loop__node:nth-child(3) { bottom: 0; left: 50%; transform: translate(-50%, 0); text-align: center; width: 44%; }
  .loop__node:nth-child(4) { left: 0; top: 50%; transform: translateY(-50%); text-align: right; padding-right: var(--space-2); }
  .loop__node span { font-size: var(--text-xs); }
  .loop__core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24%; margin: 0; text-align: center; font-size: var(--text-xs); line-height: var(--leading-snug); }
  .loop__core b { display: block; font-size: var(--text-md); }
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--space-1) var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--c-line); counter-increment: step; }
.step:first-child { padding-top: 0; }
.step::before { content: counter(step); grid-row: span 2; font-family: var(--font-serif); font-size: var(--text-md); line-height: 1.2; color: var(--c-accent); }
.step h3 { font-size: var(--text-base); }
.step p { color: var(--c-muted); max-width: var(--measure); }
@media (min-width: 48em) {
  .step { grid-template-columns: 2.5rem minmax(0, 12rem) minmax(0, 1fr); }
  .step::before { grid-row: auto; }
}

/* ---------- Policy table ---------- */
.state { display: inline-flex; align-items: center; gap: 0.5em; color: var(--c-ink);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.04em; line-height: 1.5; white-space: nowrap; overflow-wrap: normal; }
.state svg { width: 0.7em; height: 0.7em; flex: none; }

.policy { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.policy caption { text-align: left; caption-side: bottom; padding-top: var(--space-4); color: var(--c-muted); }
.policy caption strong { color: var(--c-ink); font-weight: 600; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4) var(--space-3) 0; }
.policy thead th { font-weight: 500; color: var(--c-muted); border-bottom: 1px solid var(--c-line-strong); padding-top: 0; }
.policy tbody tr { border-bottom: 1px solid var(--c-line); }
.policy tbody tr.is-learning { border-top: 1px dashed var(--c-line-strong); }
.policy tbody th { font-weight: 400; width: 9.5rem; }
.policy .cell-label { display: none; }
@media (max-width: 39.99em) {
  .policy thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .policy tbody tr { display: grid; gap: var(--space-2); padding-block: var(--space-4); }
  .policy th, .policy td { display: block; padding: 0; width: auto; }
  .policy .cell-label { display: block; font-size: var(--text-xs); color: var(--c-muted); }
}

/* ---------- Definition rows (features, roadmap) ---------- */
.rows { display: grid; }
.rows > div { display: grid; gap: var(--space-1) var(--space-5); padding-block: var(--space-4); border-bottom: 1px solid var(--c-line); }
.rows > div:first-child { padding-top: 0; }
.rows dt { font-weight: 600; }
.rows dd { color: var(--c-muted); max-width: var(--measure); }
.rows .soon { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--c-muted); }
@media (min-width: 48em) { .rows > div { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); } }

/* ---------- Data handling ---------- */
.dataflow { display: grid; gap: var(--space-6); }
.dataflow h3 { font-size: var(--text-base); padding-bottom: var(--space-2); border-bottom: 1px solid var(--c-line-strong); }
.dataflow h3 span { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--c-muted); }
.dataflow ul { list-style: none; padding: 0; }
.dataflow li { padding-block: var(--space-2); border-bottom: 1px solid var(--c-line); font-size: var(--text-sm); }
.never { font-size: var(--text-base); max-width: var(--measure); }
@media (min-width: 40em) { .dataflow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Delivery ---------- */
.prose-cols { display: grid; gap: var(--space-5); }
.prose-cols h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.prose-cols p { color: var(--c-muted); max-width: var(--measure); }
.prose-cols p + p { margin-top: var(--space-3); }
@media (min-width: 48em) { .prose-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); } }

/* ---------- Google data ---------- */
.plain { display: grid; gap: var(--space-3); max-width: var(--measure); }
.plain ul { padding-left: 1.2em; display: grid; gap: var(--space-2); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: var(--space-5); justify-items: start; }
.contact p { font-family: var(--font-serif); font-size: var(--text-lg); line-height: var(--leading-snug); max-width: 30ch; }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-7); font-size: var(--text-sm); color: var(--c-muted); }
.site-footer__inner { display: grid; gap: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--c-line); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer a { color: var(--c-ink); }
.site-footer a:hover { color: var(--c-accent); }
.site-footer address { font-style: normal; }
@media (min-width: 48em) { .site-footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }

/* ---------- Long-form legal pages (/privacy, /terms, /pl/prywatnosc, /pl/regulamin) ---------- */
.prose { max-width: 44rem; padding-block: var(--space-7) var(--space-8); }
.prose > * + * { margin-top: var(--space-4); }
.prose h1 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.prose h2 { font-size: var(--text-lg); margin-top: var(--space-7); }
.prose h3 { font-size: var(--text-md); margin-top: var(--space-6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-3); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: var(--space-2); }
.prose blockquote { padding-left: var(--space-4); border-left: 2px solid var(--c-line); color: var(--c-muted); }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin-block: var(--space-6); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--c-surface); padding: 0.1em 0.3em; border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose .meta { font-size: var(--text-sm); color: var(--c-muted); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .header-actions, .skip-link { display: none; }
  .section__head { position: static; }
}
