/* FARUSONE site styles (design 2026-10-20). The :root tokens (light and dark) come from src/brand/tokens.ts (build).
   Products carry their own colours through .brand-<slug> (--app-*), generated and contrast-checked by build.ts.
   No inline styles, no external resources (strict CSP). */
:root {
  color-scheme: light dark;
  --f-canvas: #f7f8fa;
  --f-surface: #ffffff;
  --f-warm: #f4f0e8;
  --f-ink: #17212b;
  --f-muted: #52606d;
  --f-brand: #2446d8;
  --f-brand-hover: #1934b2;
  --f-brand-soft: #eaf0ff;
  --f-accent: #efae45;
  --f-border: #dce2e8;
  --f-control-border: #788594;
  --f-success: #166a4a;
  --f-danger: #b3261e;
  --f-action: #2446d8;
  --f-action-hover: #1934b2;
  --f-amber-soft: #fff4e0;
  --f-amber-ink: #6b4100;
  --f-success-soft: #e8f5ee;
  --f-radius-card: 20px;
  --f-radius-control: 12px;
  --f-content: 1200px;
  --f-reading: 72ch;
  --f-space-1: 4px;
  --f-space-2: 8px;
  --f-space-3: 12px;
  --f-space-4: 16px;
  --f-space-5: 24px;
  --f-space-6: 32px;
  --f-space-7: 48px;
  --f-space-8: 64px;
  --f-space-9: 96px;
  --f-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --f-canvas: #0b1016;
    --f-surface: #131a22;
    --f-warm: #161d26;
    --f-ink: #edf1f5;
    --f-muted: #a9b4bf;
    --f-brand: #9db2ff;
    --f-brand-hover: #c4d0ff;
    --f-brand-soft: #18224a;
    --f-accent: #efae45;
    --f-border: #253140;
    --f-control-border: #728294;
    --f-success: #6fd3a6;
    --f-danger: #ff8f85;
    --f-action: #3d5af1;
    --f-action-hover: #2f4ad6;
    --f-amber-soft: #2b2210;
    --f-amber-ink: #f3c982;
    --f-success-soft: #10291f;
  }
}


@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin-ext.3911b66d9f.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin.a30ddcd349.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --f-grid: rgba(23, 33, 43, 0.055);
  --f-shadow: 0 1px 2px rgba(23, 33, 43, 0.05), 0 8px 24px rgba(23, 33, 43, 0.07);
  --f-shadow-lg: 0 2px 6px rgba(23, 33, 43, 0.06), 0 24px 56px rgba(23, 33, 43, 0.14);
  --f-radius-xl: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --f-grid: rgba(237, 241, 245, 0.045);
    --f-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --f-shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--f-canvas);
  color: var(--f-ink);
  font-family: var(--f-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 450;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  /* Manrope turns (c) into a copyright sign through ligatures: legal citations need the letters */
  font-variant-ligatures: no-common-ligatures no-contextual;
  font-feature-settings: "liga" 0, "calt" 0;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--f-brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--f-brand-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--f-brand); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { hyphens: manual; overflow-wrap: break-word; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--f-space-4); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem); font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 750; }
p { margin: 0 0 var(--f-space-4); }
ul, ol { padding-left: 1.25em; margin: 0 0 var(--f-space-4); }
li + li { margin-top: var(--f-space-2); }
code { font-size: 0.9em; }
@media (min-width: 700px) { h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; } }

.wrap { width: 100%; max-width: calc(var(--f-content) + 2 * 48px); margin: 0 auto; padding: 0 20px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
@media (min-width: 1100px) { .wrap { padding: 0 48px; } }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--f-surface); color: var(--f-brand); padding: 12px 16px; border-radius: var(--f-radius-control); border: 2px solid var(--f-brand); }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { background: var(--f-surface); border-bottom: 1px solid var(--f-border); position: relative; z-index: 4; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--f-space-5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 8px 0; }
.brand-lockup { height: 30px; width: auto; }
.brand-lockup [fill="#17212B"], .brand-symbol [fill="#17212B"] { fill: var(--f-ink); }
.brand-lockup [stroke="#17212B"] { stroke: var(--f-ink); }
.header-right { display: flex; align-items: center; gap: var(--f-space-3); }
.nav-inline ul, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-inline { display: none; }
.nav-inline ul { display: flex; gap: var(--f-space-1); }
.nav-inline li + li, .nav-menu li + li { margin-top: 0; }
.nav-inline a, .nav-menu a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: var(--f-radius-control); color: var(--f-ink); font-weight: 650; text-decoration: none; }
.nav-inline a:hover, .nav-menu a:hover { background: var(--f-brand-soft); color: var(--f-brand-hover); }
.nav-inline a[aria-current="page"], .nav-menu a[aria-current="page"] { color: var(--f-brand); box-shadow: inset 0 -3px 0 var(--f-brand); border-radius: var(--f-radius-control) var(--f-radius-control) 0 0; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--f-control-border); border-radius: var(--f-radius-control); font-weight: 700; background: var(--f-surface); }
.nav-menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--f-ink); border-radius: 1px; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.nav-menu[open] .menu-icon { background: transparent; }
.nav-menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.nav-menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.nav-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 240px; background: var(--f-surface); border: 1px solid var(--f-border); border-radius: var(--f-radius-control); box-shadow: var(--f-shadow-lg); padding: 8px; }
.nav-menu nav a { display: flex; width: 100%; }
@media (min-width: 860px) {
  .nav-inline { display: block; }
  .nav-menu { display: none; }
  .brand-lockup { height: 32px; }
}
.lang-switch ul { list-style: none; margin: 0; display: flex; gap: 2px; border: 1px solid var(--f-border); border-radius: var(--f-radius-control); padding: 3px; }
.lang-switch li + li { margin-top: 0; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 9px; font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
.lang-switch a { color: var(--f-ink); }
.lang-switch a:hover { background: var(--f-brand-soft); color: var(--f-brand-hover); }
.lang-switch span[aria-current] { background: var(--f-ink); color: var(--f-canvas); }
.brand-symbol { display: none; width: 34px; height: 34px; }
@media (max-width: 520px) {
  .brand-lockup { height: 24px; }
  .header-right { gap: var(--f-space-2); }
  .lang-switch a, .lang-switch span { padding: 0 6px; }
  .nav-menu summary { padding: 0 10px; gap: 6px; }
}
/* Very small screens: symbol only (brand guide: very small = symbol only) */
@media (max-width: 374px) {
  .brand-lockup { display: none; }
  .brand-symbol { display: block; }
}

/* ── Buttons, links, pills ──────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: var(--f-space-3) var(--f-space-5); align-items: center; margin-top: var(--f-space-5); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--f-radius-control); font-weight: 750; text-decoration: none; border: 2px solid transparent; text-align: center; line-height: 1.25; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-primary { background: var(--f-action); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--f-action) 28%, transparent); }
.btn-primary:hover { background: var(--f-action-hover); color: #fff; }
.btn-secondary { background: var(--f-surface); color: var(--f-ink); border-color: var(--f-control-border); }
.btn-secondary:hover { border-color: var(--f-ink); color: var(--f-ink); }
.link-arrow { font-weight: 750; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link-arrow::after { content: "\2192"; transition: transform 160ms ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Product button: on the product's own colours the accent with dark text, on a light card the product's dark colour. */
.btn-app { background: var(--app-bg); color: var(--app-accent); position: relative; z-index: 2; }
.btn-app:hover { color: var(--app-accent); text-decoration: underline; }
.has-brand .btn-app { background: var(--app-accent); color: var(--app-accent-text); }
.has-brand .btn-app:hover { color: var(--app-accent-text); }
.pcard.has-brand .btn-app { background: var(--app-bg); color: var(--app-accent); }
@media (prefers-color-scheme: dark) { .pcard.has-brand .btn-app { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-accent) 55%, transparent); } }

