/*
 * MOLINOTEQ Support: design system for the public product pages and the customer area.
 * No scripts (CSP script-src 'none'): disclosure menus use <details>, motion is CSS only and off under reduced motion.
 *
 * Shape rule: controls (buttons, inputs, list rows) 8px, cards and media 14px, trays that hold a card or media 22px,
 * badges and chips fully rounded. Colour rule: cool neutrals, one accent (MOLINOTEQ gold), used for marks, not surfaces.
 * Fonts: Geist and Geist Mono (SIL OFL, fonts/OFL-Geist.txt). Icons: Phosphor (MIT, icons/LICENSE-Phosphor.txt).
 */

@font-face { font-family: "Geist"; src: url(fonts/Geist-Variable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-Variable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f4f5f6;
  --surface: #fcfcfd;
  --surface-2: #eceef0;
  --surface-3: #e2e5e8;
  --ink: #242526;
  --ink-2: #44484c;
  --muted: #5c6268;
  --line: #dcdfe2;
  --line-strong: #c3c8cd;
  --field-border: #8a9096;
  --accent: #bc9a78;
  --accent-ink: #7a5d3f;
  --on-accent-surface: #242526;
  --btn-bg: #242526;
  --btn-fg: #f7f8f8;
  --btn-hover: #393b3d;
  --focus: #7a5d3f;
  --ok: #2c6b4c;
  --ok-bg: #e4f0e9;
  --warn: #85540f;
  --warn-bg: #f6ecdb;
  --err: #a3392c;
  --err-bg: #f8e6e3;
  --header-bg: rgb(244 245 246 / 0.84);
  --shot-bg: #f6f7f7;
  --shadow-1: 0 1px 2px rgb(30 33 36 / 0.05), 0 1px 1px rgb(30 33 36 / 0.03);
  --shadow-2: 0 18px 40px -18px rgb(30 33 36 / 0.22), 0 2px 6px rgb(30 33 36 / 0.05);
  --shadow-3: 0 40px 80px -40px rgb(30 33 36 / 0.38), 0 8px 24px -12px rgb(30 33 36 / 0.12);

  --r-control: 8px;
  --r-card: 14px;
  --r-tray: 22px;
  --r-pill: 999px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141516;
    --surface: #1b1d1f;
    --surface-2: #232629;
    --surface-3: #2b2f32;
    --ink: #eceef0;
    --ink-2: #c6cacd;
    --muted: #9ca2a8;
    --line: #2d3134;
    --line-strong: #43494e;
    --field-border: #6d747a;
    --accent: #bc9a78;
    --accent-ink: #d4b795;
    --btn-bg: #eceef0;
    --btn-fg: #17181a;
    --btn-hover: #d6d9dc;
    --focus: #d4b795;
    --ok: #86c9a5;
    --ok-bg: #1b3126;
    --warn: #e4b672;
    --warn-bg: #362b19;
    --err: #f29e91;
    --err-bg: #3b221f;
    --header-bg: rgb(20 21 22 / 0.82);
    --shot-bg: #e9ebec;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 18px 40px -18px rgb(0 0 0 / 0.7), 0 2px 6px rgb(0 0 0 / 0.3);
    --shadow-3: 0 40px 80px -40px rgb(0 0 0 / 0.85), 0 8px 24px -12px rgb(0 0 0 / 0.4);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
ul, ol { margin-top: 0; }
dd { margin: 0; }
code, pre, kbd { font-family: var(--font-mono); font-size: 0.875em; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; border-radius: var(--r-control); background: var(--surface-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--r-control); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.hint { display: block; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.empty { margin: 0; padding: 28px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); color: var(--muted); text-align: center; max-width: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent-ink); }
.text-link:hover .icon { transform: translateX(2px); }
.text-link .icon { transition: transform 0.25s var(--ease); }

/* Legacy dashicons markup (e.g. the language form) rendered with Phosphor masks; the dashicons font is not loaded. */
.dashicons { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: -3px; background: currentColor; -webkit-mask: var(--glyph, url(icons/circle.svg)) center / contain no-repeat; mask: var(--glyph, url(icons/circle.svg)) center / contain no-repeat; }
.dashicons-saved, .dashicons-yes, .dashicons-yes-alt { --glyph: url(icons/check.svg); }
.dashicons-arrow-right-alt2 { --glyph: url(icons/caret-right.svg); }
.dashicons-arrow-left-alt2 { --glyph: url(icons/caret-left.svg); }
.dashicons-plus-alt2 { --glyph: url(icons/plus.svg); }
.dashicons-download { --glyph: url(icons/download-simple.svg); }
.dashicons-external { --glyph: url(icons/arrow-square-out.svg); }
.dashicons-exit { --glyph: url(icons/sign-out.svg); }

/* ---------- Buttons ---------- */

.button { --btn-h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: var(--btn-h); padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font: 600 14.5px/1.25 var(--font-sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.button:hover { border-color: var(--field-border); background: var(--surface-2); color: var(--ink); }
.button:active { transform: translateY(1px); }
.button .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.button:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.button.primary { border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-1); }
.button.primary:hover { border-color: var(--btn-hover); background: var(--btn-hover); color: var(--btn-fg); }
.button.primary .icon { color: var(--accent); }
.button.large { --btn-h: 50px; padding: 12px 22px; font-size: 15.5px; }
.button.ghost { border-color: transparent; background: transparent; color: var(--ink-2); box-shadow: none; }
.button.ghost:hover { background: var(--surface-2); color: var(--ink); }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { .button.primary .icon { color: currentColor; } }

/* ---------- Notices, badges, status ---------- */

.notice { display: flex; align-items: flex-start; gap: 10px; max-width: none; margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line); border-color: color-mix(in srgb, var(--ok) 28%, transparent); border-radius: var(--r-control); background: var(--ok-bg); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.notice::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: var(--ok); -webkit-mask: url(icons/check-circle.svg) center / contain no-repeat; mask: url(icons/check-circle.svg) center / contain no-repeat; }
.notice.error { border-color: color-mix(in srgb, var(--err) 30%, transparent); background: var(--err-bg); }
.notice.error::before { background: var(--err); -webkit-mask-image: url(icons/warning.svg); mask-image: url(icons/warning.svg); }
.notice.draft { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-bg); }
.notice.draft::before { background: var(--warn); -webkit-mask-image: url(icons/info.svg); mask-image: url(icons/info.svg); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge.ok { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.badge.attention { border-color: transparent; background: var(--warn-bg); color: var(--warn); }
.badge.error { border-color: transparent; background: var(--err-bg); color: var(--err); }
.badge.neutral { background: var(--surface-2); color: var(--muted); }
.badge.accent { border-color: var(--accent); background: transparent; color: var(--accent-ink); }

.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.attention { color: var(--warn); }

/* ---------- Cards, sections, details ---------- */

.card { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1); }
.card.narrow { max-width: 560px; }
.card.narrow > .icon { width: 32px; height: 32px; margin-bottom: 12px; color: var(--accent-ink); }
.section-title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.section-title h2 { margin: 0; }
.section-title p { margin: 4px 0 0; }
.section-title > a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent-ink); }
.columns { display: grid; gap: 24px; align-items: start; }
.columns > * { min-width: 0; }
.aside-panel { padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card); background: var(--surface-2); }
.aside-panel h2 { font-size: 1.125rem; }
@media (min-width: 900px) { .is-site .aside-panel { position: sticky; top: 96px; } }

