/* Invoify Marketing-Site — shared styles.
   Base tokens, keyframes and reveal rules translated 1:1 from the design canvas
   (Invoify Website.dc.html). Fonts self-hosted (see fonts.css). */
@import url('/assets/fonts.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Twemoji Country Flags', 'Roboto', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg: #ffffff; --bg-soft: #fafafa; --bg-muted: #f4f4f5;
  --surface: #ffffff; --surface-2: #fafafa;
  --text: #18181b; --text-2: #3f3f46; --text-3: #52525b; --text-4: #71717a; --text-5: #a1a1aa;
  --border: #e4e4e7; --border-2: #ececef; --nav-pill: #f1f0f4;
  --brand: #6d4ae0; --brand-2: #7c3aed; --brand-3: #9333ea;
  --brand-tint: #f3f0fd; --brand-tint-2: #ede8fc;
  --grn-bg: #dcfce7; --grn-fg: #15803d;
  --amb-bg: #fef3c7; --amb-fg: #b45309;
  --red-bg: #fee2e2; --red-fg: #b91c1c;
  --hero-a: #f6f3fe; --hero-b: #ffffff;
  --shadow-sm: 0 1px 3px rgba(24,24,27,.10);
  --shadow-md: 0 8px 30px rgba(24,24,27,.09);
  --shadow-lg: 0 24px 60px rgba(70,40,150,.16);
  --header-bg: rgba(255,255,255,.72); --header-border: #ececef;
}
[data-theme="dark"] {
  --bg: #0d0d10; --bg-soft: #141418; --bg-muted: #1a1a1f;
  --surface: #161619; --surface-2: #1c1c21;
  --text: #fafafa; --text-2: #d4d4d8; --text-3: #a1a1aa; --text-4: #8b8b93; --text-5: #6b6b73;
  --border: #292930; --border-2: #24242a; --nav-pill: #17171c;
  --brand: #8b6df0; --brand-2: #a082f5; --brand-3: #b9a4fb;
  --brand-tint: #1c1830; --brand-tint-2: #221c3a;
  --hero-a: #14101f; --hero-b: #0d0d10;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 8px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
  --header-bg: rgba(13,13,16,.72); --header-border: #24242a;
}
/* Sticky header — must adapt cleanly to the page.
   IMPORTANT: never put overflow:hidden on an ancestor of the sticky header
   (it turns that box into a scroll container and breaks position:sticky).
   Horizontal overflow is contained with overflow-x:clip (no scroll box). */
:root { --header-bg-solid: rgba(255,255,255,.9); }
[data-theme="dark"] { --header-bg-solid: rgba(13,13,16,.9); }
header { will-change: background, box-shadow; }
/* Align the header's inner container to the page content width (1200px). */
header > div { max-width: 1200px !important; }
/* At the very top: clean, borderless. Once scrolled: solid + subtle shadow. */
header:not([data-scrolled]) { border-bottom-color: transparent !important; }
header[data-scrolled] {
  background: var(--header-bg-solid) !important;
  border-bottom-color: var(--header-border) !important;
  box-shadow: 0 1px 0 rgba(24,24,27,.04), 0 6px 24px rgba(24,24,27,.06);
}
[data-theme="dark"] header[data-scrolled] { box-shadow: 0 1px 0 rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.4); }

/* First screen (Startseite): hero + dunkle Trust-Leiste füllen exakt eine
   Viewport-Höhe, sodass die Trust-Leiste bündig am Fold sitzt.
   JS (fitFirstScreen) pinnt sie pixelgenau; dies ist der No-JS-Fallback
   (svh + geschätzte Chrome-/Trust-Höhe). Auf sehr kleinen Höhen wächst der
   Hero natürlich über den Viewport (min-height quetscht den Inhalt nicht). */
#app main[data-screen-label="Startseite"] > section[style*="var(--hero-a)"] {
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 118px - 66px);
}

/* Hero: die Rechnungs-Vorschau-Karte dezent verkleinern (nur Desktop).
   Skaliert den kompletten rechten Wrapper (Karte + Glow); die floaty-Animation
   der Karte bleibt erhalten, und da transform die Layout-Höhe nicht ändert,
   bleibt der Fold-Fit (fitFirstScreen) unberührt. */
@media (min-width: 861px) {
  #app main[data-screen-label="Startseite"] section[style*="var(--hero-a)"] [style*="grid-template-columns"] > div:last-child {
    transform: scale(0.9);
    transform-origin: center center;
  }
}

