:root {
  --ink: #101827;
  --ink-soft: #1c2940;
  --cobalt: #173bca;
  --cobalt-dark: #10288b;
  --cobalt-light: #dfe7ff;
  --lime: #d7ff52;
  --coral: #ff7757;
  --white: #ffffff;
  --off-white: #f5f7fb;
  --line: #dbe0ea;
  --muted: #4e5c70;
  --max: 1180px;
  --shadow: 0 8px 0 rgba(16, 24, 39, .12);
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--off-white);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  line-height: 1.06;
  text-wrap: balance;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(3.6rem, 8vw, 5.9rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2.45rem, 5vw, 4.75rem); }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); }
p { text-wrap: pretty; }

.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 247, 251, .96);
  border-bottom: 1px solid rgba(16, 24, 39, .12);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 830;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--cobalt);
  color: var(--white);
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 900;
}
.brand-name { font-size: 1.06rem; }
.main-nav { display: flex; align-items: center; gap: 27px; }
.main-nav > a:not(.button) {
  text-decoration: none;
  font-weight: 720;
  font-size: .93rem;
}
.main-nav > a:not(.button):hover { color: var(--cobalt); }
.nav-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 21px;
  border: 0;
  border-radius: 8px;
  background: var(--cobalt);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 4px 0 var(--cobalt-dark);
  transition: transform .2s ease-out, box-shadow .2s ease-out, background .2s ease-out;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--cobalt-dark); }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--cobalt-dark); }