.details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0 0 20px; font-size: 14.5px; }
.details dt { color: var(--muted); }
.details dd { overflow-wrap: anywhere; }
.kpi-row, .details.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 20px; }
.kpi { min-width: 0; padding: 14px 16px; border-radius: var(--r-control); background: var(--surface-2); }
.kpi dt { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi dd { margin-top: 2px; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi dd small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.kpi .kpi-note { margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 400; }

.is-app details:not(.lang) { margin: 16px 0; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); }
.is-app details:not(.lang) > summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.is-app details[open]:not(.lang) > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.is-app details:not(.lang) > :last-child:not(summary) { margin-bottom: 16px; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; max-width: 640px; }
.form label:not(.choice):not(.plan-option) { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.form p { margin: 0; }
.form .button { justify-self: start; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--field-border); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font: 400 15px/1.4 var(--font-sans); transition: border-color 0.15s, box-shadow 0.15s; }
input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]):focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 1px; border-radius: var(--r-control); }
::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 120px; resize: vertical; }
input[type=file] { width: 100%; padding: 12px; border: 1px dashed var(--field-border); border-radius: var(--r-control); background: var(--surface-2); font-size: 14px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--ink); }
@media (prefers-color-scheme: dark) { input[type=checkbox], input[type=radio] { accent-color: var(--accent); } }
.choice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 14.5px; font-weight: 400; cursor: pointer; }
.choice:last-child { margin-bottom: 0; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-pair.field-street { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.field-pair.field-city { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.form-foot { margin: 18px 0 0; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Radio cards for plans and services: <label class="plan-option"><input type="radio"><span>...</span></label> */
.plan-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.plan-option { position: relative; display: block; min-width: 0; cursor: pointer; }
.plan-option > input { position: absolute; top: 20px; left: 18px; width: 18px; height: 18px; margin: 0; opacity: 0; }
.plan-option > span { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; height: 100%; padding: 16px 18px 18px 48px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.plan-option > span::before { content: ""; position: absolute; top: 19px; left: 18px; width: 18px; height: 18px; border: 1.5px solid var(--field-border); border-radius: 50%; background: var(--surface); transition: border-width 0.2s var(--ease), border-color 0.2s; }
.plan-option:hover > span { border-color: var(--field-border); }
.plan-option > input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-1); }
.plan-option > input:checked + span::before { border: 5.5px solid var(--ink); }
.plan-option > input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.plan-option strong { grid-column: 1; font-size: 15.5px; }
.plan-option-price { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; font-family: var(--font-mono); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-option-price small { color: var(--muted); font-family: var(--font-sans); font-size: 12.5px; font-weight: 400; }
.plan-option-text { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* Checkout: the column layout and the sticky position live in checkout.css; this is the look of the parts. */
.checkout-main { display: grid; gap: 20px; min-width: 0; }
.is-app .checkout-main > .section { margin: 0; }
.order-summary { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-2); }
.order-summary h2 { font-size: 1.125rem; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.summary-row small { display: block; color: var(--muted); font-size: 12.5px; }
.summary-row > :last-child, .summary-total > :last-child { white-space: nowrap; font-family: var(--font-mono); }
.summary-total { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 6px; font-size: 1.0625rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-summary .hint { margin: 12px 0 16px; }
.order-summary .button { width: 100%; }

/* ---------- Tables, tickets, messages ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 11px 16px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; white-space: nowrap; }
td { padding: 13px 16px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }

.ticket-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 18px; align-items: center; gap: 16px; margin: 0 -12px; padding: 14px 12px; border-radius: var(--r-control); color: var(--ink); text-decoration: none; transition: background-color 0.15s; }
.ticket-row + .ticket-row { box-shadow: 0 -1px 0 var(--line); }
.ticket-row:hover { background: var(--surface-2); color: var(--ink); }
.ticket-row > :first-child { color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.ticket-row strong { font-weight: 600; overflow-wrap: anywhere; }
.ticket-row::after { content: ""; grid-column: 4; width: 16px; height: 16px; background: var(--muted); -webkit-mask: url(icons/caret-right.svg) center / contain no-repeat; mask: url(icons/caret-right.svg) center / contain no-repeat; }
.ticket-row > .dashicons, .ticket-row > .icon { display: none; }

.message { margin: 0 0 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow-wrap: anywhere; }
.message.agent { border-left: 3px solid var(--accent); background: var(--surface-2); }
.message strong { font-size: 14px; }
.message time { display: inline-block; margin-left: 10px; color: var(--muted); font-size: 12.5px; }
.message p { margin: 8px 0 0; max-width: 75ch; }
.state-form { margin-top: 16px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.back::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url(icons/caret-left.svg) center / contain no-repeat; mask: url(icons/caret-left.svg) center / contain no-repeat; }
.back > .dashicons, .back > .icon { display: none; }

.next-steps { display: grid; gap: 14px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: step; }
.next-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; counter-increment: step; }
.next-steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--accent-ink); font: 600 12.5px/1 var(--font-mono); }

/* ---------- Language menu (I18n::controls inside a disclosure) ---------- */

.lang, .menu { position: relative; }
.lang > summary, .menu > summary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.lang > summary::-webkit-details-marker, .menu > summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.lang > summary:hover, .menu > summary:hover, .lang[open] > summary, .menu[open] > summary { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.lang-code { font-family: var(--font-mono); letter-spacing: 0.02em; }
.lang-panel, .menu-panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(300px, calc(100vw - 2 * var(--gutter))); padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-3); }
/* The language list is narrow enough to stay inside the customer-area sidebar. */
.lang-panel { width: 200px; padding: 8px; }
/* Language switch: one button per language, the current one marked; no script, no separate "apply". */
.mts-language { display: grid; gap: 2px; margin: 0; }
.mts-language button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--r-control); background: transparent; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.mts-language button:hover { background: var(--surface-2); }
.mts-language button[aria-current="true"] { font-weight: 600; background: var(--surface-2); }
.mts-language button[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Marketing shell ---------- */

.preview-note { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: none; margin: 0; padding: 7px var(--gutter); border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12.5px; line-height: 1.4; text-align: center; }
.preview-note .icon { width: 15px; height: 15px; color: var(--accent-ink); }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--bg); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; flex: none; border-radius: 4px; }
.brand img { width: 168px; height: 30px; }
.site-nav { display: flex; gap: 2px; margin-inline: auto; }
.site-nav a, .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-control); color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.site-nav a:hover, .nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link .icon { width: 15px; height: 15px; }
.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-cta { --btn-h: 40px; padding: 8px 16px; white-space: nowrap; }
.menu { display: none; }
.menu-panel { display: grid; gap: 4px; padding: 10px; }
.menu-panel nav { display: grid; }
.menu-panel nav a { padding: 12px; border-radius: var(--r-control); font-weight: 500; text-decoration: none; }
.menu-panel nav a:hover { background: var(--surface-2); }
.menu-actions { display: grid; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.menu-actions .nav-link { justify-content: center; }
@media (max-width: 1079px) {
  .site-nav, .site-actions > .nav-link { display: none; }
  .menu { display: block; }
}
@media (max-width: 559px) {
  .site-cta { display: none; }
  .brand img { width: 146px; height: 26px; }
}

.site-main { display: block; }
.page-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(20px, 3vw, 28px); }
.page-head h1 { margin: 0; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); letter-spacing: -0.03em; }
.notices .notice { margin-top: 4px; }
.page-body { padding-bottom: 24px; }
.view-home .notices { padding-top: 20px; }

.site-footer { margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.site-footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-block: 48px; }
.footer-brand p { max-width: 42ch; margin: 16px 0 0; color: var(--ink-2); }
.footer-brand p.muted { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.footer-title { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.footer-links, .footer-contact { display: grid; gap: 8px; margin: 0; }
.footer-links a, .footer-contact a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--ink); text-decoration: underline; }
.site-footer-base { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px; color: var(--muted); font-size: 13px; }
.site-footer-base::before { content: ""; position: absolute; top: 0; right: var(--gutter); left: var(--gutter); height: 1px; background: var(--line); }
.view-home .site-footer { margin-top: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-links a { color: inherit; text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Landing page ---------- */

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); overflow-x: clip; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.1rem, 1.3rem + 2.3vw, 3rem); line-height: 1.04; letter-spacing: -0.038em; }
.lead { max-width: 44ch; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55; }
.hero-visual { position: relative; margin: 0; padding: clamp(10px, 1.6vw, 20px); border: 1px solid var(--line); border-radius: var(--r-tray); background: linear-gradient(155deg, var(--surface-2), var(--surface-3)); }
.hero-visual .shot { box-shadow: var(--shadow-3); }
.shot { width: 100%; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--shot-bg); }
@media (prefers-color-scheme: dark) { .shot { filter: brightness(0.9) contrast(1.03); } }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-visual { margin-right: calc(-1 * var(--gutter) - 5vw); }
}