/* Steuer-Engine-Karte: aufgewertete Steuerfall-Chips (Brand-Punkt + Hover). */
.tax-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.tax-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand-2); flex-shrink: 0; opacity: .65;
  transition: opacity .16s;
}
.tax-chip:hover {
  background: var(--brand-tint); border-color: var(--brand-tint-2);
  color: var(--brand-2); transform: translateY(-1px);
}
.tax-chip:hover::before { opacity: 1; }

::selection { background: rgba(109,74,224,.22); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7c3aed, #9333ea); border-radius: 999px; border: 3px solid var(--bg-muted); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #6d4ae0, #7c3aed); }
html { scrollbar-color: #7c3aed var(--bg-muted); scrollbar-width: thin; }
[data-sec] { scroll-margin-top: 84px; }
[id] { scroll-margin-top: 84px; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dropIn { 0% { opacity: 0; transform: translateY(-34px) rotate(-7deg) scale(.9); } 14% { opacity: 1; } 30% { transform: translateY(0) rotate(0) scale(1); } 66% { opacity: 1; transform: translateY(0) rotate(0) scale(1); } 78% { opacity: 0; transform: translateY(4px) scale(.96); } 100% { opacity: 0; } }
@keyframes dropZone { 0%,20% { border-color: var(--border); background: transparent; } 32%,60% { border-color: var(--brand-2); background: var(--brand-tint); } 78%,100% { border-color: var(--border); background: transparent; } }
@keyframes fillPulse { 0%,24% { width: 13%; } 42%,72% { width: 19%; } 88%,100% { width: 13%; } }
@keyframes popBadge { 0%,30% { opacity: 0; transform: scale(.5); } 44% { opacity: 1; transform: scale(1.15); } 52%,80% { opacity: 1; transform: scale(1); } 92%,100% { opacity: 0; transform: scale(.6); } }
@keyframes rowIn { 0%,30% { opacity: 0; transform: translateX(-14px); } 46% { opacity: 1; transform: translateX(0); } 86% { opacity: 1; } 100% { opacity: .0; } }
@keyframes countUp { 0%,38% { opacity: 0; transform: translateY(6px); } 52%,86% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes pulseAmber { 0%,100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); } 50% { box-shadow: 0 0 0 4px rgba(217,119,6,.22); } }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 65% { box-shadow: 0 0 0 5px rgba(22,163,74,0); } }
@keyframes syncSpin { to { transform: rotate(360deg); } }
@keyframes dotPulse { 0% { transform: scale(1); opacity: .7; } 70%,100% { transform: scale(2.6); opacity: 0; } }
@keyframes typeName { 0%,7% { width: 0; } 26%,100% { width: 11ch; } }
@keyframes caretName { 0%,6% { border-color: transparent; } 8%,26% { border-color: var(--brand-2); } 27%,100% { border-color: transparent; } }
@keyframes caret { 0%,6% { border-color: transparent; } 8%,40% { border-color: var(--brand-2); } 41%,100% { border-color: transparent; } }
@keyframes typeVat { 0%,30% { width: 0; } 55%,100% { width: 13.5ch; } }
@keyframes caretVat { 0%,29% { border-color: transparent; } 31%,55% { border-color: var(--brand-2); } 56%,100% { border-color: transparent; } }
@keyframes roleSelect { 0%,46% { background: transparent; color: var(--text-3); border-color: var(--border); } 58%,88% { background: #18181b; color: #fff; border-color: #18181b; } 96%,100% { background: transparent; color: var(--text-3); border-color: var(--border); } }
@keyframes rowAdd { 0%,10% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-6px); background: var(--brand-tint); } 26% { max-height: 60px; opacity: 1; padding-top: 13px; padding-bottom: 13px; transform: translateY(0); background: var(--brand-tint); } 44%,84% { max-height: 60px; opacity: 1; padding-top: 13px; padding-bottom: 13px; background: transparent; } 96%,100% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; background: transparent; } }
@keyframes btnPulse { 0%,16% { box-shadow: 0 0 0 0 rgba(109,74,224,0); } 26% { box-shadow: 0 0 0 4px rgba(109,74,224,.24); } 42%,100% { box-shadow: 0 0 0 0 rgba(109,74,224,0); } }
@keyframes shStateA { 0%,20% { opacity: 1; } 28%,100% { opacity: 0; } }
@keyframes shStateB { 0%,24% { opacity: 0; } 30%,50% { opacity: 1; } 56%,100% { opacity: 0; } }
@keyframes shStateC { 0%,52% { opacity: 0; } 60%,92% { opacity: 1; } 98%,100% { opacity: 0; } }
@keyframes shProg { 0%,28% { width: 0; } 52%,100% { width: 100%; } }
@keyframes shBadgeOff { 0%,52% { opacity: 1; } 60%,100% { opacity: 0; } }
@keyframes shBadgeOn { 0%,54% { opacity: 0; } 62%,92% { opacity: 1; } 98%,100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; } }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.16,.8,.24,1), transform .75s cubic-bezier(.16,.8,.24,1); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
#funktionen-detail [data-col] { opacity: 0; transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1); will-change: opacity, transform; }
#funktionen-detail [data-col="a"] { transform: translateX(-32px); }
#funktionen-detail [data-col="b"] { transform: translateX(32px); }
#funktionen-detail [data-col].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { #funktionen-detail [data-col] { opacity: 1 !important; transform: none !important; transition: none !important; } }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* FAQ accordion — expanded state driven by JS (inline max-height) + chevron */
[data-faq-panel] { transition: max-height .32s cubic-bezier(.16,.8,.24,1); }
[data-faq-toggle] { cursor: pointer; }
[data-faq-toggle][aria-expanded="true"] svg { transform: rotate(180deg); }
[data-faq-toggle] svg { transition: transform .25s ease; }