.button-small { min-height: 42px; padding: 9px 16px; font-size: .9rem; }
.button-lime { background: var(--lime); color: var(--ink); box-shadow: 0 4px 0 #78920b; }
.button-lime:hover { box-shadow: 0 6px 0 #78920b; }
.button-outline-light { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.72); box-shadow: none; }
.button-outline-light:hover { background: var(--white); color: var(--ink); box-shadow: none; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cobalt);
  font-weight: 820;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.dark-link { color: var(--ink); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 138px) 0 clamp(74px, 9vw, 118px);
  background: var(--off-white);
}
.hero::before {
  content: "";
  position: absolute;
  width: min(38vw, 560px);
  height: min(38vw, 560px);
  right: -12vw;
  top: -10vw;
  border-radius: 50%;
  background: var(--cobalt-light);
  opacity: .62;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  gap: clamp(52px, 7vw, 92px);
  align-items: center;
}
.signal {
  display: inline-block;
  margin-bottom: 25px;
  padding: 8px 12px;
  background: var(--lime);
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero h1 { max-width: 760px; margin-bottom: 28px; }
.hero-lead { max-width: 670px; margin-bottom: 36px; color: #314057; font-size: clamp(1.1rem, 1.5vw, 1.28rem); }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 40px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: #36465d;
  font-size: .91rem;
  font-weight: 700;
}
.hero-trust li::before { content: "•"; color: var(--cobalt); margin-right: 8px; }

.workboard {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: 14px 14px 0 var(--cobalt), 20px 20px 0 var(--lime);
}
.workboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-weight: 780;
}
.status { display: flex; align-items: center; gap: 7px; color: #b8c3d8; font-size: .76rem; }
.status span { width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(215,255,82,.12); }
.workboard-flow { margin: 0; padding: 12px 0 0; list-style: none; }
.workboard-flow li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.workboard-flow li::after {
  content: "↓";
  grid-column: 1;
  position: absolute;
  margin-top: 70px;
  margin-left: 12px;
  color: #63718a;
}
.workboard-flow li:last-child::after { content: none; }
.step-no { color: #8ea4ff; font-size: .77rem; font-weight: 850; }
.workboard-flow strong, .workboard-flow small { display: block; }
.workboard-flow small { margin-top: 3px; color: #aeb9cc; }
.workboard-flow .workboard-result { margin-top: 12px; border-bottom: 0; border-radius: 8px; background: var(--lime); color: var(--ink); }
.workboard-flow .workboard-result .step-no, .workboard-flow .workboard-result small { color: var(--ink); }
.workboard-note { margin: 18px 4px 0; color: #b9c4d5; font-size: .84rem; }

.principles { background: var(--cobalt); color: var(--white); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.principles p { min-height: 184px; margin: 0; padding: 42px 38px; border-right: 1px solid rgba(255,255,255,.25); }
.principles p:first-child { border-left: 1px solid rgba(255,255,255,.25); }
.principles strong { font-size: 1.08rem; }

.section { padding: clamp(84px, 10vw, 142px) 0; }
.section-light { background: var(--white); }
.section-heading { max-width: 870px; margin-bottom: 64px; }
.section-heading h2 { margin-bottom: 22px; }
.section-heading p { color: var(--muted); font-size: 1.1rem; }
.split-heading { display: grid; grid-template-columns: 1.15fr .85fr; max-width: none; gap: clamp(34px, 7vw, 96px); align-items: end; }
.split-heading h2 { margin: 0; }
.split-heading p { margin: 0 0 8px; }
.section-index {
  margin-bottom: 20px;
  color: var(--cobalt);
  font-weight: 900;
}

.delivery-path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}
.delivery-path li { padding: 24px 24px 8px 0; }
.delivery-path li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.delivery-path li > span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 34px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 900; }
.delivery-path h3 { min-height: 52px; margin-bottom: 14px; font-size: 1.22rem; }
.delivery-path p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }
.partner-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-top: 70px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.partner-line p { max-width: 760px; margin: 0; }
.partner-line a { flex: 0 0 auto; }

.section-ink { background: var(--ink); color: var(--white); }
.inverse-heading { max-width: 930px; }
.inverse-heading .section-index { color: var(--lime); }
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 8vw, 102px);
  align-items: center;
  padding: clamp(48px, 7vw, 90px) 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.product-copy > p { color: #c1cad9; font-size: 1.03rem; }
.product-copy h3 { margin: 25px 0 20px; font-size: clamp(2.15rem, 4vw, 3.7rem); }
.friedenswerk-logo { width: min(340px, 75%); height: auto; filter: brightness(0) invert(1); }
.feature-list { margin: 28px 0 34px; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 8px 0 8px 30px; color: #d9e0eb; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 900; }

.product-visual { min-width: 0; border-radius: var(--radius); background: #edf2ff; color: var(--ink); box-shadow: 10px 10px 0 var(--cobalt); }
.funeral-board { padding: 16px; }
.mini-window-bar { display: flex; align-items: center; gap: 6px; padding: 4px 2px 16px; }
.mini-window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #9eabc2; }
.mini-window-bar span:first-child { background: var(--coral); }
.mini-window-bar strong { margin-left: auto; color: #4b5870; font-size: .74rem; }
.case-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.case-summary div { padding: 18px; border-radius: 8px; background: var(--white); }
.case-summary strong, .case-summary small { display: block; }
.case-summary strong { font-size: 2rem; }
.case-summary small { color: #5a6880; }
.case-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.case-columns > div { padding: 13px; border-radius: 8px; background: #dce5fb; }
.case-columns > div > small { display: block; margin-bottom: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.case-columns p { margin: 0; padding: 14px; border-radius: 7px; background: var(--white); }
.case-columns strong, .tag { display: block; }
.tag { width: fit-content; margin-top: 18px; padding: 4px 7px; border-radius: 4px; background: #e5eaf3; color: #47556c; font-size: .7rem; font-weight: 800; }
.tag-alert { background: #ffe1da; color: #7d2512; }
.tag-ready { background: #e5f7b6; color: #354400; }

.product-anna { grid-template-columns: .9fr 1.1fr; }
.anna-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.anna-monitor { width: 90%; }
.anna-screen { padding: 14px; border: 8px solid #303a4e; border-radius: 12px; background: #f4f6fa; color: var(--ink); box-shadow: 10px 10px 0 var(--coral); }
.anna-screen-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 18px; border-bottom: 1px solid #cbd2df; font-weight: 900; }
.anna-screen-top small { color: #59667b; font-weight: 700; }
.anna-conversation { padding: 20px 8px 12px; }
.anna-conversation p { max-width: 85%; padding: 12px 14px; border-radius: 10px; font-size: .88rem; }
.anna-user { margin-left: auto; background: var(--cobalt); color: var(--white); }
.anna-ai { background: var(--white); border: 1px solid #d6dce8; }
.anna-stand { display: block; width: 38%; height: 35px; margin: 0 auto; border-bottom: 9px solid #303a4e; }
.anna-phone { position: absolute; right: 0; bottom: 20px; width: 145px; min-height: 230px; padding: 20px 13px; border: 6px solid #303a4e; border-radius: 16px; background: var(--lime); color: var(--ink); box-shadow: 7px 7px 0 var(--cobalt); }
.anna-phone span, .anna-phone strong, .anna-phone small { display: block; }
.anna-phone span { margin-bottom: 55px; font-size: .72rem; font-weight: 900; }
.anna-phone strong { margin-bottom: 10px; font-size: 1rem; }
.anna-phone small { font-weight: 800; }
.product-name { display: inline-block; margin-bottom: 0; color: var(--lime) !important; font-weight: 900; }
.anna-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.anna-capabilities span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: #dce3ef; font-size: .8rem; font-weight: 760; }
.human-control { padding: 18px; border-radius: 8px; background: rgba(255,255,255,.08); color: #e7ecf4 !important; }

.book-section { background: var(--off-white); }
.book-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(60px, 9vw, 130px); align-items: center; }
.book-cover-wrap { position: relative; }
.book-cover-wrap img { display: block; width: min(420px, 90%); margin-inline: auto; border-radius: 4px; box-shadow: 18px 18px 0 var(--cobalt); }
.book-cover-wrap p { max-width: 350px; margin: 36px auto 0; color: var(--muted); text-align: center; font-size: .86rem; font-weight: 760; }
.book-copy h2 { max-width: 800px; margin-bottom: 26px; }
.book-title { color: var(--cobalt); font-size: 1.24rem; font-weight: 850; }
.book-copy > p:not(.section-index):not(.book-title):not(.independent-note) { max-width: 720px; font-size: 1.08rem; }
.book-points { margin: 30px 0 36px; padding: 0; list-style: none; }
.book-points li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.book-points li::before { content: "→"; float: left; margin-left: -28px; color: var(--cobalt); font-weight: 900; }
.book-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.independent-note { margin-top: 24px; color: #667388; font-size: .8rem; }

.section-cobalt { background: var(--cobalt); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(50px, 10vw, 138px); align-items: start; }
.contact-grid .section-index { color: var(--lime); }
.contact-grid > div:first-child > p:last-child { max-width: 660px; color: #dfe6ff; font-size: 1.12rem; }
.contact-panel { padding: 32px; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 10px 10px 0 var(--lime); }
.contact-panel p { margin-bottom: 22px; }
.contact-panel > a:not(.button) { display: block; margin: 8px 0; color: var(--cobalt); font-size: 1.07rem; font-weight: 830; overflow-wrap: anywhere; }
.contact-address { margin-top: 22px; color: var(--muted); }
.contact-panel .button { margin-top: 8px; }

.site-footer { padding: 70px 0 30px; background: var(--ink); color: var(--white); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.footer-brand .brand-mark { background: var(--lime); color: var(--ink); }
.footer-main > div:first-child p { max-width: 390px; margin: 20px 0 0; color: #aeb9ca; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.footer-links strong, .footer-links a, .footer-links span { display: block; }
.footer-links strong { margin-bottom: 14px; color: var(--lime); }
.footer-links a, .footer-links span { margin: 8px 0; color: #c9d1df; }
.funding-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 58px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.funding-row p { max-width: 520px; margin: 0; color: #aeb9ca; font-size: .82rem; }
.funding-logos { display: flex; align-items: center; gap: 24px; padding: 12px 16px; border-radius: 8px; background: var(--white); }
.funding-logos img { max-width: 150px; max-height: 44px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 26px; color: #8f9baf; font-size: .79rem; }

.legal-main { min-height: 70vh; padding: 82px 0 120px; background: var(--white); }
.legal-shell { width: min(850px, calc(100% - 40px)); margin-inline: auto; }
.legal-back { display: inline-flex; margin-bottom: 45px; color: var(--cobalt); font-weight: 820; }
.legal-main h1 { margin-bottom: 18px; font-size: clamp(3rem, 7vw, 5rem); }
.legal-lead { margin-bottom: 54px; color: var(--muted); font-size: 1.08rem; }
.legal-main h2 { margin: 52px 0 18px; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.legal-main h3 { margin: 30px 0 12px; font-size: 1.22rem; }
.legal-main p, .legal-main li { max-width: 72ch; }
.legal-main a { color: var(--cobalt); }
.legal-main address { font-style: normal; }
.legal-note { padding: 20px; border-radius: 8px; background: var(--cobalt-light); }
.legal-footer { padding-top: 36px; padding-bottom: 36px; }

@media (max-width: 980px) {
  .hero-grid, .split-heading, .product, .product-anna, .book-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 74px; }
  .hero-copy { max-width: 800px; }
  .workboard { width: min(610px, calc(100% - 20px)); margin-inline: auto; }
  .delivery-path { grid-template-columns: repeat(2, 1fr); }
  .delivery-path li { border-bottom: 1px solid var(--line); }
  .delivery-path li + li { border-left: 0; }
  .delivery-path li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .product-anna .anna-visual { order: 2; }
  .product { gap: 55px; }
  .book-cover-wrap img { width: min(340px, 78%); }
  .partner-line { align-items: start; flex-direction: column; gap: 22px; }
}

@media (max-width: 790px) {
  .header-inner { min-height: 68px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0 9px 12px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
  }
  .nav-toggle-lines { width: 25px; height: 16px; border-top: 2px solid; border-bottom: 2px solid; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    background: var(--off-white);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.button) { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .button { margin-top: 14px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles p, .principles p:first-child { min-height: auto; padding: 28px 0; border-left: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .principles p:last-child { border-bottom: 0; }
  .case-summary, .case-columns { grid-template-columns: 1fr; }
  .funding-row, .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .shell, .legal-shell { width: min(100% - 28px, var(--max)); }
  .brand-name { font-size: .94rem; }
  .hero { padding-top: 68px; }
  h1 { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  h2 { font-size: clamp(2.25rem, 11vw, 3.4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .workboard { padding: 14px; box-shadow: 8px 8px 0 var(--cobalt), 13px 13px 0 var(--lime); }
  .workboard-top { align-items: flex-start; flex-direction: column; }
  .delivery-path { grid-template-columns: 1fr; }
  .delivery-path li, .delivery-path li:nth-child(even) { padding: 22px 0; border-left: 0; }
  .delivery-path li > span { margin-bottom: 18px; }
  .delivery-path h3 { min-height: 0; }
  .product { padding: 54px 0; }
  .anna-visual { min-height: 370px; }
  .anna-monitor { width: 100%; }
  .anna-phone { right: -2px; width: 125px; min-height: 205px; }
  .footer-main, .footer-links { grid-template-columns: 1fr; }
  .funding-logos { width: 100%; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