.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 0; list-style: none; }
.proof-list li { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 24px 24px 24px 0; }
.proof-list li + li { padding-left: 24px; }
.proof-list li + li { border-left: 1px solid var(--line); }
.proof-list .icon { width: 26px; height: 26px; color: var(--accent-ink); }
.proof-list strong { display: block; font-size: 15px; font-weight: 600; }
.proof-list span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

.block { padding: clamp(56px, 7.5vw, 104px) 0; }
.block h2 { font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.6rem); letter-spacing: -0.03em; }
.block-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.block-head p { color: var(--ink-2); font-size: 1.075rem; }
.block-head p:last-child { margin-bottom: 0; }

.bento { --tile-pad: clamp(20px, 2.4vw, 28px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: var(--tile-pad); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.tile.tinted { background: var(--surface-2); }
.tile-text, .tile-fit > div { display: flex; flex-direction: column; gap: 8px; }
.tile h3 { margin: 8px 0 2px; font-size: 1.2rem; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .icon { width: 30px; height: 30px; color: var(--accent-ink); }
.tile .hint { padding-top: 8px; }
.tile .ticks { margin-top: 12px; }
.tile .ticks li { color: var(--ink-2); font-size: 14.5px; }
.tile .ticks .icon { width: 18px; height: 18px; }
.tile-media { margin: auto calc(-1 * var(--tile-pad)) calc(-1 * var(--tile-pad)) var(--tile-pad); padding-top: 22px; }
.tile-media .shot { border-right: 0; border-bottom: 0; border-radius: var(--r-control) 0 0 0; box-shadow: var(--shadow-2); }
.tile-label { grid-column: span 4; grid-row: span 2; }
.tile-services { grid-column: span 2; grid-row: span 2; }
.tile-reconcile { grid-column: span 4; }
.tile-checks { grid-column: span 2; }
.tile-secure { grid-column: span 2; }
.tile-fit { grid-column: span 4; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.tile-fit > div { flex: 1 1 280px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li { padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.codes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.codes li { padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface); font: 500 13px/1.3 var(--font-mono); letter-spacing: 0.02em; }

.steps-block { border-block: 1px solid var(--line); background: var(--surface); }
.steps-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.steps { position: relative; display: grid; margin: 36px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 28px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; top: 50px; bottom: 6px; left: 21.5px; width: 1px; background: linear-gradient(var(--accent), var(--line)); }
.step-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--accent-ink); }
.step-icon .icon { width: 20px; height: 20px; }
.steps h3 { margin: 9px 0 4px; font-size: 1.125rem; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps-visual { margin: 0; padding: clamp(10px, 1.6vw, 18px); border: 1px solid var(--line); border-radius: var(--r-tray); background: var(--surface-2); }
.steps-visual figcaption { margin: 12px 4px 2px; color: var(--muted); font-size: 13px; }
.access-callout { margin-top: 32px; padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-card); background: var(--bg); }
.access-callout h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.access-callout p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.roles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.role { min-width: 0; padding: clamp(24px, 3.4vw, 40px); }
.role + .role { border-left: 1px solid var(--line); }
.role-primary { box-shadow: inset 0 3px 0 var(--accent); }
.role-name { margin: 0 0 6px; color: var(--muted); font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.02em; }
.role h3 { margin-bottom: 18px; font-size: 1.35rem; }
.ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.ticks .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-ink); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.plan.is-featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-2); }
@media (prefers-color-scheme: dark) { .plan.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-2); } }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan-summary { min-height: 3em; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 8px 0 0; }
.price-currency { color: var(--muted); font: 500 14px/1 var(--font-mono); }
.price-amount { font: 600 clamp(2.2rem, 1.7rem + 1.4vw, 2.8rem)/1 var(--font-mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price-unit { flex-basis: 100%; margin-top: 6px; color: var(--muted); font-size: 13px; }
.plan .ticks { margin: 6px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan .ticks li { font-size: 14.5px; }
.plan .button { width: 100%; margin-top: auto; }
.services { margin-top: 20px; padding: clamp(20px, 2.6vw, 28px); border: 1px dashed var(--line-strong); border-radius: var(--r-card); }
.services h3 { margin: 0 0 4px; font-size: 1rem; }
.services dl { display: grid; margin: 0; }
.services dl > div { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; align-items: baseline; gap: 6px 20px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.services dl > div:first-child { border-top: 0; margin-top: 4px; }
.services dt { font-weight: 600; }
.services dd { color: var(--muted); font-size: 14.5px; }
.services .service-price { color: var(--ink); font: 600 15px/1.4 var(--font-mono); white-space: nowrap; }
.fineprint { max-width: 80ch; margin: 20px 0 0; color: var(--muted); font-size: 13.5px; }

.support-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.portrait { max-width: 380px; margin: 0; overflow: hidden; border-radius: var(--r-card); background: var(--surface-2); aspect-ratio: 476 / 640; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.support-copy > p { color: var(--ink-2); font-size: 1.075rem; }
.support-copy .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 24px 0 0; }
.contact-links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.contact-links .icon { color: var(--accent-ink); }
@media (min-width: 900px) { .support-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }

.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 32px 64px; }
.faq-intro p { color: var(--ink-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 1.05rem; font-weight: 600; list-style: none; cursor: pointer; }
.faq-list summary:hover { color: var(--accent-ink); }
.faq-list summary .icon { color: var(--muted); transition: transform 0.3s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { max-width: 62ch; margin: -4px 0 22px; color: var(--ink-2); }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .faq-intro { position: sticky; top: 96px; align-self: start; }
}

.closing { padding-top: 0; }
.closing-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; overflow: hidden; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: var(--r-tray); background: var(--surface-2); }
.closing-card::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--accent); }
.closing-card h2 { margin-bottom: 8px; }
.closing-card p { margin: 0; color: var(--ink-2); }
.closing-card .actions { margin: 0; }

/* ---------- Auth and legal pages ---------- */

.prose { max-width: 720px; }
.prose h2 { margin: 2em 0 0.5em; font-size: 1.25rem; }
.prose h2:first-of-type { margin-top: 1.4em; }
.prose p { color: var(--ink-2); }
.imprint { margin: 24px 0 0; }
.imprint > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.imprint dt { color: var(--muted); }

/* ---------- Customer area shell ---------- */

.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100dvh; }
.app-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 4px; height: 100dvh; padding: 20px 14px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); }
.app-side-top { display: contents; }
.app-side .brand { padding: 4px 10px 22px; }
.app-side-label { margin: 6px 12px 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.app-nav { display: grid; gap: 2px; }
.app-nav a, .app-side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-control); color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.app-nav a:hover, .app-side-link:hover { background: var(--surface-2); color: var(--ink); }
.app-nav a[aria-current] { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.app-nav a[aria-current] .icon { color: var(--accent-ink); }
.app-nav .icon, .app-side-link .icon { width: 20px; height: 20px; }
.app-side-link { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.app-tools { order: 99; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.app-logout { margin: 0; }
.app-logout .button { --btn-h: 40px; padding: 8px 12px; font-weight: 500; }
.app-side .lang-panel { top: auto; right: auto; bottom: calc(100% + 8px); left: 0; }
.app-body { display: flex; flex-direction: column; min-width: 0; }
.app-main { flex: 1; width: 100%; max-width: 1140px; padding: clamp(24px, 3.5vw, 40px) clamp(16px, 4vw, 48px) 48px; }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.app-company { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.app-head h1 { margin: 0; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem); letter-spacing: -0.03em; }
.app-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 18px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.app-foot a { color: inherit; }
.app-body > .preview-note { justify-content: flex-start; padding-inline: clamp(16px, 4vw, 48px); }

/* Every content section of the customer area is a card. */
.is-app .section { margin: 0 0 20px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1); min-width: 0; }
.is-app .columns { margin-bottom: 20px; }
.is-app .columns > .section { margin: 0; }
.is-app .section > h2:first-child, .is-app .section > .section-title:first-child h2 { font-size: 1.1875rem; }
.section.empty-state { text-align: left; }

.welcome { display: grid; gap: 24px; margin: 0 0 20px; padding: clamp(22px, 3.4vw, 36px); border: 1px solid var(--line); border-radius: var(--r-card); background: linear-gradient(160deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-1); }
.welcome .eyebrow { display: none; }
.welcome h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -0.03em; }
.welcome p { color: var(--ink-2); }
.welcome .actions { margin-top: 18px; }
.live-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 0; align-content: start; }
.live-stats > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); }
.live-stats dt { color: var(--muted); font-size: 12.5px; }
.live-stats dd { margin-top: 2px; font: 600 1.5rem/1.2 var(--font-mono); font-variant-numeric: tabular-nums; overflow-wrap: normal; }
/* The plan name is a word, not a number: proportional type, never split mid-word. */
.live-stats > div:first-child dd { font-size: clamp(1rem, 0.8rem + 0.6vw, 1.25rem); font-family: var(--font-sans, inherit); }
@media (min-width: 1100px) { .welcome { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: center; } }

