/* JobFold public site. World: Klingeltableau (doorbell panel), the same tokens as the product design
   (design/app-2027/app.css, docs/vision-2027/DESIGN_SYSTEM.md): brushed metal ground, paper nameplates, one status
   light per state. The page and its demo always use the product's light "Tag" theme. Self-hosted fonts, no inline styles, strict CSP.
   The Impeccable detector reads every rule of this file whatever its media query: keep colours and paddings out of
   the print block, and sizes out of clamp(). */

:root {
  /* metal ground and paper nameplates */
  --metal: #DEE2E1; --metal-hi: #E9ECEB; --metal-lo: #CED4D3; --brush-hi: #F1F3F3;
  --plate: #FCFCF7; --plate-edge: #A7AFB1;
  --ink: #0F1416; --ink-2: #2F393D; --muted: #4F5A5E;
  --seam: #B6BDBF; --line: #DADED9; --control-line: #737E82;
  /* status lights; *-ink variants are text-safe on plate and metal */
  --ok: #1E8A4C; --ok-ink: #146B39;
  --wait: #E8990B; --wait-ink: #7A4F00;
  --stop: #D13A21; --stop-ink: #A12B16;
  --off: #353D40; --hatch: rgba(53, 61, 64, 0.42);
  /* blue ink: reserved for a person's approval or signature, nothing else */
  --sign: #1F4FC4; --sign-ink: #1A43A8;
  --primary: #0F1416; --primary-hover: #2F393D; --on-primary: #FCFCF7; --focus: #0F1416;
  /* the one dark band of the page (rules) keeps its own values in both schemes */
  --band: #0F1416; --band-ink: #EDF0EE; --band-muted: #A2ADB1; --band-line: #343D41;
  /* the device frames around the demo */
  --bezel: #1A1F21; --bezel-edge: #3A4448;
  --engrave-hi: rgba(255, 255, 255, 0.6);
  --shadow-plate: inset 0 1px 2px rgba(15, 20, 22, 0.16), 0 0 0 1px var(--plate-edge);
  --shadow-raise: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 3px 10px rgba(15, 20, 22, 0.1);
  --shadow-sheet: 0 18px 44px rgba(15, 20, 22, 0.24);

  --f-engrave: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-ui: "IBM Plex Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --r-control: 10px; --r-panel: 14px; --r-plate: 4px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--metal); color: var(--ink); font: 400 1rem/1.55 var(--f-ui); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--wait); color: #0F1416; }
code { font-family: var(--f-mono); font-size: 0.92em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: var(--r-control); background: var(--plate); box-shadow: var(--shadow-sheet); }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.hero > .wrap, .block > .wrap { width: min(1200px, 100%); }
.block > .wrap.narrow { width: min(820px, 100%); }
.small { font-size: 0.875rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--seam); background: var(--metal-hi); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.5rem/1 var(--f-engrave); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.brand-led { position: relative; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #0F1416; }
.brand-led::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; box-shadow: 0 0 0 2.5px #E8990B; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--metal-lo); color: var(--ink); }
.langmenu { position: relative; }
.langmenu summary { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--seam); border-radius: var(--r-control); background: var(--plate); font: 600 0.875rem/1.4 var(--f-mono); cursor: pointer; list-style: none; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover { border-color: var(--control-line); }
.langmenu:not([open]) ul { display: none; }
.langmenu ul { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; min-width: 160px; padding: 6px; border-radius: var(--r-control); background: var(--plate); box-shadow: var(--shadow-sheet); }
.langmenu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.langmenu a:hover { background: var(--metal-hi); }
.langmenu a[aria-current="true"] { font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink); }
.lang-hint { border-bottom: 1px solid var(--seam); background: var(--metal-lo); color: var(--ink-2); font-size: 0.9375rem; }
.lang-hint .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 48px; padding: 6px 0; }
.lang-hint a { font-weight: 600; }
.lang-hint-close { min-width: 44px; min-height: 44px; margin-left: auto; border: 0; background: none; font-size: 1.375rem; cursor: pointer; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--control-line); border-radius: var(--r-control); background: var(--plate); color: var(--ink); font: 600 1rem/1.25 var(--f-ui); text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.btn-lg { min-height: 56px; padding: 12px 24px; font-size: 1.0625rem; }
.btn-icon { width: 48px; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.link:hover { text-decoration-thickness: 2px; }
.link .i { width: 18px; height: 18px; }

/* status light: the ring is the light, the glyph keeps the state readable without colour */
.led { --c: var(--off); --ci: var(--off); position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, var(--metal-hi) 0 40%, var(--metal-lo) 100%); box-shadow: 0 0 0 1.5px var(--plate-edge), 0 2px 0 var(--seam); color: var(--ci); }
.led::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; box-shadow: 0 0 0 3px var(--c); }
.led .i { position: relative; width: 16px; height: 16px; stroke-width: 2.25; }
.led[data-s="ok"] { --c: var(--ok); --ci: var(--ok-ink); }
.led[data-s="wait"] { --c: var(--wait); --ci: var(--wait-ink); }
.led[data-s="stop"] { --c: var(--stop); --ci: var(--stop-ink); }
.led[data-s="sign"] { --c: var(--sign); --ci: var(--sign-ink); }
.led[data-s="wait"]::before { box-shadow: 0 0 0 3px var(--c), 0 0 0 4px var(--wait-ink); }
.led[data-s="unk"]::before { background: repeating-linear-gradient(45deg, var(--hatch) 0 2px, transparent 2px 5px); }
.led[data-s="none"] { --c: var(--seam); --ci: var(--control-line); }

