/* Determa — Applied AI Systems
   Palette + type deliberately shared with renezander.com so the two properties
   read as one house. Tokens copied from renezander.com's :root, including its
   auto/light/dark mechanism (localStorage key "theme" + [data-theme]).
   Brand-kit rules still hold for the MARK itself: no gradients or effects on it. */

:root {
  --bg: #F4F1EA;
  --surface: #FBF9F3;
  --border: #E3DDCF;
  --text: #1F1D18;
  --text-muted: #6A6358;
  --accent: #1F1D18;
  --accent-hover: #33302A;
  --accent-soft: #EDE8DB;
  --brand: #00D4AA;        /* fills only — pair with --brand-text on top */
  --brand-hover: #00bd97;
  --brand-ink: #07876d;    /* teal for text/links on cream (contrast-safe) */
  --brand-text: #07241d;   /* dark ink for text ON teal fills */
  --accent-dim: #DCEEE4;
  --on-accent-brand: #00D4AA;  /* teal legible ON the .meeting band */
  --radius: 8px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --surface: #1e1e1e;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #999;
    --accent: #e0e0e0;
    --accent-hover: #ffffff;
    --accent-soft: #2a2a2a;
    --brand: #00D4AA;
    --brand-hover: #2fe6c4;
    --brand-ink: #34e3c2;
    --brand-text: #07241d;
    --accent-dim: #0d3a31;
    --on-accent-brand: #07876d;
  }
}

:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --text-muted: #999;
  --accent: #e0e0e0;
  --accent-hover: #ffffff;
  --accent-soft: #2a2a2a;
  --brand: #00D4AA;
  --brand-hover: #2fe6c4;
  --brand-ink: #34e3c2;
  --brand-text: #07241d;
  --accent-dim: #0d3a31;
  --on-accent-brand: #07876d;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }

/* ---------- Keyboard access ---------- */
/* One visible focus style everywhere; the teal ink reads on both themes, and
   the inverted .meeting band gets its own legible variant. */

:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.meeting :focus-visible { outline-color: var(--on-accent-brand); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus-visible { left: 16px; top: 16px; }

/* German compounds (Unternehmensprozesse, Wirtschafts-Identifikationsnummer)
   can exceed a phone's width. break-word is the safety net everywhere;
   hyphenation is switched on only where lines are genuinely too short for it
   (see the 620px block) — at desktop width it just yields cheap breaks like
   "Umset-zung". */
h1, h2, h3, .statement, .lede, .legal {
  overflow-wrap: break-word;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Wordmark: swap with the theme ---------- */

.wm-dark { display: none; }
:root[data-theme="dark"] .wm-light { display: none; }
:root[data-theme="dark"] .wm-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wm-light { display: none; }
  :root:not([data-theme="light"]) .wm-dark { display: block; }
}

/* ---------- Header ---------- */

.site-head {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 20;
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px 8px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 128px; }
.brand span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 14px;
  white-space: nowrap;
}
.head-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Audience nav (yes-street funnel) ---------- */
/* Two audience entries: the companies dropdown carries the three needs the
   angles serve (each item = the visitor's own words), peers route to
   renezander.com. Border-only panel — brand kit forbids shadows. */

