/*
 * SPDX-FileCopyrightText: 2026 Reach Out Labs GmbH
 * SPDX-License-Identifier: LicenseRef-Proprietary
 *
 * The 320px website in Dim Signal v2 (design/dim-signal/SPEC.md, section 6).
 * The tokens below keep the names and values of design/dim-signal/tokens.css,
 * which oss/web/src/app.css mirrors, so the site and the app match: Mineral
 * Daylight by default, Velvet Midnight under prefers-color-scheme: dark. There
 * is no JavaScript and no theme toggle. Bricolage Grotesque (display) and IBM
 * Plex Sans (body) are self-hosted; build.py fills in the hashed font paths.
 */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/bricolage-600.b34fc8c1ef.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-700.4c373ce3c1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-400.3b646991d3.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-500.0717336fb3.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/ibm-plex-600.8960851d69.woff2") format("woff2"); }
/* Metric-matched fallbacks (as in app.css) keep the layout still while the fonts load. */
@font-face { font-family: "Bricolage Fallback"; font-style: normal; font-weight: 600 700; src: local("Arial Bold"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 97.5%; ascent-override: 98%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Fallback"; font-style: normal; font-weight: 400 500; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 100.6%; ascent-override: 101%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Fallback"; font-style: normal; font-weight: 600 700; src: local("Arial Bold"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 98.2%; ascent-override: 103%; descent-override: 27%; line-gap-override: 0%; }

/* ======================================== Mineral Daylight (light, default) == */
:root {
  color-scheme: light dark;
  /* Surfaces */
  --color-canvas: #f2f5f9;
  --color-sidebar: #edf1f7;
  --color-surface: #ffffff;
  --color-surface-raised: #ffffff;
  --color-surface-hover: #f4f6fa;
  --color-surface-inset: #eaeff6;
  /* Text */
  --color-ink: #11161f;
  --color-ink-secondary: #384354;
  --color-ink-tertiary: #56647a;
  /* Lines */
  --color-line: #e3e8f0;
  --color-line-strong: #cbd3e1;
  /* Luminous Iris */
  --color-accent: #3e56e0;
  --color-accent-ink: #354bd4;
  --color-accent-tint: #ebefff;
  --color-accent-tint-strong: #dce3ff;
  --color-focus: #3e56e0;
  --color-indicator: #445ceb;
  /* High-contrast primary CTA */
  --color-cta: #11161f;
  --color-cta-hover: #242e3f;
  --color-cta-pressed: #344156;
  --color-on-cta: #ffffff;
  /* Warm Signal Coral-Amber: the logo's pulse dot */
  --color-signal: #d45520;
  --color-mark-dot: #ff8e53;   /* the logo pulse dot on the CTA tile (3:1 in both themes) */
  /* Status: the "Planned" pill */
  --color-warning: #8a4b00;
  --color-warning-tint: #fef1dc;

  /* Typography */
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-sans: "IBM Plex Sans", "IBM Plex Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --text-2xs: 0.6875rem;  --text-2xs--line-height: 1rem;
  --text-xs: 0.75rem;     --text-xs--line-height: 1.125rem;
  --text-sm: 0.8125rem;   --text-sm--line-height: 1.25rem;
  --text-base: 0.875rem;  --text-base--line-height: 1.375rem;
  --text-md: 0.96875rem;  --text-md--line-height: 1.5625rem;
  --text-lg: 1.125rem;    --text-lg--line-height: 1.5rem;
  --text-xl: 1.25rem;     --text-xl--line-height: 1.75rem;
  --text-2xl: 1.5rem;     --text-2xl--line-height: 1.95rem;
  --text-3xl: 1.875rem;   --text-3xl--line-height: 2.3rem;
  --text-4xl: 2.25rem;    --text-4xl--line-height: 2.65rem;
  --text-5xl: 3rem;       --text-5xl--line-height: 3.3rem;
  --text-display: clamp(2.5rem, 5vw, 4rem); --text-display--line-height: 1.06;
  --tracking-tight: -0.018em;
  --tracking-tighter: -0.026em;
  --tracking-wide: 0.04em;
  --tracking-display: -0.032em;

  /* Dimensions, radii, elevation, motion */
  --spacing-topbar: 56px;
  --spacing-control-lg: 36px;
  --spacing-touch: 44px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --surface-glass: rgb(255 255 255 / 0.86);
  --specular-edge: inset 0 1px 0 rgb(255 255 255 / 0.9);
  --elevation-tint-1: rgb(15 20 27 / 0.03);
  --elevation-tint-2: rgb(15 20 27 / 0.05);
  --elevation-tint-3: rgb(15 20 27 / 0.08);
  --elevation-tint-4: rgb(15 20 27 / 0.11);
  --elevation-tint-5: rgb(15 20 27 / 0.18);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 120ms;
  --measure-reading: 66ch;

  /* Site layout: the page gutter of .page-wrap (16, 24, 32px) */
  --gutter: 16px;
}
/* ================================================= Velvet Midnight (dark) == */
@media (prefers-color-scheme: dark) {
  :root {
    --color-canvas: #0f141b;
    --color-sidebar: #0f141b;
    --color-surface: #141a23;
    --color-surface-raised: #1a222e;
    --color-surface-hover: #1c2533;
    --color-surface-inset: #1e2736;
    --color-ink: #f1f5f9;
    --color-ink-secondary: #c8d3e1;
    --color-ink-tertiary: #8f9eb3;
    --color-line: #232d3b;
    --color-line-strong: #324054;
    --color-accent: #4c64eb;
    --color-accent-ink: #96abff;
    --color-accent-tint: #1c2640;
    --color-accent-tint-strong: #253254;
    --color-focus: #96abff;
    --color-indicator: #7b93ff;
    --color-cta: #f1f5f9;
    --color-cta-hover: #dce5f0;
    --color-cta-pressed: #c8d5e6;
    --color-on-cta: #0f141b;
    --color-signal: #ff8e53;
    --color-mark-dot: #c2410c;
    --color-warning: #f5be62;
    --color-warning-tint: #2b200e;
    --surface-glass: rgb(20 26 35 / 0.84);
    --specular-edge: inset 0 1px 0 rgb(255 255 255 / 0.06);
    --elevation-tint-1: rgb(0 0 0 / 0.28);
    --elevation-tint-2: rgb(0 0 0 / 0.38);
    --elevation-tint-3: rgb(0 0 0 / 0.46);
    --elevation-tint-4: rgb(0 0 0 / 0.54);
    --elevation-tint-5: rgb(0 0 0 / 0.66);
  }
}
:root {
  --shadow-xs: 0 1px 2px var(--elevation-tint-2);
  --shadow-sm: 0 2px 6px var(--elevation-tint-3), 0 1px 2px var(--elevation-tint-1);
  --shadow-md: 0 10px 28px var(--elevation-tint-4), 0 2px 8px var(--elevation-tint-2);
  --shadow-lg: 0 24px 64px var(--elevation-tint-5), 0 6px 16px var(--elevation-tint-3);
}
@media (min-width: 48rem) { :root { --gutter: 24px; } }
@media (min-width: 80rem) { :root { --gutter: 32px; } }
@media (prefers-reduced-motion: reduce) { :root { --duration-fast: 0ms; } }

/* ==================================================================== Base == */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (min-width: 40rem) { html { scroll-padding-top: calc(var(--spacing-topbar) + 16px); } }
body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--text-md--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--color-accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
a:hover { text-decoration-thickness: 2px; }
a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
time { font-variant-numeric: tabular-nums; }
::selection { background: var(--color-accent-tint-strong); color: var(--color-ink); }

.skip {
  position: absolute; left: 10px; top: -120px; z-index: 30;
  padding: 10px 16px;
  border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm);
  background: var(--color-surface-raised); color: var(--color-accent-ink);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; box-shadow: var(--shadow-md); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ============================================================ Header bar == */
.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
@media (min-width: 40rem) {
  .site-header { position: sticky; top: 0; z-index: 10; }
  @supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .site-header { background: var(--surface-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  }
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 6px; }
.site-header .logo { min-height: var(--spacing-touch); }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--color-ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-lg); line-height: var(--text-lg--line-height);
  letter-spacing: var(--tracking-tighter);
  border-radius: var(--radius-sm);
}
.logo svg { width: 28px; height: 28px; flex: none; }
.logo .tile { fill: var(--color-cta); }
.logo .mark { fill: var(--color-on-cta); }
.logo .dot { fill: var(--color-mark-dot); }

.site-nav { display: flex; gap: 4px; order: 3; width: 100%; margin: 0 -12px; padding-bottom: 8px; }
.site-nav a {
  display: inline-flex; align-items: center;
  min-height: var(--spacing-control-lg); padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--color-ink-secondary); text-decoration: none;
  font-size: var(--text-base); font-weight: 500;
}
.site-nav a:hover { background: var(--color-surface-hover); color: var(--color-ink); }
.site-nav a[aria-current="page"] { background: var(--color-accent-tint); color: var(--color-accent-ink); font-weight: 700; }
@media (min-width: 40rem) {
  .site-header .wrap { height: var(--spacing-topbar); flex-wrap: nowrap; padding-top: 0; }
  .site-header .logo { min-height: var(--spacing-control-lg); }
  .site-nav { order: 0; width: auto; margin: 0 0 0 12px; padding: 0; }
}