/* Status pills: always a word, and the dot has its own shape per state (never colour alone). */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--f-space-4); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 750; line-height: 1.3; border: 1px solid currentColor; }
.pill-dot { width: 8px; height: 8px; flex: none; background: currentColor; }
.pill-live { color: var(--f-success); background: var(--f-success-soft); }
.pill-live .pill-dot { border-radius: 50%; }
.pill-soon { color: var(--f-brand-hover); background: var(--f-brand-soft); }
.pill-soon .pill-dot { border-radius: 50%; background: transparent; border: 2px solid currentColor; width: 10px; height: 10px; }
.pill-concept { color: var(--f-amber-ink); background: var(--f-amber-soft); border-style: dashed; }
.pill-retired { color: var(--f-muted); background: var(--f-canvas); }
.pill-note { color: var(--f-muted); background: transparent; border-color: var(--f-border); }
.pill-note .pill-dot { display: none; }
.has-brand:not(.pcard) .pill { color: var(--app-text); background: color-mix(in srgb, var(--app-text) 12%, transparent); border-color: color-mix(in srgb, var(--app-text) 45%, transparent); }
.has-brand:not(.pcard) .pill-live .pill-dot { background: var(--app-accent); }

/* Badges (fact card, legal hubs): text plus shape */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 0.875rem; font-weight: 700; border: 1px solid currentColor; line-height: 1.6; }
.badge-dot { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.badge-concept { color: var(--f-amber-ink); background: var(--f-amber-soft); }
.badge-concept .badge-dot { background: var(--f-accent); border: 1px solid var(--f-amber-ink); }
.badge-development { color: var(--f-amber-ink); background: var(--f-amber-soft); }
.badge-development .badge-dot { background: var(--f-accent); border-radius: 50%; }
.badge-testing { color: var(--f-brand-hover); background: var(--f-brand-soft); }
.badge-released { color: var(--f-success); background: var(--f-success-soft); }
.badge-released .badge-dot { border-radius: 50%; }
.badge-retired { color: var(--f-muted); background: var(--f-canvas); }

.eyebrow, .kicker { font-size: 0.875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--f-brand); margin-bottom: var(--f-space-4); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--f-muted); }
/* The orange square of the logo, as a small marker */
.kicker-mark { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--f-accent); flex: none; }
.lead { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.55; color: var(--f-muted); max-width: 34em; }

/* ── Home: hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; padding: var(--f-space-6) 0 var(--f-space-7); overflow: hidden; }
@media (min-width: 700px) { .hero { padding: var(--f-space-7) 0 var(--f-space-8); } }
/* Raster: fine grid lines behind the headline, fading out (the logo round's direction "Raster") */
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--f-grid) 1px, transparent 1px), linear-gradient(90deg, var(--f-grid) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 85%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: var(--f-space-6); }
@media (min-width: 700px) { .hero-grid { gap: var(--f-space-7); } }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 1.35rem + 4.6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; margin-bottom: var(--f-space-5); }
.h1-second { color: var(--f-brand); }
.hero .lead { margin-bottom: 0; }
.hero .actions { margin-top: var(--f-space-5); }
@media (min-width: 1100px) {
  .hero { padding: var(--f-space-8) 0 var(--f-space-8); }
  .hero-text { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: var(--f-space-8); align-items: end; }
  .hero-text .kicker { grid-column: 1 / -1; justify-self: start; }
  .hero-text h1 { grid-column: 1; grid-row: 2 / span 2; margin-bottom: 0; }
  .hero-text .lead { grid-column: 2; grid-row: 2; align-self: end; }
  .hero-text .actions { grid-column: 2; grid-row: 3; }
}