/* Hover states — captured from the design's style-hover pseudo classes */
.scp0:hover { border-color: rgb(201, 184, 255); }
.scp1:hover { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.scp2:hover { color: var(--brand-2); border-color: var(--brand-2); }
.scp3:hover { color: var(--brand-2); }
.scp4:hover { transform: translateY(-1px); box-shadow: rgba(109, 74, 224, 0.5) 0px 10px 24px; }
.scp5:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-tint-2); }
.scp6:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-tint-2); }
.scp7:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.scp8:hover { gap: 10px; }
.scp9:hover { border-color: var(--brand-2); }

/* Responsive — the design is desktop-first (pixel-faithful above 860px);
   below that every multi-column inline grid collapses to a single column so
   nothing overflows the viewport. */
/* overflow-x:clip contains any stray horizontal overflow WITHOUT creating a
   scroll container (which would break the sticky header — see header rules). */
html { overflow-x: clip; }
img, svg { max-width: 100%; }

@media (max-width: 860px) {
  header nav { display: none !important; }
  /* Collapse every inline multi-column grid to a single column. Use minmax(0,1fr)
     (not 1fr) so the track can shrink below its content's min-content width —
     plain 1fr grows the track to min-content and overflows narrow viewports
     (~1px overflow on the Startseite came from here). min-width:0 lets grid/flex
     items shrink too. Oversized inline column gaps become tighter row gaps. */
  #app [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  #app [style*="grid-template-columns"] > * { min-width: 0; }
  #app [style*="gap: 96px"], #app [style*="gap:96px"] { gap: 40px !important; }
  #app main [style*="position: sticky"] { position: static !important; }
  #funktionen-detail [data-col] { transform: none !important; }
  h1[style] { font-size: 40px !important; letter-spacing: -1.2px !important; }
  h2[style] { font-size: 30px !important; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
  /* Cleaner Mobile-Header: nur Logo + Burger. Theme-Toggle, "Anmelden" und CTA
     wandern ins Slide-in-Menü (siehe unten). Burger wird sichtbar. */
  header .scp2, header .scp3, header .scp4 { display: none !important; }
  header .iv-burger { display: inline-flex !important; }
  header > div > div:last-child { margin-left: auto !important; }
}
@media (max-width: 560px) {
  /* H1 nicht silbentrennen (kein „Rech-nungen") — nur bei echtem Nicht-Passen umbrechen. */
  h1[style] { font-size: 32px !important; overflow-wrap: break-word; word-break: normal; hyphens: none; }
  #app [style*="padding: 104px"] { padding-top: 60px !important; padding-bottom: 60px !important; }
}
/* Schmale Viewports: kompakteres Innen-Padding des Headers (nur Logo + Burger). */
@media (max-width: 520px) {
  header > div { padding-left: 16px !important; padding-right: 16px !important; gap: 12px !important; }
}
@media (max-width: 380px) {
  header > div { padding-left: 14px !important; padding-right: 14px !important; gap: 10px !important; }
}

/* ---- Ankündigungs-/Pre-Launch-Leiste (dunkler Balken, #app > a[href$="#preise"])
   Auf Mobile drängen sich Badge · Trenner · Text · CTA in eine Zeile. Trenner weg,
   umbrechen lassen, zentriert + ruhiger; auf sehr schmal "Jetzt sichern" weglassen.
   Bleibt komplett tappbar (→ /#preise). Desktop unverändert. ---- */
@media (max-width: 640px) {
  #app > a[href$="#preise"] {
    flex-wrap: wrap; gap: 4px 10px !important;
    padding: 9px 16px !important; font-size: 12.5px !important; line-height: 1.4;
  }
  #app > a[href$="#preise"] > span[style*="width: 1px"] { display: none !important; }
}
@media (max-width: 480px) {
  #app > a[href$="#preise"] .scp0 { display: none !important; }
}

