/* Vertriebswebsite — single stylesheet (MAR-830).
 *
 * The visual base returns to the original warm, quiet sales-site system. New
 * utility sections below add the flow diagram, video placeholder and SaaS input
 * cards without changing the overall typography and brand feel.
 */
:root {
  --bg: #EFF0EC;
  --surface: #FAFAF8;
  --card: #fff;
  --line: #E7E8E1;

  --font-ui: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
  --ink: #22251E;
  --ink2: #3D4138;
  --muted: #6B6F64;

  --accent: #4F7355;
  --accent-hover: #43624A;
  --accent-tint: rgba(79, 115, 85, .1);
  --accent-light: #EAF3E6;
  --accent-border: #CFE0C5;
  --accent-ink: #3C5A3F;

  --blue-soft: #EAF0F7;
  --blue-ink: #35506F;
  --signal-soft: #F6E7DD;
  --signal-ink: #7A4E34;
  --warning-bg: #FEF4E0;
  --warning-ink: #8A6A22;

  --radius-card: 8px;
  --radius-input: 8px;
  --shadow-card: 0 1px 3px rgba(30, 35, 25, .05), 0 20px 44px -26px rgba(30, 35, 25, .2);

  --page-max: 1080px;
  --section-gap: 88px;
  --transition-fast: .15s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); letter-spacing: 0; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink2); font-size: .95rem; }
.site-nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: var(--radius-input); padding: 12px 22px; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(30,35,25,.35); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--card); color: var(--accent-ink); border-color: var(--accent-border); }
.btn-secondary:hover { background: var(--accent-light); }
.btn-small { padding: 8px 16px; font-size: .9rem; }

/* Hero */
.hero { padding: 78px 0 46px; text-align: center; }
.hero-lift {
  background: radial-gradient(60% 50% at 50% 0%, var(--accent-tint), transparent 70%);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.eyebrow {
  display: inline-block; background: var(--accent-light); color: var(--accent-ink);
  border: 1px solid var(--accent-border); border-radius: 999px;
  padding: 4px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { max-width: 820px; margin: 0 auto 18px; }
.hero .sub { max-width: 700px; margin: 0 auto 10px; font-size: 1.12rem; color: var(--ink2); }
.hero .note { max-width: 700px; margin: 0 auto 28px; font-size: .98rem; color: var(--muted); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: calc(var(--section-gap) / 2) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-head p { color: var(--ink2); }
.alt { background: var(--surface); }
.section-link { text-align: center; margin-top: 24px; }

/* Card grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent-border); }
.card h3 { margin-top: 0; font-size: 1.12rem; }
.card p, .card li { color: var(--ink2); font-size: .97rem; }
.card ul { padding-left: 20px; margin: 0; }
.card li + li { margin-top: 8px; }
.compact-card p { margin-bottom: 0; }

/* Problem flow */
.flow-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 28px;
}
.flow-column {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.flow-column h3 { margin: 0 0 14px; font-size: 1rem; }
.flow-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.flow-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--surface);
  padding: 9px 10px;
  color: var(--ink2);
  font-size: .94rem;
}
.flow-column.middle { border-color: var(--accent-border); background: var(--accent-light); }
.flow-column.middle .flow-list li { background: var(--card); }
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  font-size: 1.8rem;
  font-weight: 700;
}
@media (max-width: 820px) {
  .flow-diagram { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); min-height: 18px; }
}