/* =============================================================== Buttons == */
/* .btn is the page's call to action; .signin is the compact one in the bar. Both
   use the high-contrast CTA, not an iris fill (SPEC 1, 6 step 3). */
.btn, .signin {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--color-cta); color: var(--color-on-cta);
  font-family: var(--font-sans); line-height: 1; font-weight: 600;
  white-space: nowrap; text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.btn { min-height: var(--spacing-touch); padding: 0 20px; font-size: var(--text-md); }
.signin { min-height: var(--spacing-control-lg); margin-left: auto; padding: 0 16px; font-size: var(--text-sm); }
.btn:hover, .signin:hover { background: var(--color-cta-hover); color: var(--color-on-cta); }
.btn:active, .signin:active { background: var(--color-cta-pressed); }
.linkish {
  display: inline-flex; align-items: center; min-height: var(--spacing-touch);
  font-weight: 600; text-decoration: none;
}
.linkish:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ================================================================== Type == */
h1, h2, h3 { margin: 0; color: var(--color-ink); font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--text-4xl); line-height: var(--text-4xl--line-height); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-3xl); line-height: var(--text-3xl--line-height); letter-spacing: var(--tracking-tighter); }
h3 { font-size: var(--text-lg); line-height: var(--text-lg--line-height); letter-spacing: var(--tracking-tight); }
@media (min-width: 48rem) {
  h2 { font-size: var(--text-4xl); line-height: var(--text-4xl--line-height); letter-spacing: var(--tracking-display); }
}
p { margin: 0 0 16px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--color-ink-tertiary);
  font-size: var(--text-xs); line-height: var(--text-xs--line-height); font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
}
.lede { max-width: 40rem; color: var(--color-ink-secondary); font-size: var(--text-lg); line-height: 1.75rem; }
@media (min-width: 48rem) { .lede { font-size: var(--text-xl); line-height: 2rem; } }
.small { color: var(--color-ink-tertiary); font-size: var(--text-sm); line-height: var(--text-sm--line-height); }