/* ---------- hero ---------- */
.hero { padding: 72px 24px 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 64px; }
.hero h1 { max-width: 13ch; font: 700 4.5rem/0.95 var(--f-engrave); letter-spacing: 0.02em; text-transform: uppercase; text-shadow: 0 1px 0 var(--engrave-hi); }
.lead { max-width: 56ch; margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }
.hero .lead { margin-top: 24px; }

/* the legend is set as a small doorbell panel: one nameplate per light */
.tableau { position: relative; display: grid; gap: 10px; padding: 20px 16px 16px; border-radius: var(--r-panel); background-color: var(--metal-hi); background-image: repeating-linear-gradient(0deg, var(--brush-hi) 0 1px, var(--metal-hi) 1px 3px); box-shadow: var(--shadow-raise); }
.tableau::before, .tableau::after { content: ""; position: absolute; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--metal-hi), var(--seam)); box-shadow: 0 0 0 1px var(--seam); }
.tableau::before { left: 10px; }
.tableau::after { right: 10px; }
.legend-title { padding: 4px 6px 10px; border-bottom: 2px solid var(--ink); font: 700 1.5rem/1 var(--f-engrave); letter-spacing: 0.05em; text-transform: uppercase; }
.plates { display: grid; gap: 8px; }
.plate { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.plate-text { display: grid; gap: 1px; padding: 8px 12px; border-radius: var(--r-plate); background: var(--plate); box-shadow: var(--shadow-plate); }
.plate-text b { font-weight: 600; }
.plate-text span { color: var(--muted); font-size: 0.875rem; line-height: 1.35; }

/* ---------- blocks ---------- */
.block { padding: 88px 24px; border-top: 1px solid var(--seam); }
.block-alt { background: var(--metal-hi); }
.block h2 { max-width: 24ch; font: 700 3rem/1.04 var(--f-engrave); letter-spacing: 0.01em; }
.block h3 { font: 600 1.125rem/1.3 var(--f-ui); }
.head { margin-bottom: 40px; }

/* ---------- product ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.feature { display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: 10px; padding-top: 20px; border-top: 3px solid var(--ink); }
.block .feature h3 { font: 700 1.625rem/1.05 var(--f-engrave); letter-spacing: 0.02em; }
.feature > p { color: var(--ink-2); }

/* ---------- demo ---------- */
.demo { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; }
.demo-list { position: sticky; top: 84px; display: grid; gap: 20px; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 4px; }
.block .demo-group h3 { margin-bottom: 6px; padding: 0 10px; color: var(--muted); font: 600 0.8125rem/1.3 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.demo-group ul { display: grid; gap: 2px; }
.demo-group button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font-size: 0.9375rem; text-align: left; cursor: pointer; }
.demo-group button .i { width: 16px; height: 16px; color: var(--muted); }
.demo-group button:hover { background: var(--metal-lo); color: var(--ink); }
.demo-group button[aria-current="true"] { background: var(--plate); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-plate); }
.demo-main { display: grid; gap: 16px; min-width: 0; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.seg { display: inline-flex; padding: 3px; border: 1.5px solid var(--seam); border-radius: var(--r-control); background: var(--metal-lo); }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 16px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--plate); color: var(--ink); box-shadow: var(--shadow-plate); }
.seg button:disabled { color: var(--control-line); cursor: not-allowed; }
.demo-pick { display: none; }
.demo-pick select { width: 100%; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--control-line); border-radius: var(--r-control); background: var(--plate); font-weight: 600; }
.demo-step { display: inline-flex; align-items: center; gap: 8px; }
.demo-count { min-width: 64px; color: var(--muted); font: 500 0.875rem/1 var(--f-mono); text-align: center; }
.demo-full { margin-left: auto; }