/* ---- Mobile burger + slide-in menu ---- */
.iv-burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto; padding: 0;
  border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  flex-direction: column; gap: 5px;
  transition: border-color .18s, background .18s;
}
.iv-burger:hover { border-color: var(--brand-2); }
.iv-burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .22s ease, opacity .18s ease;
}
.iv-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.iv-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.iv-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.iv-menu-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s;
}
[data-theme="dark"] .iv-menu-backdrop { background: rgba(0,0,0,.66); }
.iv-menu-backdrop.open { opacity: 1; visibility: visible; }

.iv-menu-panel {
  position: fixed; top: 0; right: 0; z-index: 130;
  width: min(84vw, 340px); height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateX(100%); transition: transform .28s cubic-bezier(.16,.8,.24,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.iv-menu-panel.open { transform: none; }
.iv-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.iv-menu-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 15px; letter-spacing: -.3px; color: var(--text-4);
  text-transform: uppercase;
}
.iv-menu-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px;
  border: none; background: transparent; color: var(--text-3);
  border-radius: 11px; cursor: pointer; transition: color .18s, background .18s;
}
.iv-menu-close:hover { color: var(--text); background: var(--bg-muted); }
.iv-menu-nav { display: flex; flex-direction: column; padding: 6px 0; }
.iv-menu-link {
  display: flex; align-items: center; min-height: 48px; padding: 6px 10px;
  font-size: 16px; font-weight: 600; color: var(--text-2);
  text-decoration: none; border-radius: 11px;
  transition: background .16s, color .16s;
}
.iv-menu-link:hover { background: var(--brand-tint); color: var(--brand-2); }
.iv-menu-foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.iv-menu-theme {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text-2);
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.iv-menu-theme:hover { border-color: var(--brand-2); color: var(--text); }
.iv-menu-theme-ico { display: inline-flex; }
.iv-menu-signin {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text-2); text-decoration: none;
  font-size: 15px; font-weight: 700;
  transition: border-color .18s, color .18s;
}
.iv-menu-signin:hover { border-color: var(--text-4); color: var(--text); }
.iv-menu-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 18px;
  border-radius: 12px; text-decoration: none;
  font-size: 15.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #6d4ae0, #9333ea);
  box-shadow: 0 8px 20px rgba(109,74,224,.36);
  transition: transform .18s, box-shadow .18s;
}
.iv-menu-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(109,74,224,.5); }
@media (prefers-reduced-motion: reduce) {
  .iv-menu-panel, .iv-menu-backdrop, .iv-burger span { transition: none !important; }
}

/* ---- Jump-to-top button ---- */
.iv-totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s, background .18s;
}
.iv-totop:hover { background: var(--brand-2); }
.iv-totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
/* When the cookie-settings button occupies the bottom-right corner, the
   jump-to-top button stacks ABOVE it so the two never overlap. */