/* The stage: one tile per product with its real picture */
.stage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stage > li + li { margin-top: 0; }
.tile-wide { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .stage { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .tile-wide { grid-column: span 2; }
}
.tile a { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 22px; background: var(--app-bg, var(--f-surface)); color: var(--app-text, var(--f-ink)); text-decoration: none; box-shadow: var(--f-shadow); transition: transform 200ms ease, box-shadow 200ms ease; }
.tile a::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--app-stripe, var(--f-brand)); }
.tile a:hover { transform: translateY(-3px); box-shadow: var(--f-shadow-lg); color: var(--app-text, var(--f-ink)); }
.tile a:focus-visible { outline-offset: 3px; outline-color: var(--f-brand); }
.tile-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 18px 16px 12px; line-height: 1.2; }
.tile-icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 9px; overflow: hidden; }
.tile-icon img, .tile-icon svg { width: 36px; height: 36px; }
.tile-name { overflow-wrap: anywhere; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; }
.tile-tag { font-size: 0.875rem; font-weight: 600; color: color-mix(in srgb, var(--app-text, var(--f-ink)) 82%, var(--app-bg, var(--f-surface))); }
.tile-pic { display: block; margin-top: auto; }
.tile-wide .tile-pic { padding: 0 16px 16px; }
.tile-wide img { border-radius: 12px; }
.tile-phone .tile-pic { position: relative; flex: 1; min-height: 190px; }
.tile-phone .tile-pic picture { position: absolute; left: 50%; top: 4px; width: 74%; transform: translateX(-50%); }
.tile-phone img { box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.22); border-radius: 18px 18px 0 0; }
@media (min-width: 700px) { .tile-phone .tile-pic { min-height: 0; } }
@media (max-width: 699px) { .tile-head { padding: 16px 12px 10px; column-gap: 8px; } .tile-icon, .tile-icon img, .tile-icon svg { width: 30px; height: 30px; } .tile-name { font-size: 1rem; } .tile-tag { font-size: 0.8125rem; } }
/* Phone screens that rise from the bottom edge fade out instead of being cut mid-line */
.tile-phone img, .pcard-media.is-phone img { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%); mask-image: linear-gradient(180deg, #000 72%, transparent 98%); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: var(--f-space-8) 0; }
@media (min-width: 960px) { .section { padding: var(--f-space-9) 0; } }
.section-warm { background: var(--f-warm); }
.section-head { margin-bottom: var(--f-space-6); max-width: 40em; }
.section-head p { color: var(--f-muted); margin: 0; }
.section-title { margin-bottom: var(--f-space-6); }
.page-head { padding-top: var(--f-space-7); padding-bottom: var(--f-space-6); }

/* ── Home: product panels in the product's colours ─────────────────────── */
.panels { display: grid; gap: var(--f-space-5); }
@media (min-width: 960px) { .panels { gap: var(--f-space-6); } }
.panel { position: relative; overflow: hidden; display: grid; gap: var(--f-space-5); border-radius: var(--f-radius-xl); background: var(--app-bg); color: var(--app-text); padding: var(--f-space-6) var(--f-space-5) 0; isolation: isolate; }
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--app-stripe); }
/* A large rounded square in the product accent behind the pictures (the logo's square, as a quiet shape) */
.panel::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; bottom: -160px; border-radius: 72px; background: color-mix(in srgb, var(--app-glow, var(--app-accent)) 16%, transparent); transform: rotate(12deg); }
.panel-text { min-width: 0; }
.panel-id { display: flex; align-items: center; gap: 14px; margin-bottom: var(--f-space-4); }
.panel-cat { margin: 0; font-weight: 700; font-size: 0.9375rem; color: color-mix(in srgb, var(--app-text) 82%, var(--app-bg)); }
.panel-name { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); letter-spacing: -0.035em; margin: 0 0 var(--f-space-3); line-height: 1; }
.panel-wordmark { height: clamp(44px, 2.4rem + 1.6vw, 64px); width: auto; }
.panel-claim { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 750; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: var(--f-space-5); max-width: 22em; }
.points { list-style: none; padding: 0; margin: 0 0 var(--f-space-5); display: grid; gap: 10px; }
.points li { margin: 0; display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: baseline; font-weight: 600; }
.points li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--app-accent, var(--f-accent)); transform: translateY(1px); }
.panel .actions { margin: var(--f-space-5) 0 var(--f-space-6); }
.has-brand a:not(.btn) { color: var(--app-text); }
.has-brand a:not(.btn):hover { color: var(--app-text); }
.has-brand a:focus-visible { outline-color: var(--app-text); }
.pcard.has-brand a:not(.btn) { color: var(--f-brand); }
.pcard.has-brand .pcard-title a { color: var(--f-ink); }
.panel-media { position: relative; min-width: 0; align-self: end; }
.panel-media:not(.is-phones) { padding-bottom: var(--f-space-5); }
.panel-media:not(.is-phones) img { border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35); }
@media (max-width: 699px) { .panel > .panel-media, .panel > .panel-media.is-phones { display: none; } .panel { padding-bottom: 0; } .panel .actions { margin-bottom: var(--f-space-6); } }
.panel-media.is-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; max-width: 520px; margin: 0 auto; width: 100%; }
.panel-media.is-phones picture:nth-child(2) { transform: translateY(28px); margin-top: -28px; }
.panel-media.is-phones img { border-radius: 20px 20px 0 0; box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.25); }
@media (min-width: 960px) {
  .panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--f-space-7); padding: var(--f-space-7) var(--f-space-7) 0; min-height: 520px; }
  .panel.is-flipped .panel-text { order: 2; }
  .panel.is-flipped::after { right: auto; left: -120px; }
  .panel-media { align-self: end; }
  .panel-media:not(.is-phones) { padding-bottom: var(--f-space-7); }
}