.setup-checks { display: grid; margin: 0; padding: 0; list-style: none; }
.setup-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.setup-checks li:first-child { border-top: 0; padding-top: 4px; }
.setup-checks a { text-decoration: none; font-weight: 500; }
.setup-checks a:hover { text-decoration: underline; }
.setup-checks .status { white-space: normal; text-align: right; }
.step-mark { position: relative; width: 20px; height: 20px; border: 1.5px solid var(--field-border); border-radius: 50%; }
.is-done .step-mark { border-color: var(--ok); background: var(--ok); }
.is-done .step-mark::after { content: ""; position: absolute; inset: 3px; background: var(--surface); -webkit-mask: url(icons/check.svg) center / contain no-repeat; mask: url(icons/check.svg) center / contain no-repeat; }
/* Steps this page cannot verify (they happen in the shop or with Planzer): dashed, never shown as complete. */
.is-external .step-mark { border-style: dashed; border-color: var(--line-strong); }

/* Planzer access data and the request text for the Planzer customer advisor. */
.access-label { margin: 0 0 4px; font-weight: 600; font-size: 14.5px; }
.access .chips, .access-callout .chips { margin: 0 0 16px; }
.request-field { display: grid; gap: 6px; max-width: 760px; font-size: 14px; font-weight: 600; }
.request-field textarea { min-height: 240px; background: var(--surface-2); font: 400 13.5px/1.55 var(--font-mono); resize: vertical; }
.access-request > .request-field { margin-bottom: 4px; }

