/*
 * onprop marketing sites - shared design system (Figma redesign, 2026-08-04).
 * Loaded by every static page in packages/landing/. Keeps colors, type and
 * component chrome (nav, buttons, footer) consistent without a build step.
 *
 * Font: Inter Tight, self-hosted (fonts/) instead of Google Fonts, to avoid a
 * third-party request on a site that otherwise only loads privacy-friendly
 * Plausible analytics. Replaces the Figma source's "ABC Oracle Variable
 * Unlicensed Trial" headline font, which is explicitly unlicensed for
 * production use.
 */

@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand (unveraendert ggue. Produkt/Vorgaenger-Landingpage) */
  --green: #082c32;
  --green-dark: #082c32;
  --mint: #b9edc4;
  --border: #e3e8e4;
  --bg-soft: #f5f8f6;
  --red: #c0392b;
  --amber: #b8860b;
  --ampel-green: #289140;

  /* Neu aus dem Figma-Entwurf */
  --cream: #f7f7f5;
  --ink: #1a2300;
  --muted: rgba(26, 35, 0, 0.62);
  --muted-on-dark: rgba(255, 255, 255, 0.72);
  --stat-positive: #02ba22;
  --stat-negative: #eb331c;
  --sage: #edf1ec;
  --sage-deep: #d6ddd5;
  --lilac: #cdc9e0;
  --rose: #e9b8b2;

  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 4px rgba(26, 35, 0, 0.1);
  --shadow-float: 0 30px 60px -30px rgba(14, 42, 29, 0.35);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.op-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- Buttons */

.op-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  transition: opacity .15s, transform .05s;
  white-space: nowrap;
}
.op-btn:active { transform: translateY(1px); }
.op-btn-dark { background: var(--green); color: #fcfcfc; box-shadow: var(--shadow-card); }
.op-btn-dark:hover { opacity: .92; }
.op-btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-card); }
.op-btn-light:hover { background: var(--cream); }
.op-btn-cream { background: var(--cream); color: var(--ink); }
.op-btn-cream:hover { background: #ececea; }
.op-btn-ghost { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,0.35); }
.op-btn-ghost:hover { background: rgba(255,255,255,0.08); }
.op-btn-sm { padding: 10px 18px; font-size: 14px; }

.op-btn-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
}
.op-btn-round img { width: 12px; height: 11px; }

/* ------------------------------------------------------------------- Nav */

.op-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 245, 0.86);
  backdrop-filter: blur(10px);
}
.op-header .op-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.op-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  color: var(--green-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.op-logo img { width: 28px; height: 28px; }

.op-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
}
.op-nav-links a { text-decoration: none; color: var(--ink); }
.op-nav-links a:hover { color: var(--green); }

.op-nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}
.op-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- Footer */

.op-footer {
  background: var(--green-dark);
  color: #fff;
  padding: 40px 0 28px;
}
.op-footer .op-footer-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.op-footer .op-logo { color: #fff; }
.op-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.op-footer-links a { text-decoration: underline; color: inherit; }
.op-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* ------------------------------------------------------------- Sections */

.op-section { padding: 88px 0; }
.op-section-tight { padding: 56px 0; }
.op-eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-decoration: underline;
  margin-bottom: 12px;
}
.op-section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.op-section-head h2 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 14px; }
.op-section-head p { font-size: 18px; color: var(--muted); }

/* ---------------------------------------------------------------- Hero */

.op-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-radius: var(--radius-xl);
  margin: 10px 10px 0;
  padding: 56px 24px 0;
  text-align: center;
}
.op-hero-inner { position: relative; z-index: 2; }
.op-hero h1 {
  font-size: clamp(32px, 5.4vw, 60px);
  max-width: 820px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}
.op-hero p.op-lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}
.op-hero .op-cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.op-hero .op-trial-hint {
  font-size: 12px;
  color: rgba(26,35,0,0.5);
  margin-bottom: 32px;
}
.op-hero-media {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  height: min(58vw, 560px);
  min-height: 260px;
  background: linear-gradient(180deg, #cfd9d3, #e9ded8);
}
.op-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.op-hero-badge {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-40%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 237, 247, 0.55);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 10px;
}
.op-hero-badge-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px 18px;
  text-align: left;
  min-width: 170px;
}
.op-hero-badge-card .op-label {
  display: block;
  font-size: 12px;
  color: var(--stat-positive);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}