/* ── Home: how we work, help ───────────────────────────────────────────── */
.how { display: grid; gap: var(--f-space-6); }
.how-intro p { color: var(--f-muted); max-width: 30em; }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--f-space-4); counter-reset: pr; }
.principles > li { margin: 0; counter-increment: pr; background: var(--f-surface); border: 1px solid var(--f-border); border-radius: var(--f-radius-card); padding: var(--f-space-5); }
.principles > li::before { content: "0" counter(pr); display: block; font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.04em; color: var(--f-brand); margin-bottom: var(--f-space-2); }
.principles h3 { margin-bottom: var(--f-space-2); }
.principles p { color: var(--f-muted); margin: 0; }
@media (min-width: 960px) { .how { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--f-space-8); align-items: start; } }
@media (min-width: 700px) and (max-width: 959px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.help-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.help-tiles li { margin: 0; display: flex; }
.help-tiles li > a { width: 100%; }
.help-tiles a { position: relative; display: grid; grid-template-columns: 22px 1fr auto; column-gap: 14px; align-items: center; min-height: 88px; padding: 18px 20px; background: var(--f-surface); border: 1px solid var(--f-border); border-radius: var(--f-radius-card); color: var(--f-ink); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.help-tiles a::after { content: "\2192"; grid-column: 3; grid-row: 1 / span 2; font-weight: 700; color: var(--f-brand); }
.help-tiles a:hover { border-color: var(--f-brand); box-shadow: var(--f-shadow); color: var(--f-ink); }
.help-tiles a:hover .ht-title { text-decoration: underline; }
.ht-mark { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 5px; background: var(--f-brand); box-shadow: 8px -8px 0 -4px var(--f-accent); }
.ht-title { font-weight: 800; line-height: 1.3; }
.ht-note { color: var(--f-muted); font-size: 0.9375rem; line-height: 1.4; }
@media (min-width: 700px) { .help-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) {
  .help-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .help-tiles a { grid-template-columns: 22px 1fr; grid-template-rows: auto auto 1fr auto; row-gap: 4px; min-height: 150px; }
  .help-tiles a::after { grid-column: 1 / -1; grid-row: 4; margin-top: 8px; align-self: end; }
  .ht-mark { grid-row: 1; margin-bottom: 12px; }
  .ht-title, .ht-note { grid-column: 1 / -1; }
}

/* ── Catalogue: product cards ──────────────────────────────────────────── */
.pcards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--f-space-5); }
.pcards > li + li { margin-top: 0; }
@media (min-width: 700px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--f-surface); border: 1px solid var(--f-border); border-radius: var(--f-radius-xl); overflow: hidden; box-shadow: var(--f-shadow); transition: box-shadow 200ms ease, transform 200ms ease; }
.pcard:hover { box-shadow: var(--f-shadow-lg); transform: translateY(-2px); }
.pcard.has-brand { color: var(--f-ink); }
.pcard-media { position: relative; background: var(--app-bg, var(--f-brand-soft)); padding: 22px 22px 0; overflow: hidden; }
.pcard-media::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--app-stripe, var(--f-brand)); }
.pcard-media:not(.is-phone) { padding-bottom: 22px; display: flex; align-items: center; height: 260px; }
.pcard-media:not(.is-phone) img { border-radius: 12px; }
.pcard-media.is-phone { height: 260px; }
.pcard-media.is-phone picture { width: 58%; max-width: 220px; margin: 0 auto; }
.pcard-media.is-phone img { border-radius: 18px 18px 0 0; box-shadow: 0 -2px 28px rgba(0, 0, 0, 0.25); }
@media (min-width: 700px) and (max-width: 1099px) {
  .pcards > li:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .pcards > li:last-child:nth-child(odd) .pcard-media { width: 44%; flex: none; height: auto; min-height: 320px; }
}
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: var(--f-space-5); }
.pcard-id { display: flex; gap: 14px; align-items: center; margin-bottom: var(--f-space-4); }
.pcard-title { font-size: 1.375rem; margin: 0; }
.pcard-title a { color: var(--f-ink); text-decoration: none; }
.pcard-title a:hover { text-decoration: underline; color: var(--f-ink); }
.pcard-tagline { margin: 0; color: var(--f-muted); font-weight: 600; font-size: 0.9375rem; }
.pcard-benefit { font-size: 1.0625rem; }
.pcard-cost { font-size: 0.9375rem; color: var(--f-muted); margin-bottom: 0; }
.pcard-k { font-weight: 700; color: var(--f-ink); }
.pcard-actions { margin-top: auto; padding-top: var(--f-space-5); }
.pcard .actions .link-arrow, .pcard .actions .btn { position: relative; z-index: 2; }
.in-works { display: flex; gap: 12px; align-items: baseline; margin: var(--f-space-7) 0 var(--f-space-8); padding-top: var(--f-space-5); border-top: 1px solid var(--f-border); color: var(--f-muted); max-width: 46em; }
.in-works .kicker-mark { transform: translateY(1px); }