body.iv-has-ccbtn .iv-totop { bottom: 80px; }
@media (max-width: 560px) {
  .iv-totop { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  body.iv-has-ccbtn .iv-totop { bottom: 70px; }
}

/* ---- Cookie-settings floating button (bottom-most, corner anchor) ---- */
.iv-ccbtn {
  position: fixed; right: 24px; bottom: 24px; z-index: 85;
  width: 44px; height: 44px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text-3);
  border: 1px solid var(--border); cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.iv-ccbtn.show { display: flex; }
.iv-ccbtn:hover {
  color: var(--brand-2); border-color: var(--brand-2);
  background: var(--brand-tint); transform: translateY(-1px);
}
.iv-ccbtn svg { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .iv-ccbtn { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---- Footer bottom-bar (©, Black-Forest-Badge, Region-Indikator) ---- */
.iv-fbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 28px; flex-wrap: wrap;
  padding-top: 28px; margin-top: 4px;
  border-top: 1px solid var(--border);
}
.iv-fbar-left { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.iv-fbar-mark { display: inline-flex; width: 26px; height: 26px; flex-shrink: 0; }
.iv-fbar-mark svg { width: 100%; height: 100%; border-radius: 8px; }
.iv-fbar-word {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 15px; letter-spacing: -0.5px; color: var(--text);
}
.iv-fbar-sep { width: 1px; height: 15px; background: var(--border); flex-shrink: 0; }
.iv-fbar-copy { font-size: 13px; color: var(--text-5); white-space: nowrap; }
.iv-fbar-meta { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iv-fbar-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
}
.iv-fbar-chip .iv-fbar-ico { display: inline-flex; }
.iv-fbar-chip--forest .iv-fbar-ico { color: var(--brand-2); }
.iv-fbar-region {
  color: var(--text-2); cursor: default;
  transition: border-color .16s, color .16s;
}
.iv-fbar-region .iv-fbar-ico { color: var(--text-4); transition: color .16s; }
.iv-fbar-region:hover { border-color: var(--brand-tint-2); color: var(--text); }
.iv-fbar-region:hover .iv-fbar-ico { color: var(--brand-2); }
@media (max-width: 640px) {
  .iv-fbar { flex-direction: column; justify-content: center; text-align: center; gap: 18px; }
  .iv-fbar-left, .iv-fbar-meta { justify-content: center; }
}
@media (max-width: 360px) {
  .iv-fbar-sep { display: none; }
  .iv-fbar-left { flex-wrap: wrap; row-gap: 4px; }
}

/* ---- Contact page: stack columns on mobile ---- */
@media (max-width: 760px) {
  .iv-contact-grid { grid-template-columns: 1fr !important; }
}

/* ---- Privacy consent modal (JS-injected; backdrop + centered card) ---- */
.iv-cc-backdrop {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: ivCcFade .18s ease-out;
}
[data-theme="dark"] .iv-cc-backdrop { background: rgba(0, 0, 0, .66); }
@keyframes ivCcFade { from { opacity: 0; } to { opacity: 1; } }
.iv-cc-modal {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 24px 24px 20px;
  animation: ivCcPop .2s cubic-bezier(.2, .8, .3, 1);
}
@keyframes ivCcPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.iv-cc-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 18px; letter-spacing: -.4px; color: var(--text);
  margin: 0 0 8px;
}
.iv-cc-text { font-size: 14px; line-height: 1.6; color: var(--text-3); margin: 0 0 18px; }
.iv-cc-link { color: var(--brand-2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.iv-cc-link:hover { text-decoration: underline; }
.iv-cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.iv-cc-btn {
  flex: 1 1 auto; min-width: 130px; min-height: 44px; padding: 11px 16px;
  border-radius: 11px; font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.iv-cc-btn:active { transform: translateY(1px); }
.iv-cc-accept { color: #fff; background: var(--brand); border: 1px solid var(--brand); }
.iv-cc-accept:hover { background: var(--brand-2); border-color: var(--brand-2); }
.iv-cc-decline { color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.iv-cc-decline:hover { border-color: var(--text-4); background: var(--bg-muted); }
.iv-cc-ghost { color: var(--text-2); background: transparent; border: 1px solid var(--border); }
.iv-cc-ghost:hover { border-color: var(--text-4); color: var(--text); }

/* Settings pane: per-purpose categories with toggles */
.iv-cc-cats { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px;
  max-height: 46vh; overflow-y: auto; }
.iv-cc-cat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; }
.iv-cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.iv-cc-cat-name { font-size: 14px; font-weight: 700; color: var(--text); }
.iv-cc-cat-desc { font-size: 12.5px; line-height: 1.5; color: var(--text-4); margin: 6px 0 0; }
.iv-cc-switch { position: relative; flex-shrink: 0; width: 42px; height: 24px; cursor: pointer; }
.iv-cc-switch.is-locked { cursor: not-allowed; }
.iv-cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }
.iv-cc-slider { position: absolute; inset: 0; border-radius: 999px; background: var(--border);
  transition: background .15s; }
.iv-cc-slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.iv-cc-switch input:checked + .iv-cc-slider { background: var(--brand); }
.iv-cc-switch input:checked + .iv-cc-slider::before { transform: translateX(18px); }
.iv-cc-switch input:disabled + .iv-cc-slider { opacity: .7; }
.iv-cc-switch input:focus-visible + .iv-cc-slider { outline: 2px solid var(--brand-2); outline-offset: 2px; }

@media (max-width: 460px) {
  .iv-cc-actions { flex-direction: column-reverse; }
  .iv-cc-btn { width: 100%; }
}