.site-nav { display: flex; align-items: center; gap: 16px; }
/* second header row, left edge on the logo's vertical line */
.head-nav { max-width: var(--maxw); margin: 0 auto; padding: 2px 24px 12px; gap: 20px; flex-wrap: wrap; }
.nav-dd { position: relative; }
.nav-dd summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
}
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.15s ease;
}
.nav-dd[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  /* hover bridge: keeps the pointer "inside" while crossing the 12px gap */
}
.nav-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-panel {
  min-width: 320px;
  max-width: min(380px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin: 0;
  list-style: none;
  z-index: 40;
}
.nav-panel a {
  display: block;
  padding: 11px 12px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}
.nav-panel a:hover { background: var(--accent-soft); }
.nav-panel .nav-cta { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.nav-panel .nav-cta a { color: var(--brand-ink); font-weight: 500; }
.nav-peer { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.nav-peer:hover { color: var(--text); }
.nav-vita { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.nav-vita:hover { color: var(--text); }
.nav-link { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.nav-link:hover { color: var(--text); }

/* ---------- Vita: career lines left, portrait right ---------- */

.wrap-wide { max-width: 1280px; }
.founder.founder-flip { grid-template-columns: 1fr 520px; gap: 56px; }
.founder-flip .founder-photo { width: 520px; }


.vita-lines { list-style: none; margin: 0; padding: 0; }
.vita-line {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}
.vita-line:last-child { border-bottom: 1px solid var(--border); }
.vita-year { flex: 0 0 52px; color: var(--brand-ink); font-weight: 600; font-size: 14.5px; padding-top: 2px; }
.vita-line strong { color: var(--text); font-weight: 600; }
.lang {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}
.lang:hover { color: var(--text); }

/* theme toggle — auto -> light -> dark -> auto, same as renezander.com */
.nt-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.nt-theme:hover { border-color: var(--text-muted); color: var(--text); }
.nt-theme svg { width: 15px; height: 15px; }
.nt-theme .nt-sun { display: none; }
:root[data-theme="dark"] .nt-theme .nt-moon { display: none; }
:root[data-theme="dark"] .nt-theme .nt-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nt-theme .nt-moon { display: none; }
  :root:not([data-theme="light"]) .nt-theme .nt-sun { display: block; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--brand-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--text-muted); }
.btn-sm { padding: 10px 17px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 72px; }
.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-ink);
  font-weight: 500;
  margin: 0 0 24px;
}
h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 21ch;
}
.lede {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 34px;
  max-width: 58ch;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta-note { font-size: 13.5px; color: var(--text-muted); }

.bridge {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--text-muted);
}
.bridge strong { color: var(--text); font-weight: 600; }
.bridge .sep { color: var(--border); }

/* ---------- Sections ---------- */

/* scroll-margin keeps anchor targets clear of the sticky header. */
section { border-top: 1px solid var(--border); scroll-margin-top: 122px; }
.offer { scroll-margin-top: 134px; }
/* padding-top/bottom only — a shorthand here would wipe .wrap's side gutters. */
.sec { padding-top: 74px; padding-bottom: 74px; }
.sec-label {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 20px;
}
h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.3vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 27ch;
}
h3 {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 10px;
}
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
.measure { max-width: 62ch; color: var(--text-muted); }
.measure strong { color: var(--text); font-weight: 600; }

.statement {
  font-family: var(--font-head);
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.36;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--text);
  max-width: 34ch;
  margin: 0;
  padding-left: 22px;
  border-left: 3px solid var(--brand);
}

/* ---------- Offers ---------- */

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.offer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
}
.offer-no {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-ink);
  font-weight: 500;
  margin: 0 0 16px;
}
.offer-for { font-size: 14.5px; color: var(--text-muted); margin: 0 0 20px; }
.offer h4 {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 12px;
}
.offer ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.offer li { padding: 6px 0 6px 18px; position: relative; color: var(--text-muted); line-height: 1.45; }
.offer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 1px;
  background: var(--brand-ink);
}

/* ---------- Audience ---------- */

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--border);
  position: relative;
  color: var(--text-muted);
  font-size: 16px;
}
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks li:first-child::before { top: 4px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink);
  transform: rotate(-45deg);
}

/* ---------- Founder ---------- */

.founder { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.founder-photo { width: 220px; margin: 0; }
.founder-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.founder-photo figcaption { font-size: 13.5px; color: var(--text-muted); margin-top: 14px; line-height: 1.45; }
.proof { list-style: none; margin: 30px 0 0; padding: 0; }
.proof li { border-top: 1px solid var(--border); }
.proof li:last-child { border-bottom: 1px solid var(--border); }
.proof-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 2px;
  text-decoration: none;
  font-size: 16px;
}
.proof-link span:first-child { font-weight: 500; }
.proof-link .arrow { color: var(--brand-ink); font-size: 14px; white-space: nowrap; }
.proof-link:hover span:first-child { color: var(--brand-ink); }
.proof-note { font-size: 14px; color: var(--text-muted); margin-top: 18px; }

/* ---------- Meeting ---------- */
/* --accent and --bg invert together, so this band stays a strong contrast
   block in both themes instead of going invisible in dark. */