/* Download page: file, technical details in a disclosure, illustrated guide. */
.download-file { margin: 0 0 14px; font-size: 14.5px; overflow-wrap: anywhere; }
.download-card form { margin: 0 0 16px; }
.requirements { margin: 0 0 12px; }
.guide-steps { display: grid; gap: 22px; margin: 6px 0 22px; padding: 0; list-style: none; counter-reset: guide; }
.guide-steps > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px 14px; counter-increment: guide; }
.guide-steps > li::before { content: counter(guide); grid-row: 1 / span 2; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--accent-ink); font: 600 13px/1 var(--font-mono); }
.guide-step h3 { margin: 5px 0 4px; font-size: 1rem; }
.guide-step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.guide-shot { grid-column: 2; max-width: 760px; margin: 8px 0 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-tray); background: var(--surface-2); }
.ticket-reference { font-size: 14px; }
.diagnostics-summary { margin: 0 0 4px; }
.requirements-line { margin: 0 0 12px; }

.contact img { width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.contact h2 { margin-bottom: 6px; }
.contact p { font-size: 14.5px; }
.contact a { font-weight: 600; text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.subscription .kpi-row { margin-bottom: 8px; }

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
  .columns { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (max-width: 1023px) {
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-label, .tile-services, .tile-reconcile, .tile-fit { grid-column: span 2; grid-row: auto; }
  .tile-checks, .tile-secure { grid-column: span 1; }
}
@media (max-width: 959px) {
  .app { display: block; }
  .app-side { position: static; height: auto; gap: 0; padding: 10px var(--gutter) 0; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .app-side .brand { padding: 6px 0; }
  .app-side .brand img { width: 146px; height: 26px; }
  .app-tools { order: 0; margin: 0; padding: 0; border: 0; }
  .app-logout .button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .app-logout .button { --btn-h: 40px; width: 40px; padding: 0; border-color: var(--line); }
  .app-side .lang-panel { top: calc(100% + 8px); right: 0; bottom: auto; left: auto; }
  .app-side-label, .app-side-link { display: none; }
  .app-nav { display: flex; gap: 4px; margin: 8px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-nav a { flex: none; gap: 8px; padding: 8px 12px; font-size: 14px; scroll-snap-align: start; }
  .app-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
  .app-nav .icon { width: 18px; height: 18px; }
}
@media (max-width: 899px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .support-copy .kpi-row { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 320px; }
}
@media (max-width: 767px) {
  .roles-grid { grid-template-columns: minmax(0, 1fr); }
  .role + .role { border-top: 1px solid var(--line); border-left: 0; }
  .site-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .services dl > div { grid-template-columns: minmax(0, 1fr) auto; }
  .services dl > div > dd:not(.service-price) { grid-column: 1 / -1; grid-row: 2; }
  .services .service-price { grid-column: 2; grid-row: 1; }
  .imprint > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  /* Disclosure panels span the header instead of hanging off their (not right-aligned) trigger. */
  .site-header-inner, .app-side-top { position: relative; }
  .lang, .site-header .menu { position: static; }
  .lang-panel, .site-header .menu-panel, .app-side .lang-panel { top: calc(100% + 4px); right: 0; bottom: auto; left: 0; width: auto; }
  .site-header .lang-panel, .site-header .menu-panel { right: var(--gutter); left: var(--gutter); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-label, .tile-services, .tile-reconcile, .tile-fit, .tile-checks, .tile-secure { grid-column: auto; }
  .proof-list { grid-template-columns: minmax(0, 1fr); }
  .proof-list li { padding: 18px 0; border-left: 0 !important; }
  .proof-list li + li { padding-left: 0; border-top: 1px solid var(--line); }
  .field-pair { grid-template-columns: minmax(0, 1fr); }
  .details { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .details dd { margin-bottom: 10px; }
  .ticket-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 4px 12px; }
  .ticket-row > :first-child { grid-column: 1; }
  .ticket-row strong { grid-column: 1; }
  .ticket-row > .status, .ticket-row > .badge { grid-column: 1; }
  .ticket-row::after { grid-column: 2; grid-row: 1 / span 3; }
  .form .button, .actions .button { width: 100%; }
  .closing-card .actions { width: 100%; }
}
@media (max-width: 479px) {
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 2.05rem; }
}

/* ---------- Motion (CSS only, off under reduced motion) ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise-visual { from { opacity: 0; transform: translateY(28px) scale(0.985); } to { opacity: 1; transform: none; } }
/* No scroll-driven reveals: Chrome left tiles invisible after scroll jumps (anchor links), content must never depend on motion. */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-visual { animation: rise-visual 1.1s var(--ease) 0.15s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
@media print {
  .site-header, .site-footer, .app-side, .preview-note, .menu, .lang { display: none !important; }
  .app { display: block; }
}

/* Payment details: IBAN and reference wrap only between their printed blocks. */
.payment .kpi-row { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kpi dd code { overflow-wrap: normal; word-break: normal; }

