/* ==========================================================================
   staedy — HERO partnership pitch
   Design language ported from the original staedy site:
   warm paper, ink type, deep #001D00 green. Geist (light display + body),
   IBM Plex Mono (labels), EB Garamond italic (wordmark + leads). Self-hosted.
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Geist';
  font-weight: 100 900; font-style: normal; font-display: swap;
  src: url('fonts/geist.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-weight: 400 600; font-style: normal; font-display: swap;
  src: url('fonts/eb-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-weight: 400 600; font-style: italic; font-display: swap;
  src: url('fonts/eb-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400; font-style: normal; font-display: swap;
  src: url('fonts/ibm-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/ibm-plex-mono-500.woff2') format('woff2');
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --paper:        #f4eee0;
  --paper-2:      #efe8d7;
  --card:         #fdfbf5;
  --ink:          #0c0c0c;
  --ink-soft:     rgba(12, 12, 12, 0.62);
  --ink-faint:    rgba(12, 12, 12, 0.40);
  --ink-whisper:  rgba(12, 12, 12, 0.20);
  --hairline:     rgba(12, 12, 12, 0.12);
  --rule:         rgba(12, 12, 12, 0.16);

  --accent:       #001D00;
  --accent-soft:  rgba(0, 29, 0, 0.62);
  --accent-light: #92ad99;

  --char:         #141413;       /* dark panels */
  --char-light:   #d8d2c2;
  --char-mid:     rgba(216, 210, 194, 0.62);
  --char-faint:   rgba(216, 210, 194, 0.34);
  --char-line:    rgba(216, 210, 194, 0.14);

  --serif: 'EB Garamond', Garamond, 'Times New Roman', Georgia, serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1120px;
  --gut:  clamp(28px, 7vw, 72px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-variation-settings: "wght" 380;
  font-weight: 380;
  line-height: 1.55;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); position: relative; }
.section { padding-block: clamp(72px, 11vw, 138px); }
.divider { border-top: 1px solid var(--hairline); }

/* ---- Eyebrow (mono · dot · number · label) -------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 440;
  letter-spacing: 0.04em; color: var(--ink-soft);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.eyebrow .n { color: var(--ink-faint); }

/* ---- Headings & text ------------------------------------------------------ */
.h2 {
  font-family: var(--sans);
  font-variation-settings: "wght" 340; font-weight: 340;
  font-size: clamp(29px, 4.6vw, 48px);
  line-height: 1.06; letter-spacing: -0.022em;
  color: var(--ink); max-width: 20ch; text-wrap: balance;
}
.lead {
  font-size: clamp(16.5px, 1.95vw, 19px);
  line-height: 1.6; color: var(--ink-soft);
  max-width: 58ch; margin-top: clamp(22px, 2.8vw, 30px);
  font-variation-settings: "wght" 380;
}
.lead strong { color: var(--ink); font-variation-settings: "wght" 500; font-weight: 500; }
.serif-lead {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 3vw, 27px); line-height: 1.34; letter-spacing: -0.005em;
  color: var(--ink); max-width: 30ch; text-wrap: balance;
}

/* ---- Masthead ------------------------------------------------------------- */
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.site-head .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: clamp(22px, 4vw, 40px);
}
.brand {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 19px; letter-spacing: 0; color: var(--ink);
}
.head-meta {
  font-family: var(--mono); font-size: 12px; font-weight: 440;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);
}
.lang { display: flex; gap: 12px; align-items: baseline; }
.lang a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-faint); transition: color 200ms var(--ease);
}
.lang a:hover { color: var(--ink-soft); }
.lang a[aria-current] { color: var(--ink); }

/* ---- Buttons (square, invert on hover) ------------------------------------ */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--sans); font-size: 15px; font-variation-settings: "wght" 460; font-weight: 460;
  letter-spacing: 0.005em;
  color: var(--paper); background: var(--accent);
  border: 1px solid var(--accent);
  padding: 18px 28px;
  transition: background 220ms var(--ease), color 220ms var(--ease);
  -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.cta .cta__arrow { font-size: 17px; line-height: 1; transition: transform 240ms var(--ease); }
