/* Pontumi landing: page CSS. Tokens only; values live in theme.css. */

/* ── Header ── */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 19px; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-signin { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; font-size: var(--fs-small); font-weight: 600; text-decoration: none; color: var(--muted-strong); }
.header-signin:hover { color: var(--ink); }
.button-sm { min-height: 44px; padding: 10px 18px; font-size: var(--fs-small); white-space: nowrap; }
.header-signin { white-space: nowrap; }
.nav-mobile { display: flex; gap: 4px; width: var(--shell); margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.nav-mobile a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; font-size: var(--fs-small); font-weight: 600; color: var(--muted-strong); text-decoration: none; }
.nav-mobile a:first-child { padding-left: 0; }
@media (min-width: 900px) { .nav-mobile { display: none; } }
@media (max-width: 440px) { .header-inner { gap: 8px; } .header-signin { padding-inline: 8px; } .button-sm { padding-inline: 14px; } .brand span { font-size: 1.1rem; } .brand-mark { width: 26px; } }

/* ── Hero ── */
.ob-hero { min-height: 0; padding-block: clamp(28px, 6vw, 88px) 0; }
.accent-word { color: var(--accent-text); }
.band-ink .accent-word, .band-ink .limits-kv dt { color: var(--accent-on-ink); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); }
@media (min-width: 560px) { .hero-facts span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 20px; border-radius: 50%; background: var(--accent); vertical-align: middle; } }