/* ============================================================== Sections == */
section { padding: 56px 0; }
@media (min-width: 48rem) { section { padding: 96px 0; } }
.band { background: var(--color-surface); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.section-head { max-width: 42rem; margin-bottom: 32px; }
.section-head:last-child { margin-bottom: 0; }
.section-head h2 + p { margin-top: 16px; }
.section-head p:not(.eyebrow) { color: var(--color-ink-secondary); }
.section-head p:last-child { margin-bottom: 0; }

.hero { padding: 48px 0 24px; }
@media (min-width: 48rem) { .hero { padding: 96px 0 40px; } }
.hero h1 { max-width: 14ch; font-size: var(--text-display); line-height: var(--text-display--line-height); }
.hero .lede { margin: 24px 0 32px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-note { margin: 16px 0 0; color: var(--color-ink-tertiary); font-size: var(--text-base); line-height: var(--text-base--line-height); }
.hero-shot { padding: 24px 0 56px; }
@media (min-width: 48rem) { .hero-shot { padding: 40px 0 96px; } }

/* ==================================================== Screenshot frames == */
figure { margin: 0; }
.shot {
  position: relative; overflow: hidden;
  border: 1px solid var(--color-line-strong); border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.hero-shot .shot { box-shadow: var(--shadow-lg); }
.shot::after { /* the specular edge, drawn over the picture */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--specular-edge); pointer-events: none;
}
.shot img { width: 100%; }
figcaption { margin-top: 12px; color: var(--color-ink-tertiary); font-size: var(--text-sm); line-height: var(--text-sm--line-height); }

/* ================================================================ Cards == */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 20px;
  border: 1px solid var(--color-line-strong); border-radius: 14px;
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm), var(--specular-edge);
}
@media (min-width: 48rem) { .card { padding: 24px; } }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--color-ink-secondary); font-size: var(--text-base); line-height: var(--text-base--line-height); }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 64rem) {
  .split { grid-template-columns: 5fr 7fr; gap: 56px; }
  .split.phone { grid-template-columns: 320px minmax(0, 28rem); gap: 80px; justify-content: center; }
  .split.phone .phone-shot { margin: 0; }
}
.split .section-head { margin-bottom: 0; }
.stack { display: grid; gap: 32px; }
.phone-shot { max-width: 320px; margin: 0 auto; }
.phone-shot .shot { border-radius: 24px; }

/* ============================================================== Planned == */
.planned { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--color-line-strong); }
.planned li { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--color-line-strong); }
@media (min-width: 48rem) { .planned li { grid-template-columns: 18rem 1fr; } }
.planned h3 { font-weight: 600; }
.planned p { margin: 0; color: var(--color-ink-secondary); }
.pill {
  display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 0 8px;
  border-radius: var(--radius-full);
  background: var(--color-warning-tint); color: var(--color-warning);
  font-family: var(--font-sans); font-size: var(--text-2xs); line-height: 1.25rem; font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
}

.callout {
  max-width: 44rem; padding: 24px;
  border: 1px solid var(--color-accent-tint-strong); border-radius: var(--radius-lg);
  background: var(--color-accent-tint);
}
@media (min-width: 48rem) { .callout { padding: 32px; } }
.callout h2 { margin-bottom: 12px; font-size: var(--text-2xl); line-height: var(--text-2xl--line-height); letter-spacing: var(--tracking-tighter); }
.callout p { margin: 0; color: var(--color-ink-secondary); }
.callout p + p { margin-top: 12px; }

/* ============================================================== Articles == */
.article { padding: 48px 0 72px; }
@media (min-width: 48rem) { .article { padding: 80px 0 104px; } }
.article > .wrap > header { margin-bottom: 40px; }
.article h1 { max-width: 18ch; }
@media (min-width: 48rem) { .article h1 { font-size: var(--text-5xl); line-height: var(--text-5xl--line-height); } }
.article header .lede { margin: 20px 0 0; }
.prose { max-width: var(--measure-reading); }
.prose h2 { margin: 48px 0 16px; font-size: var(--text-2xl); line-height: var(--text-2xl--line-height); letter-spacing: var(--tracking-tighter); }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--color-ink-secondary); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--color-ink-tertiary); }
.prose li b { color: var(--color-ink); font-weight: 600; }
.prose address { font-style: normal; color: var(--color-ink-secondary); }
.prose dl { margin: 0 0 24px; }
.prose dt { margin-top: 20px; color: var(--color-ink); font-weight: 600; }
.prose dt:first-child { margin-top: 0; }
.prose dd { margin: 4px 0 0; color: var(--color-ink-secondary); }
.timeline { list-style: none; margin: 0 0 16px 8px; padding: 0; border-left: 2px solid var(--color-line-strong); }
.prose .timeline { padding-left: 0; }
.timeline li { position: relative; margin-bottom: 20px; padding-left: 24px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: var(--radius-full);
  background: var(--color-canvas); border: 2px solid var(--color-indicator);
}
.timeline time { display: block; color: var(--color-ink); font-weight: 600; font-size: var(--text-base); }
.notice {
  max-width: var(--measure-reading); margin-top: 48px; padding: 16px 20px;
  border: 1px solid var(--color-line-strong); border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-xs), var(--specular-edge);
  color: var(--color-ink-secondary); font-size: var(--text-base); line-height: var(--text-base--line-height);
}
.prose .notice p { margin: 0; }
.prose .notice p + p { margin-top: 8px; }
.notice strong { color: var(--color-ink); font-weight: 600; }

/* ================================================================ Footer == */
.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--color-line);
  background: var(--color-sidebar);
  color: var(--color-ink-secondary);
  font-size: var(--text-base); line-height: var(--text-base--line-height);
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 {
  margin: 0 0 12px;
  color: var(--color-ink-tertiary);
  font-family: var(--font-sans); font-size: var(--text-xs); line-height: var(--text-xs--line-height); font-weight: 600;
  letter-spacing: var(--tracking-wide); /* no uppercase: one heading is the brand, 320px */
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; }
.site-footer address + ul { margin-top: 12px; }
.site-footer p { margin: 12px 0 0; }
.legal {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-tertiary);
  font-size: var(--text-sm); line-height: var(--text-sm--line-height);
}
.legal p { max-width: 60rem; margin: 0 0 8px; }
.legal .affil { color: var(--color-ink-secondary); font-weight: 500; }

.notfound { padding: 96px 0 120px; }
.notfound .lede { margin: 20px 0 28px; }

/* ===================================================== Touch: 44px targets == */
@media (pointer: coarse), (width < 48rem) {
  .signin, .site-nav a { min-height: var(--spacing-touch); }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: var(--spacing-touch); }
  .site-footer address + ul { margin-top: 4px; }
  .site-footer .logo { min-height: var(--spacing-touch); }
}

/* ===================================================== Motion & contrast == */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .logo svg { forced-color-adjust: none; }
  .logo .tile { fill: CanvasText; }
  .logo .mark, .logo .dot { fill: Canvas; }
  .btn, .signin { border-color: ButtonText; }
  .site-nav a[aria-current="page"] { outline: 1px solid Highlight; }
  .card, .shot, .callout, .notice, .pill, .skip:focus { border: 1px solid CanvasText; }
  .timeline li::before { forced-color-adjust: none; background: Canvas; border-color: CanvasText; }
}