.op-hero-badge-card .op-value { font-size: 26px; font-weight: 600; color: var(--ink); }
.op-hero-badge-delta {
  background: var(--stat-positive);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  white-space: nowrap;
}

/* ------------------------------------------------------------- Steps */

.op-steps {
  background: var(--green-dark);
  border-radius: var(--radius-xl);
  margin: 40px 10px 0;
  padding: 44px 32px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.op-steps-eyebrow { color: var(--rose); }
.op-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
  position: relative;
}
.op-steps-grid::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  height: 1px;
  background: rgba(255,255,255,0.18);
}
.op-step h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.op-step .op-step-num { color: rgba(255,255,255,0.5); font-weight: 500; }
.op-step p { color: rgba(255,255,255,0.82); font-size: 17px; line-height: 1.5; }

/* --------------------------------------------------------------- Bento */

.op-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.op-bento-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.op-bento-card h3 { font-size: 20px; font-weight: 600; }
.op-bento-card p { font-size: 15px; color: var(--muted); line-height: 1.45; }
.op-bento-card.op-bento-dark { background: var(--green-dark); color: #fff; }
.op-bento-card.op-bento-dark p { color: rgba(255,255,255,0.72); }
.op-bento-card.op-bento-sage { background: var(--sage); }
.op-bento-card.op-bento-sage-deep { background: var(--sage-deep); }
.op-bento-card.op-bento-lilac { background: var(--lilac); }
.op-bento-photo { grid-row: span 2; position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 100%; }
.op-bento-photo img { width: 100%; height: 100%; object-fit: cover; }
.op-bento-stat {
  align-self: flex-start;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
}
.op-bento-stat .op-stat-label { font-size: 12px; color: #6e706d; }
.op-bento-stat .op-stat-value { font-size: 22px; font-weight: 600; }

.op-bank-banner {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: auto;
}
.op-bank-banner p { margin-top: 4px; }

/* --------------------------------------------------------- Feature list */

.op-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.op-feature-item {
  display: flex;
  gap: 16px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}
.op-feature-item:nth-child(odd) { border-right: 1px solid var(--border); }
.op-feature-item img { width: 36px; height: 36px; flex-shrink: 0; }
.op-feature-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.op-feature-item p { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* -------------------------------------------------------------- CTA dark */

.op-cta-dark {
  position: relative;
  background: var(--green-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  margin: 0 10px;
  padding: 64px 40px;
  overflow: hidden;
}
.op-cta-dark-strip {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: bottom;
  opacity: 0.22;
}
.op-cta-dark-inner { position: relative; z-index: 1; max-width: 560px; }
.op-cta-dark h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 18px; }
.op-cta-dark p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 32px; line-height: 1.5; }
.op-cta-dark .op-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.op-cta-dark .op-btn-round { margin-left: -4px; }

/* ---------------------------------------------------------- Responsive */

@media (max-width: 900px) {
  .op-nav-links { display: none; }
  .op-nav-toggle { display: block; }
  .op-nav-links.op-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 12px 24px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .op-steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .op-steps-grid::before { display: none; }
  .op-bento { grid-template-columns: 1fr; }
  .op-bento-photo { grid-row: auto; min-height: 260px; }
  .op-feature-list { grid-template-columns: 1fr; }
  .op-feature-item:nth-child(odd) { border-right: none; }
  .op-cta-dark { text-align: left; padding: 48px 24px; }
  .op-bank-banner { flex-direction: column; align-items: flex-start; }
  .op-bank-banner a { align-self: stretch; text-align: center; }
}

@media (max-width: 640px) {
  .op-section { padding: 56px 0; }
  .op-hero { margin: 8px 8px 0; padding: 40px 16px 0; border-radius: 20px; }
  .op-hero-badge { position: static; transform: none; margin: 16px auto 0; width: fit-content; }
  .op-steps { margin: 24px 8px 0; padding: 32px 20px 40px; border-radius: 20px; }
  .op-cta-dark { margin: 0 8px; border-radius: 20px; }
  .op-footer-links { flex-direction: column; align-items: flex-start; }
}