/* product preview: the first of two bordered panels */
.preview { margin: 0; }
.preview-window { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; font-size: 0.8125rem; line-height: 1.45; }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.preview-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.preview-path { display: flex; align-items: center; gap: 2px; margin: 0 0 0 10px; font-size: var(--fs-micro); color: var(--muted); }
.preview-link { display: inline-flex; align-items: center; padding: 2px 4px; border-radius: var(--radius-sm); color: var(--muted-strong); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.preview-link:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.preview-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.preview-side { display: none; padding: 16px 14px; border-right: 1px solid var(--line); background: var(--bg); }
.preview-side ul { margin-top: 8px; display: grid; gap: 2px; }
.preview-side li { padding: 7px 10px; border-radius: var(--radius-sm); color: var(--muted-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-side li.is-active { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.preview-new { display: block; margin-bottom: 16px; padding: 8px 10px; text-decoration: none; border-radius: var(--radius-sm); background: var(--accent-fill); color: var(--accent-on-fill); font-weight: 700; }
.preview-meter { margin-top: 20px; display: grid; gap: 8px; }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; width: 38%; height: 100%; background: var(--accent); }
.preview-chat { display: grid; gap: 14px; align-content: start; padding: 16px; }
.preview-picker { display: grid; gap: 8px; }
.preview-picker > span { font-size: var(--fs-micro); color: var(--muted); }
.preview-picker ul { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-chip { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted-strong); font-weight: 600; text-decoration: none; transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease; }
.preview-chip:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.preview-picker li.is-active .preview-chip { border-color: var(--accent); background: var(--accent-fill); color: var(--accent-on-fill); }
.preview-new:hover { filter: brightness(1.08); }
/* Diagram links stay 44px tall on touch screens and phones. */
@media (pointer: coarse), (max-width: 599px) { .preview-chip, .preview-link, .preview-new { min-height: 44px; } .preview-new { display: flex; align-items: center; } }
.preview-msg { max-width: 92%; padding: 10px 12px; border-radius: var(--radius-sm); }
.preview-msg.user { justify-self: end; background: var(--surface-2); color: var(--ink); }
.preview-msg.bot { display: grid; gap: 8px; width: 92%; border: 1px solid var(--line); }
.preview-who { font-size: var(--fs-micro); color: var(--accent-text); }
.skel { display: block; width: var(--w); height: 8px; border-radius: 4px; background: var(--surface-2); }
.preview-input { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); }
.preview-input b { padding: 5px 12px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); font-weight: 600; }
@media (min-width: 560px) {
  .preview-body { grid-template-columns: 11.5rem minmax(0, 1fr); min-height: 380px; }
  .preview-side { display: block; }
}
@media (min-width: 900px) and (max-width: 1199px) { .preview-body { grid-template-columns: minmax(0, 1fr); } .preview-side { display: none; } }

/* signature: the bridge span across the full width */
.span-line { margin-top: clamp(40px, 6vw, 80px); }
.span-line svg { width: 100%; height: clamp(44px, 6vw, 90px); }
.span-names { display: flex; justify-content: space-around; gap: 8px; width: var(--shell); margin: 12px auto 0; font-size: var(--fs-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.span-names li { position: relative; padding-top: 10px; }
.span-names li::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 6px; background: var(--accent); }

/* ── Models ── */
.model-list > li { display: grid; gap: 6px; padding-block: 22px; border-top: 1px solid var(--line-strong); }
.model-list > li:last-child { border-bottom: 1px solid var(--line-strong); }
.model-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.model-id { color: var(--muted); }
.status { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.status.is-on { color: var(--ok); }
.status.is-on::before { background: currentColor; }

/* ── Limits (ink band) ── */
.limits-kv > div { display: grid; gap: 4px 24px; padding-block: 18px; border-top: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); }
.limits-kv > div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); }
.limits-kv dt { font-size: var(--fs-small); color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.limits-kv dd { margin: 0; color: var(--on-ink); }
@media (min-width: 640px) { .limits-kv > div { grid-template-columns: 9rem 1fr; } }

/* ── Pricing: plan columns under rules, the middle one on a colour field ── */
.plans { display: grid; gap: 12px; }
.plan { display: grid; align-content: start; gap: 20px; padding: 24px 0 8px; border-top: 2px solid var(--ink); }
.plan.is-featured { padding: 24px clamp(20px, 2.4vw, 32px) 28px; border-top-color: var(--accent); border-radius: 0 0 var(--radius) var(--radius); background: var(--field-2); color: var(--field-2-ink); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan-tag { color: var(--accent-text); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price .num { font-family: var(--font-mono); font-weight: 600; font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem); letter-spacing: -0.05em; }
.plan-kv > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.plan.is-featured .plan-kv > div { border-top-color: var(--line-strong); }
.plan-kv dt { color: var(--muted-strong); }
.plan-kv dd { margin: 0; text-align: right; font-weight: 600; }
.plan .button { justify-self: stretch; }
.pricing-notes { margin-top: clamp(28px, 4vw, 48px); max-width: 72ch; }
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(var(--plans, 3), minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: start; }
  .plan:not(.is-featured) { padding-top: 32px; }
  .plan.is-featured { padding-top: 32px; }
}

/* ── Footer ── */
.footer-top { display: grid; gap: 40px; }
.footer-brand { display: grid; gap: 8px; align-content: start; }
.footer-note { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-strong); max-width: 90ch; }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }

/* ── Legal pages ── */
.legal-hero { border-bottom: 1px solid var(--line); }
.legal-body { display: grid; gap: clamp(28px, 4vw, 56px); }
.legal-body h2 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; margin-top: 2rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { margin-top: 0.75rem; }
.legal-body ul { padding-left: 1.2em; list-style: disc; }
.legal-body li + li { margin-top: 0.35rem; }
.legal-toc { display: grid; gap: 4px; align-content: start; font-size: var(--fs-small); }
.legal-toc a { color: var(--muted-strong); text-decoration: none; padding-block: 6px; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal-toc a[aria-current="page"] { color: var(--accent-text); font-weight: 700; }
.placeholder { padding: 0 0.3em; border-radius: 4px; background: var(--accent-soft); color: var(--ink); font-family: var(--font-mono); font-size: 0.9em; }
@media (min-width: 900px) { .legal-body { grid-template-columns: 14rem minmax(0, 1fr); } .legal-toc { position: sticky; top: calc(var(--header-height) + 24px); } }

@media print {
  .nav-mobile, .span-line, .preview, .header-signin { display: none !important; }
  .plan.is-featured { background: none; }
}

/* ── Utility classes replacing inline custom properties (CSP blocks style attributes) ── */
.skel-92 { --w: 92%; } .skel-78 { --w: 78%; } .skel-85 { --w: 85%; } .skel-40 { --w: 40%; }
.rule-list-4 { --cols: 4; }
.plans-3 { --plans: 3; }
.hero-copy.stack { --stack: 1.5rem; }
.split > .stack, .intro-row > .stack { --stack: 1.25rem; }

/* ── Pilot form (German pages) ── */
.ob-form { display: grid; gap: 20px; max-width: 640px; }
.form-row { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form-row > label, .form-row > legend { font-weight: 600; padding: 0; }
.form-pair { display: grid; gap: 20px; }
.form-pair .role-row { grid-column: 1 / -1; }
@media (min-width: 640px) { .form-pair { grid-template-columns: 1fr 1fr; } }
.ob-form input:not([type="checkbox"]):not([type="radio"]), .ob-form select, .ob-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--control-line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); }
.ob-form textarea { resize: vertical; }
.ob-form input:focus-visible, .ob-form select:focus-visible, .ob-form textarea:focus-visible { border-color: var(--accent); }
.ob-form [aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.ob-form input[type="checkbox"], .ob-form input[type="radio"] { width: 22px; height: 22px; flex: none; accent-color: var(--accent); margin: 2px 0 0; }
.ob-form .check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-weight: 400; }
.check-grid { display: grid; gap: 0 24px; }
@media (min-width: 560px) { .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field-help { font-size: var(--fs-small); color: var(--muted); }
.field-error { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.field-error::before { content: "! "; color: var(--accent-text); }
.form-alert { padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.ob-form .button { justify-self: start; border: 0; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-aside { --stack: 1rem; align-self: start; }
.plain-list { padding-left: 1.1em; list-style: disc; }
.plain-list li + li { margin-top: 10px; }
.flow { list-style: decimal; padding-left: 1.3em; }
.flow li + li { margin-top: 12px; }
.lang-switch { color: var(--accent-text); }

.lang-switch-narrow { display: none; }
@media (max-width: 440px) { .lang-switch-wide { display: none; } .lang-switch-narrow { display: inline-flex; } }

/* ── Audience fields (German landing) ── */
.audience-wide { --span: 7; }
.audience-narrow { --span: 5; }
.audience-note { max-width: 70ch; }

/* ── Bridge examples: what you write, and how it crosses (German landing) ── */
.bridge-examples { margin-bottom: clamp(40px, 6vw, 80px); }
.bridge-head { display: none; }
.bridge-list > li { display: grid; gap: 10px; padding-block: 22px; border-top: 1px solid var(--line-strong); }
.bridge-list > li:last-child { border-bottom: 1px solid var(--line-strong); }
.bridge-ask { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); max-width: 34ch; }
.bridge-route { position: relative; display: grid; align-content: start; gap: 4px; padding-left: 34px; }
.bridge-route::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 11px; border: 1.5px solid var(--accent); border-bottom: 0; border-radius: 11px 11px 0 0; }
.bridge-route .label { color: var(--accent-text); }
@media (min-width: 860px) {
  .bridge-head, .bridge-list > li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 72px); }
  .bridge-head { display: grid; margin-bottom: 10px; }
  .bridge-head span + span { padding-left: 34px; }
}

