/* JuridicAlly Landing Pages — Shared Styles
   Basis: Frontend Styleguide. LP-Anpassungen: größere Heros, mehr Whitespace.
*/

@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-primary: #1E4D6B;
  --color-primary-soft: #2C6A8E;
  --color-accent: #B87333;
  --color-accent-soft: #d18a4a;
  --color-muted: #5A6B7A;
  --color-background: #FDFBF7;
  --color-warm-100: #F6F1E9;
  --color-warm-200: #ECE3D4;
  --color-border: rgba(30, 77, 107, 0.10);
  --color-border-strong: rgba(30, 77, 107, 0.15);
  --shadow-soft: 0 4px 20px rgba(30, 77, 107, 0.06);
  --shadow-soft-lg: 0 30px 80px rgba(30, 77, 107, 0.08);
  --shadow-copper: 0 12px 40px rgba(184, 115, 51, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #FDFBF7 0%, #FDFBF7 88%, rgba(184, 115, 51, 0.12) 100%);
  color: var(--color-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.12; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; }
p  { margin: 0; text-wrap: pretty; color: var(--color-primary); }
.muted { color: var(--color-muted); }
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  font-weight: 600;
}

/* ===== Layout primitives ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }

/* ===== Top nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 251, 247, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; }
.nav__brand img { height: 32px; width: auto; mix-blend-mode: multiply; }
.nav__brand-name { font-size: 1.1rem; }
.nav__brand-name b { color: var(--color-accent); font-weight: 700; }
.nav__links { display: none; gap: 32px; }
@media (min-width: 880px) {
  .nav__links { display: flex; }
}
.nav__links a { color: var(--color-muted); font-size: 0.95rem; font-weight: 500; transition: color .15s ease; }
.nav__links a:hover { color: var(--color-primary); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 77, 107, 0.18);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(30, 77, 107, 0.22); }
.btn--accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-copper);
}
.btn--accent:hover { transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover { background: rgba(30, 77, 107, 0.04); }
.btn--lg { padding: 18px 28px; font-size: 1.02rem; border-radius: 24px; }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ===== Hero ===== */
.hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero__eyebrow { margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.hero__eyebrow::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.15);
}
.hero__title { margin-bottom: 22px; }
.hero__title em { font-style: normal; color: var(--color-accent); }
.hero__sub { color: var(--color-muted); font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 58ch; margin-bottom: 32px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 18px 26px; color: var(--color-muted); font-size: 0.9rem; }
.hero__meta-item { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta-item svg { color: var(--color-accent); }

.hero__visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft-lg);
  padding: 18px;
  overflow: hidden;
}
.hero__visual::after {
  content: ""; position: absolute; inset: -1px;
  background: radial-gradient(60% 50% at 80% 0%, rgba(184,115,51,0.10), transparent 60%);
  pointer-events: none;
}

/* ===== Trust strip ===== */
.trust {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(255,255,255,0.55);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}
.trust__item {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 500;
}
.trust__item svg { color: var(--color-accent); flex-shrink: 0; }

/* ===== Section heading ===== */
.heading {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.heading__eyebrow { margin-bottom: 14px; display: inline-block; }
.heading h2 { margin-bottom: 14px; }
.heading p { color: var(--color-muted); font-size: 1.08rem; }
.heading--left { text-align: left; margin-left: 0; }

/* ===== Feature cards ===== */
.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .cards--3 { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft-lg); border-color: rgba(30, 77, 107, 0.18); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(184, 115, 51, 0.12);
  color: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.card__title { font-size: 1.18rem; font-weight: 700; }
.card__text { color: var(--color-muted); font-size: 0.98rem; }

/* ===== Split (text/visual) ===== */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 920px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse > :first-child { order: 2; }
}
.split__title { margin-bottom: 18px; }
.split__text { color: var(--color-muted); font-size: 1.05rem; margin-bottom: 24px; max-width: 56ch; }
.split__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.split__list li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--color-primary);
}
.split__list li::before {
  content: ""; width: 8px; height: 8px; margin-top: 9px;
  border-radius: 50%; background: var(--color-accent); flex-shrink: 0;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.step__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step__text { color: var(--color-muted); font-size: 0.96rem; }

/* ===== Testimonial ===== */
.quote {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  box-shadow: var(--shadow-soft);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.quote__mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.quote__text {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--color-primary);
  letter-spacing: -0.012em;
  font-weight: 500;
  margin-bottom: 28px;
}
.quote__author {
  display: inline-flex; align-items: center; gap: 14px; justify-content: center;
}
.quote__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-warm-200), var(--color-warm-100));
  border: 1px solid var(--color-border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}
