/* ============================================================
   debetora – shared stylesheet
   Brand: Petrol #124559 · Cream #EFF6E0
   Dependency-free (keine externen Fonts/CDNs → DSGVO-sauber)
   ============================================================ */

:root {
  --petrol:       #124559;
  --petrol-deep:  #0B2C39;
  --teal:         #4F8C9A;
  --teal-soft:    #7FB0BB;
  --cream:        #EFF6E0;
  --paper:        #FAFBF5;
  --ink:          #10222A;
  --muted:        #566A70;
  --line:         rgba(18, 69, 89, 0.14);
  --line-strong:  rgba(18, 69, 89, 0.26);
  --on-dark:      #E9F1EC;
  --on-dark-mut:  rgba(233, 241, 236, 0.66);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 44, 57, 0.06), 0 18px 40px -24px rgba(11, 44, 57, 0.30);
  --shadow-lift: 0 2px 4px rgba(11, 44, 57, 0.08), 0 28px 56px -28px rgba(11, 44, 57, 0.42);

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

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--petrol); color: var(--cream); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: clamp(64px, 9vw, 118px); }
.section--tight { padding-block: clamp(48px, 6vw, 78px); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--petrol-deep); color: var(--on-dark); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--teal);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--teal-soft); }
.section--dark .eyebrow::before { background: var(--teal-soft); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h2.title { font-size: clamp(28px, 3.6vw, 42px); max-width: 20ch; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 58ch; margin: 18px 0 0; }
.section--dark .lead { color: var(--on-dark-mut); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--petrol); color: var(--cream); }
.btn--primary:hover { background: #0E3A4B; transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(11,44,57,0.6); }
.btn--ghost { background: transparent; color: var(--petrol); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--petrol); transform: translateY(-1px); }
.btn--light { background: var(--cream); color: var(--petrol); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--onlight-ghost { background: transparent; color: var(--on-dark); border-color: rgba(233,241,236,0.34); }
.btn--onlight-ghost:hover { border-color: var(--on-dark); transform: translateY(-1px); }
.btn .arw { transition: transform 0.18s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 245, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.brand .wordmark { font-weight: 700; letter-spacing: -0.03em; font-size: 21px; color: var(--petrol); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; color: var(--ink); position: relative; padding: 6px 0;
  transition: color 0.16s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--teal); transition: width 0.22s var(--ease);
}
.nav-links a:hover { color: var(--petrol); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--petrol); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open + .mobile-menu { display: block; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu a { display: block; padding: 15px 24px; border-bottom: 1px solid var(--line); font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(79,140,154,0.28), transparent 60%),
    radial-gradient(90% 60% at 0% 110%, rgba(239,246,224,0.10), transparent 55%),
    var(--petrol-deep);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-inner { padding-block: clamp(56px, 8vw, 100px); }
.hero h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  max-width: 15ch;
  color: #fff;
}
.hero h1 .accent { color: var(--teal-soft); }
.hero .lead { color: var(--on-dark-mut); font-size: clamp(17px, 1.6vw, 20px); margin-top: 22px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--on-dark-mut); }

/* signature: transform data → email */
.transform {
  margin-top: clamp(44px, 6vw, 66px);
  display: grid;
  grid-template-columns: 1fr auto 1.15fr;
  gap: clamp(16px, 2.4vw, 30px);
  align-items: center;
}
.tcard {
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(233,241,236,0.14);
}
.tcard .tcard-tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-soft);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.tcard .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-soft); }

/* left = data (mono, cold) */
.tcard--data { background: rgba(6,26,34,0.55); }
.drow { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 13.5px; padding: 9px 0; border-bottom: 1px dashed rgba(233,241,236,0.14); }
.drow:last-child { border-bottom: 0; }
.drow .k { color: var(--on-dark-mut); }
.drow .v { color: var(--on-dark); }
.drow--total { border-bottom: 0; margin-top: 4px; padding-top: 14px; border-top: 1px solid rgba(233,241,236,0.24); }
.drow--total .k { color: #fff; font-weight: 600; }
.drow--total .v { color: var(--teal-soft); font-weight: 700; font-size: 15px; }

/* middle = MAILA transform node */
.tnode { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tnode .ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(233,241,236,0.28);
  display: grid; place-items: center;
  color: var(--teal-soft);
  background: rgba(79,140,154,0.14);
}
.tnode .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--on-dark-mut); }

