/* Pand4U product site (pand4u.online). The colours and type follow the app
   (src/app.css). One stylesheet for every page and no inline styles: nginx
   sends a CSP that only allows 'self' (deploy/nginx-pand4u-site.conf). */

/* IBM Plex, served from here and not from Google (AVG). Latin subset from
   Fontsource 5.3.0, licence in fonts/LICENSE.txt. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/plex-sans-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/plex-mono-500.woff2") format("woff2"); }

/* Layout: a site plan. The units grid from the management dashboard is the
   recurring motif; sections sit on paper, the closing call on ink. */
:root {
  color-scheme: light;
  --paper: #f2f1ed;
  --paper-2: #e9e7e1;
  --card: #ffffff;
  --ink: #16191d;
  --ink-2: #2b3036;
  --line: #dad8d2;
  --muted: #5b6168;
  --on-ink: #ffffff;
  --on-ink-muted: #c9c6be;
  --accent: #b9470b;
  --accent-hover: #9a3a08;
  --accent-on-ink: #f0a46e;
  --accent-soft: #fbeadf;
  --accent-ink: #7a2e06;
  --ok: #2f6b3f;
  --ok-soft: #e4efe6;
  --alert: #b42318;
  --alert-soft: #fde8e7;
  --notice: #1e4fb8;
  --notice-soft: #e3eaf8;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1160px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* Why: a display rule (flex, grid) beats the hidden attribute otherwise, and
   the form would stay next to its confirmation. */
[hidden] { display: none !important; }
figure { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Visually hidden, still read and focusable: the radios of the price toggle. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 96px; }
.section + .section { border-top: 1px solid var(--line); }
.label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.section-head.flush { margin-bottom: 0; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section-head p:not(.label) { color: var(--muted); font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: #8a8780; }
.btn-secondary:hover { background: var(--paper-2); }
.btn-light { background: var(--on-ink); color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { flex: none; }
.brand-small { font-size: 17px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.back-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.back-link:hover { background: var(--paper-2); }

.login { position: relative; }
.login summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
}
.login summary::-webkit-details-marker { display: none; }
.login summary:hover { background: var(--paper-2); }
.login summary svg { transition: transform .15s; }
.login[open] summary svg { transform: rotate(180deg); }
.login-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 270px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; box-shadow: 0 12px 32px rgba(22, 25, 29, .12);
  display: flex; flex-direction: column; gap: 2px;
}
.login-menu a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; text-decoration: none; }
.login-menu a:hover { background: var(--paper); }
.login-menu strong { font-size: 15px; }
.login-menu span { font-size: 13px; color: var(--muted); }

/* Hero */
.hero { padding-block: 72px 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* Browser frame around the dashboard example */
.browser { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(22, 25, 29, .35); overflow: hidden; min-width: 0; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #c9c6be; }
.url { flex: 1; min-width: 0; font: 13px var(--mono); color: var(--muted); background: var(--card); border-radius: 8px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.dash-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; }
.dash-top small { display: block; font-size: 12px; color: var(--muted); }
.dash-top .mock-title { display: block; font-size: 22px; letter-spacing: -0.02em; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi strong { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.kpi strong.warn { color: var(--alert); }
.units-block { display: flex; flex-direction: column; gap: 10px; }
.units-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.units-head strong { font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.units { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.unit {
  aspect-ratio: 1 / 1.05; max-width: 100%;
  border-radius: 7px; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 4px 5px; font: 500 10px/1 var(--mono); letter-spacing: -0.02em;
  background: var(--ok-soft); color: var(--ok); border: 1px solid #c9dccd;
}
.unit.free { background: var(--card); color: var(--muted); border: 1.5px dashed #a9a59c; }
.unit.issue { background: var(--alert-soft); color: var(--alert); border-color: #f2b8b3; }
.unit.notice { background: var(--notice-soft); color: var(--notice); border-color: #a9c0ec; }
.legend .i-rented { background: var(--ok-soft); border: 1px solid #c9dccd; }
.legend .i-free { background: var(--card); border: 1.5px dashed #a9a59c; }
.legend .i-issue { background: var(--alert-soft); border: 1px solid #f2b8b3; }
.legend .i-notice { background: var(--notice-soft); border: 1px solid #a9c0ec; }
.issues-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.issue-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.issue-row b { font-size: 13px; }
.issue-row span { font-size: 12px; color: var(--muted); }
.pill { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.pill.urgent { background: var(--alert-soft); color: var(--alert); }
.pill.planned { background: var(--notice-soft); color: var(--notice); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; }
.feature h3 { font-size: 21px; font-weight: 600; }
.feature p { color: var(--muted); font-size: 16px; }
.feature .detail { margin-top: auto; padding-top: 6px; font: 13px var(--mono); color: var(--ink); }

/* Tenant side */
.tenant-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.phone {
  justify-self: center; width: 100%; max-width: 340px;
  background: var(--ink); border-radius: 44px; padding: 12px;
  box-shadow: 0 40px 70px -35px rgba(22, 25, 29, .55);
}
.phone-screen { background: var(--paper); border-radius: 33px; overflow: hidden; display: flex; flex-direction: column; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 26px 18px 12px; }
.org-mark { width: 30px; height: 30px; border-radius: 8px; background: #234e52; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.phone-head b { font-size: 15px; }
.phone-body { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.phone-body .hello { font-size: 22px; font-weight: 700; padding-inline: 4px; }
.contract { background: var(--ink); color: var(--on-ink); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.contract .mock-title { display: block; font-size: 18px; }
.contract .place { font-size: 12px; color: var(--on-ink-muted); }
.contract dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contract dt { font-size: 11px; color: #b5b2aa; }
.contract dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.contract dd.sub { font-weight: 400; font-size: 11px; color: #b5b2aa; margin: 0; }
.code { border-top: 1px solid var(--ink-2); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.code-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--on-ink-muted); }
.code-row b { font: 500 17px var(--mono); letter-spacing: 0.18em; color: var(--on-ink); }
.code-button { min-height: 40px; border-radius: 11px; border: 1px solid var(--muted); display: grid; place-items: center; color: var(--on-ink); font-weight: 600; font-size: 14px; }
.notice-card { background: var(--paper-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.notice-card small { font-size: 11px; font-weight: 600; color: var(--muted); }
.notice-card b { font-size: 14px; }
.notice-card p { font-size: 13px; }
.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--card); padding: 8px 4px 14px; }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); font-weight: 500; }
.tabbar span.on { color: var(--accent); }
.tenant-list { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.tenant-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.tenant-list .tick { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.tenant-list b { display: block; font-size: 17px; }
.tenant-list span { color: var(--muted); font-size: 16px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 24px; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; gap: 22px; }
.plan-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.plan-top h3 { font-size: 24px; }
.toggle { display: inline-flex; background: var(--paper-2); border-radius: 12px; padding: 4px; gap: 4px; }
.toggle label { min-height: 44px; padding: 0 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.toggle label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 25, 29, .12); }
.toggle label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle .save { font-size: 11px; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price strong { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.price-note { color: var(--muted); font-size: 15px; margin-top: -10px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.checks svg { color: var(--ok); margin-top: 3px; }
.staffel { border-top: 1px solid var(--line); padding-top: 18px; font-size: 15px; color: var(--muted); }
.staffel b { color: var(--ink); }

.services { display: flex; flex-direction: column; gap: 12px; }
.services-intro { padding: 4px 4px 8px; display: flex; flex-direction: column; gap: 6px; }
.services-intro h3 { font-size: 22px; }
.services-intro p:not(.label) { color: var(--muted); font-size: 15px; }
.service { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
.service h4 { margin: 0; font-size: 17px; }
.service p { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.service .tag { font: 12px var(--mono); color: var(--muted); align-self: start; padding-top: 3px; white-space: nowrap; }

/* Steps: a real sequence, so the numbers carry meaning */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding-top: 30px; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); }
.step-no { font: 500 13px var(--mono); color: var(--accent); }
.step h3 { font-size: 21px; font-weight: 600; }
.step p { color: var(--muted); font-size: 16px; }

/* Who it's for */
.types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.type { border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--card); min-width: 0; }
.type svg { color: var(--accent); }
.type b { font-size: 15px; }
.types-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.origin { display: flex; flex-direction: column; gap: 16px; }
.origin h2 { font-size: clamp(28px, 3.6vw, 40px); }
.origin p:not(.label) { color: var(--muted); font-size: 17px; }
.staat { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow-x: auto; }
.staat table { border-collapse: collapse; width: 100%; min-width: 420px; font: 12px var(--mono); font-variant-numeric: tabular-nums; }
.staat th, .staat td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--paper-2); white-space: nowrap; }
.staat th { font-weight: 500; color: var(--muted); background: var(--paper); }
.staat th:first-child, .staat td:first-child { text-align: left; }
.staat td.a { color: var(--alert); font-weight: 500; }
.staat caption { caption-side: bottom; text-align: left; padding: 8px 10px; font: 12px var(--sans); color: var(--muted); }
.assurances { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.assurances li { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.assurances li:nth-child(odd) { padding-right: 28px; }
.assurances b { font-size: 17px; }
.assurances span { color: var(--muted); font-size: 15px; }

/* Contact: the text on ink, the form on a white card */
.cta { background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.cta-copy { display: flex; flex-direction: column; gap: 14px; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); }
.cta-copy p:not(.label) { color: var(--on-ink-muted); font-size: 18px; margin-top: 2px; }
.cta .label { color: var(--accent-on-ink); }
/* The orange ring is too faint on ink (2.5:1); the light orange is not. */
.cta :focus-visible { outline-color: var(--accent-on-ink); }
.cta-points { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--on-ink-muted); margin-top: 6px; }
.cta-points li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.cta-points li svg { color: var(--accent-on-ink); margin-top: 4px; }
.cta-mail { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--ink-2); display: flex; flex-direction: column; gap: 8px; }
.cta-mail small { font-size: 13px; color: var(--on-ink-muted); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail output { font: 500 17px var(--mono); user-select: all; word-break: break-all; }
.copy { min-height: 44px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--muted); background: transparent; color: var(--on-ink); font: 600 13px var(--sans); cursor: pointer; }
.copy:hover { background: var(--ink-2); }

.contact-card { background: var(--card); color: var(--ink); border-radius: 20px; padding: clamp(20px, 3vw, 28px); min-width: 0; }
/* On the white card the dark orange ring reads again. */
.cta .contact-card :focus-visible { outline-color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form h3, .contact-done h3 { font-size: 21px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1.5px solid #8a8780; border-radius: 12px; background: var(--card); color: var(--ink);
  font: 16px/1.4 var(--sans);
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #767a80; }
/* As specific as the rule above, and after it, so the red border wins. */
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--alert); }
.field-error { font-size: 14px; color: var(--alert); }
.field > label.check { font-weight: 400; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.check a { color: var(--accent-ink); text-underline-offset: 2px; }
.form-error { background: var(--alert-soft); color: #8a1c14; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.contact-form .btn { align-self: flex-start; }
.contact-form .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.contact-done { display: flex; flex-direction: column; gap: 8px; }
.contact-done p { color: var(--muted); }
/* The field for scripts: out of sight, out of the accessibility tree, and
   skipped by the touch-target check (visibility). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }

/* Legal pages: one readable column */
.legal { padding-block: 64px 96px; }
.legal-body { max-width: 720px; display: flex; flex-direction: column; gap: 40px; }
.legal-head { display: flex; flex-direction: column; gap: 14px; }
.legal-head h1 { font-size: clamp(34px, 5vw, 48px); }
.legal-meta { color: var(--muted); font-size: 15px; }
.legal section { display: flex; flex-direction: column; gap: 14px; }
.legal h2 { font-size: 22px; font-weight: 600; display: flex; gap: 12px; align-items: baseline; }
.legal h2 .no { font: 500 15px var(--mono); color: var(--accent); min-width: 1.6em; }
.legal p, .legal li, .legal dd { color: #30353b; }
.legal ul.bullets { display: flex; flex-direction: column; gap: 8px; padding-left: 1.2em; list-style: disc; }
.legal ul.bullets li::marker { color: var(--accent); }
.legal dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
.legal a { color: var(--accent-ink); text-underline-offset: 2px; }
.legal .note { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 16px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--paper-2); }
.table-scroll th { background: var(--paper); font-weight: 600; font-size: 14px; }
.table-scroll tr:last-child td { border-bottom: 0; }

/* 404 */
.not-found { padding-block: 120px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.not-found h1 { font-size: clamp(34px, 5vw, 52px); }
.not-found p:not(.label) { color: var(--muted); font-size: 18px; max-width: 34em; }

/* Footer */
.site-footer { padding-block: 40px 56px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-row nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-row nav a:hover { color: var(--ink); text-decoration: underline; }

/* Narrow screens */
@media (max-width: 980px) {
  .hero-grid, .tenant-grid, .pricing, .trust-grid, .cta { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 44px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .hero { padding-block: 44px 64px; }
  .header-actions .btn-primary { display: none; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 24px 20px 28px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .units { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .issues-mini { grid-template-columns: minmax(0, 1fr); }
  .dash { padding: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks, .assurances, .form-row { grid-template-columns: minmax(0, 1fr); }
  .assurances li:nth-child(odd) { padding-right: 0; }
  .plan { padding: 24px; }
  .price strong { font-size: 52px; }
  .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}