.cta:hover, .cta:focus-visible { background: var(--paper); color: var(--accent); outline: none; }
.cta:hover .cta__arrow { transform: translateX(4px); }
.cta--ghost { background: transparent; color: var(--accent); }
.cta--ghost:hover, .cta--ghost:focus-visible { background: var(--accent); color: var(--paper); }
.cta--on-dark { background: var(--paper); color: var(--accent); border-color: var(--paper); }
.cta--on-dark:hover, .cta--on-dark:focus-visible { background: transparent; color: var(--paper); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(140px, 22vh, 210px); padding-bottom: clamp(64px, 11vw, 120px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 84px); align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 440; letter-spacing: 0.04em;
  color: var(--ink-soft); margin-bottom: clamp(22px, 3vw, 32px);
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.hero h1 {
  font-family: var(--sans); font-variation-settings: "wght" 320; font-weight: 320;
  font-size: clamp(36px, 6.2vw, 66px); line-height: 1.04;
  letter-spacing: -0.026em; color: var(--ink); max-width: 16ch; text-wrap: balance;
}
.hero h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-variation-settings: normal; letter-spacing: -0.01em;
}
.hero .sub {
  font-size: clamp(16.5px, 1.95vw, 19px); line-height: 1.6; color: var(--ink-soft);
  max-width: 42ch; margin-top: clamp(24px, 3vw, 32px); font-variation-settings: "wght" 380;
}
.hero .sub strong { color: var(--ink); font-variation-settings: "wght" 500; font-weight: 500; }
.hero-cta { margin-top: clamp(32px, 4vw, 44px); }

/* ---- Freigabe email card -------------------------------------------------- */
.mailcard {
  background: var(--card); border: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(12,12,12,0.03), 0 24px 50px -28px rgba(12,12,12,0.30);
  border-radius: 4px; overflow: hidden;
}
.mailcard__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--hairline);
}
.mailcard__brand { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 16px; }
.mailcard__time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.02em; }
.mailcard__body { padding: 20px 22px 22px; }
.mailcard__route { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); line-height: 1.8; letter-spacing: 0.01em; }
.mailcard__route b { color: var(--ink-soft); font-weight: 500; }
.mailcard__subject {
  font-family: var(--sans); font-variation-settings: "wght" 460; font-weight: 460;
  font-size: 18px; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink);
  margin: 13px 0 14px; text-wrap: balance;
}
.mailcard__lines { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.mailcard__lines p + p { margin-top: 7px; }
.mailcard__attach {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 8px 13px; border: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft); background: var(--paper);
}
.mailcard__attach svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.mailcard__chiprow { display: flex; align-items: center; margin-top: 18px; }
.confidence {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.02em;
}
.confidence .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
html.js body.is-ready .confidence { animation: chip-in 520ms var(--ease) 1180ms both; }
html.js body.is-ready .confidence .pip { animation: pip-pulse 1400ms var(--ease) 1320ms 1; }
@keyframes chip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pip-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,29,0,0.45); }
  60% { box-shadow: 0 0 0 7px rgba(0,29,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,29,0,0); }
}
/* Subordinate to the single solid page CTA: a soft green-tinted control that
   reads as the in-email action, not as a second main button. */
.mailcard__action {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 16px; padding: 13px;
  font-family: var(--sans); font-size: 14px; font-variation-settings: "wght" 500; font-weight: 500;
  color: var(--accent); background: rgba(0, 29, 0, 0.06); border: 1px solid rgba(0, 29, 0, 0.30);
}
.mailcard__action svg { width: 15px; height: 15px; flex: none; }
.mailcard__trust { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); }

/* ==========================================================================
   01 · PROBLEM — authority chips
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(30px, 3.6vw, 40px); max-width: 56ch; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.01em; color: var(--ink-soft);
  border: 1px solid var(--hairline); padding: 7px 13px; background: transparent;
}

/* ==========================================================================
   3-COLUMN GROUPS — solution features / safe / upside
   ========================================================================== */
.cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.4vw, 48px); margin-top: clamp(44px, 5vw, 66px);
}
.col { padding-top: 20px; border-top: 1px solid var(--rule); }
.col__k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px; }
.col h3 {
  font-family: var(--sans); font-variation-settings: "wght" 500; font-weight: 500;
  font-size: 16.5px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px;
}
.col p { font-size: 14.5px; line-height: 1.58; color: var(--ink-soft); }

/* ==========================================================================
   03 · BOUNDARY — inside vs. outside the software
   ========================================================================== */
.boundary {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  margin-top: clamp(40px, 5vw, 60px);
  border: 1px solid var(--hairline);
}
.zone { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.zone--inside { border-right: 1px dashed var(--rule); }
.zone__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; margin-bottom: clamp(18px, 2.2vw, 26px); }
.zone--inside .zone__label { color: var(--ink-faint); }
.zrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--hairline);
}
.zrow:first-of-type { border-top: 0; }
.zrow__name { font-family: var(--sans); font-variation-settings: "wght" 500; font-weight: 500; font-size: 15px; color: var(--ink); }
.zrow__role { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); text-align: right; letter-spacing: 0.01em; }

/* staedy zone = dark green panel, cream type */
.zone--staedy { background: var(--accent); color: var(--char-light); justify-content: center; }
.zone--staedy .zone__label { color: var(--accent-light); }
.zone--staedy .staedy-mark { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 21px; color: var(--paper); margin-bottom: 12px; }
.zone--staedy .staedy-role {
  font-family: var(--sans); font-variation-settings: "wght" 360; font-weight: 360;
  font-size: clamp(19px, 2.2vw, 25px); line-height: 1.2; letter-spacing: -0.018em; color: var(--paper); text-wrap: balance;
}
.zone--staedy .staedy-role em { font-family: var(--serif); font-style: italic; font-variation-settings: normal; font-weight: 500; }
.zone--staedy .staedy-note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--char-mid); }

.lanes-caption { margin-top: clamp(26px, 3vw, 34px); font-size: 15px; line-height: 1.62; color: var(--ink-soft); max-width: 74ch; }
.lanes-caption strong { color: var(--ink); font-variation-settings: "wght" 500; font-weight: 500; }

/* ==========================================================================
   EU STACK LEDGER — providers + EU country tags
   ========================================================================== */
.stack { list-style: none; margin-top: clamp(40px, 5vw, 60px); max-width: 720px; }
.stack__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-top: 1px solid var(--hairline);
}
.stack__row:last-child { border-bottom: 1px solid var(--hairline); }
.stack__role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-faint); flex: none; }
.stack__prov { font-family: var(--sans); font-variation-settings: "wght" 460; font-weight: 460; font-size: 15.5px; letter-spacing: -0.005em; color: var(--ink); text-align: right; }
.stack__prov em { font-family: var(--mono); font-style: normal; font-size: 11.5px; letter-spacing: 0.06em; color: var(--accent); }
@media (max-width: 540px) {
  .stack__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stack__prov { text-align: left; }
}

/* EU stack as real provider logos (monochrome ink, country + role beneath) */
.eu-logos {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: clamp(30px, 5vw, 60px);
  margin-top: clamp(42px, 5vw, 62px);
}
.eu-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.eu-logo img {
  height: 23px; width: auto;
  filter: brightness(0) saturate(0); opacity: 0.5;
  transition: opacity 220ms var(--ease);
}
.eu-logo:hover img { opacity: 0.82; }
.eu-logo span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.eu-logo span b { color: var(--accent); font-weight: 400; }

/* ==========================================================================
   INVERTED — full green band (used on the Lösung section + the closing ASK)
   ========================================================================== */