/* Whole card tappable */
.is-link { position: relative; transition: border-color 160ms ease, box-shadow 160ms ease; }
.is-link:hover { border-color: var(--f-control-border); box-shadow: var(--f-shadow); }
.stretch::before { content: ""; position: absolute; inset: 0; border-radius: var(--f-radius-card); z-index: 1; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::before { outline: 3px solid var(--f-brand); outline-offset: 2px; }
.pcard .stretch::before { border-radius: var(--f-radius-xl); }

/* App icons: real icons are square, the page rounds them */
.app-icon { width: 56px; height: 56px; flex: none; border-radius: 14px; overflow: hidden; }
.app-icon img { width: 100%; height: 100%; }
.app-icon-lg { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.has-brand .app-icon { box-shadow: 0 0 0 1px color-mix(in srgb, var(--app-text) 20%, transparent); }
.pcard.has-brand .app-icon { box-shadow: none; }

/* ── Product page ──────────────────────────────────────────────────────── */
.app-hero { position: relative; overflow: hidden; background: var(--app-bg); color: var(--app-text); isolation: isolate; }
.app-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--app-stripe); z-index: 1; }
.app-hero::after { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; top: -120px; border-radius: 96px; background: color-mix(in srgb, var(--app-glow, var(--app-accent)) 14%, transparent); transform: rotate(14deg); }
.app-hero-plain { --app-bg: var(--f-surface); --app-text: var(--f-ink); --app-accent: var(--f-brand); --app-stripe: linear-gradient(90deg, var(--f-brand), var(--f-accent)); border-bottom: 1px solid var(--f-border); }
.app-hero-plain::after { opacity: 0.6; }
.app-hero .breadcrumb ol, .app-hero .breadcrumb a { color: color-mix(in srgb, var(--app-text) 82%, var(--app-bg)); }
.app-hero-plain .breadcrumb a { color: var(--f-brand); }
.app-head { display: grid; gap: var(--f-space-6); padding: var(--f-space-4) 0 0; }
.app-hero.no-media .app-head { padding-bottom: var(--f-space-6); }
.app-hero-text { min-width: 0; padding-bottom: var(--f-space-6); }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: var(--f-space-4); }
.sender { margin: 0; font-weight: 700; color: color-mix(in srgb, var(--app-text) 82%, var(--app-bg)); }
.app-head h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 var(--f-space-3); }
.app-wordmark { display: block; width: auto; height: clamp(48px, 2.4rem + 2.6vw, 84px); max-width: 100%; object-fit: contain; object-position: left center; }
.app-tagline { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 750; margin-bottom: var(--f-space-3); }
.app-hero .lead { color: color-mix(in srgb, var(--app-text) 86%, var(--app-bg)); margin-bottom: var(--f-space-5); }
.app-hero-plain .lead { color: var(--f-muted); }
.working-note { display: inline-block; font-weight: 700; border: 1px dashed currentColor; border-radius: 8px; padding: 0 8px; }
.app-actions { margin-top: 0; margin-bottom: var(--f-space-5); }
.quick-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 0.9375rem; font-weight: 650; }
.quick-legal li { margin: 0; }
.quick-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.app-hero-plain .quick-legal a { color: var(--f-brand); }
.app-hero-media { min-width: 0; align-self: end; }
.app-hero-media.is-wide { padding-bottom: var(--f-space-6); }
.app-hero-media.is-wide img { border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.app-hero-media.is-phones { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; max-width: 540px; width: 100%; margin: 0 auto; }
.app-hero-media.is-phones .is-back { transform: translateY(36px); margin-top: -36px; }
.app-hero-media.is-phones img { border-radius: 22px 22px 0 0; box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.3); }
@media (min-width: 960px) {
  .app-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: var(--f-space-7); padding-top: var(--f-space-5); }
  .app-hero-text { padding-bottom: var(--f-space-8); }
  .app-hero-media.is-wide { padding-bottom: var(--f-space-8); }
  .app-hero.no-media .app-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699px) { .app-icon-lg { width: 64px; height: 64px; border-radius: 16px; } .app-hero-media.is-phones { max-width: 360px; } }

.app-body { padding-top: var(--f-space-6); padding-bottom: var(--f-space-8); }
.app-summary { font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; max-width: 34em; margin: var(--f-space-5) 0 var(--f-space-8); }
.notice { background: var(--f-amber-soft); color: var(--f-ink); border: 1px solid color-mix(in srgb, var(--f-accent) 55%, transparent); border-left: 6px solid var(--f-accent); border-radius: var(--f-radius-control); padding: var(--f-space-4) var(--f-space-5); max-width: 44em; }
.app-body > .notice { margin-top: var(--f-space-2); }

.highlights { margin-bottom: var(--f-space-8); }
.hl { display: grid; gap: var(--f-space-5); align-items: center; margin-bottom: var(--f-space-7); }
.hl-text { min-width: 0; max-width: 30em; }
.hl-num { font-weight: 800; color: var(--f-brand); font-size: 0.9375rem; letter-spacing: 0.06em; margin-bottom: var(--f-space-2); }
.hl h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -0.025em; }
.hl p { color: var(--f-muted); font-size: 1.125rem; }
.hl-media { min-width: 0; border-radius: var(--f-radius-xl); overflow: hidden; }
.hl.is-phone .hl-media { background: var(--app-bg, var(--f-brand-soft)); padding: 40px 18% 0; position: relative; }
.hl.is-phone .hl-media::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--app-stripe, var(--f-brand)); }
.hl.is-phone .hl-media picture { max-width: 300px; margin: 0 auto; }
.hl.is-phone .hl-media img { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
.hl.is-phone .hl-media { max-height: 520px; }
.hl.is-phone .hl-media img { border-radius: 22px 22px 0 0; box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.25); }
.hl:not(.is-phone) .hl-media img { border-radius: var(--f-radius-xl); }
@media (min-width: 860px) {
  .hl { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--f-space-8); }
  .hl.is-flipped .hl-text { order: 2; }
  .hl.is-phone .hl-media { padding: 48px 20% 0; }
}

.steps { margin-bottom: var(--f-space-8); }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--f-space-4); counter-reset: st; }
.steps li { margin: 0; counter-increment: st; position: relative; padding: var(--f-space-5); padding-top: calc(var(--f-space-5) + 48px); background: var(--f-surface); border: 1px solid var(--f-border); border-radius: var(--f-radius-card); font-weight: 600; font-size: 1.0625rem; }
.steps li::before { content: counter(st); position: absolute; left: var(--f-space-5); top: var(--f-space-5); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--f-action); color: #fff; font-weight: 800; }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gallery { margin-bottom: var(--f-space-8); }
.gallery h2 { margin-bottom: var(--f-space-2); }
.gallery-hint { color: var(--f-muted); font-size: 0.9375rem; margin-bottom: var(--f-space-4); }
.shots { list-style: none; padding: 4px 4px 16px; margin: 0 -4px; display: grid; grid-auto-flow: column; grid-auto-columns: min(56vw, 240px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--f-control-border) transparent; }
.shots.is-wide { grid-auto-columns: min(84vw, 560px); }
.shots li { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 18px; border: 1px solid var(--f-border); background: var(--f-surface); }
.shots:not(.is-wide) img { border-radius: 22px 22px 0 0; }
.shots:focus-visible { outline-offset: 2px; border-radius: 12px; }