/* the device: a phone bezel at 390 x 844 or a browser window at 1440 x 900, both scaled to the room they get */
.device { justify-self: center; display: grid; max-width: 100%; border-radius: 40px; background: var(--bezel); box-shadow: 0 0 0 1px var(--bezel-edge), var(--shadow-sheet); padding: 12px; }
.device-chrome { display: none; }
.device-screen { position: relative; overflow: hidden; border-radius: 30px; background: var(--metal); }
.device iframe { display: block; border: 0; transform-origin: 0 0; background: var(--metal); }
.device[data-view="web"] { justify-self: stretch; padding: 0; border-radius: 12px; }
.device[data-view="web"] .device-chrome { display: flex; gap: 8px; align-items: center; height: 36px; padding: 0 16px; }
.device-chrome span { width: 11px; height: 11px; border-radius: 50%; background: var(--bezel-edge); }
.device[data-view="web"] .device-screen { border-radius: 0 0 12px 12px; }
.demo-caption { max-width: 72ch; min-height: 3.1em; color: var(--ink); font-size: 1.0625rem; }
.demo-note { display: flex; align-items: center; gap: 8px; margin-top: -8px; color: var(--muted); font-size: 0.9375rem; }
.demo-note::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--control-line); }

/* ---------- how ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; counter-reset: step; }
.steps li { display: grid; align-content: start; gap: 8px; padding-top: 20px; border-top: 3px solid var(--ink); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--muted); font: 700 1.25rem/1 var(--f-engrave); letter-spacing: 0.08em; }
.steps p { color: var(--ink-2); }

/* ---------- who ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 24px; border-radius: var(--r-panel); background: var(--plate); box-shadow: var(--shadow-plate); }
.block .card h3 { font: 700 1.75rem/1.05 var(--f-engrave); letter-spacing: 0.02em; }
.card > p { color: var(--ink-2); }
.ticks { display: grid; gap: 8px; margin: 6px 0 8px; }
.ticks li, .checklist li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .i, .checklist .i { margin-top: 2px; color: var(--ok-ink); stroke-width: 2.25; }

/* ---------- rules ---------- */
.block-band { border-top: 0; background: var(--band); color: var(--band-ink); }
.block-band ::selection { color: #0F1416; }
.block-band :focus-visible { outline-color: var(--band-ink); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: 40px; }
.rules li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--band-line); }
.rules p { color: var(--band-muted); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: var(--r-panel); background: var(--plate); box-shadow: var(--shadow-plate); }
.plan.is-pick { box-shadow: var(--shadow-plate), 0 0 0 2px var(--ink); }
.block .plan h3 { font: 700 1.5rem/1 var(--f-engrave); letter-spacing: 0.05em; text-transform: uppercase; }
.amt { font: 700 2.5rem/1 var(--f-engrave); }
.amt small { color: var(--muted); font: 500 0.875rem/1 var(--f-ui); }
.plan > p:last-child { color: var(--ink-2); }
.plans-note { margin-top: 24px; color: var(--ink-2); font-weight: 500; }

/* ---------- faq ---------- */
.faqs { margin-top: 32px; }
.faq { border-bottom: 1px solid var(--seam); }
.faq:first-child { border-top: 2px solid var(--ink); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--f-mono); color: var(--muted); }
.faq[open] summary::after { content: "\2212"; }
.faq p { max-width: 64ch; padding-bottom: 20px; color: var(--ink-2); }

/* ---------- pilot ---------- */
.pilot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: start; }
.checklist { display: grid; gap: 10px; margin-top: 28px; font-weight: 500; }
.form { display: grid; gap: 16px; padding: 28px; border-radius: var(--r-panel); background: var(--plate); box-shadow: var(--shadow-plate); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--control-line); border-radius: var(--r-control); background: var(--plate); font-weight: 400; font-size: 1rem; }
.form textarea { min-height: 150px; font: 400 0.875rem/1.5 var(--f-mono); resize: vertical; }
.pilot-out { display: none; gap: 10px; }
.pilot-out.show { display: grid; }

/* ---------- footer ---------- */
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--seam); color: var(--muted); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .seg button, .demo-group button { transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out); }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .langmenu { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .legend { max-width: 480px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .plans, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-list { display: none; }
  .demo-pick { display: block; flex: 1 1 220px; }
  .demo-full { margin-left: 0; }
  .cards, .rules { grid-template-columns: minmax(0, 1fr); }
  .pilot { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 600px) {
  .site-header .wrap, .site-footer .wrap, .lang-hint .wrap { width: calc(100% - 32px); }
  .hero { padding: 48px 16px 56px; }
  .hero h1 { font-size: 3rem; }
  .block { padding: 64px 16px; }
  .block h2 { font-size: 2.25rem; }
  .btn-head { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .steps, .plans, .features { grid-template-columns: minmax(0, 1fr); }
  .seg { flex: 1 1 100%; }
  .seg button { flex: 1 1 50%; justify-content: center; }
  .demo-step { flex: 1 1 auto; justify-content: space-between; }
  .demo-full span { display: none; }
  .demo-full { width: 48px; padding: 0; }
  .device { padding: 8px; border-radius: 32px; }
  .device-screen { border-radius: 24px; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .lang-hint, .demo, .form, .actions { display: none !important; }
}
