/* ============================================================
   Saldo — saldotech.de — Landing page styles
   Design mirrors app/globals.css tokens, no framework
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
}

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --fg: #1c1c1c; /* oklch(0.145 0 0) */
  --muted: #8c8c8c; /* oklch(0.556 0 0) */
  --border: #ebebeb; /* oklch(0.922 0 0) */
  --surface: #f7f7f7; /* oklch(0.97  0 0) */
  --radius: 6px;
}

/* ── Base ───────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Geist", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

/* Non-interactive sections — keep default arrow cursor, text stays selectable */
nav,
.hero,
.modules,
.features,
footer {
  cursor: default;
}

/* Interactive elements always get pointer */
a,
button,
[role="button"],
[tabindex] {
  cursor: pointer;
}

/* ── Typography ─────────────────────────────────────────────── */
.display {
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.overline {
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

.meta {
  font-size: 0.94rem;
  color: var(--muted);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 64px;
}

section {
  padding: 120px 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  font-family: inherit;
}

.btn-primary {
  background: var(--fg);
  color: #fff;
  border: 1px solid var(--fg);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
}

.hero-ctas .btn-secondary {
  background: #ffffff;
  border-color: var(--fg);
}

.hero-ctas .btn-secondary:hover {
  background: var(--surface);
}

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--fg);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .display {
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.break-desktop {
  display: block;
}
@media (max-width: 640px) {
  .break-desktop {
    display: none;
  }
}

.hero-subline {
  font-size: 1rem;
  color: var(--fg);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Modules ────────────────────────────────────────────────── */
.modules {
  padding: 80px 0 120px 0;
}

.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.module-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.module-visual {
  height: 300px;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Module 01 — PBC list card ───────────────────────────────── */
.module-visual-pbc {
  background: #f2f2f2;
}

.pbc-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  width: 75%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.pbc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pbc-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.03em;
}

.pbc-count-pill {
  font-size: 0.65rem;
  font-weight: 500;
  background: #f3f4f6;
  color: #6b7280;
  padding: 2px 7px;
  border-radius: 99px;
}

.pbc-divider {
  height: 1px;
  background: #f3f4f6;
  margin-bottom: 8px;
}

.pbc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
}

.pbc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pbc-dot.amber {
  background: #d97706;
}
.pbc-dot.green {
  background: #059669;
}
.pbc-dot.grey {
  background: #9ca3af;
}

.pbc-row-text {
  font-size: 0.78rem;
  color: #374151;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pbc-badge {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pbc-badge.amber {
  background: #fef3c7;
  color: #92400e;
}
.pbc-badge.green {
  background: #d1fae5;
  color: #065f46;
}
.pbc-badge.grey {
  background: #f3f4f6;
  color: #6b7280;
}

/* ── Module 02 — Agent two-panel ─────────────────────────────── */
.module-visual-ai {
  background: #f2f2f2;
  padding: 20px;
  gap: 10px;
  align-items: stretch;
}

.agent-steps {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agent-steps-header {
  font-size: 0.65rem;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.agent-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.73rem;
  color: #374151;
  line-height: 1.4;
}

.step-icon {
  flex-shrink: 0;
  width: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-check {
  color: #059669;
  font-size: 0.8rem;
}
.step-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.step-pending {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #374151;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.agent-protokoll {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  align-self: center;
}

.protokoll-label {
  font-size: 0.62rem;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.protokoll-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
}

.protokoll-result {
  font-size: 0.75rem;
  color: #d97706;
  margin-bottom: 6px;
}

.protokoll-status {
  font-size: 0.7rem;
  color: #9ca3af;
}

.module-body {
  padding: 32px;
}

.module-number {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.module-title {
  font-size: 1.54rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.3;
}

.module-text {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.module-metric {
  margin-top: 20px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--fg);
}

/* ── Feature grid ───────────────────────────────────────────── */
.features {
  padding: 0 0 120px 0;
}

.overline-section {
  margin-bottom: 48px;
}

.overline-section h2 {
  margin-top: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-cell:nth-child(3n) {
  border-right: none;
}
.feature-cell:nth-last-child(-n + 3) {
  border-bottom: none;
}

.feature-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 16px;
  color: var(--fg);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Contrast section ───────────────────────────────────────── */
.contrast-section {
  background: var(--surface);
  padding: 120px 0;
}

.contrast-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contrast-left .overline {
  margin-bottom: 12px;
}

.contrast-left h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.contrast-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.contrast-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.contrast-item:first-child {
  border-top: 1px solid var(--border);
}

.contrast-item-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
}

.contrast-item-text {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Security ───────────────────────────────────────────────── */
#sicherheit {
  /* padding comes from .contrast-section */
}

.security-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.security-left h2 {
  margin: 12px 0 20px;
}

.security-left p {
  margin-bottom: 32px;
}

.trust-list {
  display: flex;
  flex-direction: column;
}

.trust-item {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.trust-item:first-child {
  border-top: 1px solid var(--border);
}

.trust-item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--fg);
}

.trust-item-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
}

.trust-item-text {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section {
  background: var(--bg);
  padding: 120px 0;
}

.faq {
  /* full container width */
}

.faq h2 {
  margin-bottom: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--fg);
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  gap: 16px;
}

.faq-question:focus {
  outline: none;
}
.faq-question:focus-visible {
  outline: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  font-size: 1.25rem;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.2s;
}

.faq-item.open .faq-toggle {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 0 20px 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 0.94rem;
  color: var(--muted);
}

.footer-right {
  display: flex;
  gap: 24px;
  font-size: 0.94rem;
  flex-wrap: wrap;
}

.footer-right a {
  color: var(--muted);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--fg);
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  section {
    padding: 80px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }
  .modules {
    padding: 60px 0 80px 0;
  }
  .features {
    padding: 0 0 80px 0;
  }

  .module-visual-ai {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  .agent-steps {
    flex: none;
    width: 100%;
  }
  .agent-protokoll {
    flex: none;
    width: 80%;
    align-self: center;
  }

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

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

  /* Reset cell borders for single-column */
  .feature-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .feature-cell:last-child {
    border-bottom: none;
  }
  .feature-cell:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }
  .feature-cell:last-child {
    border-bottom: none;
  }

  .security-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contrast-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #sicherheit {
    /* padding from .contrast-section */
  }
  .faq {
    padding-bottom: 80px;
  }

  .nav-links {
    gap: 16px;
  }
  .nav-link.hidden-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links .btn {
    padding: 8px 14px;
    font-size: 0.88rem;
  }
}