.app-intro { display: grid; gap: var(--f-space-6); margin: var(--f-space-5) 0 var(--f-space-8); align-items: start; }
.app-intro .app-summary { margin: 0; }
.app-end { display: grid; gap: var(--f-space-6); align-items: start; }
.app-end .help-legal { margin-top: 0; }
@media (min-width: 960px) { .app-intro { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--f-space-8); } .app-end { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--f-space-7); } }
@media (max-width: 420px) { .fact-card dl > div { grid-template-columns: 1fr; gap: 2px; } }
.app-grid { display: grid; gap: var(--f-space-6); }
.app-grid > * { min-width: 0; }
@media (min-width: 960px) { .app-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: var(--f-space-7); } }
.block { margin-bottom: var(--f-space-6); max-width: 36em; }
.faqs { max-width: none; }
.faq { border-top: 1px solid var(--f-border); }
.faq:last-child { border-bottom: 1px solid var(--f-border); }
.faq summary { cursor: pointer; font-weight: 750; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; padding: 8px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--f-brand); line-height: 1; flex: none; }
.faq[open] summary::after { content: "\2212"; }
.faq p { color: var(--f-muted); max-width: 40em; }
.fact-card { background: var(--f-surface); border: 1px solid var(--f-border); border-radius: var(--f-radius-card); padding: var(--f-space-5); }
.fact-card h2 { font-size: 1.25rem; }
.fact-card dl { margin: 0; }
.fact-card dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--f-space-3); padding: 12px 0; border-top: 1px solid var(--f-border); }
.fact-card dt { font-weight: 700; color: var(--f-muted); font-size: 0.9375rem; hyphens: auto; -webkit-hyphens: auto; }
.fact-card dd { margin: 0; }
@media (min-width: 960px) { .app-grid .fact-card { position: sticky; top: 24px; } }
.plain { list-style: none; padding: 0; }

/* Help and legal box (product pages) */
.help-legal { background: var(--f-brand-soft); border: 1px solid color-mix(in srgb, var(--f-brand) 25%, transparent); border-radius: var(--f-radius-card); padding: var(--f-space-5); margin: var(--f-space-6) 0 0; max-width: 40em; scroll-margin-top: 16px; }
.help-legal h2 { font-size: 1.25rem; margin-bottom: var(--f-space-3); }
.help-legal a { font-weight: 700; }
.meta { color: var(--f-muted); font-size: 0.9375rem; }
.rows { margin: 0; }
.rows li + li { margin-top: 0; border-top: 1px solid color-mix(in srgb, var(--f-brand) 22%, transparent); }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: var(--f-space-3); min-height: 52px; padding: 8px 0; text-decoration: none; }
.row-link::after { content: "\2192"; font-weight: 700; flex: none; }
.row-link:hover .row-label { text-decoration: underline; }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-label { font-weight: 700; overflow-wrap: anywhere; }
.row-link .meta { font-weight: 500; line-height: 1.4; }

/* Breadcrumb */
.breadcrumb ol { list-style: none; padding: 0; margin: var(--f-space-3) 0 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; font-size: 0.9375rem; color: var(--f-muted); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.breadcrumb li + li { margin-top: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: 0.7; }

/* ── Cards, support, legal overview ────────────────────────────────────── */
.card { background: var(--f-surface); border: 1px solid var(--f-border); border-radius: var(--f-radius-card); padding: var(--f-space-5); box-shadow: 0 1px 2px rgba(23, 33, 43, 0.04); }
.help-grid, .doc-list { list-style: none; padding: 0; margin: 0 0 var(--f-space-8); display: grid; gap: var(--f-space-4); }
.doc-list { margin-bottom: 0; }
.help-grid > li + li, .doc-list > li + li { margin-top: 0; }
@media (min-width: 700px) { .help-grid, .doc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--f-space-5); } .help-grid > li:first-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doc-list h2, .help-grid h2 { font-size: 1.25rem; }
.doc-list p, .help-grid p { margin-bottom: var(--f-space-2); }
.help-grid .plain a { display: inline-flex; align-items: center; min-height: 44px; }
.help-grid .plain li + li { margin-top: 0; }
.mail-plain { font-weight: 650; }
.chips-label { margin-bottom: var(--f-space-2); }
.chips { list-style: none; padding: 0; margin: 0 0 var(--f-space-2); display: flex; flex-wrap: wrap; gap: 8px; }
.chips li + li { margin-top: 0; }
.chips a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 10px; border: 1px solid var(--f-control-border); border-radius: 999px; background: var(--f-surface); color: var(--f-ink); font-weight: 650; text-decoration: none; }
.chips a:hover { border-color: var(--f-brand); color: var(--f-brand-hover); background: var(--f-brand-soft); }
.chip-icon { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; flex: none; }
.chip-icon img, .chip-icon svg { width: 26px; height: 26px; }
.doc-group { margin-bottom: var(--f-space-7); }
.doc-group > h2 { font-size: 1.375rem; margin-bottom: var(--f-space-4); }
.doc-list h3 { font-size: 1.125rem; margin-bottom: var(--f-space-2); }
.doc-list h3 a { text-decoration: none; }
.doc-list h3 a::after { content: " \2192"; }
.doc-list .is-link:hover h3 a { text-decoration: underline; }
.note { color: var(--f-muted); margin-top: var(--f-space-6); max-width: 70ch; }