.meeting { background: var(--accent); color: var(--bg); border-top: 0; }
.meeting .sec-label { color: var(--on-accent-brand); }
.meeting h2 { color: var(--bg); }
.meeting .measure { color: var(--bg); opacity: 0.75; }
/* 0.78, not 0.6 — at 0.6 the note dropped to ~3.4:1 against the inverted band
   in dark mode (AA fail for 13.5px text); 0.78 clears 4.5:1 in both themes. */
.meeting .cta-note { color: var(--bg); opacity: 0.78; }
.meeting .cal-fallback { opacity: 0.92; }
.meeting .cal-fallback a { color: inherit; text-decoration: underline; }
.cal-mount {
  margin-top: 26px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 620px;
}

/* ---------- Footer ---------- */

.site-foot { border-top: 1px solid var(--border); padding: 42px 0 54px; font-size: 14px; color: var(--text-muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px 40px; }
.legal { max-width: 46ch; line-height: 1.6; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--brand-ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; }
.foot-links a { color: var(--text-muted); text-decoration: none; }
.foot-links a:hover { color: var(--brand-ink); text-decoration: underline; }

/* ---------- Legal / prose pages ---------- */

.legal-page { padding-bottom: 40px; }
.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  margin: 44px 0 14px;
  max-width: none;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); margin: 0 0 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--brand-ink); }

/* ---------- Consent banner ---------- */
/* Nothing third-party has loaded at the moment this appears — the banner is
   the gate, not a notice after the fact. */

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 620px;
  margin: 0 auto;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.consent p { margin: 0; flex: 1 1 280px; line-height: 1.5; }
.consent a { color: var(--brand-ink); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consent-in 0.22s ease-out; }
  @keyframes consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

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

@media (max-width: 900px) {
  .offers { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 40px; }
  .founder { grid-template-columns: 1fr; gap: 30px; }
  .founder-photo { width: 168px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  h1, h2, h3, .statement, .lede, .legal { hyphens: auto; }
  .hero { padding: 58px 0 52px; }
  .sec { padding-top: 54px; padding-bottom: 54px; }
  section { scroll-margin-top: 100px; }
  .head-row { padding: 10px 20px 4px; gap: 10px; }
  .head-nav { padding: 0 20px 10px; gap: 14px; }
  .wrap { padding: 0 20px; }
  .brand { min-width: 0; }
  .brand img { width: 100px; }
  .brand span { display: none; }
  .head-actions { gap: 10px; }
  .btn-sm { padding: 9px 12px; font-size: 13px; }
  .nt-theme { width: 30px; height: 30px; }
  /* lang lives in the footer on phones; the nav row has room for all three */
  .lang { display: none; }
  .nav-dd summary { font-size: 13px; }
  .nav-panel { left: auto; right: -60px; }
  h1 { max-width: none; }
  .lede, .measure, .statement { max-width: none; }
  .bridge { margin-top: 38px; flex-direction: column; gap: 3px; }
  .bridge .sep { display: none; }
  .proof-link { flex-direction: column; gap: 3px; }
  .founder-photo { width: 140px; }
  .offer { padding: 24px 20px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 900px) {
  .founder-flip .founder-photo { width: min(420px, 100%); }
}

/* ---------- Reveal: subtle fly-in from below ---------- */
/* .anim lands pre-paint only when JS runs (theme guard script), so content is
   never hidden without JS; reduced-motion users skip the effect entirely. */

@media (prefers-reduced-motion: no-preference) {
  .anim .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  }
  .anim .reveal.in-view { opacity: 1; transform: none; }
}

/* ---------- Hero solution-shape tool (shared with renezander.com) ---------- */

.hero-tool { display: flex; margin-top: 20px; max-width: 460px; }
.hero-tool input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--surface);
  color: var(--text);
}
.hero-tool input::placeholder { color: var(--text-muted); }
.hero-tool button {
  font: inherit;
  font-size: 18px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brand);
  color: var(--brand-text);
  cursor: pointer;
}
.hero-tool button:hover { background: var(--brand-hover); }
.hero-hint { margin-top: 10px; }
