/* ============================================================
   Bavarian Union — DEMO site design system
   NOTE: This is a non-functional demonstration build.
   ============================================================ */

:root {
  /* Palette — cool, modern, Tesla-ish monochrome + one accent */
  --ink: #0a0c10;
  --ink-2: #14181f;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --paper-3: #eceef1;
  --line: #e2e5ea;
  --muted: #5b6471;
  --muted-2: #8a93a0;
  --accent: #2b59ff;
  --accent-ink: #1b3fcf;
  --accent-soft: #eaf0ff;
  --demo: #b8860b;
  --demo-bg: #fff8e6;
  --demo-line: #f0d98a;
  --ok: #1a9d6b;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(10,12,16,.04), 0 8px 30px rgba(10,12,16,.06);
  --shadow-lg: 0 20px 60px rgba(10,12,16,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Persistent DEMO banner ---------- */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--demo-bg);
  color: #6b5200;
  border-bottom: 1px solid var(--demo-line);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.demo-banner strong { color: #8a6a00; font-weight: 800; }
.demo-banner .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--demo); display: inline-block; flex: none;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: clamp(56px, 8vw, 110px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 33px; /* sits under demo banner */
  z-index: 900;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 20px; letter-spacing: -.02em;
  cursor: pointer;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--ink), #2a3340);
  color: #fff; display: grid; place-items: center;
  font-size: 17px; font-weight: 800;
  box-shadow: var(--shadow);
}
.brand .mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .25s; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(50px, 7vw, 90px); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-soft); padding: 6px 14px; border-radius: 100px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(38px, 7vw, 76px); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 800; margin-bottom: 22px;
}
.hero p.lead { font-size: clamp(17px, 2.4vw, 22px); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-visual {
  margin-top: 60px; border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--paper-2), var(--paper-3));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 30px; overflow: hidden;
}

