/* ─────────────────────────────────────────────
   AICountant Design System
   Ported from mission-page-v2.html (approved mockup)
   ───────────────────────────────────────────── */

/* ── Design Tokens ── */
:root {
  --bg:    #f0f0f2;
  --white: #fff;
  --ink:   #000;
  --gray:  #aaa9ab;
  --line:  #dbdadd;
  --green: #75fb90;
  --muted: #6c6c72;
  --r:     22px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Body + grain texture ── */
body {
  font-family: 'Urbanist', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Layout ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.hatch { background: repeating-linear-gradient(135deg, #e3e3e6 0 10px, #ededf0 10px 20px); }
.eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); font-weight: 600; text-align: center; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ── Visually hidden (a11y) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Icon baseline ── */
.i {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  transition: padding .3s;
}
nav.scrolled { padding: 8px 0; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 6px 24px rgba(20, 22, 40, .06);
  border-radius: 999px;
  padding: 10px 12px 10px 20px;
  transition: box-shadow .3s;
}
nav.scrolled .navbar { box-shadow: 0 10px 34px rgba(20, 22, 40, .12); }

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
}
.logo .mark {
  width: 21px;
  height: 21px;
  background: url("/assets/img/logo-mark.png") center / contain no-repeat;
  transition: transform .4s;
  flex-shrink: 0;
}
.logo:hover .mark { transform: translateY(-1px) scale(1.06); }

.pillnav {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.pillnav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.pillnav a:hover { color: var(--ink); }
.pillnav a.active { background: var(--ink); color: #fff; }

.navcta { display: flex; gap: 8px; align-items: center; }

/* ── Language switch ── */
.langswitch {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.langbtn {
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  transition: color .2s, background .2s;
  line-height: 1;
}
.langbtn:hover { color: var(--ink); }
.langbtn[aria-pressed="true"],
.langbtn.active {
  background: var(--ink);
  color: #fff;
}

/* ── Buttons ── */
.btn {
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform .15s ease, box-shadow .25s ease, filter .2s;
  will-change: transform;
}
.btn.green { background: var(--green); color: var(--ink); }
.btn.green:hover { box-shadow: 0 8px 26px rgba(117, 251, 144, .55); filter: brightness(1.04); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.glass {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.glass:hover { background: rgba(255, 255, 255, .85); }
.btn:active { transform: scale(.96); }

/* ── HERO ── */
.hero {
  position: relative;
  text-align: center;
  padding: 96px 0 40px;
  overflow: hidden;
}
.glow {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 780px;
  height: 540px;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(117, 251, 144, .55), transparent 70%);
  filter: blur(46px);
  transform: translateX(-50%);
  animation: drift 12s ease-in-out infinite;
}
@keyframes drift {
  0%,  100% { transform: translateX(-54%) translateY(0)    scale(1);    }
  50%        { transform: translateX(-46%) translateY(22px) scale(1.08); }
}
.hero > .wrap { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 26px;
  backdrop-filter: blur(10px);
}
.badge .d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(117, 251, 144, .7); }
  70%  { box-shadow: 0 0 0 8px rgba(117, 251, 144, 0);  }
  100% { box-shadow: 0 0 0 0   rgba(117, 251, 144, 0);  }
}

/* Hero heading + word reveal */
#hero-heading {
  font-size: 64px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.035em;
}
#hero-heading .reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: word .6s forwards;
}
@keyframes word { to { opacity: 1; transform: none; } }

.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 22px auto 30px;
  font-weight: 400;
}
.hero .cta {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Trust strip (replaces .stats) ── */
.truststrip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}
.trustpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 4px 14px rgba(20, 22, 40, .07);
  border-radius: 999px;
  padding: 8px 14px;
}
.trustpill .i { opacity: .75; }