/* Why one bridge: comparison table, stacked rows on narrow screens */
.versus { width: 100%; border-collapse: collapse; text-align: left; }
.versus thead th { font-family: var(--font-mono); font-size: var(--fs-small); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0 16px 12px 0; }
.versus thead th:last-child { color: var(--accent-text); }
.versus tbody th, .versus td { padding: 18px 16px 18px 0; border-top: 1px solid var(--line-strong); vertical-align: top; }
.versus tbody tr:last-child > * { border-bottom: 1px solid var(--line-strong); }
.versus tbody th { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); width: 26%; }
.versus td { color: var(--muted); width: 32%; }
.versus td:last-child { color: var(--ink); font-weight: 500; padding-left: 20px; border-left: 3px solid var(--accent); width: 42%; }
.versus-note { margin-top: 20px; max-width: 70ch; }
@media (max-width: 699px) {
  .versus thead { display: none; }
  .versus tbody, .versus tr, .versus th, .versus td, .versus tbody th, .versus td:last-child { display: block; width: auto; }
  .versus tbody tr { padding-block: 18px; border-top: 1px solid var(--line-strong); }
  .versus tbody tr:last-child { border-bottom: 1px solid var(--line-strong); }
  .versus tbody th, .versus td, .versus tbody tr:last-child > * { border: 0; padding: 0; }
  .versus tbody th { margin-bottom: 8px; }
  .versus td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
  .versus tbody tr > td:last-child { margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--accent); }
  .versus td:last-child::before { color: var(--accent-text); }
}

/* Where and how you pay: numbered steps on a connecting line */
.pay-steps { counter-reset: pay; display: grid; gap: 28px; }
.pay-steps > li { counter-increment: pay; position: relative; display: grid; align-content: start; gap: 8px; padding-left: 56px; }
.pay-steps > li::before { content: counter(pay); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-fill); color: var(--accent-on-fill); font-family: var(--font-display); font-weight: 650; }
.pay-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 46px; bottom: -22px; width: 2px; background: var(--line-strong); }
@media (min-width: 900px) {
  .pay-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .pay-steps > li { padding-left: 0; padding-top: 58px; }
  .pay-steps > li:not(:last-child)::after { left: 46px; right: -24px; top: 18px; bottom: auto; width: auto; height: 2px; }
}
.pay-note { margin-top: 32px; padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); max-width: 70ch; }

/* ── 3D bridge in the hero: canvas over a static SVG that serves no-JS and print ── */
.bridge-stage { position: relative; margin: 0; aspect-ratio: 4 / 3; width: 100%; }
.bridge-fallback, .bridge-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bridge-stage canvas { display: block; touch-action: pan-y; }
@media screen { .bridge-stage.is-live .bridge-fallback { visibility: hidden; } }
@media (min-width: 900px) { .bridge-stage { aspect-ratio: 5 / 4; } }
@media (min-width: 900px) and (min-height: 720px) { .ob-hero .hero-inner { min-height: min(640px, calc(100svh - var(--header-height) - 120px)); } }
@media (min-width: 900px) { [data-depth] { transform: translate3d(0, var(--drift, 0px), 0); } }

/* the span line draws itself once */
.js .span-arch { stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: span-draw 1400ms var(--ease-out) 200ms forwards; }
@keyframes span-draw { to { stroke-dashoffset: 0; } }

/* ── Product preview below the hero: tilted back, settles flat as it scrolls in ── */
.showcase { margin-bottom: clamp(40px, 6vw, 80px); perspective: 1600px; }
.showcase .preview { max-width: 980px; }
.showcase .preview-window { transform-origin: 50% 100%; transform: rotateX(calc(var(--settle, 0) * 16deg)) scale(calc(1 - var(--settle, 0) * 0.06)); transition: transform 120ms linear; }
.showcase .preview-window.tilt { transform: rotateX(calc(var(--settle, 0) * 16deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg)) scale(calc(1 - var(--settle, 0) * 0.06)); }
.showcase figcaption { margin-top: 12px; }

/* ── Card tilt: plans lean toward the cursor ── */
.plan.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 180ms var(--ease-out); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  [data-depth], .showcase .preview-window, .showcase .preview-window.tilt, .plan.tilt { transform: none !important; transition: none !important; }
  .js .span-arch { animation: none; stroke-dashoffset: 0; }
}
@media print {
  .bridge-stage canvas { display: none; }
  [data-depth], .plan.tilt { transform: none !important; }
  .span-arch { stroke-dashoffset: 0 !important; animation: none !important; }
}
.tagline { margin-top: 12px; font-size: var(--fs-small); color: var(--muted); }
.tagline a { color: inherit; }