.quote__name { font-weight: 700; }
.quote__role { color: var(--color-muted); font-size: 0.9rem; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  border-top: 1px solid var(--color-border);
  padding: 22px 0;
}
.faq__item:last-of-type { border-bottom: 1px solid var(--color-border); }
.faq__q {
  width: 100%;
  text-align: left;
  background: none; border: none; padding: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary);
}
.faq__q-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(184, 115, 51, 0.12);
  color: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease;
  flex-shrink: 0;
}
.faq__item[open] .faq__q-icon { transform: rotate(45deg); background: var(--color-accent); color: #fff; }
.faq__a { padding-top: 14px; color: var(--color-muted); font-size: 1rem; max-width: 64ch; }
.faq__item details { all: unset; }

/* ===== Form / CTA ===== */
.cta {
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(184,115,51,0.18), transparent 65%),
    linear-gradient(180deg, #224F6C 0%, #1A4360 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  box-shadow: var(--shadow-soft-lg);
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) { .cta { grid-template-columns: 1.05fr 1fr; align-items: center; } }
.cta h2, .cta p { color: #fff; }
.cta__title { letter-spacing: -0.035em; margin-bottom: 14px; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.cta__sub { opacity: 0.85; margin-bottom: 24px; max-width: 48ch; }
.cta__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; opacity: 0.92; }
.cta__list li { display: flex; gap: 10px; align-items: center; }
.cta__list li svg { color: var(--color-accent-soft); flex-shrink: 0; }

.form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  color: var(--color-primary);
}
.form__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.form__sub { color: var(--color-muted); font-size: 0.94rem; margin-bottom: 22px; }
.form__group { display: grid; gap: 8px; margin-bottom: 16px; }
.form__label { font-size: 0.82rem; font-weight: 600; color: var(--color-primary); }
.form__label .req { color: var(--color-accent); margin-left: 2px; }
.form__input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  font: inherit;
  background: #fff;
  color: var(--color-primary);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.15);
}
.form__hint { font-size: 0.78rem; color: var(--color-muted); margin-top: 12px; line-height: 1.55; }
.form__submit { width: 100%; justify-content: center; margin-top: 6px; }

.form__success {
  display: none;
  text-align: center;
  padding: 16px 0 8px;
}
.form__success svg { color: var(--color-accent); margin-bottom: 14px; }
.form__success h3 { margin-bottom: 8px; }
.form__success p { color: var(--color-muted); }
.form.is-success > :not(.form__success) { display: none; }
.form.is-success .form__success { display: block; }

/* ===== Footer ===== */
.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--color-border);
  margin-top: 80px;
}
.footer__top {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.footer__brand img { height: 28px; mix-blend-mode: multiply; }
.footer__about { color: var(--color-muted); font-size: 0.9rem; max-width: 38ch; }
.footer__title { font-weight: 700; color: var(--color-primary); margin-bottom: 14px; font-size: 0.95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--color-muted); font-size: 0.92rem; }
.footer ul a:hover { color: var(--color-accent); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ===== Product mockup placeholder ===== */
.mock {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(30,77,107,0.02);
}
.mock__chrome {
  height: 36px;
  background: linear-gradient(180deg, #f5f0eb 0%, #faf8f6 100%);
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--color-border);
}
.mock__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(30, 77, 107, 0.18);
}
.mock__dot--1 { background: #E68A6B; }
.mock__dot--2 { background: #E0B86B; }
.mock__dot--3 { background: #7BA98C; }
.mock__title {
  margin-left: 14px;
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 500;
}
.mock__body { padding: 24px; }

/* ally-specific chat mock pieces */
.mock-chat { display: grid; gap: 14px; }
.mock-msg {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 86%;
}
.mock-msg--user {
  background: var(--color-primary);
  color: #fff;
  justify-self: end;
  border-bottom-right-radius: 6px;
}
.mock-msg--ally {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-soft);
}
.mock-msg--ally .src {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.74rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(184, 115, 51, 0.12);
  color: var(--color-accent);
  font-weight: 600;
}
.mock-typing {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 10px 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--color-border);
  width: max-content;
}
.mock-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent);
  animation: bounce 1.2s infinite;
}
.mock-typing span:nth-child(2) { animation-delay: .15s; }
.mock-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* placeholder hatched image */
.placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(135deg, rgba(30,77,107,0.04) 0 12px, rgba(30,77,107,0.07) 12px 24px),
    var(--color-warm-100);
  border: 1px dashed var(--color-border-strong);
  display: grid; place-items: center;
  color: var(--color-muted);
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 0.82rem;
  text-align: center;
  padding: 16px;
}
.placeholder small { display: block; margin-top: 6px; opacity: 0.7; }

/* compact image grid for "what Ally sees" */
.doc-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.doc-card {
  background: linear-gradient(180deg, #f5f0eb 0%, #faf8f6 100%);
  border-radius: 8px;
  padding: 14px;
  position: relative;
  min-height: 120px;
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column; justify-content: space-between;
}
.doc-card::before {
  content: ""; position: absolute; top: -1px; left: 14px; width: 60px; height: 8px;
  background: #e8ded4;
  border-radius: 4px 4px 0 0;
}
.doc-card__name { font-weight: 600; font-size: 0.82rem; color: var(--color-primary); margin-top: 14px; }
.doc-card__meta { font-size: 0.72rem; color: var(--color-muted); margin-top: 4px; }
.doc-card__badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.62rem; padding: 3px 7px; border-radius: 999px;
  background: rgba(30, 77, 107, 0.08); color: var(--color-primary);
  font-weight: 600;
}
.doc-card--analyzed .doc-card__badge { background: rgba(184,115,51,0.18); color: var(--color-accent); }

/* anchor offset */
section[id] { scroll-margin-top: 90px; }

/* ===== Tweaks panel host hook ===== */
.tweaks-root { position: fixed; bottom: 24px; right: 24px; z-index: 100; }

/* ===== A/B body modes ===== */
body.lp-trust-first .order-trust { order: -1; }

/* utility */
.flex { display: flex; }
.gap-12 { gap: 12px; }
.center { text-align: center; }
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } }
