/* ==========================================================================
   Ogre Labs design system — one stylesheet for the company site and every app.

   How it works
   - Layout, components and typography live here and are shared by all pages.
   - Each app only chooses a palette (see "Palettes"): <html data-product="ogrecam">.
   - Light and dark are derived from that palette. Pages follow the visitor's
     system setting; the header button can force light or dark.
   - App-specific illustrations (rare) live in css/products/<id>.css.

   Sections: 1 Tokens · 2 Palettes · 3 Base · 4 Header/Footer · 5 Hero · 6 Layout
             7 Cards · 8 Documents · 9 Components · 10 Company pages · 11 Responsive
   ========================================================================== */

/* 1 · Tokens ------------------------------------------------------------- */
html {
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --content: 1160px;
  --reading: 820px;
  --radius: 20px;
  --radius-sm: 14px;
  --header-h: 76px;
  --on-brand: #fff;

  /* Inputs every palette provides: --brand --brand-2 --paper --paper-ink */
  --bg: var(--paper);
  --ink: var(--paper-ink);
  --surface: color-mix(in srgb, var(--bg) 38%, #fff);
  --muted: color-mix(in srgb, var(--ink) 72%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --accent: var(--brand);
  --accent-strong: color-mix(in srgb, var(--brand) 78%, #000);
  --accent-soft: color-mix(in srgb, var(--brand) 9%, var(--surface));
  --accent-2: var(--brand-2);
  --accent-2-soft: color-mix(in srgb, var(--brand-2) 11%, var(--surface));
  --btn: var(--brand);
  --btn-hover: var(--accent-strong);
  --warn: #b4472f;
  --warn-soft: color-mix(in srgb, var(--warn) 9%, var(--surface));
  --ok: #2f7d58;
  --ok-soft: color-mix(in srgb, var(--ok) 10%, var(--surface));
  --shadow: 0 12px 34px color-mix(in srgb, var(--ink) 9%, transparent);
  --header-bg: color-mix(in srgb, var(--bg) 92%, transparent);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html:not([data-mode="light"]) {
    --bg: color-mix(in srgb, var(--brand) 7%, #12141a);
    --ink: #f1f0f4;
    --surface: color-mix(in srgb, var(--bg) 93%, #fff);
    --accent: color-mix(in srgb, var(--brand) 55%, #fff);
    --accent-strong: color-mix(in srgb, var(--brand) 38%, #fff);
    --accent-soft: color-mix(in srgb, var(--brand) 20%, var(--surface));
    --accent-2: color-mix(in srgb, var(--brand-2) 60%, #fff);
    --accent-2-soft: color-mix(in srgb, var(--brand-2) 18%, var(--surface));
    --btn-hover: color-mix(in srgb, var(--brand) 86%, #000);
    --warn: #f08a72;
    --ok: #6fd1a0;
    --shadow: 0 14px 38px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
html[data-mode="dark"] {
  --bg: color-mix(in srgb, var(--brand) 7%, #12141a);
  --ink: #f1f0f4;
  --surface: color-mix(in srgb, var(--bg) 93%, #fff);
  --accent: color-mix(in srgb, var(--brand) 55%, #fff);
  --accent-strong: color-mix(in srgb, var(--brand) 38%, #fff);
  --accent-soft: color-mix(in srgb, var(--brand) 20%, var(--surface));
  --accent-2: color-mix(in srgb, var(--brand-2) 60%, #fff);
  --accent-2-soft: color-mix(in srgb, var(--brand-2) 18%, var(--surface));
  --btn-hover: color-mix(in srgb, var(--brand) 86%, #000);
  --warn: #f08a72;
  --ok: #6fd1a0;
  --shadow: 0 14px 38px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* 2 · Palettes — the only per-app styling. Add an app = add a block here. -- */
html, html[data-product="ogrelabs"] { --brand: #1f6a47; --brand-2: #a97636; --paper: #f6f8f5; --paper-ink: #1b2620; }
html[data-product="ogrecam"]        { --brand: #c9361b; --brand-2: #087080; --paper: #fff8ed; --paper-ink: #30232e; }
html[data-product="ogreclean"]      { --brand: #1a684e; --brand-2: #a97636; --paper: #f5f3ea; --paper-ink: #202b25; }
html[data-product="ogrescribe"]     { --brand: #3a6f93; --brand-2: #a85d45; --paper: #f4f6f7; --paper-ink: #1f2a30; }
html[data-product="ogresleep"]      { --brand: #5b4fc4; --brand-2: #2f8f6e; --paper: #f4f3fb; --paper-ink: #1c1b2e; }
html[data-product="ogrebill"]       { --brand: #286684; --brand-2: #3c806b; --paper: #f4f6f8; --paper-ink: #202a35; }

/* 3 · Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  display: flex; min-height: 100vh; flex-direction: column; margin: 0;
  background: var(--bg); color: var(--ink);
  font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.14; letter-spacing: -.04em; }
p { margin: 0; }
a { color: var(--accent-strong); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 26%, var(--surface)); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
code, kbd { padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font: .9em var(--mono); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--btn); color: var(--on-brand); font-weight: 750; }
.skip-link:focus { top: 12px; color: var(--on-brand); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap, .page-shell { width: min(100%, calc(var(--content) + 48px)); margin-inline: auto; padding-inline: 24px; }

/* 4 · Header and footer ---------------------------------------------------- */
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; width: min(100%, calc(var(--content) + 48px)); min-height: var(--header-h); margin-inline: auto; padding: 10px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.05rem; font-weight: 850; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: 40px; height: 40px; border-radius: 12px; object-fit: contain; }
.brand-name span { color: var(--accent); }
.site-nav { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav a { display: inline-flex; min-height: 40px; align-items: center; padding: 7px 12px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: .86rem; font-weight: 720; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { border-color: var(--line); background: var(--accent-soft); color: var(--accent-strong); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.return-link, .theme-toggle, .lang-switch {
  display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 6px 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 780 .85rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.return-link:hover, .theme-toggle:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); color: var(--ink); }
.return-link img { width: 22px; height: 22px; }
.theme-toggle { width: 42px; padding: 0; font-size: 1.05rem; }
.lang-switch { margin-left: 6px; max-width: 150px; padding-inline: 10px; font-weight: 650; }
.beta-note { margin: 0; padding: 8px 24px; background: var(--accent-soft); color: var(--muted); font-size: .85rem; text-align: center; }

.site-footer { margin-top: auto; padding: 44px 0 26px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 34ch; font-size: .92rem; }
.footer-col h2 { margin-bottom: 10px; color: var(--ink); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.footer-col a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; }

/* 5 · Hero --------------------------------------------------------------- */
.hero, .doc-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 52% 90% at 4% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 72%),
    radial-gradient(ellipse 40% 70% at 96% 12%, color-mix(in srgb, var(--brand-2) 13%, transparent), transparent 72%),
    var(--bg);
}
.hero { padding: clamp(46px, 7vw, 88px) 0; }
.doc-hero { padding: clamp(40px, 5vw, 64px) 0 clamp(30px, 4vw, 44px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr); align-items: center; gap: clamp(28px, 6vw, 76px); width: min(100%, calc(var(--content) + 48px)); margin-inline: auto; padding-inline: 24px; }
.hero-copy { max-width: 700px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.5rem, 6vw, 4.7rem); font-weight: 850; letter-spacing: -.065em; line-height: 1.05; }
.hero h1 em, .hero h1 .accent, .hero h1 .gradient-text, .doc-hero h1 em { color: var(--accent); font-style: normal; }
.lede { max-width: 650px; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent-strong); font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.section-kicker { margin: 0 0 8px; color: var(--accent-strong); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.doc-hero h1 { max-width: 24ch; margin-bottom: 14px; font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 850; letter-spacing: -.06em; }
.doc-hero .lede { max-width: 760px; }
.doc-hero .updated { margin-top: 16px; }
.updated, .fine-print { color: var(--muted); font-size: .86rem; }
.fine-print { padding-bottom: 48px; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 760 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.button:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); background: var(--accent-soft); color: var(--ink); }
.button-primary { border-color: transparent; background: var(--btn); color: var(--on-brand); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent); }
.button-primary:hover { background: var(--btn-hover); color: var(--on-brand); }
.button-quiet { background: color-mix(in srgb, var(--surface) 60%, transparent); }

/* Hero art: a screenshot in a phone / window frame, or a large app icon. */
.hero-art { display: flex; min-width: 0; justify-content: center; }
.device { position: relative; margin: 0; }
.device::before { content: ""; position: absolute; z-index: -1; inset: 8% -8% -6%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 68%); }
.device img { display: block; width: 100%; height: auto; }
.device-phone { width: min(100%, 290px); padding: 10px; border: 1px solid var(--line); border-radius: 40px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--ink) 6%, transparent); transform: rotate(2deg); }
.device-phone img { border-radius: 31px; }
.device-window { width: min(100%, 560px); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.device-window::after { content: ""; position: absolute; top: 12px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: #e9695c; box-shadow: 16px 0 #e8b64c, 32px 0 #61c554; }
.device-window img { margin-top: 34px; }
.device-icon { display: grid; width: min(100%, 300px); aspect-ratio: 1; place-items: center; border: 1px solid var(--line); border-radius: 64px; background: linear-gradient(150deg, var(--accent-soft), var(--surface)); box-shadow: var(--shadow); transform: rotate(-2deg); }
.device-icon img { width: 64%; border-radius: 28%; }
.device-tile { width: min(100%, 360px); overflow: hidden; border: 1px solid var(--line); border-radius: 48px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.app-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 12px; width: min(100%, 420px); padding: 30px 24px 26px; border: 1px solid var(--line); border-radius: 36px; background: linear-gradient(160deg, var(--accent-soft), var(--surface)); box-shadow: var(--shadow); }
.app-tile { grid-column: span 2; display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--ink); font-size: .84rem; font-weight: 750; letter-spacing: -.01em; text-decoration: none; }
.app-tile:nth-child(4) { grid-column: 2 / span 2; }
.app-tile:nth-child(5) { grid-column: 4 / span 2; }
.app-tile img { display: block; width: min(100%, 84px); aspect-ratio: 1; border-radius: 22%; box-shadow: 0 8px 18px color-mix(in srgb, var(--ink) 18%, transparent); transition: transform .18s; }
.app-tile:hover { color: var(--accent-strong); }
.app-tile:hover img { transform: translateY(-4px) scale(1.04); }

.trust-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; padding: 16px max(24px, calc((100vw - var(--content)) / 2)); border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.trust-item { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 9px; color: var(--muted); font-size: .86rem; text-align: center; }
.trust-item strong { color: var(--ink); }

/* 6 · Layout ------------------------------------------------------------- */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section + .section { padding-top: 0; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 12px; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 850; letter-spacing: -.055em; }
.section-heading p:last-child { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

/* 7 · Cards -------------------------------------------------------------- */
.feature-grid, .doc-grid, .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.feature-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card, .doc-card, .product-card, .legal-card {
  position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.feature-card::after, .doc-card::after { content: ""; position: absolute; top: -34px; right: -34px; width: 104px; height: 104px; border-radius: 50%; background: color-mix(in srgb, var(--brand-2) 11%, transparent); pointer-events: none; }
.feature-card:nth-child(even)::after, .doc-card:nth-child(even)::after { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.feature-card h3, .doc-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p, .doc-card p { color: var(--muted); font-size: .94rem; line-height: 1.65; }
.card-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); font-size: 1.2rem; }
.card-index { display: block; margin-bottom: 10px; color: var(--accent-strong); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.doc-card { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.doc-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); color: var(--ink); }
.doc-card p { margin-bottom: 14px; }
.doc-card .arrow { margin-top: auto; color: var(--accent-strong); font-size: .86rem; font-weight: 850; }
.doc-card .tag { margin-bottom: 12px; }

.tag, .pill { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: .74rem; font-weight: 780; letter-spacing: .02em; }

/* 8 · Documents (guides, policies, terms) ---------------------------------- */
.doc { width: min(100%, calc(var(--reading) + 48px)); margin-inline: auto; padding: clamp(28px, 4vw, 48px) 24px 84px; }
.doc.doc-wide { width: min(100%, calc(var(--content) + 48px)); }
.prose { min-width: 0; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 40px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: clamp(1.3rem, 3vw, 1.65rem); letter-spacing: -.04em; }
.prose h2:first-child { padding-top: 0; border-top: 0; }
.prose h3 { margin: 26px 0 8px; font-size: 1.1rem; letter-spacing: -.025em; }
.prose p, .prose li { color: var(--muted); line-height: 1.75; }
.prose p + p, .prose p + ul, .prose p + ol, .prose ul + p, .prose ol + p { margin-top: 13px; }
.prose ul, .prose ol { margin: 10px 0 18px; padding-left: 1.35rem; }
.prose li + li { margin-top: 6px; }
.prose strong, .prose b { color: var(--ink); }
.prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 18px; }
.spaced { margin-block: 28px; }

.callout { display: flex; align-items: flex-start; gap: 14px; margin: 20px 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; background: var(--accent-soft); color: var(--ink); }
.callout > :last-child, .callout p:last-child { margin-bottom: 0; }
.callout p { color: var(--muted); }
.callout p + p { margin-top: 10px; }
.callout strong { color: var(--ink); }
.callout-mark { flex: none; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--surface); color: var(--accent-strong); font-size: 1.15rem; }
.callout h2, .callout h3 { margin-bottom: 4px; font-size: 1.12rem; }
.callout-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout-ok { border-left-color: var(--ok); background: var(--ok-soft); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--accent-soft); box-shadow: var(--shadow); }
.cta h2 { margin-bottom: 6px; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.cta p { color: var(--muted); }
.cta .section-kicker { margin-bottom: 4px; }

.faq { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; color: var(--ink); font-weight: 750; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent-strong); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq > :not(summary) { margin: 0; padding: 14px 18px 4px; color: var(--muted); }
.faq > :last-child { padding-bottom: 16px; }
.faq-group { margin: 36px 0 12px; font-size: 1.25rem; }
.faq-group:first-child { margin-top: 0; }

.steps { display: grid; gap: 13px; margin: 18px 0; padding: 0; counter-reset: step; list-style: none; }
.steps > li { position: relative; margin: 0; padding: 16px 18px 16px 62px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; top: 14px; left: 16px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 850; }
.steps strong { display: block; color: var(--ink); }

.toc { margin: 0 0 26px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--accent-soft); }
.toc h2, .toc h3 { margin: 0 0 8px; padding: 0; border: 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.toc ol, .toc ul { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { color: var(--accent-strong); font-size: .93rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.table-wrap { margin: 16px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--accent-soft); color: var(--accent-strong); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

/* 9 · Components --------------------------------------------------------- */
.filter { position: sticky; z-index: 20; top: var(--header-h); padding: 12px 0; background: var(--bg); }
.filter-box { position: relative; }
.filter-box input { width: 100%; min-height: 48px; padding: 10px 44px 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; }
.filter-box input::placeholder { color: var(--muted); }
.filter-box input::-webkit-search-cancel-button { display: none; }
.filter-clear { position: absolute; top: 50%; right: 8px; display: none; width: 34px; height: 34px; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; }
.filter-clear:hover { background: var(--accent-soft); }
.filter-empty { display: none; padding: 26px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
[data-filter-item][hidden] { display: none !important; }

.license-list { display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.license-item { padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.license-item + .license-item { margin-top: 10px; }
.license-item h3 { margin: 0 0 2px; font-size: 1rem; }
.license-item p { color: var(--muted); font-size: .9rem; }
.license-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

/* Topic dialogs (progressively enhanced <details>/<dialog> content). */
dialog.detail-dialog { width: min(92vw, 640px); max-height: 86vh; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog.detail-dialog::backdrop { background: rgba(10, 10, 14, .55); }
.dialog-inner { padding: clamp(22px, 4vw, 34px); }
.dialog-close { float: right; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }

/* 10 · Company pages ----------------------------------------------------- */
.product-card { display: flex; flex-direction: column; gap: 14px; }
.product-card-head { display: flex; align-items: center; gap: 14px; }
.product-card-head img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 14%, transparent); }
.product-card h3 { font-size: 1.3rem; }
.product-card .tagline { color: var(--accent-strong); font-size: .9rem; font-weight: 700; }
.product-card p { color: var(--muted); font-size: .94rem; }
.product-card ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.product-card li { position: relative; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.product-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 800; }
.product-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.product-card-actions .button { min-height: 40px; padding: 7px 14px; font-size: .88rem; }
.doc-group { margin-bottom: 36px; }
.doc-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.doc-group-head img { width: 40px; height: 40px; border-radius: 12px; }
.doc-group-head h2 { font-size: 1.4rem; }
.legal-card h2 { margin-bottom: 10px; font-size: 1.2rem; }
.legal-card + .legal-card { margin-top: 16px; }
.legal-card p { color: var(--muted); }
.legal-card p + p { margin-top: 10px; }
.contact-line { display: inline-flex; align-items: center; gap: 10px; margin: 4px 8px 4px 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 750; text-decoration: none; }
.notfound { padding: clamp(60px, 12vw, 140px) 0; text-align: center; }
.notfound h1 { margin: 10px 0 14px; font-size: clamp(3rem, 10vw, 6rem); letter-spacing: -.07em; }
.notfound .hero-actions { justify-content: center; }
.notfound .lede { margin-inline: auto; }

/* 11 · Responsive and print ---------------------------------------------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  html { --header-h: 112px; }
  .feature-grid.cols-2 { grid-template-columns: 1fr; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { margin-top: 8px; }
  .device-phone { width: min(70%, 260px); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  html { --header-h: 102px; }
  .header-inner { padding: 8px 14px; }
  .brand { font-size: .96rem; }
  .brand img { width: 34px; height: 34px; }
  .return-link, .theme-toggle, .lang-switch { min-height: 38px; font-size: .78rem; }
  .return-link { padding-inline: 10px; }
  .wrap, .page-shell, .hero-inner, .doc { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .callout, .cta { padding: 16px; }
  .steps > li { padding-left: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  html { --bg: #fff; --ink: #111; --surface: #fff; --muted: #333; --shadow: none; }
  .site-header, .site-footer, .filter, .hero-art, .theme-toggle { display: none; }
  .prose, .feature-card, .doc-card, .callout, .faq { box-shadow: none; break-inside: avoid; }
  .faq > :not(summary) { display: block; }
}
