/* The IFClite Cloud page. Colours, the two type families and the wide caps come from the vendored
   public @ifc-lite/brand package (brand/fonts.css and brand/tokens.css, the --ifl-* tokens, linked
   before this file; build.mjs copies them into the output). The short names below are this page's
   aliases of those tokens; --line-2 and the dark --invert are the only values it derives itself. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
:root {
  --bg: var(--ifl-paper); --bg-2: var(--ifl-paper-2); --card: var(--ifl-card);
  --ink: var(--ifl-ink); --ink-2: var(--ifl-ink-2); --ink-3: var(--ifl-ink-3);
  /* --line-2: the mid hairline of the tables and the title block, decorative. */
  --line: var(--ifl-line); --line-2: color-mix(in srgb, var(--ifl-line) 70%, var(--ifl-control));
  --control: var(--ifl-control); /* control borders: >=3:1 on --bg and --card (WCAG 1.4.11) */
  --red: var(--ifl-red); --red-ink: var(--ifl-red-ink);
  /* The strip: ink on light pages; on dark ones a band darker than the paper. */
  --invert: var(--ifl-ink); --invert-ink: var(--ifl-paper);
  --sans: var(--ifl-sans);
  --mono: var(--ifl-mono);
  --wide: var(--ifl-wide); --sheet-height: 48px;
  --maxw: 1180px; --gutter: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --invert: color-mix(in srgb, var(--ifl-paper) 43%, black); --invert-ink: var(--ifl-ink);
  }
}
:root[data-theme="dark"] {
  --invert: color-mix(in srgb, var(--ifl-paper) 43%, black); --invert-ink: var(--ifl-ink);
}
body {
  background-color: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
  background-image: linear-gradient(color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px);
  background-size: 64px 64px; background-attachment: fixed;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: var(--red); color: #fff; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 8px; }
.muted { color: var(--ink-3); }
.label, .eyebrow, .status, .btn, .nav-links a, .lang, .strip {
  font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.label { font-size: 11px; color: var(--ink-3); margin: 0 0 10px; }
.eyebrow { font-size: 11.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--red); }

/* header strip: the product is commercial, and says so first */
.strip { background: var(--invert); color: var(--invert-ink); font-size: 10.5px; padding: 8px 0; text-transform: none; letter-spacing: 0; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.strip-short { display: none; }
@media (max-width: 1120px) {
  .strip-full { display: none; }
  .strip-short { display: inline; }
}
@media (max-width: 520px) {
  .strip { font-size: 10px; letter-spacing: 0; }
  .strip .wrap { padding-inline: 10px; }
}
.strip a { color: inherit; text-decoration: underline; white-space: nowrap; }
.strip a:hover { color: var(--invert-ink); opacity: 0.8; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid transparent;
  font-size: 12px; font-weight: 400; text-decoration: none; cursor: pointer; background: none; color: var(--ink); padding-block: 8px; }
.nav-cta .btn { white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--red-ink); color: var(--bg); }
.btn-ghost { border-color: var(--control); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-ink); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn .arrow { transition: transform 160ms; }
.btn:hover .arrow { transform: translateX(3px); }
/* --nav-actual and --sheet-actual are the header's and the title block's rendered heights, set by
   site.js; both grow with larger text. Pages without the block (legal notices) drop its padding;
   browsers without :has() keep it. The 63px fallback is .nav-inner's min-height plus .nav's border. */
html { scroll-padding: calc(var(--nav-actual, 63px) + 17px) 0 calc(var(--sheet-actual, var(--sheet-height)) + 12px); }
html:not(:has(.plankopf)) { scroll-padding-bottom: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .btn .arrow { transition: none; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink); }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 62px;
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.wordmark { font-size: 16px; font-weight: 800; font-variation-settings: var(--wide); letter-spacing: 0.01em; }
.brand-suffix { font: 11px var(--mono); color: var(--ink-2); }
.brand-mark { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--red); color: var(--ink); position: relative; }
.brand-mark svg { width: 66%; height: 82%; }
.brand-mark svg .a { color: var(--red); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 4px; height: 4px; border: 1px solid var(--red); }
.brand-mark::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.brand-mark::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
/* Auto margins spread the header items (brand, links, CTA) and keep a wrapped CTA group on the right. */
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { font-size: 11.5px; padding: 8px 10px; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { background: var(--bg-2); color: var(--red-ink); }
.nav-cta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-left: auto; }
.lang { font-size: 11.5px; padding: 8px 6px; color: var(--ink-2); }
.theme-toggle { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--control); background: none; color: var(--ink-2); cursor: pointer; }
.theme-toggle:hover { border-color: var(--red); color: var(--red-ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}
@media (max-width: 1020px) { .nav-links { display: none; } }
@media (max-width: 520px) {
  .nav-inner { gap: 6px; padding-inline: 12px; }
  .brand { gap: 5px; }
  .wordmark { font-size: 13px; }
  .brand-suffix { font-size: 9px; }
  .brand-mark { width: 24px; height: 24px; }
  .nav-cta { gap: 4px; }
  .nav-cta .btn { padding-inline: 6px; font-size: 10px; letter-spacing: 0; }
  .lang { padding-inline: 4px; }
  .theme-toggle { width: 32px; }
}
/* At 320px the header row only just fits on one line; it wraps when text is larger. */
@media (max-width: 340px) {
  .nav-inner { gap: 4px; }
  .nav-cta { gap: 2px; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 6.6vw, 104px) 0 clamp(40px, 5.5vw, 72px); border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; opacity: 0.45;
  mask-image: radial-gradient(ellipse 70% 70% at 25% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 25% 30%, #000 30%, transparent 80%); }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1, .section-head h2, .doc h1 {
  font-weight: 800; font-variation-settings: var(--wide); text-transform: uppercase;
}
.hero h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.01; letter-spacing: -0.035em;
  margin: 16px 0 20px; max-width: 19ch; overflow-wrap: anywhere; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 52ch; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.version-sheet { margin: 0; border: 1px solid var(--ink); background: var(--card); font-family: var(--mono); }
.version-sheet figcaption { padding: 14px 16px; border-bottom: 1px solid var(--ink); font-size: 12px; }
.version-sheet table { width: 100%; border-collapse: collapse; text-align: left; font-size: clamp(11px, 1.15vw, 14px); }
.version-sheet th, .version-sheet td { padding: 12px clamp(8px, 1.25vw, 16px); font-weight: 400; overflow-wrap: anywhere; }
.version-sheet thead { background: var(--bg-2); color: var(--ink-2); }
.version-sheet tbody tr { border-top: 1px solid var(--line-2); }
.version-sheet :is(th, td) + :is(th, td) { border-left: 1px solid var(--line); }
.version-sheet tbody tr:first-child th { box-shadow: inset 3px 0 var(--red); }
@media (max-width: 820px) {
  .hero-layout { grid-template-columns: 1fr; }
  .version-sheet { max-width: 480px; }
}
@media (max-width: 520px) {
  .hero { padding-block: 40px; }
  .hero h1 { font-size: clamp(28px, 8.3vw, 43px); }
  .hero h1:lang(de) { hyphens: auto; }
}

/* Sections */
.section { padding: clamp(44px, 6vw, 84px) 0; border-top: 1px solid var(--line); }
.hero + .section { border-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 8px; margin-bottom: 28px; }
.section-head > * { max-width: 100%; }
.section h2 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.06; margin: 0; letter-spacing: -0.025em; }
.section h3 { font-size: 18px; margin: 0 0 10px; }
.intro { font-size: 18px; color: var(--ink-2); max-width: 70ch; margin: 0 0 20px; }
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 5vw, 64px); }
@media (max-width: 760px) { .fit-grid { grid-template-columns: minmax(0, 1fr); } }
.scope-list, .features { list-style: none; padding: 0; margin: 0; }
.scope-list li { position: relative; padding: 0 0 12px 18px; }
.scope-list li::before, .status::before {
  content: ""; width: 7px; height: 7px; background: currentColor;
}
.scope-list li::before { position: absolute; left: 0; top: 0.55em; }
.scope-out li::before, .status-pilot::before { background: none; border: 1px solid currentColor; }
.status { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; margin: 0; }
.available { border: 1px solid var(--ink); background: var(--card); }
.available .status { padding: 10px 20px; border-bottom: 1px solid var(--line-2); }
.available .features { display: grid; grid-template-columns: 1fr 1fr; }
.available li { padding: clamp(16px, 3vw, 34px); }
.available li + li { border-left: 1px solid var(--line-2); }
.available h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; }
.features p { margin: 0; color: var(--ink-2); }
.in-pilot { margin-top: 24px; }
.in-pilot .status { padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.in-pilot li { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.in-pilot h3 { font-size: 16px; margin: 0; }
@media (max-width: 600px) {
  .available .features, .in-pilot li { grid-template-columns: 1fr; }
  .available li + li { border-left: 0; border-top: 1px solid var(--line-2); }
}

.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .offers { grid-template-columns: minmax(0, 1fr); } }
.offer { border: 1px solid var(--ink); padding: clamp(20px, 3vw, 32px); background: var(--card); display: flex; flex-direction: column; }
.offer h3 { font-size: 22px; }
.offer .muted { margin: 0 0 16px; }
.offer .label { color: var(--red-ink); }
.price { color: var(--ink-2); margin: 16px 0 0; }
.offer .btn { align-self: flex-start; margin-top: auto; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line-2); background: var(--card); }
.facts div { padding: 18px 20px; border: solid var(--line-2); border-width: 0 1px 1px 0; }
@media (max-width: 850px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts dt { font-weight: 700; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 46ch; }

/* form */
.lead-form { margin-top: 24px; border: 1px solid var(--ink); background: var(--card); padding: clamp(18px, 3vw, 32px); max-width: 860px; }
.lead-form.sent .field, .lead-form.sent .form-notice, .lead-form.sent button { display: none; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-3); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 680px) { .row { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--control); padding: 10px 12px; border-radius: 0; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--red); }
::placeholder { color: var(--ink-3); opacity: 1; }
.hint { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-3); }
.offer-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.offer-choice legend { grid-column: 1 / -1; }
@media (max-width: 560px) { .offer-choice { grid-template-columns: minmax(0, 1fr); } }
.field > .choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--control); padding: 14px; cursor: pointer; background: var(--bg); }
.choice:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.choice input { margin-top: 4px; accent-color: var(--red); }
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--ink-3); font-size: 13.5px; }
.form-notice { font-size: 14.5px; margin: 6px 0 20px; color: var(--ink-2); max-width: 70ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.field-error { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; color: var(--red-ink); }
.field-error:empty { display: none; }
.offer-choice .field-error { grid-column: 1 / -1; margin: 0; }
[aria-invalid="true"]:is(input[type="text"], input[type="email"], select, textarea) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.form-status { margin: 0; font-size: 15px; }
.form-status.ok { color: var(--ink); font-weight: 600; }
.form-status.bad { color: var(--ink); font-weight: 600; }
.notice { padding: 12px 16px; border: 1px solid var(--ink); }

.faq details { border-top: 1px solid var(--line); padding: 14px 0; max-width: 80ch; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.reference { margin: 20px 0 0; padding-left: 18px; border-left: 3px solid var(--red); }

.footer { border-top: 1px solid var(--ink); padding: 36px 0 48px; font-size: 14px; background: var(--bg); }
.family { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 10px; }
.family a + a::before { content: "·" / ""; margin-right: 6px; display: inline-block; color: var(--ink-3); }
.family [aria-current] { color: var(--ink-2); }
/* Sticky at the end of the page, so it grows to its content and never covers the footer. */
.plankopf {
  position: sticky; bottom: 0; z-index: 60; min-height: var(--sheet-height);
  display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr 1fr;
  border-top: 1px solid var(--ink); background: var(--bg); font-family: var(--mono);
}
.sheet-cell { display: grid; align-content: center; gap: 1px; padding-inline: clamp(10px, 2vw, 22px); border-right: 1px solid var(--line-2); }
.sheet-cell > span { color: var(--ink-3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.sheet-cell b { font-size: 12px; font-weight: 400; }
.sheet-current { border-left: 3px solid var(--red); border-right: 0; }
.sheet-current [data-current-sheet] { color: var(--red-ink); }
@media (max-width: 720px) {
  :root { --sheet-height: 40px; }
  .plankopf { grid-template-columns: 1fr max-content; }
  .sheet-cell:not(:first-child, :last-child) { display: none; }
}
@media (max-height: 480px) {
  :root { --sheet-height: 44px; }
  html { scroll-padding-bottom: 12px; }
  .plankopf { position: static; }
}
.footer p { margin: 0 0 8px; }

/* legal and privacy notices */
.doc { border-top: 0; }
.doc h1 { font-size: clamp(26px, 4vw, 44px); text-transform: uppercase; margin: 0 0 24px; hyphens: auto; overflow-wrap: anywhere; }
.doc section { max-width: 75ch; padding: 16px 0; border-top: 1px solid var(--line); }
.doc h2 { font-size: 18px; margin: 0 0 8px; }
.doc p { margin: 0 0 8px; color: var(--ink-2); overflow-wrap: anywhere; }