/* ── Floating chips ── */
.floats {
  position: relative;
  max-width: 920px;
  margin: 40px auto 0;
  height: 64px;
}
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 10px 30px rgba(20, 22, 40, .08);
  border-radius: 14px;
  padding: 11px 15px;
}
.chip .ic {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
/* Icons inside green chip backgrounds stay black (Lucide strokes are black) */
.chip .ic .i { width: 13px; height: 13px; }
.chip.l { left: 0;   top: 0;   animation: bob 5s ease-in-out infinite; }
.chip.r { right: 0;  top: 20px; animation: bob 6s ease-in-out infinite .5s; }
@keyframes bob {
  0%,  100% { transform: translateY(0)    rotate(-1deg); }
  50%        { transform: translateY(-12px) rotate(1deg); }
}

/* ── Sections ── */
section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head h2 { font-size: 40px; font-weight: 700; letter-spacing: -.03em; margin-top: 10px; }

/* ── Pillar cards ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pcard {
  position: relative;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 14px 40px rgba(20, 22, 40, .07);
  border-radius: var(--r);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}
.pcard .sheen {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(117, 251, 144, .22), transparent 60%);
}
.pcard:hover .sheen { opacity: 1; }
.pcard:hover { box-shadow: 0 30px 70px rgba(20, 22, 40, .14); }

.pcard .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--green);
  display: grid;
  place-items: center;
  transition: transform .3s;
  flex-shrink: 0;
}
.pcard .icon .i { width: 22px; height: 22px; }
.pcard:hover .icon { transform: scale(1.1) rotate(-6deg); }

.pcard .tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.pcard h3 { font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.pcard p { font-size: 15px; color: var(--muted); }
.pcard .pic { height: 120px; border-radius: 14px; margin-top: 6px; }
.pcard .more {
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
/* arrow-right icon next to .more text */
.pcard > .i {
  width: 16px;
  height: 16px;
  margin-top: -10px; /* pull up to align with .more */
}
.pcard:hover > .i { transform: translateX(5px); }

/* ── Mission / Vision (white section) ── */
.mission {
  background: var(--white);
  border-radius: 34px;
  padding: 60px 0;
  margin: 30px 0;
}
.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-top: 42px;
}
.bento .big,
.bento .cell {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  background: #fbfbfc;
}
.bento .big {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.bento .big h3 {
  font-size: 20px;
  font-weight: 700;
}
.bento .big > p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}
.bento .cell h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bento .cell h3 .mi {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.bento .cell h3 .mi .i { width: 16px; height: 16px; }
.bento .cell p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.bento .cell { transition: transform .2s, border-color .2s; }
.bento .cell:hover { transform: translateY(-4px); border-color: var(--green); }

/* ── Animated pipeline ── */
.pipe {
  margin-top: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.pipe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.pipe-row::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  top: 50%;
  height: 2px;
  background: var(--line);
}
.pipe-row::after {
  content: "";
  position: absolute;
  left: 6%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: travel 4s linear infinite;
}
@keyframes travel {
  0%   { left: 6%;  }
  100% { left: 94%; }
}
.node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.node .dot {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  animation: lite 4s linear infinite;
}
.node .dot .i { width: 18px; height: 18px; }
.node:nth-child(1) .dot { animation-delay: 0s;   }
.node:nth-child(2) .dot { animation-delay: .8s;  }
.node:nth-child(3) .dot { animation-delay: 1.6s; }
.node:nth-child(4) .dot { animation-delay: 2.4s; }
.node:nth-child(5) .dot { animation-delay: 3.2s; }
@keyframes lite {
  0%,  15%  { background: var(--green); transform: scale(1.12); }
  30%, 100% { background: #fff;         transform: scale(1);    }
}
.node small { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ── Access / CTA section (black) ── */
.access {
  background: var(--ink);
  color: #fff;
  border-radius: 34px;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.access::before {
  content: "";
  position: absolute;
  bottom: -160px; right: -80px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(117, 251, 144, .4), transparent 70%);
  filter: blur(50px);
  animation: drift 14s ease-in-out infinite;
}
.access .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.access h2 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.access h2 .g { color: var(--green); }
.access p { color: #9a9aa2; font-size: 16px; margin-top: 16px; max-width: 380px; }

/* ── Form ── */
.form { display: flex; flex-direction: column; gap: 12px; }
.field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 15px 18px;
  backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s;
}
.field:focus-within { border-color: var(--green); background: rgba(255, 255, 255, .1); }
.field input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 15px;
  width: 100%;
}
.field input::placeholder { color: #7a7a82; }

/* Consent checkbox */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #9a9aa2;
  cursor: pointer;
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}
.consent-label a { color: var(--green); text-decoration: none; }
.consent-label a:hover { text-decoration: underline; }

.form .actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.form .actions .btn { flex: 1; justify-content: center; padding: 15px; min-width: 140px; }
/* glass button in the dark access context */
.access .btn.glass {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}
.access .btn.glass:hover { background: rgba(255, 255, 255, .15); }

/* Form status message */
[data-status]:empty { display: none; }
[data-status] {
  font-size: 14px;
  margin-top: 2px;
  min-height: 1.4em;
}
[data-status][data-state="loading"] { color: #9a9aa2; }
[data-status][data-state="success"] { color: var(--green); }
[data-status][data-state="error"]   { color: #ff6b6b; }

.access .fineprint {
  font-size: 13px;
  color: #6c6c74;
  margin-top: 6px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.access .fineprint span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.access .fineprint .i { opacity: .6; }

/* ── Honeypot ── */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ── Footer ── */
footer { padding: 46px 0 30px; }
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  gap: 16px;
  flex-wrap: wrap;
}
.foot .links {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.foot .links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  transition: color .2s;
}
.foot .links a:hover { color: var(--ink); }
.foot small { color: var(--gray); font-size: 13px; }

/* Footer legal links */
.foot-legal {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.foot-legal a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  transition: color .2s;
}
.foot-legal a:hover { color: var(--ink); }

/* Footer langswitch (same glass pill style) */
footer .langswitch {
  background: rgba(255, 255, 255, .5);
  border-color: var(--line);
}

/* ── Legal pages (.impressum / .datenschutz use .legal wrapper) ── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 28px 80px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.legal h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 40px 0 12px;
}
.legal h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}
.legal p { margin-bottom: 14px; color: var(--muted); }
.legal a { color: var(--ink); text-decoration: underline; }
.legal a:hover { color: var(--muted); }
.legal ul,
.legal ol { margin: 0 0 14px 20px; color: var(--muted); }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* ── Responsive ── */
@media (max-width: 880px) {
  #hero-heading { font-size: 42px; }

  .pillnav { display: none; } /* hide mid-nav links on mobile */

  .pillars { grid-template-columns: 1fr; }

  .bento { grid-template-columns: 1fr; }
  .bento .big { grid-row: auto; }

  .access .inner { grid-template-columns: 1fr; }

  .floats { display: none; } /* chips overlap badly on small screens */

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .truststrip { gap: 8px; }
}

/* ── CTA band (sub-pages: centered black CTA, no form) ── */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 34px;
  padding: 64px 0;
  margin: 0 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  bottom: -140px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(117, 251, 144, .4), transparent 70%);
  filter: blur(50px);
  animation: drift 14s ease-in-out infinite;
}
.cta-band .inner-cta {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.cta-band .btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.cta-band .btn.glass {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}
.cta-band .btn.glass:hover { background: rgba(255, 255, 255, .15); }

/* ── pcard .more-link (wraps .more text + arrow icon together) ── */
.pcard .more-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  transition: gap .2s;
}
.pcard:hover .more-link { gap: 10px; }
.pcard .more-link .i {
  width: 16px;
  height: 16px;
  transition: transform .2s;
}
.pcard:hover .more-link .i { transform: translateX(4px); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