/* right = email (warm, human) */
.tcard--mail { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); border: 0; }
.tcard--mail .tcard-tag { color: var(--teal); }
.tcard--mail .dot { background: #46A06B; }
.mail-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.mail-meta { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.mail-subject { font-weight: 700; letter-spacing: -0.01em; margin-top: 6px; font-size: 16px; }
.mail-body p { margin: 0 0 11px; font-size: 14.5px; }
.mail-body .chip {
  display: inline-block; font-weight: 600;
  background: var(--cream); color: var(--petrol);
  padding: 2px 9px; border-radius: 6px; font-size: 13.5px;
}
.mail-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.reveal { opacity: 0; transform: translateY(10px); }
.revealed .reveal { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.revealed .reveal:nth-child(2) { transition-delay: 0.08s; }
.revealed .reveal:nth-child(3) { transition-delay: 0.16s; }
.revealed .reveal:nth-child(4) { transition-delay: 0.24s; }
.revealed .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (max-width: 820px) {
  .transform { grid-template-columns: 1fr; }
  .tnode { flex-direction: row; justify-content: center; padding: 4px 0; }
  .tnode .ring { transform: rotate(90deg); }
}

/* ---------- pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pstep { padding: 24px 20px; border-right: 1px solid var(--line); position: relative; background: var(--paper); }
.pstep:last-child { border-right: 0; }
.pstep .pnum { font-family: var(--font-mono); font-size: 12px; color: var(--teal); letter-spacing: 0.1em; }
.pstep h3 { font-size: 18px; margin: 10px 0 6px; color: var(--petrol); }
.pstep p { margin: 0; font-size: 13.5px; color: var(--muted); }
.pstep--focus { background: var(--petrol); }
.pstep--focus .pnum { color: var(--teal-soft); }
.pstep--focus h3 { color: #fff; }
.pstep--focus p { color: var(--on-dark-mut); }
.pstep--focus::after { content: "Fokus"; position: absolute; top: 14px; right: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-soft); border: 1px solid rgba(233,241,236,0.3); border-radius: 20px; padding: 2px 8px; }
@media (max-width: 820px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pstep { border-bottom: 1px solid var(--line); }
  .pstep:nth-child(2n) { border-right: 0; }
}
@media (max-width: 460px) { .pipeline { grid-template-columns: 1fr; } .pstep { border-right: 0; } }

/* ---------- feature grid ---------- */
.grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); color: var(--petrol); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-size: 17px; color: var(--petrol); }
.card p { margin: 9px 0 0; font-size: 14.5px; color: var(--muted); }
.section--dark .card { background: rgba(255,255,255,0.04); border-color: rgba(233,241,236,0.14); }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: var(--on-dark-mut); }
.section--dark .card .ic { background: rgba(79,140,154,0.18); color: var(--teal-soft); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- product rows ---------- */
.products { display: grid; gap: 18px; margin-top: 40px; }
.product {
  display: grid; grid-template-columns: 180px 1fr; gap: 28px;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  align-items: start;
}
.product .p-name { display: flex; flex-direction: column; gap: 10px; }
.product .p-name .pt { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--petrol); }
.badge {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line-strong); color: var(--muted);
}
.badge--soon { background: var(--cream); border-color: transparent; color: var(--petrol); }
.badge--dev { background: transparent; }
.product ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 30px; }
.product li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; break-inside: avoid; }
.product li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--teal); font-weight: 700; }
.product .p-desc { font-size: 15px; color: var(--muted); margin: 0 0 16px; }
@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; gap: 18px; }
  .product ul { columns: 1; }
}

/* ---------- example strip ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.flow-step { background: rgba(255,255,255,0.04); border: 1px solid rgba(233,241,236,0.14); border-radius: var(--radius-sm); padding: 20px; position: relative; }
.flow-step .fnum { font-family: var(--font-mono); font-size: 11px; color: var(--teal-soft); letter-spacing: 0.14em; }
.flow-step h4 { margin: 10px 0 6px; font-size: 15px; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.flow-step p { margin: 0; font-size: 13px; color: var(--on-dark-mut); }
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  color: var(--teal-soft); font-size: 15px; z-index: 2;
}
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -12px; transform: translateX(50%); }
}

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.trust-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.trust-item .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--petrol); color: var(--cream); display: grid; place-items: center; margin-bottom: 14px; }
.trust-item h3 { font-size: 15.5px; color: var(--petrol); }
.trust-item p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); max-width: 16ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--petrol-deep); color: var(--on-dark); padding-block: 54px 30px; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand .wordmark { font-weight: 700; letter-spacing: -0.03em; font-size: 22px; color: #fff; }
.foot-brand p { margin: 12px 0 0; font-size: 13.5px; color: var(--on-dark-mut); max-width: 34ch; }
.foot-links { display: flex; gap: 40px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-soft); margin: 0 0 14px; font-weight: 500; }
.foot-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--on-dark-mut); transition: color 0.16s var(--ease); }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(233,241,236,0.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-mut); }

/* ---------- modal (interest form) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11,44,57,0.5); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--paper); border-radius: var(--radius); max-width: 480px; width: 100%;
  padding: 34px; box-shadow: var(--shadow-lift); max-height: 92vh; overflow: auto;
  animation: pop 0.24s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 22px; color: var(--petrol); }
.modal .sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 22px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; background: #fff; color: var(--ink); transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(79,140,154,0.18); }
.modal-actions { display: flex; gap: 12px; margin-top: 22px; }
.modal-actions .btn { flex: 1; justify-content: center; }
.modal-close { position: absolute; }
.modal-wrap { position: relative; }
.x-btn { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 8px; line-height: 0; }
.x-btn:hover { background: var(--cream); color: var(--petrol); }
.modal-success { text-align: center; padding: 14px 0; }
.modal-success .check { width: 52px; height: 52px; border-radius: 50%; background: var(--cream); color: var(--petrol); display: grid; place-items: center; margin: 0 auto 16px; }
.modal-success h3 { margin-bottom: 8px; }
.modal-success p { color: var(--muted); font-size: 14.5px; }

/* ---------- legal / prose pages ---------- */
.page-head { background: var(--petrol-deep); color: var(--on-dark); padding-block: clamp(48px, 7vw, 84px) clamp(40px, 6vw, 64px); }
.page-head h1 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); }
.page-head p { color: var(--on-dark-mut); margin: 14px 0 0; max-width: 60ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(20px, 2.2vw, 26px); color: var(--petrol); margin: 44px 0 14px; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; color: var(--petrol); margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; color: var(--ink); }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--petrol); }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding: 5px 0 5px 24px; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--teal); }
.prose .addr { line-height: 1.9; }
.prose strong { color: var(--petrol); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 600; color: var(--petrol); }
.back-link:hover .arw { transform: translateX(-3px); }
.back-link .arw { transition: transform 0.18s var(--ease); }

/* ---------- a11y / motion ---------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--petrol); color: var(--cream); padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