/* ---------- Typography helpers ---------- */
h2 { font-size: clamp(28px, 4.5vw, 46px); letter-spacing: -.03em; line-height: 1.08; font-weight: 800; }
h3 { font-size: 21px; letter-spacing: -.02em; font-weight: 700; }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }
.lead { font-size: 19px; color: var(--muted); }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 20px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--paper-2), var(--paper-3));
  border: 1px solid var(--line); min-height: 340px; padding: 28px; box-shadow: var(--shadow);
}
.split h2 { margin-bottom: 18px; }
.split p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.ticklist { list-style: none; margin-top: 20px; }
.ticklist li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; color: var(--ink); font-size: 16px; }
.ticklist li svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* ---------- Mock UI components (dummy data) ---------- */
.mock-card {
  background: var(--ink); color: #fff; border-radius: 18px; padding: 24px;
  aspect-ratio: 1.6; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.mock-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 100% 0%, rgba(43,89,255,.35), transparent 55%);
}
.mock-card .mc-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.mock-card .mc-brand { font-weight: 800; letter-spacing: .02em; }
.mock-card .mc-num { font-size: 19px; letter-spacing: .12em; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.mock-card .mc-bot { display: flex; justify-content: space-between; font-size: 12px; color: #aeb6c4; position: relative; z-index: 1; }
.mock-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row .m-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--paper-3); display: grid; place-items: center; flex: none; font-size: 15px; }
.mock-row .m-main { flex: 1; }
.mock-row .m-main b { font-size: 15px; font-weight: 600; display: block; }
.mock-row .m-main span { font-size: 13px; color: var(--muted-2); }
.mock-row .m-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.m-amt.neg { color: var(--ink); }
.m-amt.pos { color: var(--ok); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: start; }
.price {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: var(--paper);
}
.price.featured { border-color: var(--ink); box-shadow: var(--shadow-lg); position: relative; }
.price.featured .tag { position: absolute; top: -12px; left: 32px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px; }
.price h3 { font-size: 18px; color: var(--muted); font-weight: 600; }
.price .amt { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; }
.price .amt span { font-size: 16px; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; margin: 22px 0; }
.price ul li { padding: 8px 0; color: var(--muted); font-size: 15px; display: flex; gap: 10px; }
.price ul li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- Forms (NON-FUNCTIONAL demo mockups) ---------- */
.form-wrap { max-width: 440px; margin: 0 auto; }
.form-note {
  background: var(--demo-bg); border: 1px solid var(--demo-line); color: #6b5200;
  border-radius: 12px; padding: 12px 16px; font-size: 13.5px; font-weight: 500; margin-bottom: 22px;
  display: flex; gap: 10px; align-items: flex-start;
}
.form-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 15px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--paper-2); transition: border .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: 15px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Dashboard (dummy) ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.dash-side { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 120px; }
.dash-side a { display: flex; gap: 11px; align-items: center; padding: 11px 13px; border-radius: 10px; font-size: 15px; color: var(--muted); font-weight: 500; }
.dash-side a.active, .dash-side a:hover { background: var(--paper-2); color: var(--ink); }
.dash-main { display: grid; gap: 22px; }
.balance-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile span { font-size: 13.5px; color: var(--muted); }
.tile b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { margin-bottom: 10px; }
.budget-bar { height: 9px; border-radius: 100px; background: var(--paper-3); overflow: hidden; margin: 8px 0 3px; }
.budget-bar i { display: block; height: 100%; background: var(--accent); border-radius: 100px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--font); font-size: 18px; font-weight: 600; color: var(--ink); padding: 22px 40px 22px 0; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 22px; color: var(--muted); font-size: 16px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-thumb { aspect-ratio: 1.8; background: linear-gradient(160deg, var(--paper-2), var(--paper-3)); border-bottom: 1px solid var(--line); }
.post-body { padding: 22px; }
.post-body .meta { font-size: 13px; color: var(--muted-2); margin-bottom: 8px; }
.post-body h3 { margin-bottom: 8px; line-height: 1.25; }
.post-body p { color: var(--muted); font-size: 15px; }
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(30px,5vw,48px); text-align: left; margin-bottom: 16px; }
.article p, .article ul { margin-bottom: 18px; color: var(--ink); font-size: 18px; }
.article ul { padding-left: 22px; }
.article h2 { margin: 36px 0 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px,6vw,72px); text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: #aeb6c4; font-size: 18px; max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 60px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 15px; padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-about p { color: var(--muted); font-size: 14.5px; margin: 14px 0; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted-2); }
.footer-disclaimer { background: var(--demo-bg); border: 1px solid var(--demo-line); color: #6b5200; border-radius: 12px; padding: 14px 18px; font-size: 13px; margin-bottom: 36px; line-height: 1.5; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { text-align: center; padding: clamp(50px,6vw,80px) 0 clamp(30px,4vw,50px); }
.page-hero h1 { font-size: clamp(34px,5.5vw,58px); }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 560px; margin: 16px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .price-grid, .post-grid, .balance-tiles { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 32px 24px; }
  .split, .dash { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .dash-side { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px var(--gutter); gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 11px 0; width: 100%; font-size: 16px; }
  .grid-3, .grid-4, .price-grid, .post-grid, .balance-tiles, .footer-grid { grid-template-columns: 1fr; }
  .demo-banner { font-size: 12px; gap: 7px; }
  .demo-banner .hide-sm { display: none; }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f5f8; --ink-2: #e2e6ec; --paper: #0c0e12; --paper-2: #14171d; --paper-3: #1b1f27;
    --line: #262b34; --muted: #9aa3b2; --muted-2: #6b7483; --accent: #5b7fff; --accent-ink: #88a3ff;
    --accent-soft: #15203f; --demo-bg: #241c04; --demo-line: #4a3c0d; --demo: #e0b84a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
  }
  .site-header { background: rgba(12,14,18,.82); }
  .demo-banner { color: #e8d38a; }
  .demo-banner strong { color: #f0dd9a; }
  .form-note, .footer-disclaimer { color: #e0cf8a; }
  .nav-links.open { background: var(--paper); }
  .btn-primary { background: #fff; color: #0c0e12; }
  .btn-primary:hover { background: #e6e9ef; }
  .cta-band { background: var(--paper-3); }
}