.inverted { background: var(--accent); color: var(--char-light); }
.inverted .eyebrow { color: var(--accent-light); }
.inverted .eyebrow::before { background: var(--accent-light); }
.inverted .eyebrow .n { color: var(--char-faint); }
.inverted .h2 { color: var(--paper); }
.inverted .lead { color: var(--char-mid); }
.inverted .lead strong { color: var(--paper); }
.inverted .col { border-top-color: rgba(216, 210, 194, 0.18); }
.inverted .col h3 { color: var(--paper); }
.inverted .col p { color: var(--char-mid); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot { border-top: 1px solid var(--hairline); padding-block: clamp(44px, 6vw, 66px); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 26px; }
.sig { max-width: 48ch; }
.sig .brand { display: block; font-size: 20px; margin-bottom: 12px; }
.sig__line { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.sig__line a { color: var(--ink-soft); border-bottom: 1px solid var(--hairline); }
.sig__line a:hover { color: var(--ink); border-bottom-color: var(--ink-faint); }
.sig__meta { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.01em; line-height: 1.75; }
.foot-links { display: flex; gap: 22px; font-family: var(--mono); font-size: 12.5px; }
.foot-links a { color: var(--ink-soft); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color 200ms, color 200ms; }
.foot-links a:hover { color: var(--ink); border-bottom-color: var(--ink-faint); }

/* ==========================================================================
   ACCESS GATE
   ========================================================================== */
.gate { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: var(--paper); padding: 24px; }
.gate__box { width: 100%; max-width: 340px; text-align: center; }
.gate__mark { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; margin-bottom: 22px; }
.gate input {
  width: 100%; font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--card);
  border: 1px solid var(--hairline); padding: 13px 16px; text-align: center; letter-spacing: 0.04em;
}
.gate input::placeholder { color: var(--ink-faint); }
.gate__hint { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.02em; }
.gate.is-error input { border-color: #8a2f24; }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal { max-width: 720px; margin-inline: auto; padding-block: clamp(110px, 15vw, 168px) clamp(64px, 10vw, 110px); }
.legal .eyebrow { display: inline-flex; }
.legal h1 {
  font-family: var(--sans); font-variation-settings: "wght" 330; font-weight: 330;
  font-size: clamp(34px, 6vw, 54px); line-height: 1.05; letter-spacing: -0.024em;
  color: var(--ink); margin-bottom: clamp(36px, 5vw, 52px);
}
.legal__block { padding-block: clamp(18px, 2.6vw, 24px); border-top: 1px solid var(--hairline); }
.legal__block:last-of-type { border-bottom: 1px solid var(--hairline); }
.legal__block h2 { font-family: var(--sans); font-variation-settings: "wght" 500; font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.legal__block p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 64ch; }
.legal__block p + p { margin-top: 10px; }
.legal__block a { color: var(--ink); border-bottom: 1px solid var(--ink-faint); }
.legal__block a:hover { border-bottom-color: var(--ink); }
.legal__back { margin-top: clamp(36px, 5vw, 52px); font-family: var(--mono); font-size: 13px; display: flex; gap: 20px; color: var(--ink-soft); }
.legal__back a { border-bottom: 1px solid transparent; transition: border-color 200ms, color 200ms; }
.legal__back a:hover { color: var(--ink); border-bottom-color: var(--ink-faint); }

/* ==========================================================================
   MOTION (fail-safe: only when html.js present)
   ========================================================================== */
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js body.is-ready .reveal { animation: rise 740ms var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; animation: none; }
  html.js body.is-ready .confidence, html.js body.is-ready .confidence .pip { animation: none; }
  .cta, .cta .cta__arrow { transition: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: clamp(40px, 8vw, 56px); }
  .hero-copy { order: 1; }
  .mailcard { order: 2; max-width: 440px; }
  .hero h1 { font-size: clamp(34px, 9vw, 50px); max-width: 18ch; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .col { border-top: 1px solid var(--rule); padding-block: 22px; }
  .col:last-child { border-bottom: 1px solid var(--rule); }
  .boundary { grid-template-columns: 1fr; }
  .zone--inside { border-right: 0; border-bottom: 1px dashed var(--rule); }
}
@media (max-width: 540px) {
  .head-meta { display: none; }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; }
  .zrow { flex-direction: column; align-items: flex-start; gap: 3px; }
  .zrow__role { text-align: left; }
  .hero-cta .cta { display: flex; }
}