/* Video placeholder */
.video-box {
  max-width: 760px; margin: 0 auto; aspect-ratio: 16 / 9;
  background: var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--bg); text-align: center; padding: 24px;
}
.video-box .play {
  width: 72px; height: 72px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.video-box .play::after {
  content: ""; border-style: solid; border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff; margin-left: 6px;
}
.video-box small { opacity: .78; }
.video-caption { max-width: 700px; margin: 18px auto 0; text-align: center; color: var(--ink2); }

/* SaaS input cards */
.input-card { display: flex; flex-direction: column; gap: 12px; }
.input-card strong { color: var(--ink); }
.input-list { margin: 0; padding-left: 20px; }
.input-tag {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent-ink);
  font-size: .82rem;
  font-weight: 700;
}
.input-tag.blue { background: var(--blue-soft); color: var(--blue-ink); border-color: #C8D7EA; }
.input-tag.signal { background: var(--signal-soft); color: var(--signal-ink); border-color: #E6C8B8; }

/* Numbered steps */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px;
}

/* Quote / differentiation */
.statement {
  max-width: 780px; margin: 0 auto; text-align: center;
  font-size: 1.18rem; color: var(--ink2);
}

/* Pricing */
.price-banner {
  background: var(--accent-light); border: 1px solid var(--accent-border);
  border-radius: var(--radius-card); padding: 22px 26px; margin-bottom: 36px;
  color: var(--accent-ink);
}
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); outline: 2px solid var(--accent); position: relative; }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 3px 14px; font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.price { font-size: 2rem; font-weight: 700; margin: 6px 0 0; }
.price small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.price-frame { color: var(--muted); font-size: .9rem; margin: 2px 0 16px; }
.price-card .btn { margin-top: auto; text-align: center; }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 22px; }

/* FAQ */
.faq-group h2 { margin: 44px 0 10px; }
details.faq {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-input); padding: 4px 18px; margin: 10px 0;
}
details.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; color: var(--ink); }
details.faq[open] { border-color: var(--accent-border); }
details.faq p { color: var(--ink2); margin-top: 4px; }

/* CTA banner */
.cta-banner {
  background: var(--accent); color: #fff; border-radius: var(--radius-card);
  padding: 44px 32px; text-align: center; box-shadow: var(--shadow-card);
}
.cta-banner h2 { color: #fff; margin-top: 0; }
.cta-banner p { max-width: 620px; margin: 0 auto 26px; opacity: .92; }
.cta-banner .btn { background: #fff; color: var(--accent-ink); }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { margin-top: 48px; }
.legal h2 {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 1.4rem; color: var(--accent-ink);
}
.legal h3 { margin-top: 28px; margin-bottom: 4px; font-size: 1.08rem; color: var(--ink); }
.legal p { line-height: 1.65; color: var(--ink2); margin: 10px 0; }
.legal a { color: var(--accent-ink); }
.legal .todo,
.form-hint {
  background: var(--warning-bg); color: var(--warning-ink);
  border-radius: var(--radius-input); padding: 12px 16px; font-size: .95rem;
}

/* Forms */
.register-main { max-width: 760px; }
.compact-hero { padding-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink2); }
.field input, .field select {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-input); padding: 10px 12px;
}
.field input:focus { outline: 2px solid var(--accent-border); border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.choice {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius-input);
  padding: 12px 14px; margin-bottom: 10px; background: var(--card); cursor: pointer;
}
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choice strong { display: block; }
.choice small { color: var(--muted); }
.form-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.register-block { max-width: 620px; }
.register-block > h2 { margin-top: 0; }
.optional { font-weight: 400; color: var(--muted); }
.form-actions { margin-top: 20px; }
.form-actions .btn { width: 100%; text-align: center; }
.waitlist-success { font-weight: 600; color: var(--accent-ink); text-align: center; }
.waitlist-success.left { text-align: left; }

/* Newsletter and legacy waitlist boxes */
.newsletter-box,
.waitlist-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.newsletter-box input,
.waitlist-form input {
  font: inherit; min-width: 260px; padding: 12px 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--card);
}
.waitlist-inverse input { border-color: transparent; }
.waitlist-inverse .btn { background: #fff; color: var(--accent-ink); }
.cta-banner .waitlist-success { color: #fff; }
.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;
}

/* Cookie consent banner */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 18px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  max-width: var(--page-max); margin: 0 auto;
}
.consent-banner p { margin: 0; flex: 1 1 320px; font-size: .93rem; color: var(--ink2); }
.consent-banner .cta-row { justify-content: flex-end; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: var(--section-gap); }
.site-footer .wrap { padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--accent-ink); }
.site-footer p { color: var(--muted); font-size: .92rem; margin: 0; }

@media (max-width: 640px) {
  .site-nav { gap: 14px; }
  .site-nav .nav-link { display: none; }
  .hero { padding: 56px 0 40px; }
  .cta-row .btn { width: 100%; text-align: center; }
}