/* ── Contact form (/contact) ───────────────────────────────────────────── */
/* German texts with several sentences: one sentence per line (the line breaks in the text). */
.sentences { white-space: pre-line; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contact-grid { display: grid; gap: var(--f-space-6); padding-bottom: var(--f-space-8); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--f-space-7); } }
.contact-card { padding: var(--f-space-5); max-width: 46em; }
@media (min-width: 700px) { .contact-card { padding: var(--f-space-6); } }
.contact-card > h2, .cf-done-h { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.cf-legend-req { color: var(--f-muted); font-size: 0.9375rem; }
.cf-field { margin-bottom: var(--f-space-5); min-width: 0; }
.cf-row { display: grid; gap: 0 var(--f-space-5); }
@media (min-width: 700px) { .cf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cf label, .cf legend { display: block; font-weight: 750; margin-bottom: 6px; }
.cf-req { color: var(--f-danger); font-weight: 800; }
.cf-opt { color: var(--f-muted); font-weight: 500; }
.cf-hint { color: var(--f-muted); font-size: 0.9375rem; line-height: 1.5; margin: -2px 0 8px; }
.cf input[type="text"], .cf input[type="email"], .cf select, .cf textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-weight: 500; color: var(--f-ink);
  background: var(--f-surface); border: 1px solid var(--f-control-border); border-radius: var(--f-radius-control);
}
.cf textarea { min-height: 200px; resize: vertical; line-height: 1.55; }
.cf input:focus-visible, .cf select:focus-visible, .cf textarea:focus-visible { outline: 3px solid var(--f-brand); outline-offset: 1px; border-color: var(--f-brand); }
.cf [aria-invalid="true"] { border-color: var(--f-danger); border-width: 2px; }
.cf-error { color: var(--f-danger); font-weight: 650; font-size: 0.9375rem; margin: 6px 0 0; white-space: pre-line; }
.cf-count { color: var(--f-muted); font-size: 0.875rem; text-align: right; margin: 4px 0 0; }
.cf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-captcha { border: 1px solid var(--f-border); border-radius: var(--f-radius-control); background: var(--f-canvas); padding: var(--f-space-4); margin: 0 0 var(--f-space-5); min-width: 0; }
.cf-captcha legend { padding: 0 6px; margin-left: -6px; font-size: 1.0625rem; }
.cf-cap-image { margin: 0 0 var(--f-space-3); }
.cf-cap-img { width: 300px; max-width: 100%; height: auto; aspect-ratio: 300 / 96; border-radius: 10px; border: 1px solid var(--f-control-border); background: #f4f0e8; }
.cf-cap-question { font-size: 1.125rem; font-weight: 700; margin: 0 0 var(--f-space-3); padding: 12px 14px; background: var(--f-surface); border: 1px solid var(--f-border); border-radius: 10px; }
.cf-captcha input[type="text"] { max-width: 300px; letter-spacing: 0.08em; }
.cf-cap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: var(--f-space-3); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
button.btn { font: inherit; font-weight: 750; cursor: pointer; }
button.btn-sm { font-size: 0.9375rem; }
.btn-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; background: none; border: 0; color: var(--f-brand); font: inherit; font-weight: 700; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; text-align: left; }
.btn-link:hover { color: var(--f-brand-hover); text-decoration-thickness: 2px; }
.cf-privacy { font-size: 0.9375rem; line-height: 1.6; color: var(--f-muted); background: var(--f-brand-soft); border-radius: var(--f-radius-control); padding: var(--f-space-4); margin: 0 0 var(--f-space-2); }
.cf-actions { margin-top: var(--f-space-4); }
.cf-actions .btn { min-width: 220px; }
.cf-actions .btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
.cf-status { margin: var(--f-space-4) 0 0; font-weight: 650; }
.cf-status:empty { display: none; }
.cf-status.is-error { color: var(--f-danger); background: color-mix(in srgb, var(--f-danger) 9%, transparent); border-left: 4px solid var(--f-danger); border-radius: 6px; padding: 10px 14px; }
.cf-status.is-busy { color: var(--f-muted); }
.cf-done { background: var(--f-success-soft); border: 1px solid color-mix(in srgb, var(--f-success) 40%, transparent); border-left: 6px solid var(--f-success); border-radius: var(--f-radius-control); padding: var(--f-space-5); }
.cf-done:focus { outline: none; }
.cf-done-h { color: var(--f-success); }
.contact-aside h2 { font-size: 1.25rem; margin-top: var(--f-space-5); }
.contact-aside h2:first-child { margin-top: 0; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-links li + li { margin-top: 0; }

/* Prose (about) */
.prose { padding-bottom: var(--f-space-8); }
.prose section { margin-bottom: var(--f-space-6); max-width: 33em; }

/* ── Legal documents (layout only; the texts come from src/legal and src/content/legal) ── */
/* About 72 characters per line (brand guide): measured with Manrope at 18 px, 33em is about 73. */
.legal { padding: var(--f-space-5) 0 var(--f-space-8); font-size: 1.125rem; }
.legal-head { max-width: 40em; margin-bottom: var(--f-space-6); padding-bottom: var(--f-space-5); border-bottom: 1px solid var(--f-border); }
.legal-head .legal-scope, .legal > .notice, .legal-text { max-width: 33em; }
.legal-head h1 { max-width: 16em; font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem); }
.legal-scope { color: var(--f-muted); }
.legal-version { font-size: 0.9375rem; color: var(--f-muted); font-weight: 650; margin: 0; }
.legal section { margin-top: var(--f-space-6); scroll-margin-top: 16px; }
.legal h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 750; }
.lines { line-height: 1.7; }
.toc { background: var(--f-surface); border: 1px solid var(--f-border); border-radius: var(--f-radius-card); padding: var(--f-space-5); max-width: 33em; }
.toc h2 { font-size: 1.125rem; margin-bottom: var(--f-space-3); }
.toc ol { margin: 0; }
.toc li + li { margin-top: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.table-wrap { overflow-x: auto; margin-bottom: var(--f-space-4); border: 1px solid var(--f-border); border-radius: var(--f-radius-control); background: var(--f-surface); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--f-border); }
th { background: var(--f-canvas); }
mark.ph { background: var(--f-amber-soft); color: var(--f-amber-ink); padding: 0 3px; border-radius: 3px; font-weight: 700; }
.draft-banner { background: color-mix(in srgb, var(--f-danger) 10%, var(--f-surface)); border: 2px solid var(--f-danger); border-radius: var(--f-radius-control); padding: var(--f-space-4); margin-bottom: var(--f-space-5); color: var(--f-danger); }
.picker { margin: 0 0 var(--f-space-6); max-width: 48rem; }
.picker h2 { font-size: 1.25rem; margin-bottom: var(--f-space-3); }
.picker ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .picker ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.picker li + li { margin-top: 0; }
.picker a { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px; background: var(--f-surface); border: 1px solid var(--f-border); border-radius: 16px; color: var(--f-ink); text-decoration: none; }
.picker a:hover { border-color: var(--f-brand); box-shadow: var(--f-shadow); }
.picker-icon { width: 44px; height: 44px; flex: none; border-radius: 11px; overflow: hidden; }
.picker-icon img, .picker-icon svg { width: 44px; height: 44px; }
.picker-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.picker-title { font-weight: 750; color: var(--f-brand); }
.picker-note { font-size: 0.9375rem; color: var(--f-muted); }
.legal-cols .toc { margin-bottom: var(--f-space-2); }
@media (min-width: 1100px) {
  .legal-cols.has-toc { display: grid; grid-template-columns: minmax(0, 33em) minmax(220px, 300px); column-gap: 64px; align-items: start; }
  .legal-cols.has-toc .toc { grid-column: 2; grid-row: 1; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; font-size: 1rem; margin-top: var(--f-space-6); }
  .legal-cols.has-toc .legal-text { grid-column: 1; grid-row: 1; }
}
.error-page { padding-bottom: var(--f-space-9); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: #111a23; color: #dfe5eb; padding: var(--f-space-8) 0 var(--f-space-6); }
@media (prefers-color-scheme: dark) { .site-footer { background: #070b0f; border-top: 1px solid var(--f-border); } }
.site-footer a { color: #ffffff; }
.site-footer :focus-visible { outline-color: #ffffff; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--f-space-4); padding-bottom: var(--f-space-6); margin-bottom: var(--f-space-6); border-bottom: 1px solid #2c3946; }
.footer-lockup { height: 30px; width: auto; }
.footer-brand p { margin: 0; font-weight: 700; color: #c3ccd5; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--f-space-5); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-col h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: #aeb9c4; margin-bottom: var(--f-space-3); font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
@media (max-width: 420px) { .footer-grid { column-gap: 16px; } }
.footer-col a:hover { text-decoration: underline; }
.footer-meta { margin: var(--f-space-6) 0 0; padding-top: var(--f-space-5); border-top: 1px solid #2c3946; font-size: 0.875rem; color: #c3ccd5; }

/* ── Brand preview (internal) ──────────────────────────────────────────── */
.brand-sheet section { margin-bottom: var(--f-space-7); }
.bp-row { display: flex; flex-wrap: wrap; gap: var(--f-space-5); align-items: center; padding: var(--f-space-5); border-radius: var(--f-radius-card); margin-bottom: var(--f-space-3); }
.bp-light { background: #ffffff; border: 1px solid var(--f-border); color: #17212b; }
.bp-dark { background: #17212b; color: #fff; }
.bp-lockup { height: 64px; width: auto; }
.bp-wordmark { height: 48px; width: auto; }
.bp-min { width: 100px; }
.bp-size[data-s="16"] { width: 16px; } .bp-size[data-s="24"] { width: 24px; } .bp-size[data-s="48"] { width: 48px; } .bp-size[data-s="128"] { width: 128px; }
.bp-icon { margin: 0; text-align: center; font-size: 0.875rem; } .bp-icon .app-icon { width: 72px; height: 72px; margin: 0 auto 6px; }
.swatches { list-style: none; padding: 0; display: grid; gap: var(--f-space-3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.swatches li + li { margin-top: 0; }
.swatch { display: grid; gap: 2px; font-size: 0.875rem; }
.swatch-chip { height: 56px; border-radius: var(--f-radius-control); border: 1px solid var(--f-border); }
.bp-h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; } .bp-h2 { font-size: 2rem; font-weight: 700; } .bp-meta { font-size: 0.875rem; color: var(--f-muted); }
.swatch-chip[data-c="canvas"] { background: var(--f-canvas); }
.swatch-chip[data-c="surface"] { background: var(--f-surface); }
.swatch-chip[data-c="warm"] { background: var(--f-warm); }
.swatch-chip[data-c="ink"] { background: var(--f-ink); }
.swatch-chip[data-c="muted"] { background: var(--f-muted); }
.swatch-chip[data-c="brand"] { background: var(--f-brand); }
.swatch-chip[data-c="brandHover"] { background: var(--f-brand-hover); }
.swatch-chip[data-c="brandSoft"] { background: var(--f-brand-soft); }
.swatch-chip[data-c="accent"] { background: var(--f-accent); }
.swatch-chip[data-c="border"] { background: var(--f-border); }
.swatch-chip[data-c="controlBorder"] { background: var(--f-control-border); }
.swatch-chip[data-c="success"] { background: var(--f-success); }
.swatch-chip[data-c="danger"] { background: var(--f-danger); }
.swatch-chip[data-c="action"] { background: var(--f-action); }
.swatch-chip[data-c="actionHover"] { background: var(--f-action-hover); }
.swatch-chip[data-c="amberSoft"] { background: var(--f-amber-soft); }
.swatch-chip[data-c="amberInk"] { background: var(--f-amber-ink); }
.swatch-chip[data-c="successSoft"] { background: var(--f-success-soft); }
.brand-futline { --app-bg: #06080c; --app-text: #eef3f8; --app-accent: #d6ff3e; --app-accent-text: #06080c; --app-stripe: linear-gradient(90deg, #ff5a36, #2ec8ff); --app-glow: #2ec8ff; }
.brand-imageshrink { --app-bg: #1d46c8; --app-text: #ffffff; --app-accent: #5df2d6; --app-accent-text: #06214a; --app-stripe: linear-gradient(90deg, #3a6bff, #5df2d6); --app-glow: #5df2d6; }
.brand-shift-calendar { --app-bg: #4f33cc; --app-text: #ffffff; --app-accent: #ffcf7a; --app-accent-text: #24124f; --app-stripe: linear-gradient(90deg, #f7a23b, #f07a5a, #7b6cff); --app-glow: #7b6cff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile a:hover, .pcard:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .breadcrumb, .toc, .actions, .nav-menu, .picker, .quick-legal { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .legal { max-width: none; padding: 0; font-size: 11pt; }
  .legal-cols.has-toc { display: block; }
  a { color: inherit; }
  .hero::before, .panel::after, .app-hero::after { display: none; }
  .app-hero, .panel { background: none; color: inherit; }
}
