/* ============================================================
   FINORA · LANDING v4 — modern SaaS / indigo + pastels
   ============================================================ */

:root {
  /* Surface — pure white + soft tints */
  --bone: #ffffff;
  --bone-2: #f8f7ff;
  --bone-3: #f1efff;
  --bone-soft: #fafaff;
  --paper: #ffffff;

  /* Ink */
  --ink: #0d0d18;
  --ink-2: #1c1c2c;
  --ink-3: #4a4a5e;
  --ink-4: #7a7a8e;
  --ink-5: #b4b4c0;

  /* Brand — electric indigo */
  --blood: #5046e5;
  --blood-2: #6b62f0;
  --blood-3: #3a30c8;
  --blood-soft: #eceaff;
  --blood-soft-2: #d8d4ff;

  /* Accent — peach */
  --coral: #ff8d6b;
  --coral-2: #ffaa8c;
  --coral-soft: #ffe3d6;

  /* Pastels (icon tiles, feature blocks) */
  --pastel-peach: #ffe5d6;
  --pastel-peach-strong: #ff9870;
  --pastel-mint: #d6efe2;
  --pastel-mint-strong: #4ec07e;
  --pastel-lilac: #e7d9ff;
  --pastel-lilac-strong: #9c6fe5;
  --pastel-rose: #ffd9e3;
  --pastel-rose-strong: #ff6a8a;
  --pastel-sky: #d8e4ff;
  --pastel-sky-strong: #5e8bff;

  /* Legacy aliases */
  --clay: var(--pastel-peach-strong);
  --clay-soft: var(--pastel-peach);
  --moss: var(--pastel-mint-strong);
  --moss-soft: var(--pastel-mint);
  --slate: var(--ink-2);

  /* Signals */
  --good: var(--pastel-mint-strong);
  --good-soft: var(--pastel-mint);
  --warn: #f0a040;
  --warn-soft: #ffead2;
  --info: var(--blood);
  --info-soft: var(--blood-soft);

  /* Lines */
  --line: rgba(15, 15, 26, 0.08);
  --line-2: rgba(15, 15, 26, 0.04);
  --line-strong: rgba(15, 15, 26, 0.14);
  --line-accent: rgba(80, 70, 229, 0.20);
  --line-blood: rgba(80, 70, 229, 0.20);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 999px;

  /* Shadows — cool, premium */
  --shadow-xs: 0 1px 2px rgba(30, 30, 60, 0.04);
  --shadow-sm: 0 2px 6px rgba(30, 30, 60, 0.05), 0 8px 18px rgba(30, 30, 60, 0.06);
  --shadow-md: 0 6px 18px rgba(30, 30, 60, 0.06), 0 24px 48px rgba(30, 30, 60, 0.08);
  --shadow-lg: 0 18px 40px rgba(30, 30, 60, 0.08), 0 56px 96px rgba(30, 30, 60, 0.12);
  --shadow-window: 0 30px 60px rgba(50, 40, 120, 0.10), 0 80px 140px rgba(50, 40, 120, 0.16);
  --shadow-pill: 0 1px 2px rgba(30, 30, 60, 0.04), 0 8px 24px rgba(30, 30, 60, 0.08);
  --shadow-blood: 0 18px 40px rgba(80, 70, 229, 0.32);

  /* Easing */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --header-h: 72px;
  --section-gap: clamp(100px, 11vw, 160px);
  --wrap: min(1320px, calc(100vw - 48px));
  --wrap-narrow: min(960px, calc(100vw - 48px));
  --wrap-editorial: min(1080px, calc(100vw - 48px));

  /* Type — all sans now */
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body[data-page="landing"] {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  background: #ffffff;
  background-image:
    radial-gradient(900px 500px at 6% -4%, rgba(80, 70, 229, 0.08), transparent 60%),
    radial-gradient(800px 600px at 108% 8%, rgba(255, 141, 107, 0.06), transparent 60%),
    linear-gradient(180deg, #fafaff 0%, #ffffff 30%, #f7f7ff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
kbd {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--blood);
  color: var(--bone);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: inherit;
}

.mail-btn:not(.mail-btn-primary) kbd {
  background: var(--bone-3);
  border-color: var(--line);
  color: var(--ink-3);
}

/* ============================================================
   ATMOSPHERE
   ============================================================ */

.grain {
  display: none;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(91, 31, 46, 0.10) 0%, rgba(91, 31, 46, 0.04) 40%, transparent 70%);
  transform: translate(-50%, -50%) translate3d(50vw, 30vh, 0);
  transition: opacity 600ms var(--ease-out);
  will-change: transform;
  mix-blend-mode: multiply;
  opacity: 0;
}

.cursor-spotlight.is-visible { opacity: 1; }

@media (hover: none) {
  .cursor-spotlight { display: none; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: rgba(12, 11, 10, 0.04);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blood), var(--coral));
  transition: width 80ms linear;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0 0;
  pointer-events: none;
}

.header-shell {
  width: var(--wrap);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 8px 12px 8px 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(255, 252, 244, 0.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-pill);
  pointer-events: auto;
  transition: box-shadow 320ms var(--ease-out), background 320ms var(--ease-out);
}

.site-header.is-scrolled .header-shell {
  background: rgba(255, 252, 244, 0.92);
  box-shadow: 0 1px 1px rgba(40, 30, 20, 0.04), 0 18px 40px rgba(40, 30, 20, 0.10);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bone);
  display: inline-grid;
  place-items: center;
  box-shadow: var(--shadow-xs);
  transition: transform 260ms var(--ease-out), background 260ms var(--ease-out);
}

.brand-mark svg { width: 17px; height: 17px; }

.brand:hover .brand-mark {
  transform: rotate(-6deg);
  background: var(--blood);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.brand-copy small {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-mark-accent { color: var(--blood); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav a {
  position: relative;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-full);
  transition: color 200ms var(--ease-out), background 200ms var(--ease-out);
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1px;
  background: var(--blood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .header-nav a:hover {
    color: var(--ink);
  }
  .header-nav a:hover::after { transform: scaleX(1); }
}

.header-nav a.is-active {
  color: var(--blood);
  background: var(--blood-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 220ms var(--ease-out),
    color 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    transform 160ms var(--ease-out),
    box-shadow 320ms var(--ease-out);
  white-space: nowrap;
}

.site-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 280ms var(--ease-out);
}

.site-btn-lg {
  height: 54px;
  padding: 0 24px;
  font-size: 15px;
}

.site-btn-lg svg { width: 16px; height: 16px; }

.site-btn-solid {
  background: var(--ink);
  color: var(--bone);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .site-btn-solid:hover {
    background: var(--blood);
    box-shadow: var(--shadow-blood), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .site-btn-solid:hover svg { transform: translateX(3px); }
}

.site-btn-solid:active { transform: scale(0.97); }

.site-btn-ghost {
  background: rgba(12, 11, 10, 0.04);
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .site-btn-ghost:hover { background: rgba(12, 11, 10, 0.08); }
}

.site-btn-ghost:active { transform: scale(0.97); }

.site-btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}

@media (hover: hover) and (pointer: fine) {
  .site-btn-secondary:hover {
    background: var(--bone-soft);
    border-color: var(--line-strong);
  }
}

.site-btn-secondary:active { transform: scale(0.97); }

.site-btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  .site-btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.16);
  }
}

[data-magnetic] {
  position: relative;
}

[data-magnetic] > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 220ms var(--ease-out);
}

/* ============================================================
   TYPE
   ============================================================ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--blood);
}

p {
  margin: 0;
  color: var(--ink-3);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.62;
}

p strong {
  color: var(--ink);
  font-weight: 600;
}

p em {
  color: var(--blood);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
}

/* ============================================================
   KICKERS (editorial dividers)
   ============================================================ */

.kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  font-weight: 500;
  white-space: nowrap;
}

.kicker-rule {
  display: inline-block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--ink-4), transparent);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 900ms var(--ease-out);
  filter: blur(8px);
  will-change: transform, opacity, filter;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

[data-split-headline] .line,
[data-split-words] .word {
  display: inline-block;
  vertical-align: top;
}

[data-split-headline] .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.18em;
}

[data-split-words] .word {
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.14em;
}

[data-split-headline] .line .inner,
[data-split-words] .word .inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1100ms var(--ease-out);
  will-change: transform;
  padding-bottom: 0.05em;
}

/* Once animation is fully done, allow overflow so descenders are never cut */
[data-split-headline].is-visible .line,
[data-split-words].is-visible .word {
  overflow: visible;
}

[data-split-headline].is-visible .line .inner,
[data-split-words].is-visible .word .inner {
  transform: translateY(0);
}

[data-split-headline] .line:nth-child(1) .inner { transition-delay: 80ms; }
[data-split-headline] .line:nth-child(2) .inner { transition-delay: 200ms; }
[data-split-headline] .line:nth-child(3) .inner { transition-delay: 320ms; }
[data-split-headline] .line:nth-child(4) .inner { transition-delay: 440ms; }

[data-mark] {
  background-image: linear-gradient(180deg, transparent 60%, var(--coral-soft) 60%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 1400ms var(--ease-out) 600ms;
  padding: 0 4px;
  margin: 0 -4px;
}

[data-manifest-line].is-visible [data-mark] {
  background-size: 100% 100%;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; filter: none; transition-duration: 240ms; }
  [data-split-headline] .line .inner,
  [data-split-words] .word .inner { transform: none; }
  .grain { animation: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero-section {
  position: relative;
  padding: clamp(40px, 6vw, 96px) 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% 0 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.7;
}

.hero-glow-a {
  top: -10%;
  left: -8%;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(91, 31, 46, 0.30), transparent 60%);
  animation: glowDriftA 22s ease-in-out infinite alternate;
}

.hero-glow-b {
  top: 12%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 106, 74, 0.22), transparent 60%);
  animation: glowDriftB 26s ease-in-out infinite alternate;
}

@keyframes glowDriftA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.1); }
}

@keyframes glowDriftB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 60px) scale(0.9); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 11, 10, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 11, 10, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) 0 clamp(40px, 5vw, 70px);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
  margin-bottom: 36px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
  animation: metaPulse 2.4s ease-in-out infinite;
}

@keyframes metaPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--coral-soft); }
  50% { box-shadow: 0 0 0 6px rgba(255, 106, 74, 0.18); }
}

.meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-5);
}

.hero-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 1280px;
  font-feature-settings: "ss01";
}

.hero-headline .line {
  display: block;
}

.hero-headline .line:nth-child(1),
.hero-headline .line:nth-child(2) {
  font-weight: 400;
}

.hero-headline .line-accent {
  font-weight: 800;
}

.hero-headline .line-accent .inner em {
  font-style: normal;
  background: linear-gradient(120deg, var(--blood) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-headline .line:nth-child(4) {
  color: var(--ink-3);
  font-style: normal;
  font-weight: 600;
}

.hero-bottom {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: end;
}

.hero-statement {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero-text {
  max-width: 580px;
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--ink-2);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.hero-side-card::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blood);
}

.side-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.side-card-row:last-of-type { border-bottom: 0; padding-bottom: 0; }

.side-card-label {
  font-size: 12.5px;
  color: var(--ink-3);
  font-family: var(--font-body);
}

.side-card-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.side-card-foot {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}

/* Hero Stage Row */

.hero-stage-row {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin: 56px auto 0;
  perspective: 2400px;
}

.hero-stage-row .app-window {
  position: relative;
  z-index: 1;
}

.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

/* ============================================================
   LAPTOP MOCKUP
   ============================================================ */

.device-laptop {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: min(960px, 100%);
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-6deg);
  transition: transform 600ms var(--ease-out);
  filter: drop-shadow(0 60px 80px rgba(40, 30, 80, 0.20));
}

.laptop-frame {
  position: relative;
  background: linear-gradient(180deg, #1a1a28 0%, #0d0d18 100%);
  border-radius: 18px 18px 6px 6px;
  padding: 14px 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.laptop-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2c2c3e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.laptop-camera::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #4a4a60;
}

.laptop-screen {
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.laptop-screen .app-window {
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.laptop-screen .app-window::before {
  display: none;
}

.laptop-base {
  position: relative;
  height: 14px;
  margin: 0 -38px;
  background: linear-gradient(180deg, #1c1c2a 0%, #0c0c14 100%);
  border-radius: 0 0 12px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 30px rgba(0, 0, 0, 0.18);
}

.laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 38px;
  right: 38px;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
}

.laptop-base-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
  border-radius: 0 0 8px 8px;
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */

.device-phone {
  position: absolute;
  right: -4%;
  bottom: -8%;
  z-index: 3;
  width: 240px;
  transform-style: preserve-3d;
  transform: rotate(4deg) translateZ(40px);
  transition: transform 600ms var(--ease-out);
  filter: drop-shadow(0 40px 60px rgba(40, 30, 80, 0.24));
}

.phone-frame {
  position: relative;
  background: linear-gradient(180deg, #1a1a28 0%, #0d0d18 100%);
  border-radius: 36px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0d0d18;
  border-radius: 14px;
  z-index: 4;
}

.phone-notch::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a28;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  background: var(--paper);
  border-radius: 26px;
  overflow: hidden;
  height: 460px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.phone-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ps-bars {
  width: 14px;
  height: 9px;
  background:
    linear-gradient(to top, var(--ink) 4px, transparent 4px) 0 0/3px 100% no-repeat,
    linear-gradient(to top, var(--ink) 6px, transparent 6px) 4px 0/3px 100% no-repeat,
    linear-gradient(to top, var(--ink) 8px, transparent 8px) 8px 0/3px 100% no-repeat;
}

.ps-wifi {
  width: 12px;
  height: 9px;
  background: var(--ink);
  mask-image: radial-gradient(circle at 50% 100%, transparent 0%, transparent 30%, var(--ink) 31%, var(--ink) 50%, transparent 51%);
  -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 0%, transparent 30%, var(--ink) 31%, var(--ink) 50%, transparent 51%);
}

.ps-bat {
  width: 22px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  position: relative;
}

.ps-bat::before {
  content: "";
  position: absolute;
  inset: 1px;
  width: 14px;
  background: var(--ink);
  border-radius: 1px;
}

.ps-bat::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  bottom: 3px;
  width: 2px;
  background: var(--ink);
  border-radius: 0 1px 1px 0;
}

.phone-app {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bone-soft);
  overflow: hidden;
}

.phone-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bone);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
}

.phone-brand strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.phone-bell {
  width: 28px;
  height: 28px;
  background: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-3);
}

.phone-bell svg { width: 14px; height: 14px; }

.phone-greet {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-greet strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.phone-greet .wave {
  display: inline-block;
  animation: wave 1.6s ease-in-out infinite;
  transform-origin: 70% 80%;
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-8deg); }
}

.phone-greet span {
  font-size: 12.5px;
  color: var(--blood);
  font-weight: 500;
}

.phone-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-card-ai {
  background: linear-gradient(180deg, var(--blood-soft) 0%, #ede8ff 100%);
  border-color: var(--line-blood);
}

.phone-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-card-icon {
  width: 30px;
  height: 30px;
  background: var(--blood);
  color: var(--bone);
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.phone-card-icon svg { width: 16px; height: 16px; }

.phone-card-head > div {
  flex: 1;
}

.phone-card-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.phone-card-head span {
  font-size: 10.5px;
  color: var(--ink-4);
}

.phone-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--good-soft);
  color: var(--good);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.phone-status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--good);
  animation: statusPulse 2s ease-in-out infinite;
}

.phone-card-ai p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
  margin: 0;
}

.phone-stop {
  height: 32px;
  border: 0;
  background: var(--paper);
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid var(--line);
  transition: background 200ms var(--ease-out);
}

.phone-stop:hover {
  background: var(--bone-soft);
}

.phone-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  margin-top: 4px;
  font-weight: 600;
}

.phone-card-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
}

.phone-card-row + .phone-card-row {
  border-top: 1px solid var(--line-2);
  padding-top: 10px;
}

.phone-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.phone-mini-icon svg { width: 14px; height: 14px; }

.phone-mini-mint { background: var(--pastel-mint); color: var(--pastel-mint-strong); }
.phone-mini-lilac { background: var(--pastel-lilac); color: var(--pastel-lilac-strong); }

.phone-card-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.phone-card-row span {
  font-size: 11px;
  color: var(--ink-3);
}

.phone-card-row small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.phone-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px 12px 14px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.phone-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px;
  border-radius: 8px;
}

.phone-nav span svg {
  width: 16px;
  height: 16px;
}

.phone-nav .is-active {
  color: var(--blood);
}

@media (max-width: 1100px) {
  .device-laptop { transform: none; }
  .device-phone {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 24px auto 0;
    transform: rotate(0);
  }
}

@media (max-width: 760px) {
  .hero-stage-row {
    margin-top: 32px;
  }
  .device-laptop {
    filter: none;
  }
  .laptop-frame {
    padding: 8px 8px 6px;
    border-radius: 12px 12px 4px 4px;
  }
  .laptop-camera { display: none; }
  .laptop-base {
    margin: 0 -8px;
    height: 8px;
  }
  .laptop-base-notch {
    width: 60px;
    height: 4px;
  }
  .laptop-screen .app-window { border-radius: 4px; }
  .hero-window-grid { min-height: auto; grid-template-columns: 1fr; }
  .window-sidebar { display: none; }
  .window-main { padding: 12px; gap: 10px; }
  .window-overview {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .metric-card { padding: 10px 12px; }
  .metric-card strong { font-size: 22px; }
  .window-columns { grid-template-columns: 1fr; gap: 10px; }
  .pane-card { padding: 12px; }
  .pane-card.span-2 { grid-column: 1 / -1; }
  .pane-head strong { font-size: 13.5px; }
  .pane-badge { font-size: 9.5px; padding: 3px 7px; }
  .task-list article {
    grid-template-columns: 22px 1fr;
    gap: 8px;
    padding: 8px;
  }
  .task-amount {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 12px;
  }
  .task-list article > div strong { font-size: 11.5px; }
  .task-list article > div span { font-size: 10px; }
  .mail-line strong {
    font-size: 10.5px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .mail-actions { flex-wrap: wrap; gap: 4px; }
  .mail-btn { font-size: 10.5px; padding: 0 8px; }
  .device-phone { width: 200px; }
  .phone-screen { height: 380px; }
}

/* ============================================================
   APP WINDOWS — shared
   ============================================================ */

.app-window {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  isolation: isolate;
}

.app-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #fdf8eb 0%, #f3ecd9 100%);
  border-bottom: 1px solid var(--line);
  z-index: 1;
}

.window-dots { display: flex; gap: 6px; }

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bone-3);
}

.window-dots span:nth-child(1) { background: #d8624c; }
.window-dots span:nth-child(2) { background: #d8a94c; }
.window-dots span:nth-child(3) { background: #6ba35d; }

.window-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.window-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

/* HERO WINDOW */

.hero-window-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 480px;
}

.window-sidebar {
  background: linear-gradient(180deg, #fbf5e5 0%, #ede4ce 100%);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sidebar-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bone);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.sidebar-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-brand small {
  font-size: 10px;
  color: var(--ink-4);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-nav span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--ink-3);
  border-radius: 7px;
  cursor: default;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out);
}

.sidebar-nav span svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--ink-4);
}

.sidebar-nav .is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.sidebar-nav .is-active svg { color: var(--blood); }

.nav-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  background: var(--bone-3);
  color: var(--ink-4);
  padding: 2px 6px;
  border-radius: var(--r-full);
  min-width: 20px;
  text-align: center;
}

.is-active .nav-count {
  background: var(--blood-soft);
  color: var(--blood);
}

.nav-count-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.sidebar-foot {
  margin-top: auto;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-foot-tag {
  display: inline-block;
  width: fit-content;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  background: var(--moss-soft);
  color: var(--moss);
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.sidebar-foot small {
  font-size: 10px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.window-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.window-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-card {
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.metric-card small {
  font-size: 11px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-card strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-3);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  font-style: normal;
}

.dot-good { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.dot-warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot-info { background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.dot-muted { background: var(--ink-5); box-shadow: 0 0 0 3px rgba(170, 178, 191, 0.2); }

.window-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  flex: 1;
}

/* Pane Cards */

.pane-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.pane-card.span-2 { grid-column: span 2; }
.pane-card-soft { background: linear-gradient(180deg, var(--bone-soft) 0%, var(--bone-2) 100%); }

.pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pane-head small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.pane-head strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.pane-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--good-soft);
  color: var(--good);
  border-radius: var(--r-full);
  white-space: nowrap;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pane-badge.is-neutral {
  background: var(--bone-3);
  color: var(--ink-3);
}

/* Task list */

.task-list,
.mini-list,
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-list article {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--bone-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

.task-list article:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-xs);
}

.task-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--blood-soft);
  color: var(--blood);
  display: grid;
  place-items: center;
  flex: none;
}

.task-icon svg { width: 14px; height: 14px; }

.task-list article > div strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 1px;
  font-family: var(--font-display);
}

.task-list article > div span {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.task-amount {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.task-amount-warn { color: var(--warn); }
.task-amount-muted { color: var(--ink-4); font-style: italic; font-weight: 400; }

.mini-list article {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: var(--r-md);
  background: var(--bone-soft);
  border: 1px solid var(--line-2);
}

.mini-list-strong {
  background: var(--blood-soft) !important;
  border-color: var(--line-blood) !important;
}

.mini-list strong {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-display);
}

.mini-list span {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.timeline-list { gap: 4px; }

.timeline-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-2);
}

.timeline-list > div:last-child { border: 0; }

.tl-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bone-3);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.tl-tag-strong {
  background: var(--blood);
  color: var(--bone);
}

.timeline-list strong {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
  font-family: var(--font-display);
}

/* Mail preview */

.mail-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.mail-line {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
}

.mail-line span {
  width: 38px;
  font-size: 9.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.mail-line strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
}

.mail-preview p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
  min-height: 2.6em;
}

.mail-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--bone-3);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out);
}

.mail-btn:active { transform: scale(0.97); }

.mail-btn-primary {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.mail-btn-primary:hover { background: var(--blood); border-color: var(--blood); }

.mail-btn-ghost {
  background: transparent;
  color: var(--ink-4);
  border-color: var(--line-2);
}

/* Float cards */

.float-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}

.float-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.float-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--blood-soft);
  color: var(--blood);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.float-tag-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.float-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  font-weight: 500;
}

.float-card strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.float-card span {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.float-a {
  top: -16px;
  right: -10px;
  transform: rotate(2deg);
}

.float-b {
  bottom: -20px;
  left: -16px;
  transform: rotate(-3deg);
}

/* Hero pieces */

[data-hero-piece] {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  will-change: transform, opacity;
}

[data-hero-piece].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero marquee */

.hero-marquee {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.4);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.marquee-track em {
  color: var(--blood);
  font-style: italic;
  font-weight: 400;
}

.marquee-track .m-bullet {
  color: var(--coral);
  font-size: 0.4em;
  display: inline-flex;
  align-items: center;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   TRUST STRIP — colored icon tiles below hero
   ============================================================ */

.trust-strip {
  position: relative;
  z-index: 2;
  margin: clamp(40px, 5vw, 72px) auto 0;
  width: var(--wrap);
}

.trust-strip-shell {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
}

.trust-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: var(--r-lg);
  transition: background 280ms var(--ease-out), transform 280ms var(--ease-out);
}

.trust-tile:hover {
  background: var(--bone-soft);
  transform: translateY(-2px);
}

.trust-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 320ms var(--ease-spring);
}

.trust-tile:hover .trust-tile-icon {
  transform: rotate(-6deg) scale(1.05);
}

.trust-tile-icon svg {
  width: 22px;
  height: 22px;
}

.trust-tile-icon-sky { background: var(--pastel-sky); color: var(--pastel-sky-strong); }
.trust-tile-icon-lilac { background: var(--pastel-lilac); color: var(--pastel-lilac-strong); }
.trust-tile-icon-mint { background: var(--pastel-mint); color: var(--pastel-mint-strong); }
.trust-tile-icon-peach { background: var(--pastel-peach); color: var(--pastel-peach-strong); }
.trust-tile-icon-rose { background: var(--pastel-rose); color: var(--pastel-rose-strong); }

.trust-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 2px;
}

.trust-tile span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ============================================================
   FEATURE ROW — 4 columns with pastel icons
   ============================================================ */

.feature-row {
  padding-top: clamp(60px, 7vw, 110px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  transition: transform 320ms var(--ease-spring);
}

.feature-card:hover .feature-icon {
  transform: rotate(-6deg) scale(1.06);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-icon-rose { background: var(--pastel-rose); color: var(--pastel-rose-strong); }
.feature-icon-mint { background: var(--pastel-mint); color: var(--pastel-mint-strong); }
.feature-icon-lilac { background: var(--pastel-lilac); color: var(--pastel-lilac-strong); }
.feature-icon-peach { background: var(--pastel-peach); color: var(--pastel-peach-strong); }

.feature-card strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.25;
  max-width: 18ch;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 32ch;
}

@media (max-width: 1100px) {
  .trust-strip-shell {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .trust-strip-shell {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   SCRUB SECTION — Foto → OCR → Rechnung (scroll-driven)
   ============================================================ */

.scrub-section {
  position: relative;
  height: 320vh;
  background: linear-gradient(180deg, transparent 0%, rgba(91, 31, 46, 0.04) 50%, transparent 100%);
}

.scrub-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.scrub-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 30% 30%, rgba(91, 31, 46, 0.08), transparent 60%),
    radial-gradient(700px 400px at 70% 70%, rgba(255, 106, 74, 0.05), transparent 60%);
  pointer-events: none;
}

.scrub-shell {
  width: var(--wrap);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.scrub-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.scrub-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.scrub-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}

.scrub-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  position: relative;
  height: 3.2em;
}

.scrub-line {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out),
    filter 600ms var(--ease-out);
  will-change: opacity, transform, filter;
}

.scrub-line.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.scrub-line em {
  color: var(--coral);
  font-style: italic;
  font-weight: 400;
}

.scrub-caption {
  position: relative;
  min-height: 5.5em;
}

.scrub-cap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 32ch;
}

.scrub-cap.is-active {
  opacity: 1;
  transform: translateY(0);
}

.scrub-cap strong { color: var(--ink); font-weight: 600; }
.scrub-cap em { color: var(--blood); font-style: italic; font-family: var(--font-display); font-weight: 400; }

.scrub-progress {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.scrub-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  transition: border-color 280ms var(--ease-out), background 280ms var(--ease-out);
}

.scrub-step.is-active {
  background: var(--ink);
  border-color: var(--ink);
}

.scrub-step strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  transition: color 280ms var(--ease-out);
}

.scrub-step.is-active strong { color: var(--coral); }

.scrub-step span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: color 280ms var(--ease-out);
}

.scrub-step.is-active span { color: var(--bone); }

.scrub-step .step-bar {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
  transition: transform 320ms var(--ease-out);
}

.scrub-step.is-active .step-bar { transform: scaleX(1); }

.scrub-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-top: 8px;
}

.scrub-hint svg {
  width: 14px;
  height: 14px;
  animation: scrubBounce 1.6s var(--ease-in-out) infinite;
}

@keyframes scrubBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Stage container */

.scrub-stage {
  position: relative;
  height: 540px;
  perspective: 2000px;
}

/* Particles (background lines from photo to invoice) */

.scrub-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--coral);
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
  z-index: 1;
}

.scrub-particles.is-active { opacity: 0.6; }

.particle-path {
  stroke-dashoffset: 100;
  animation: particleFlow 1.8s linear infinite;
}

.particle-path:nth-child(2) { animation-delay: 0.4s; }
.particle-path:nth-child(3) { animation-delay: 0.8s; }

@keyframes particleFlow {
  to { stroke-dashoffset: 0; }
}

/* Photo */

.scrub-photo {
  position: absolute;
  top: 38%;
  left: 0;
  width: 56%;
  transform: translateY(-50%) translateZ(0);
  z-index: 2;
  opacity: 1;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}

.photo-frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-window);
  transform: rotate(-2.5deg);
  overflow: hidden;
  background-image:
    repeating-linear-gradient(
      transparent 0,
      transparent 22px,
      rgba(12, 11, 10, 0.04) 22px,
      rgba(12, 11, 10, 0.04) 23px
    );
  background-size: 100% 24px;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.5), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(0, 0, 0, 0.04), transparent 40%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.photo-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--blood);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}

.scrub-photo.is-scanning .photo-corner { opacity: 1; }

.photo-corner-tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.photo-corner-tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.photo-corner-bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.photo-corner-br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.photo-content {
  position: relative;
  z-index: 1;
}

.photo-header {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.photo-header strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 600;
}

.photo-header span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.photo-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.photo-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  border-radius: 4px;
  transition: background 320ms var(--ease-out), color 320ms var(--ease-out);
}

.photo-row.is-scanned {
  background: var(--coral-soft);
  color: var(--ink);
}

.photo-row.is-scanned::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--coral);
  border-radius: 2px;
}

.photo-row-flag {
  font-style: italic;
  opacity: 0.65;
}

.photo-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  font-style: italic;
}

.photo-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0%;
  height: 36px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 106, 74, 0.45) 45%, rgba(91, 31, 46, 0.7) 50%, rgba(255, 106, 74, 0.45) 55%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  filter: blur(0.5px);
  box-shadow: 0 0 24px rgba(255, 106, 74, 0.5);
}

.photo-scan-line.is-scanning { opacity: 1; }

.photo-confidence {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: var(--paper);
  border: 1px solid var(--line-blood);
  border-radius: var(--r-md);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.scrub-photo.is-scanning .photo-confidence {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.photo-confidence small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-confidence strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--blood);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Invoice */

.scrub-invoice {
  position: absolute;
  top: 50%;
  right: 0;
  width: 92%;
  max-width: 720px;
  transform: translateY(-50%) translateY(40px);
  z-index: 3;
  opacity: 0;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}

.scrub-invoice.is-shown {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
}

.scrub-invoice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #fdf8eb 0%, #f3ecd9 100%);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}

.invoice-bar-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.invoice-stamp {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--good-soft);
  color: var(--good);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: scale(0.8) rotate(-12deg);
  transform-origin: center;
  transition: opacity 500ms var(--ease-spring), transform 500ms var(--ease-spring);
}

.invoice-stamp.is-shown {
  opacity: 1;
  transform: scale(1) rotate(-2deg);
}

.invoice-stamp svg {
  width: 12px;
  height: 12px;
}

.scrub-invoice-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  padding: 20px 24px 22px;
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invoice-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.invoice-meta-row small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.invoice-meta-row strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.invoice-table {
  display: flex;
  flex-direction: column;
}

.i-head {
  display: grid;
  grid-template-columns: 32px 1fr 60px 80px 100px;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}

.i-head span:nth-child(3),
.i-head span:nth-child(4),
.i-head span:nth-child(5) {
  text-align: right;
}

.i-row {
  display: grid;
  grid-template-columns: 32px 1fr 60px 80px 100px;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.i-row.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.i-row.is-flashing {
  background: linear-gradient(90deg, var(--coral-soft), transparent);
  margin: 0 -8px;
  padding: 11px 8px;
  border-radius: 4px;
}

.i-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
}

.i-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.i-qty,
.i-unit,
.i-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.i-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.invoice-totals {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
}

.i-tot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

.i-tot.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.i-tot strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.i-tot-final {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-size: 16px;
  color: var(--ink);
  font-family: var(--font-display);
}

.i-tot-final strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.i-tot-final.is-shown strong {
  background: linear-gradient(120deg, var(--blood) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.invoice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.invoice-actions.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.invoice-action-primary {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms var(--ease-out);
}

.invoice-action-primary:hover { background: var(--blood); }

.invoice-action-primary kbd {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px var(--good-soft);
  animation: statusPulse 2s ease-in-out infinite;
}

.invoice-actions.is-shown .status-dot {
  animation: statusPulseStrong 0.8s ease-in-out 2;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--good-soft); }
  50% { box-shadow: 0 0 0 6px rgba(74, 95, 63, 0.18); }
}

@keyframes statusPulseStrong {
  0%, 100% { box-shadow: 0 0 0 3px var(--good-soft); }
  50% { box-shadow: 0 0 0 9px rgba(74, 95, 63, 0.24); }
}

@media (max-width: 1180px) {
  .scrub-section { height: auto; }
  .scrub-pin {
    position: relative;
    height: auto;
    padding: 80px 0;
  }
  .scrub-grid { grid-template-columns: 1fr; }
  .scrub-stage { height: 700px; }
  .scrub-photo { width: 80%; }
  .scrub-invoice { position: relative; top: auto; right: auto; transform: none; margin-top: 40px; width: 100%; }
  .scrub-invoice.is-shown { transform: none; }
  .scrub-headline { height: auto; min-height: 4em; }
  .scrub-caption { min-height: 6em; }
}

@media (max-width: 760px) {
  .scrub-stage { height: 600px; }
  .invoice-meta-row { grid-template-columns: 1fr; gap: 6px; }
  .i-head, .i-row {
    grid-template-columns: 28px 1fr 80px;
    gap: 6px;
  }
  .i-head span:nth-child(3),
  .i-head span:nth-child(4),
  .i-row .i-qty,
  .i-row .i-unit { display: none; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */

.manifest-section {
  position: relative;
  padding: clamp(110px, 13vw, 180px) 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 250, 240, 0.5) 50%, transparent 100%);
}

.manifest-shell {
  width: var(--wrap-editorial);
  margin: 0 auto;
}

.manifest-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.manifest-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 56px);
}

.manifest-line {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: baseline;
  padding-bottom: clamp(20px, 2.5vw, 40px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1100ms var(--ease-out),
    transform 1100ms var(--ease-out);
}

.manifest-line:last-child {
  border-bottom: 0;
}

.manifest-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ml-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-5);
  line-height: 1;
  letter-spacing: -0.02em;
}

.manifest-line h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  max-width: 22ch;
}

.manifest-line h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--blood);
}

.manifest-foot {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  text-align: right;
}

/* ============================================================
   NUMBERS
   ============================================================ */

.numbers-section {
  padding: clamp(80px, 9vw, 140px) 0 clamp(60px, 7vw, 100px);
}

.numbers-shell {
  width: var(--wrap);
  margin: 0 auto;
}

.numbers-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.numbers-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}

.number-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out);
  min-height: 240px;
}

.number-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.number-card small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.number-display {
  flex: 1;
  display: flex;
  align-items: center;
}

.number-display strong {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.number-card-lg .number-display strong {
  font-size: clamp(72px, 11vw, 168px);
}

.num-arrow {
  font-family: var(--font-display);
  font-size: 0.5em;
  color: var(--coral);
  font-style: italic;
  font-weight: 400;
  margin: 0 0.12em;
}

.num-arrow-sm {
  font-size: 0.36em;
}

.num-strike {
  position: relative;
  color: var(--ink-5);
  font-size: 0.62em;
  margin-right: 0.08em;
  font-weight: 300;
}

.num-strike::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 52%;
  height: 4px;
  background: var(--coral);
  transform: rotate(-6deg);
  border-radius: 2px;
}

.num-unit {
  font-size: 0.36em;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-3);
  margin-left: 0.18em;
}

.number-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 36ch;
}

.number-card-lg {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(135deg, var(--blood-soft) 0%, var(--coral-soft) 100%);
  border-color: var(--line-blood);
}

.number-card-lg .number-display strong {
  background: linear-gradient(120deg, var(--blood) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.number-card-dark {
  background: var(--ink);
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.06);
  grid-column: span 2;
}

.number-card-dark small { color: rgba(255, 255, 255, 0.5); }
.number-card-dark .number-display strong { color: var(--bone); }
.number-card-dark p { color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   BRANCHEN
   ============================================================ */

.branchen-section {
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.4);
  overflow: hidden;
}

.branchen-shell {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.branchen-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  font-weight: 500;
  white-space: nowrap;
}

.branchen-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  flex: 1;
}

.branchen-strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.branchen-strip span svg {
  width: 22px;
  height: 22px;
  color: var(--blood);
  flex: none;
}

/* ============================================================
   SECTION SHELL
   ============================================================ */

.section-shell {
  position: relative;
  width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-gap) 0;
}

.section-header {
  max-width: 820px;
  margin: 0 auto clamp(40px, 4.5vw, 72px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.section-header h2 { margin: 0; }

.section-header p {
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--ink-3);
}

/* ============================================================
   PROBLEM
   ============================================================ */

.problem-section { padding-top: clamp(40px, 5vw, 72px); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out), border-color 520ms var(--ease-out);
  overflow: hidden;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.problem-card-resolved {
  background: linear-gradient(180deg, var(--ink) 0%, #1a1817 100%);
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.06);
}

.problem-card-resolved p { color: rgba(255, 255, 255, 0.72); }
.problem-card-resolved strong { color: var(--bone); }
.problem-card-resolved em { color: var(--coral); }

.problem-card-num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  font-style: italic;
  color: var(--bone-3);
  line-height: 0.9;
  letter-spacing: -0.04em;
  position: absolute;
  top: 20px;
  right: 28px;
  pointer-events: none;
}

.problem-card-num-light { color: rgba(255, 255, 255, 0.08); }

.card-tag {
  align-self: flex-start;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  background: var(--bone-3);
  border-radius: var(--r-full);
  font-weight: 500;
}

.card-tag.is-positive {
  color: var(--bone);
  background: var(--blood);
}

.problem-card strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 14ch;
}

.problem-card p { flex: 1; max-width: 32ch; }

.card-illustration {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.card-ill-a .ill-pill {
  padding: 6px 11px;
  background: var(--bone-3);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  animation: pillJitter 4s var(--ease-in-out) infinite;
}

.card-ill-a .ill-pill:nth-child(1) { animation-delay: 0s; }
.card-ill-a .ill-pill:nth-child(2) { animation-delay: 0.3s; }
.card-ill-a .ill-pill:nth-child(3) { animation-delay: 0.6s; }
.card-ill-a .ill-pill:nth-child(4) { animation-delay: 0.9s; }
.card-ill-a .ill-pill:nth-child(5) { animation-delay: 1.2s; }
.card-ill-a .ill-pill:nth-child(6) { animation-delay: 1.5s; }
.card-ill-a .ill-pill:nth-child(7) { animation-delay: 1.8s; }

@keyframes pillJitter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.card-ill-b {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  border-top-color: var(--line-2);
}

.ill-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: var(--bone-3);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-style: italic;
  opacity: 0.55;
}

.ill-search-active {
  opacity: 1;
  background: var(--coral-soft);
  color: var(--ink);
  font-weight: 500;
}

.ill-search svg {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--blood);
}

.card-ill-c {
  border-top-color: rgba(255, 255, 255, 0.12);
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
}

.ill-thread {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.thread-node {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-full);
  font-size: 10.5px;
  color: var(--bone);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  flex: none;
  font-weight: 500;
}

.thread-node-emph {
  background: var(--coral);
  color: var(--ink);
  border-color: var(--coral);
}

.thread-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  background-size: 16px 1px;
  position: relative;
  overflow: hidden;
}

.thread-line::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 8px;
  height: 4px;
  background: var(--coral);
  border-radius: 4px;
  filter: blur(2px);
  animation: threadGlow 2.4s linear infinite;
}

@keyframes threadGlow {
  0% { transform: translateX(-20%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* ============================================================
   PRODUCT INTRO + TABS
   ============================================================ */

.product-intro {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(20px, 3vw, 48px);
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  max-width: 940px;
  margin: 0 auto;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  z-index: 30;
}

.module-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
  white-space: nowrap;
}

.module-tabs a:hover {
  color: var(--ink);
  background: var(--bone-soft);
}

.module-tabs a.is-active {
  background: var(--ink);
  color: var(--bone);
}

/* ============================================================
   STORY SECTIONS
   ============================================================ */

.story-section {
  position: relative;
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(70px, 8vw, 110px) 0;
}

.story-sticky {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.story-section-flip .story-sticky {
  grid-template-columns: 1.15fr 0.85fr;
}

.story-section-flip .story-copy { order: 2; }
.story-section-flip .story-visual { order: 1; }

.story-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.scene-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.scene-index {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 300;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--blood);
}

.scene-label {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  padding: 5px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-weight: 500;
}

.story-copy h2 {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 16ch;
}

.story-points {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-points li {
  position: relative;
  padding-left: 42px;
  padding-top: 4px;
  padding-bottom: 4px;
  min-height: 28px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

.story-points .bullet {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
}

.story-visual { position: relative; }

.module-window {
  border-radius: var(--r-2xl);
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}

/* Module-specific layouts */

.dashboard-grid,
.invoice-layout,
.offer-layout,
.calendar-layout,
.workers-layout,
.board-layout,
.finance-layout {
  padding: 16px;
  display: grid;
  gap: 10px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.dashboard-grid { grid-template-columns: repeat(2, 1fr); }
.dashboard-grid > .span-2 { grid-column: 1 / -1; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.status-grid article {
  padding: 12px 14px;
  background: var(--bone-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-grid small {
  font-size: 10.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.status-grid strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.num-warn { color: var(--warn); }

.status-grid span {
  font-size: 11px;
  color: var(--ink-3);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* Invoice */

.invoice-layout { grid-template-columns: 0.8fr 1.2fr; }

.upload-table {
  background: var(--bone-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
}

.upload-table .row {
  display: grid;
  grid-template-columns: 30px 1fr 50px 80px;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}

.upload-table .row:last-child { border-bottom: 0; }

.upload-table .row.head {
  background: var(--bone-3);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  font-weight: 500;
}

.upload-table .row span:nth-child(3),
.upload-table .row span:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.row-flag {
  background: var(--warn-soft);
  color: var(--warn);
  font-style: italic;
}

.row-flag span:first-child {
  color: var(--warn);
  font-weight: 600;
}

.document-sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(40, 30, 20, 0.04);
}

.sheet-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}

.sheet-top small {
  font-size: 10px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
}

.sheet-top strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.sheet-lines { display: flex; flex-direction: column; }

.sheet-row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.8fr;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line-2);
}

.sheet-row.head {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line-2);
}

.sheet-row span:nth-child(2),
.sheet-row span:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sheet-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sheet-summary > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}

.sheet-summary strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sheet-summary .is-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  font-family: var(--font-display);
}

.sheet-summary .is-total strong { font-size: 16px; }

/* Offer */

.offer-layout { grid-template-columns: 1.4fr 0.8fr; }

.phase-list { display: flex; flex-direction: column; gap: 8px; }

.phase-list article {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bone-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: transform 280ms var(--ease-out);
}

.phase-list article:hover { transform: translateX(3px); }

.phase-list .phase-optional {
  background: transparent;
  border-style: dashed;
  opacity: 0.7;
}

.phase-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bone);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
}

.phase-num-opt {
  background: var(--bone-3);
  color: var(--ink-3);
  font-size: 10px;
  font-style: normal;
  font-family: var(--font-mono);
}

.phase-list article > div strong {
  display: block;
  font-size: 13px;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}

.phase-list article > div span {
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.phase-cost {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.phase-cost-muted { color: var(--ink-4); font-style: italic; font-weight: 400; }

/* Mail layout */

.mail-layout {
  grid-template-columns: 220px 1fr 220px;
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.mail-column {
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 440px;
}

.mail-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}

.mail-list-head strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.mail-list-head span {
  font-size: 10.5px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.mail-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.mail-item:hover { background: var(--paper); }

.mail-item.is-active {
  background: var(--paper);
  border-color: var(--line-blood);
  box-shadow: var(--shadow-xs);
}

.mail-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c, var(--blood));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  flex: none;
}

.mail-item > div {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.mail-item strong {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
}

.mail-item span {
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-item small {
  font-size: 10px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.mail-detail { background: var(--paper); }

.mail-body {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  padding: 10px 12px;
  background: var(--bone-soft);
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
}

.response-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, var(--blood-soft) 0%, #f5e0e0 100%);
  border: 1px solid var(--line-blood);
  border-radius: var(--r-md);
}

.response-box small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blood);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.response-box small svg { width: 12px; height: 12px; }

.response-box p {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}

.response-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

.mail-context { gap: 8px; }

.context-card {
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}

.context-card-active {
  background: var(--blood-soft);
  border-color: var(--line-blood);
}

.context-card-warn {
  background: var(--warn-soft);
  border-color: rgba(198, 104, 49, 0.18);
}

.context-card small {
  display: block;
  font-size: 9.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-weight: 500;
}

.context-card-active small { color: var(--blood); }
.context-card-warn small { color: var(--warn); }

.context-card strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.context-card span {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* Calendar */

.calendar-layout { grid-template-columns: 1.4fr 0.8fr; }

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
}

.cal-hour {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  height: 36px;
  border-bottom: 1px dashed var(--line-2);
}

.cal-hour span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.cal-event {
  position: absolute;
  left: 64px;
  right: 12px;
  border-radius: var(--r-sm);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-xs);
}

.cal-event strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.cal-event small {
  font-size: 10.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.cal-event-a {
  top: 30px;
  height: 28px;
  background: var(--good-soft);
  border-left: 3px solid var(--good);
}

.cal-event-b {
  top: 138px;
  height: 56px;
  background: var(--blood-soft);
  border-left: 3px solid var(--blood);
}

.cal-event-c {
  top: 268px;
  height: 28px;
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
}

/* Workers */

.workers-layout { grid-template-columns: 1fr 1.1fr; }

.team-cards { display: flex; flex-direction: column; gap: 8px; }

.team-cards article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bone-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}

.team-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.team-status-good {
  background: var(--good);
  box-shadow: 0 0 0 4px var(--good-soft);
  animation: teamPulse 2.4s ease-in-out infinite;
}

.team-status-warn {
  background: var(--warn);
  box-shadow: 0 0 0 4px var(--warn-soft);
  animation: teamPulse 2.4s ease-in-out infinite;
  animation-delay: 0.6s;
}

@keyframes teamPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.team-cards strong {
  display: block;
  font-size: 13px;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.team-cards span {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.log-list { display: flex; flex-direction: column; gap: 6px; }

.log-list article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line-2);
}

.log-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.log-list article strong {
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
  font-family: var(--font-display);
}

/* Board */

.board-layout { grid-template-columns: repeat(3, 1fr); }

.board-column {
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.board-column-active {
  background: var(--blood-soft);
  border-color: var(--line-blood);
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-2);
}

.board-head strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.board-head span {
  font-size: 10.5px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  background: var(--paper);
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  letter-spacing: 0.04em;
}

.board-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: grab;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

.board-card-emph {
  background: linear-gradient(135deg, var(--coral-soft) 0%, var(--blood-soft) 100%);
  border-color: var(--line-blood);
}

.board-card:hover {
  transform: translateY(-2px) rotate(-0.4deg);
  box-shadow: var(--shadow-md);
}

.board-card small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.board-card strong {
  font-size: 13px;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.board-card > span {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.board-foot {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.bf-tag-warn {
  color: var(--warn);
  font-weight: 600;
}

.board-card-done {
  background: var(--good-soft);
  border-color: rgba(74, 95, 63, 0.18);
}

.board-card-done strong { color: var(--good); }

/* Finance */

.finance-layout { grid-template-columns: 1.3fr 0.9fr; }

.finance-bar {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finance-bar-track {
  position: relative;
  height: 14px;
  background: var(--bone-3);
  border-radius: var(--r-full);
  overflow: hidden;
}

.finance-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  width: var(--w);
  left: var(--o, 0);
  background: linear-gradient(90deg, var(--good) 0%, #6c8159 100%);
  border-radius: var(--r-full);
  transition: width 1200ms var(--ease-out);
}

.finance-bar-warn {
  background: linear-gradient(90deg, var(--warn) 0%, #db7f3e 100%);
}

.finance-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.finance-bar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   WALL OF TRUST
   ============================================================ */

.trust-wall {
  padding-bottom: clamp(80px, 9vw, 140px);
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 auto clamp(40px, 5vw, 64px);
  padding: 22px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.rating-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rating-stars {
  display: flex;
  gap: 1px;
}

.rating-stars svg {
  width: 18px;
  height: 18px;
  color: var(--coral);
}

.star-half {
  opacity: 0.5;
}

.rating-meta {
  display: flex;
  flex-direction: column;
}

.rating-meta strong,
.rating-block > strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.rating-meta span,
.rating-block > span {
  font-size: 11.5px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.rating-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.trust-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out);
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-card-large {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--blood) 0%, var(--blood-3) 100%);
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-blood);
}

.testimonial-card-large blockquote {
  color: var(--bone);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
}

.testimonial-card-large blockquote strong {
  color: var(--bone);
}

.testimonial-card-large .testimonial-stars svg { color: var(--coral-2); }

.testimonial-card-quiet {
  background: var(--ink);
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.06);
}

.testimonial-card-quiet blockquote {
  color: var(--bone);
  font-size: 22px;
}

.testimonial-card-quiet blockquote strong { color: var(--bone); }

.testimonial-stars {
  display: flex;
  gap: 1px;
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
  color: var(--coral);
}

blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: relative;
  flex: 1;
}

blockquote strong {
  font-weight: 600;
  color: var(--ink);
}

.quote-mark {
  position: absolute;
  top: -8px;
  left: -8px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
  pointer-events: none;
}

.testimonial-author {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.testimonial-card-large .testimonial-author,
.testimonial-card-quiet .testimonial-author {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--c, var(--blood));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex: none;
  letter-spacing: -0.01em;
}

.testimonial-author > div {
  min-width: 0;
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.testimonial-card-large .testimonial-author strong,
.testimonial-card-quiet .testimonial-author strong { color: var(--bone); }

.testimonial-author > div > span {
  font-size: 12px;
  color: var(--ink-3);
  display: block;
}

.testimonial-card-large .testimonial-author > div > span,
.testimonial-card-quiet .testimonial-author > div > span { color: rgba(255, 255, 255, 0.7); }

.testimonial-author > div > small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.testimonial-card-large .testimonial-author > div > small,
.testimonial-card-quiet .testimonial-author > div > small { color: rgba(255, 255, 255, 0.5); }

.author-highlight {
  text-align: right;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 14px;
}

.author-highlight small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.author-highlight strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--coral-2);
  font-weight: 500;
}

/* ============================================================
   TRUST LEGAL
   ============================================================ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out), border-color 520ms var(--ease-out);
  overflow: hidden;
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.trust-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 100% 0%, var(--blood-soft) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 520ms var(--ease-out);
}

.trust-card:hover::after { opacity: 1; }

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--blood-soft);
  color: var(--blood);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.trust-icon svg { width: 22px; height: 22px; }

.trust-card small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.trust-card strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.trust-card-honest {
  background: linear-gradient(180deg, var(--clay-soft) 0%, #e8d2b3 100%);
}

.trust-card-honest .trust-icon {
  background: rgba(168, 124, 79, 0.18);
  color: var(--clay);
}

/* ============================================================
   PRICING
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out);
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.is-featured {
  background: linear-gradient(180deg, var(--ink) 0%, #181613 100%);
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.is-featured:hover {
  transform: translateY(-16px);
}

.pricing-flag {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 5px 11px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  border-radius: var(--r-full);
}

.pricing-top small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.pricing-card.is-featured .pricing-top small {
  color: rgba(255, 255, 255, 0.5);
}

.pricing-price {
  margin: 8px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-price strong {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.pricing-card.is-featured .pricing-price strong { color: var(--bone); }

.pricing-price span {
  font-size: 13px;
  color: var(--ink-4);
  font-family: var(--font-mono);
}

.pricing-card.is-featured .pricing-price span { color: rgba(255, 255, 255, 0.5); }

.pricing-top p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}

.pricing-card.is-featured .pricing-top p { color: rgba(255, 255, 255, 0.7); }

.pricing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-2);
}

.pricing-card.is-featured .pricing-list li {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.pricing-list li:last-child { border-bottom: 0; }

.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blood-soft);
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
}

.check::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--blood);
  border-bottom: 1.5px solid var(--blood);
  transform: rotate(-45deg) translate(1px, -1px);
}

.pricing-card.is-featured .check {
  background: rgba(255, 106, 74, 0.18);
}

.pricing-card.is-featured .check::after {
  border-color: var(--coral);
}

.pricing-card.is-featured .site-btn-solid {
  background: var(--coral);
  color: var(--ink);
}

.pricing-card.is-featured .site-btn-solid:hover {
  background: var(--coral-2);
}

.pricing-footnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--paper);
  font-size: 13px;
  color: var(--ink-3);
}

.pricing-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   CTA
   ============================================================ */

.cta-section {
  padding-bottom: clamp(60px, 7vw, 110px);
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, #1f1c19 50%, var(--ink) 100%);
  color: var(--bone);
  border-radius: var(--r-2xl);
  padding: clamp(48px, 7vw, 96px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  isolation: isolate;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 20%, rgba(91, 31, 46, 0.5), transparent 60%),
    radial-gradient(700px 400px at 80% 80%, rgba(255, 106, 74, 0.3), transparent 60%);
  z-index: -1;
  filter: blur(40px);
  opacity: 0.8;
  animation: ctaGlow 12s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
  to { transform: scale(1.1); }
}

.cta-rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blood) 0%, var(--coral) 50%, var(--blood) 100%);
}

.cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 760px;
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cta-eyebrow .kicker { color: rgba(255, 255, 255, 0.6); }
.cta-eyebrow .kicker-rule { background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent); }

.cta-copy h2 {
  color: var(--bone);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 400;
}

.cta-copy h2 em { color: var(--coral); }

.cta-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.1vw, 18px);
}

.cta-copy p em { color: var(--coral); }

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-card .site-btn-solid {
  background: var(--coral);
  color: var(--ink);
}

.cta-card .site-btn-solid:hover {
  background: var(--coral-2);
}

.cta-meta {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cta-meta span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-meta strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.cta-meta small {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 72px) 0 24px;
  background: rgba(255, 250, 240, 0.4);
}

.footer-shell {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line-2);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.footer-brand span {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 360px;
}

.footer-brand em {
  color: var(--blood);
  font-style: italic;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-cols small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 500;
}

.footer-cols a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 200ms var(--ease-out);
}

.footer-cols a:hover { color: var(--blood); }

.footer-base {
  width: var(--wrap);
  margin: 0 auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {
  .hero-bottom { grid-template-columns: 1fr; }

  .story-sticky,
  .story-section-flip .story-sticky {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-section-flip .story-copy { order: 0; }
  .story-section-flip .story-visual { order: 1; }

  .float-a, .float-b { display: none; }

  .problem-grid,
  .trust-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card-large {
    grid-column: span 2;
  }

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

  .number-card-lg, .number-card-dark {
    grid-column: span 2;
  }

  .footer-shell { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root {
    --wrap: calc(100vw - 24px);
    --section-gap: 90px;
  }

  .header-shell {
    padding: 8px 8px 8px 14px;
  }

  .header-nav { display: none; }
  .header-actions .site-btn-ghost { display: none; }

  .hero-headline {
    font-size: clamp(40px, 13vw, 76px);
  }

  .manifest-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .manifest-line h2 {
    font-size: clamp(28px, 8vw, 44px);
  }

  .problem-grid,
  .trust-grid,
  .pricing-grid,
  .trust-wall-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card-large {
    grid-column: span 1;
  }

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

  .number-card,
  .number-card-lg,
  .number-card-dark {
    grid-column: span 1;
  }

  .pricing-card.is-featured { transform: translateY(0); }
  .pricing-card.is-featured:hover { transform: translateY(-4px); }

  .hero-window-grid { grid-template-columns: 1fr; }
  .window-sidebar { display: none; }
  .window-columns { grid-template-columns: 1fr; }

  .module-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    border-radius: var(--r-lg);
  }

  .invoice-layout,
  .offer-layout,
  .calendar-layout,
  .workers-layout,
  .finance-layout,
  .mail-layout,
  .board-layout {
    grid-template-columns: 1fr;
  }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 8px; align-items: flex-start; }

  .branchen-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .rating-summary {
    flex-direction: column;
    border-radius: var(--r-xl);
    gap: 14px;
  }

  .rating-divider { display: none; }

  .testimonial-author {
    grid-template-columns: auto 1fr;
  }

  .author-highlight { display: none; }
}

/* ============================================================
   AI 01 — RECHNUNG AI · BANK-MATCH
   ============================================================ */

.match-layout {
  padding: 16px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.match-bank {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-tx {
  padding: 10px 12px;
  background: var(--bone-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: default;
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out);
}

.match-tx.is-active {
  background: var(--blood-soft);
  border-color: var(--line-blood);
}

.match-tx-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.match-tx-head strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.match-tx-head span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.match-tx-name {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}

.match-tx-ref {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}

.match-tx-ref-warn {
  color: var(--warn);
  font-style: italic;
}

.match-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-result {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.match-result-confident {
  border-color: var(--line-blood);
  background: linear-gradient(180deg, var(--blood-soft) 0%, var(--paper) 100%);
}

.match-result-flagged {
  border-color: rgba(240, 160, 64, 0.24);
  background: linear-gradient(180deg, var(--warn-soft) 0%, var(--paper) 100%);
}

.match-bar {
  height: 4px;
  background: var(--bone-3);
  border-radius: 2px;
  overflow: hidden;
}

.match-bar-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--blood) 0%, var(--blood-2) 100%);
  border-radius: 2px;
  transition: width 1200ms var(--ease-out);
}

.match-bar-warn {
  background: linear-gradient(90deg, var(--warn) 0%, #f3b568 100%);
}

.match-bar-flag {
  background: linear-gradient(90deg, #d96a5a 0%, #e8907a 100%);
}

.match-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.match-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.match-row span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.match-conf {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.match-conf-high { color: var(--blood); }
.match-conf-mid { color: var(--warn); }
.match-conf-low { color: #c25444; }

.match-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.match-action-warn {
  padding: 6px 10px;
  background: var(--warn-soft);
  border-radius: var(--r-sm);
}

.match-warn {
  font-size: 11.5px;
  color: var(--warn);
  font-weight: 600;
}

.match-or {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.match-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bone-3);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out);
}

.match-btn:active { transform: scale(0.97); }

.match-btn-primary {
  background: var(--blood);
  color: var(--bone);
  border-color: var(--blood);
}

.match-btn-primary:hover { background: var(--blood-3); }

.match-btn-primary kbd {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   AI 02 — TEMPLATE BUILDER
   ============================================================ */

.builder-layout {
  padding: 16px;
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 12px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.builder-blocks,
.builder-inspector {
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.builder-section {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: 4px;
}

.builder-block {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: grab;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.builder-block:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-xs);
}

.bb-icon {
  font-family: var(--font-display);
  font-size: 14px;
  text-align: center;
  color: var(--ink-3);
}

.builder-block strong {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.bb-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bone-3);
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.bb-tag-ai {
  background: var(--blood-soft);
  color: var(--blood);
}

.builder-block-locked .bb-icon {
  color: var(--ink-4);
}

.builder-canvas {
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.builder-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 15, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 15, 26, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.canvas-doc {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.canvas-block {
  position: relative;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong);
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out);
}

.canvas-block-locked {
  border-color: var(--line);
  background: var(--bone-2);
}

.canvas-block-ai {
  border-color: var(--line-blood);
  border-style: dashed;
}

.canvas-block.is-active {
  background: var(--blood-soft);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(80, 70, 229, 0.12);
}

.canvas-tag {
  position: absolute;
  top: -8px;
  left: 10px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  background: var(--paper);
  border-radius: 4px;
  border: 1px solid var(--line);
}

.canvas-tag-ai {
  color: var(--blood);
  border-color: var(--line-blood);
  background: var(--blood-soft);
}

.canvas-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.canvas-logo .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.canvas-logo strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.canvas-block p {
  font-size: 12px;
  color: var(--ink-2);
  margin: 0;
}

.canvas-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.canvas-table > div {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 3px 0;
  border-bottom: 1px dashed var(--line-2);
}

.canvas-table > div:last-child {
  border-bottom: 0;
}

.canvas-table > div span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.canvas-totals {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.canvas-totals > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}

.canvas-totals strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.canvas-total-final {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.canvas-total-final strong {
  font-size: 16px;
  background: linear-gradient(120deg, var(--blood) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.inspector-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.inspector-row small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.inspector-row strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.inspector-toggle,
.inspector-pillrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--line-2);
}

.inspector-label {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
}

.toggle {
  position: relative;
  width: 32px;
  height: 18px;
  background: var(--bone-3);
  border-radius: 999px;
  transition: background 220ms var(--ease-out);
  cursor: pointer;
  border: 1px solid var(--line);
  flex: none;
}

.toggle i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: left 240ms var(--ease-out);
}

.toggle.is-on {
  background: var(--blood);
  border-color: var(--blood);
}

.toggle.is-on i {
  left: 16px;
  background: var(--bone);
}

.inspector-pills {
  display: flex;
  gap: 4px;
}

.inspector-pill {
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  background: var(--bone-3);
  color: var(--ink-3);
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 220ms var(--ease-out);
}

.inspector-pill.is-active {
  background: var(--ink);
  color: var(--bone);
}

.inspector-foot {
  margin-top: auto;
  padding: 10px 12px;
  background: var(--blood-soft);
  border: 1px solid var(--line-blood);
  border-radius: var(--r-md);
}

.inspector-foot strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--blood);
}

.inspector-foot span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ============================================================
   AI 03 — ANGEBOTS-AI · PROJEKT-FOLDER
   ============================================================ */

.folder-layout {
  padding: 16px;
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 12px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.folder-tree {
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.folder-section {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: 4px;
}

.folder-item,
.folder-leaf {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--ink-2);
  border-radius: 6px;
  cursor: default;
}

.folder-item.is-open strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.folder-children {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 12px;
  border-left: 1px dashed var(--line-strong);
  margin-left: 14px;
  margin-top: 2px;
}

.folder-leaf:hover {
  background: var(--paper);
}

.folder-leaf.is-active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.folder-leaf.is-draft {
  background: var(--blood-soft);
  color: var(--blood);
  font-family: var(--font-display);
  font-weight: 700;
}

.folder-prompt {
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prompt-input {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-input small,
.prompt-thinking small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 600;
}

.prompt-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-mono);
  background: var(--bone-soft);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
}

.prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  height: 36px;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  background: var(--blood);
  color: var(--bone);
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 200ms var(--ease-out), transform 160ms var(--ease-out);
}

.prompt-btn:hover { background: var(--blood-3); }
.prompt-btn:active { transform: scale(0.97); }

.prompt-btn svg {
  width: 14px;
  height: 14px;
}

.prompt-thinking {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompt-thinking ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prompt-thinking li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.th-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bone-3);
  flex: none;
}

.th-dot-done {
  background: var(--good);
}

.th-dot-active {
  background: var(--blood);
  animation: thDotPulse 1.4s ease-in-out infinite;
}

@keyframes thDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--blood-soft-2); }
  50% { box-shadow: 0 0 0 5px transparent; }
}

.folder-preview {
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.folder-preview > small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: 4px;
}

.preview-doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-xs);
}

.preview-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.preview-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.preview-head span {
  font-size: 11px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 1px dashed var(--line-2);
}

.preview-row strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.preview-row-emph {
  color: var(--blood);
  font-weight: 600;
}

.preview-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.preview-total strong {
  font-size: 16px;
  background: linear-gradient(120deg, var(--blood) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   AI 04 — MAILBOX-AI
   ============================================================ */

.mbai-layout {
  padding: 16px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 12px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.mbai-list,
.mbai-detail,
.mbai-context {
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mbai-detail {
  background: var(--paper);
}

.mbai-accounts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}

.mbai-account {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-weight: 600;
  cursor: default;
}

.mbai-account.is-active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.ma-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.ma-dot-blood { background: var(--blood); }
.ma-dot-rose { background: var(--pastel-rose-strong); }
.ma-dot-sky { background: var(--pastel-sky-strong); }
.ma-dot-mint { background: var(--pastel-mint-strong); }

.mbai-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-md);
  transition: background 220ms var(--ease-out);
  cursor: default;
}

.mbai-item:hover { background: var(--paper); }

.mbai-item.is-active {
  background: var(--paper);
  border: 1px solid var(--line-blood);
}

.mbai-item > div { min-width: 0; }

.mbai-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.mbai-item span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mbai-item small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}

.mbai-badge {
  align-self: flex-start;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  background: var(--blood-soft);
  color: var(--blood);
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.mbai-summary {
  padding: 12px;
  background: linear-gradient(180deg, var(--blood-soft) 0%, #ede8ff 100%);
  border: 1px solid var(--line-blood);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mbai-summary small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blood);
}

.mbai-summary small svg {
  width: 13px;
  height: 13px;
}

.mbai-summary p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}

.mbai-copilot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.mbai-copilot small {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 600;
}

.copilot-prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong);
  margin: 0;
}

.copilot-tonality {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ton-label {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
  margin-right: 2px;
}

.ton-pill {
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  background: var(--paper);
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out);
}

.ton-pill.is-active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.copilot-result {
  background: var(--paper);
  padding: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.copilot-result p {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

.copilot-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mbai-context-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 600;
}

/* ============================================================
   WORKFLOW PIPELINE
   ============================================================ */

.workflow-section {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(80px, 9vw, 140px);
}

.workflow-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
}

.wf-step {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out);
  text-align: center;
}

.wf-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.wf-step-emph {
  background: linear-gradient(180deg, var(--blood-soft) 0%, var(--paper) 100%);
  border-color: var(--line-blood);
}

.wf-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}

.wf-icon svg { width: 22px; height: 22px; }

.wf-icon-rose { background: var(--pastel-rose); color: var(--pastel-rose-strong); }
.wf-icon-lilac { background: var(--pastel-lilac); color: var(--pastel-lilac-strong); }
.wf-icon-mint { background: var(--pastel-mint); color: var(--pastel-mint-strong); }
.wf-icon-peach { background: var(--pastel-peach); color: var(--pastel-peach-strong); }
.wf-icon-sky { background: var(--pastel-sky); color: var(--pastel-sky-strong); }
.wf-icon-blood { background: var(--blood); color: var(--bone); }

.wf-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wf-meta small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}

.wf-meta strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.wf-step > span {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
  max-width: 24ch;
}

.wf-arrow {
  align-self: center;
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-5);
  font-family: var(--font-display);
}

.workflow-quote {
  margin: 32px auto 0;
  max-width: 760px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--ink) 0%, #1f1f3a 100%);
  color: var(--bone);
  border-radius: var(--r-2xl);
  position: relative;
  overflow: hidden;
}

.workflow-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 0% 100%, rgba(80, 70, 229, 0.4), transparent 60%),
    radial-gradient(400px 240px at 100% 0%, rgba(255, 141, 107, 0.24), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  opacity: 0.7;
}

.workflow-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin: 0;
  position: relative;
  z-index: 1;
}

.wq-mark {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 0.4;
  color: var(--coral);
  margin-right: 4px;
  vertical-align: -16px;
}

.wq-cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .match-layout,
  .builder-layout,
  .folder-layout,
  .mbai-layout {
    grid-template-columns: 1fr;
  }
  .builder-blocks,
  .builder-inspector,
  .folder-tree,
  .folder-preview,
  .mbai-context { display: none; }

  .workflow-pipeline {
    flex-direction: column;
  }
  .wf-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 760px) {
  .workflow-pipeline { padding: 16px; }
  .wf-step { min-width: 100%; }
  .workflow-quote { padding: 22px 18px; }
}

/* ============================================================
   TEMPLATE BUILDER v2 — Word-style A4 paper editor
   ============================================================ */

.builder-window {
  /* gives the window more vertical room for the paper */
}

/* PROMPT BAR */

.builder-prompt-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--blood-soft) 0%, #ede8ff 100%);
  border-bottom: 1px solid var(--line-blood);
}

.bpb-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blood);
  color: var(--bone);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 4px 14px rgba(80, 70, 229, 0.32);
}

.bpb-icon svg {
  width: 18px;
  height: 18px;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.bpb-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blood);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 2px;
}

.bpb-text p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}

.bpb-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--bone);
  border: 0;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 200ms var(--ease-out), transform 160ms var(--ease-out);
  flex: none;
}

.bpb-btn:hover { background: var(--blood); }
.bpb-btn:active { transform: scale(0.97); }

.bpb-btn svg {
  width: 13px;
  height: 13px;
}

/* LAYOUT V2 */

.builder-layout-v2 {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 0;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.builder-layout-v2 .builder-blocks {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--bone-soft);
  padding: 14px 12px;
  gap: 4px;
  max-height: 880px;
  overflow-y: auto;
}

.builder-layout-v2 .builder-inspector {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: var(--bone-soft);
  padding: 14px 12px;
}

/* Block-Bibliothek mit Handle */

.builder-block {
  grid-template-columns: 14px 22px 1fr auto;
  position: relative;
  cursor: grab;
}

.bb-handle {
  width: 12px;
  height: 16px;
  border-radius: 3px;
  background:
    radial-gradient(circle, var(--ink-5) 1.2px, transparent 1.5px) 0 0/4px 4px,
    radial-gradient(circle, var(--ink-5) 1.2px, transparent 1.5px) 4px 0/4px 4px;
  background-size: 4px 4px;
  background-position: 0 2px, 4px 2px, 0 6px, 4px 6px, 0 10px, 4px 10px;
  opacity: 0.4;
  transition: opacity 240ms var(--ease-out);
}

.builder-block:hover .bb-handle { opacity: 0.8; }

/* CANVAS V2 — A4 paper */

.builder-canvas-v2 {
  background:
    repeating-linear-gradient(45deg, #f5f4ff 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #f3f1fc 0%, #ebe8fa 100%);
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.canvas-paper-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  padding-bottom: 28px;
}

.canvas-paper {
  width: 100%;
  max-width: 540px;
  background: var(--paper);
  border-radius: 4px;
  padding: 36px 38px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05),
    0 12px 30px rgba(40, 30, 80, 0.10),
    0 32px 60px rgba(40, 30, 80, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
}

.canvas-paper::before {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  right: -2px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.04), transparent);
}

/* Each canvas block (Word-style block) */

.cv-block {
  position: relative;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.cv-block:hover {
  border-color: var(--line);
  background: rgba(80, 70, 229, 0.02);
}

.cv-block:hover .cv-handle {
  opacity: 0.5;
}

.cv-block-ai {
  border-color: rgba(80, 70, 229, 0.12);
  border-style: dashed;
}

.cv-block-locked {
  background: var(--bone-soft);
  border-style: solid;
  border-color: rgba(15, 15, 26, 0.06);
}

.cv-block.is-active {
  background: linear-gradient(180deg, var(--blood-soft) 0%, rgba(236, 234, 255, 0.4) 100%);
  border-color: var(--line-blood);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(80, 70, 229, 0.08);
}

.cv-handle {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 28px;
  background: var(--ink-5);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
}

.cv-block-ai .cv-handle { background: var(--blood); }

.cv-label {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-transform: uppercase;
}

.cv-label-ai {
  color: var(--blood);
  border-color: var(--line-blood);
  background: var(--blood-soft);
}

.cv-label-locked {
  color: var(--ink-4);
}

/* Block content styles — clean Word/document look */

.cv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: flex-start;
}

.cv-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-logo .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.cv-logo strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.cv-logo span {
  font-size: 10.5px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.cv-absender {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cv-absender span {
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.cv-kunde {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cv-kunde strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.cv-kunde span {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.cv-beleg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cv-beleg > div small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.cv-beleg > div strong {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.cv-anrede,
.cv-intro {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}

.cv-anrede {
  font-weight: 600;
  margin-bottom: 4px;
}

.cv-table {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.cv-tr {
  display: grid;
  grid-template-columns: 28px 1fr 50px 70px 80px;
  gap: 8px;
  padding: 7px 0;
  font-size: 11px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}

.cv-tr:last-child { border-bottom: 0; }

.cv-tr-head {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
}

.cv-tr span:nth-child(3),
.cv-tr span:nth-child(4),
.cv-tr span:nth-child(5) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cv-tr span:nth-child(5) {
  font-weight: 700;
}

.cv-summen {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  width: min(220px, 100%);
}

.cv-summen > div {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
}

.cv-summen strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cv-summen-final {
  margin-top: 4px;
  padding-top: 7px;
  border-top: 2px solid var(--ink);
  font-size: 13px;
  color: var(--ink);
  font-family: var(--font-display);
}

.cv-summen-final strong {
  font-size: 16px;
  background: linear-gradient(120deg, var(--blood) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.cv-skonto {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  padding: 8px 10px;
  background: var(--blood-soft);
  border-radius: 4px;
  border-left: 3px solid var(--blood);
}

.cv-skonto strong {
  color: var(--ink);
  font-weight: 700;
}

.cv-bank {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: baseline;
  font-size: 11px;
  color: var(--ink-2);
}

.cv-bank small {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cv-bank strong {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  grid-column: span 2;
  margin-bottom: 4px;
}

.cv-bank span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.cv-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qr-grid {
  width: 70px;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 1px;
  background: var(--paper);
  padding: 2px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.qr-grid span {
  background: var(--paper);
}

/* Pseudo-random QR pattern via :nth-child */
.qr-grid span:nth-child(2),
.qr-grid span:nth-child(4),
.qr-grid span:nth-child(7),
.qr-grid span:nth-child(8),
.qr-grid span:nth-child(11),
.qr-grid span:nth-child(13),
.qr-grid span:nth-child(15),
.qr-grid span:nth-child(17),
.qr-grid span:nth-child(20),
.qr-grid span:nth-child(22),
.qr-grid span:nth-child(24),
.qr-grid span:nth-child(26),
.qr-grid span:nth-child(28),
.qr-grid span:nth-child(31),
.qr-grid span:nth-child(33),
.qr-grid span:nth-child(36),
.qr-grid span:nth-child(38),
.qr-grid span:nth-child(40),
.qr-grid span:nth-child(43),
.qr-grid span:nth-child(45),
.qr-grid span:nth-child(47) { background: var(--ink); }

/* Position markers */
.qr-grid span:nth-child(1),
.qr-grid span:nth-child(7),
.qr-grid span:nth-child(43),
.qr-grid span:nth-child(49) {
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--paper);
}

.cv-qr small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-signatur {
  font-size: 11.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

.cv-signatur-name {
  font-weight: 700;
  margin-bottom: 6px;
}

.cv-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-4);
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

/* DOWNLOAD BAR */

.builder-download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 28px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(248, 247, 255, 0.6) 100%);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  margin: 0 -28px;
}

.bdb-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.bdb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px var(--good-soft);
  animation: statusPulse 2s ease-in-out infinite;
}

.bdb-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bdb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms var(--ease-out), transform 160ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.bdb-btn:hover {
  background: var(--bone-soft);
  border-color: var(--line-strong);
}

.bdb-btn:active { transform: scale(0.97); }

.bdb-btn svg {
  width: 13px;
  height: 13px;
  color: var(--blood);
}

.bdb-btn-primary {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.bdb-btn-primary:hover {
  background: var(--blood);
  border-color: var(--blood);
}

.bdb-btn-primary svg { color: var(--coral); }

.bdb-btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink-3);
}

.bdb-btn-ghost svg { color: var(--ink-4); }

.bdb-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 4px;
}

/* Inspector v2 stat-card */

.inspector-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin-top: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.inspector-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
}

.inspector-stat-row:last-child { border-bottom: 0; }

.inspector-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  font-weight: 600;
}

.inspector-stat-row strong {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

@media (max-width: 1180px) {
  .builder-layout-v2 {
    grid-template-columns: 1fr;
  }
  .builder-layout-v2 .builder-blocks,
  .builder-layout-v2 .builder-inspector {
    border: 0;
  }
  .builder-canvas-v2 {
    padding: 22px 18px 0;
  }
  .canvas-paper {
    padding: 24px 20px;
  }
  .builder-download-bar {
    padding: 14px 18px 22px;
    margin: 0 -18px;
  }
}

@media (max-width: 760px) {
  .builder-prompt-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bpb-btn { width: 100%; justify-content: center; }
  .cv-row { grid-template-columns: 1fr; }
  .cv-absender { text-align: left; }
  .cv-beleg { grid-template-columns: 1fr 1fr; }
  .cv-tr { grid-template-columns: 22px 1fr 64px; gap: 6px; }
  .cv-tr span:nth-child(3),
  .cv-tr span:nth-child(4) { display: none; }
  .bdb-actions { width: 100%; }
  .bdb-btn { flex: 1; justify-content: center; }
}

/* ============================================================
   VERSUS · BATTLE CARD
   ============================================================ */

.versus-section {
  padding-bottom: clamp(80px, 9vw, 140px);
}

.versus-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.vs-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line-2);
  transition: background 240ms var(--ease-out);
}

.vs-row:last-child {
  border-bottom: 0;
}

.vs-row:not(.vs-head):hover {
  background: var(--bone-soft);
}

.vs-feature {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  border-right: 1px solid var(--line-2);
}

.vs-feature strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.vs-feature span {
  font-size: 11.5px;
  color: var(--ink-4);
  font-weight: 500;
}

.vs-cell {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line-2);
  text-align: center;
}

.vs-cell:last-child { border-right: 0; }

.vs-cell span {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.vs-cell-finora {
  background: linear-gradient(180deg, var(--blood-soft) 0%, rgba(236, 234, 255, 0.5) 100%);
  position: relative;
}

.vs-cell-finora span {
  color: var(--blood);
  font-weight: 600;
}

/* Header row */

.vs-head {
  background: linear-gradient(180deg, var(--bone-soft) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.vs-head .vs-feature {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 600;
  padding: 18px 20px;
}

.vs-vendor {
  padding: 18px 14px;
  gap: 8px;
}

.vendor-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.vendor-mark-le { background: #ff7c2a; }
.vendor-mark-sd { background: #00b87c; }
.vendor-mark-fb { background: #ff4470; }
.vendor-mark-finora {
  background: linear-gradient(135deg, var(--blood) 0%, var(--coral) 100%);
  box-shadow: 0 4px 14px rgba(80, 70, 229, 0.32);
}

.vendor-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.vs-vendor-finora {
  background: linear-gradient(180deg, var(--blood) 0%, var(--blood-3) 100%);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  margin: -1px -1px 0;
  padding-top: 22px;
  padding-bottom: 22px;
  position: relative;
}

.vs-vendor-finora::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 4px;
  background: var(--coral);
  border-radius: 2px 2px 0 0;
}

.vs-vendor-finora .vendor-name { color: var(--bone); }

.vs-vendor-finora .vendor-mark-finora {
  background: var(--bone);
  color: var(--blood);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Marks (✓ / ✗ / ½) */

.vs-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: relative;
  flex: none;
}

.vs-yes {
  background: var(--blood);
  box-shadow: 0 0 0 3px var(--blood-soft);
}

.vs-yes::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg) translate(0, -1px);
  width: 9px;
  height: 4px;
  border-left: 2px solid var(--bone);
  border-bottom: 2px solid var(--bone);
}

.vs-half {
  background: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-soft);
}

.vs-half::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 2px;
  background: var(--bone);
  border-radius: 1px;
}

.vs-no {
  background: var(--ink-5);
  box-shadow: 0 0 0 3px rgba(180, 180, 192, 0.2);
}

.vs-no::after,
.vs-no::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 2px;
  background: var(--bone);
  border-radius: 1px;
  transform-origin: center;
}

.vs-no::after { transform: translate(-50%, -50%) rotate(45deg); }
.vs-no::before { transform: translate(-50%, -50%) rotate(-45deg); }

.vs-cell-finora .vs-yes {
  background: var(--blood);
  box-shadow: 0 0 0 3px var(--paper), 0 4px 12px rgba(80, 70, 229, 0.32);
}

/* Summary card below table */

.versus-summary {
  margin-top: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--ink) 0%, #1f1f3a 100%);
  border-radius: var(--r-2xl);
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.versus-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 240px at 0% 100%, rgba(80, 70, 229, 0.4), transparent 60%),
    radial-gradient(400px 200px at 100% 0%, rgba(255, 141, 107, 0.20), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.7;
}

.vs-summary-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--bone);
}

.vs-summary-line strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.vs-summary-line span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.vs-summary-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink-5);
}

.vs-summary-line-emph .vs-summary-num {
  background: linear-gradient(120deg, var(--blood-2) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.vs-summary-line-emph strong {
  color: var(--bone);
  font-size: 16px;
}

.vs-summary-quote p {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0;
}

.vs-summary-quote em {
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
  font-weight: 500;
}

.vs-summary-quote strong {
  color: var(--coral);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .vs-row {
    grid-template-columns: 1.3fr repeat(4, 1fr);
  }
  .vs-feature strong { font-size: 13px; }
  .vs-feature span { display: none; }
  .vs-cell span { font-size: 10px; }
  .versus-summary { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  .versus-table {
    overflow-x: auto;
  }
  .vs-row {
    min-width: 720px;
  }
  .vs-vendor-finora { border-radius: 0; }
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-section {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.faq-grid {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.faq-item.is-open {
  border-color: var(--line-blood);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color 240ms var(--ease-out);
}

.faq-q:hover { color: var(--blood); }

.faq-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bone-3);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 240ms var(--ease-out), transform 320ms var(--ease-spring);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink-3);
  border-radius: 1px;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item.is-open .faq-icon {
  background: var(--blood);
  transform: rotate(45deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: var(--bone);
}

.faq-a {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-out), padding 400ms var(--ease-out);
}

.faq-item.is-open .faq-a {
  padding: 0 28px 24px;
  max-height: 400px;
}

.faq-a p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
  max-width: 64ch;
}

.faq-a p strong { color: var(--ink); font-weight: 600; }
.faq-a p em { color: var(--blood); font-style: normal; font-weight: 700; }

/* ============================================================
   STICKY BOTTOM CTA
   ============================================================ */

.sticky-cta {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 16px;
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px rgba(0, 0, 0, 0.20),
    0 4px 12px rgba(0, 0, 0, 0.10);
  transition:
    transform 480ms var(--ease-out),
    opacity 320ms var(--ease-out),
    background 220ms var(--ease-out);
  opacity: 0;
  transform: translateY(140%) scale(0.92);
  pointer-events: none;
  text-decoration: none;
  cursor: pointer;
}

.sticky-cta:hover {
  background: var(--blood);
  transform: translateY(-2px);
}

.sticky-cta:active { transform: translateY(0) scale(0.97); }

.sticky-cta.is-shown {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
  position: relative;
  box-shadow: 0 0 0 0 rgba(255, 141, 107, 0.6);
  animation: stickyPulse 2.4s ease-in-out infinite;
}

@keyframes stickyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 141, 107, 0.6); }
  50% { box-shadow: 0 0 0 7px rgba(255, 141, 107, 0); }
}

.sticky-cta-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.sticky-cta-label strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: -0.01em;
  line-height: 1;
}

.sticky-cta-label small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.sticky-cta-arrow {
  width: 14px;
  height: 14px;
  color: var(--coral);
  flex: none;
  transition: transform 220ms var(--ease-out);
}

.sticky-cta:hover .sticky-cta-arrow { transform: translateX(3px); }

/* ============================================================
   SUPPORT AI QUICK HELP
   ============================================================ */

.support-ai-launch {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 82;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 16px 8px 10px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 255, 0.92)),
    radial-gradient(circle at 18% 10%, rgba(255, 141, 107, 0.18), transparent 46%);
  border: 1px solid rgba(80, 70, 229, 0.16);
  border-radius: var(--r-full);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 18px 44px rgba(30, 30, 60, 0.16),
    0 4px 12px rgba(80, 70, 229, 0.10);
  cursor: pointer;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition:
    transform 420ms var(--ease-out),
    opacity 280ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.support-ai-launch:hover,
.support-ai-launch:focus-visible {
  border-color: rgba(80, 70, 229, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 22px 54px rgba(30, 30, 60, 0.20),
    0 8px 22px rgba(80, 70, 229, 0.16);
  transform: translateY(-2px) scale(1.01);
}

.support-ai-launch:focus-visible {
  outline: 3px solid rgba(255, 141, 107, 0.42);
  outline-offset: 3px;
}

.support-ai-launch-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, #ffffff 0 12%, transparent 13%),
    linear-gradient(135deg, var(--blood), var(--coral));
  box-shadow: 0 10px 24px rgba(80, 70, 229, 0.28);
  flex: none;
  position: relative;
}

.support-ai-launch-orb::after {
  content: "";
  position: absolute;
  inset: 9px 8px 8px;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.86);
  border-top-color: transparent;
}

.support-ai-launch-copy {
  display: grid;
  gap: 0;
  text-align: left;
}

.support-ai-launch-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.support-ai-launch-copy small {
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-ai-panel {
  position: fixed;
  left: 22px;
  bottom: 84px;
  z-index: 95;
  width: min(390px, calc(100vw - 44px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 240ms var(--ease-out),
    transform 360ms var(--ease-out);
}

.support-ai-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.support-ai-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(80, 70, 229, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 255, 0.98)),
    radial-gradient(500px 280px at 20% -12%, rgba(255, 141, 107, 0.14), transparent 62%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 34px 80px rgba(30, 30, 60, 0.24);
}

.support-ai-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line-2);
}

.support-ai-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--blood);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-ai-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.support-ai-close {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: none;
  color: var(--ink-3);
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition:
    color 180ms var(--ease-out),
    background 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.support-ai-close:hover,
.support-ai-close:focus-visible {
  color: var(--ink);
  background: var(--blood-soft);
  transform: rotate(4deg);
}

.support-ai-close svg {
  width: 16px;
  height: 16px;
}

.support-ai-thread {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 18px 18px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 70, 229, 0.36) rgba(80, 70, 229, 0.08);
}

.support-ai-msg {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.55;
}

.support-ai-msg span {
  white-space: pre-wrap;
}

.support-ai-msg-user {
  justify-self: end;
  color: var(--bone);
  background: linear-gradient(135deg, var(--blood), var(--blood-2));
  border-bottom-right-radius: 7px;
}

.support-ai-msg-bot {
  justify-self: start;
  color: var(--ink-2);
  background: var(--bone-2);
  border: 1px solid var(--line-2);
  border-bottom-left-radius: 7px;
}

.support-ai-msg-loading span::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  animation: supportDots 1.1s steps(4, end) infinite;
}

@keyframes supportDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

.support-ai-questions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 18px 18px;
}

.support-ai-questions button {
  height: 34px;
  padding: 0 12px;
  color: var(--ink-2);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.support-ai-questions button:hover,
.support-ai-questions button:focus-visible {
  color: var(--blood);
  background: var(--blood-soft);
  border-color: rgba(80, 70, 229, 0.28);
  transform: translateY(-1px);
}

.support-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 18px 14px;
}

.support-ai-form input {
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(80, 70, 229, 0.16);
  border-radius: 15px;
  font: inherit;
  font-size: 13px;
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
  transition:
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.support-ai-form input:focus {
  border-color: rgba(80, 70, 229, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 0 0 4px rgba(80, 70, 229, 0.10);
}

.support-ai-form button {
  height: 42px;
  padding: 0 14px;
  color: var(--bone);
  background: linear-gradient(135deg, var(--blood), var(--blood-2));
  border: 0;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(80, 70, 229, 0.18);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.support-ai-form button:hover,
.support-ai-form button:focus-visible {
  transform: translateY(-1px);
}

.support-ai-form button:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.support-ai-status {
  min-height: 16px;
  margin: -6px 18px 12px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.35;
}

.support-ai-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 18px;
  background: rgba(248, 247, 255, 0.72);
  border-top: 1px solid var(--line-2);
}

.support-ai-footer span {
  color: var(--ink-4);
  font-size: 11.5px;
  line-height: 1.4;
}

.support-ai-footer a {
  flex: none;
  color: var(--blood);
  font-size: 12px;
  font-weight: 800;
}

.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;
}

@media (max-width: 760px) {
  .sticky-cta {
    bottom: 16px;
    right: 16px;
    padding: 8px 12px 8px 14px;
    gap: 8px;
  }
  .sticky-cta-label small { display: none; }
  .sticky-cta-label strong { font-size: 12.5px; }

  .support-ai-launch {
    left: 12px;
    bottom: 12px;
    min-height: 42px;
    padding: 7px 10px;
  }

  .support-ai-launch-orb {
    width: 28px;
    height: 28px;
  }

  .support-ai-launch-copy small {
    display: none;
  }

  .support-ai-panel {
    left: 12px;
    bottom: 66px;
    width: calc(100vw - 24px);
  }

  .support-ai-card {
    border-radius: 22px;
  }

  .support-ai-head {
    padding: 18px 18px 14px;
  }

  .support-ai-head h2 {
    font-size: 19px;
  }

  .support-ai-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================================
   MOBILE — final overrides (cascade last)
   ============================================================ */

@media (max-width: 760px) {
  /* Hide cursor spotlight + decorative elements that overflow */
  .cursor-spotlight { display: none !important; }

  /* Laptop on mobile — slim bezel, no shadow */
  .device-laptop { filter: none; transform: none; }
  .laptop-frame { padding: 8px 8px 6px; border-radius: 12px 12px 4px 4px; }
  .laptop-camera { display: none; }
  .laptop-base { margin: 0 -8px; height: 8px; }
  .laptop-base-notch { width: 60px; height: 4px; }
  .laptop-screen .app-window { border-radius: 4px; }

  /* Hero workspace inside laptop — collapse to single column */
  .hero-window-grid {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
  }
  .window-sidebar { display: none !important; }
  .window-main { padding: 12px !important; gap: 10px !important; }
  .window-overview {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .window-columns {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .pane-card { padding: 12px !important; }
  .pane-card.span-2 { grid-column: 1 / -1 !important; }
  .pane-head strong { font-size: 13.5px; }
  .pane-badge { font-size: 9.5px; padding: 3px 7px; }

  .metric-card { padding: 10px 12px; }
  .metric-card strong { font-size: 22px; }

  .task-list article {
    grid-template-columns: 22px 1fr !important;
    gap: 8px;
    padding: 8px;
  }
  .task-amount {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 12px;
  }
  .task-list article > div strong { font-size: 11.5px; }
  .task-list article > div span { font-size: 10px; }

  .mail-line span { width: 32px; font-size: 9px; }
  .mail-line strong {
    font-size: 10.5px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .mail-actions { flex-wrap: wrap; gap: 4px; }
  .mail-btn { font-size: 10.5px; padding: 0 8px; }

  /* Phone smaller */
  .device-phone { width: 200px; }
  .phone-screen { height: 400px; }

  /* Hero meta strip wraps cleanly */
  .hero-meta { gap: 8px 12px; }
  .meta-divider { display: none; }

  /* Float cards that look weird on mobile */
  .float-a, .float-b { display: none !important; }

  /* Story sections single column */
  .dashboard-grid,
  .invoice-layout,
  .offer-layout,
  .calendar-layout,
  .workers-layout,
  .finance-layout,
  .mail-layout,
  .board-layout,
  .match-layout,
  .builder-layout-v2,
  .folder-layout,
  .mbai-layout {
    grid-template-columns: 1fr !important;
  }

  /* Builder canvas — fit in viewport, no horizontal scroll */
  .builder-canvas-v2 { padding: 16px 12px 0; }
  .canvas-paper { padding: 18px 14px; max-width: 100%; }
  .builder-download-bar {
    padding: 12px 12px 18px;
    margin: 0 -12px;
    flex-direction: column;
    align-items: stretch;
  }
  .bdb-actions { width: 100%; flex-wrap: wrap; }
  .bdb-btn { flex: 1 1 calc(50% - 4px); justify-content: center; min-width: 0; }
  .bdb-divider { display: none; }
  .bdb-btn-ghost { flex-basis: 100%; }

  /* Workflow on mobile */
  .workflow-pipeline {
    flex-direction: column;
    padding: 16px;
  }
  .wf-arrow { transform: rotate(90deg); }

  /* Versus table — horizontal scroll containment */
  .versus-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .vs-row { min-width: 680px; }

  /* FAQ tighter on mobile */
  .faq-q { padding: 18px 18px; font-size: 15px; }
  .faq-item.is-open .faq-a { padding: 0 18px 20px; max-height: 600px; }

  /* Trust grid — 1 col on mobile */
  .trust-grid { grid-template-columns: 1fr !important; }

  /* Pricing — match featured card behavior */
  .pricing-card.is-featured { transform: translateY(0) !important; }
  .pricing-card.is-featured:hover { transform: translateY(-4px) !important; }

  /* CTA card padding */
  .cta-card { padding: 32px 22px; }
  .cta-meta { grid-template-columns: 1fr !important; gap: 12px; }

  /* Wall of trust — single column */
  .trust-wall-grid { grid-template-columns: 1fr !important; }
  .testimonial-card-large { grid-column: span 1 !important; }
  .author-highlight { display: none; }

  /* Scrub stage smaller */
  .scrub-section { height: auto !important; }
  .scrub-pin {
    position: relative !important;
    height: auto !important;
    padding: 60px 0;
  }
  .scrub-grid { grid-template-columns: 1fr !important; }
  .scrub-stage { height: 520px; }
  .scrub-photo { width: 80%; }
  .scrub-invoice { width: 100%; }

  /* Sticky CTA on tiny screens — kompakt bottom-right, nicht zentriert */
  .sticky-cta {
    right: 12px;
    bottom: 12px;
    left: auto;
    padding: 6px 8px 6px 14px;
    gap: 8px;
  }
  .sticky-cta-text strong { font-size: 12px; }
  .sticky-cta-text span { display: none; }
  .sticky-cta .site-btn { height: 36px; padding: 0 14px; font-size: 12px; }

  /* Numbers grid */
  .numbers-grid { grid-template-columns: 1fr !important; }
  .number-card-lg, .number-card-dark { grid-column: span 1 !important; }
  .number-display strong { font-size: 64px !important; white-space: normal; }
  .number-card-lg .number-display strong { font-size: 72px !important; }

  /* Manifest tighter */
  .manifest-line { grid-template-columns: 1fr; gap: 6px; }
  .manifest-line h2 { font-size: 28px; max-width: 100%; }

  /* Section paddings tighter */
  .section-shell { padding: 80px 0; }
}

@media (max-width: 760px) {
  /* Kicker-Row darf umbrechen */
  .kicker-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .kicker-rule { width: 40px; }
  .kicker { font-size: 10px; }

  /* Versus-Tabelle: kein min-width das die Page bricht */
  .vs-row { min-width: 540px; }
  .vs-feature span { display: none; }
  .vs-feature { padding: 12px 14px; }
  .vs-feature strong { font-size: 12px; }
  .vs-cell { padding: 12px 8px; }
  .vs-cell span { font-size: 9.5px; }
  .vendor-name { font-size: 11px; }

  /* Versus-Summary stacked */
  .versus-summary { padding: 22px 18px; }
  .vs-summary-num { font-size: 42px; }

  /* Footer single col */
  .footer-cols { grid-template-columns: 1fr !important; gap: 18px; }
  .footer-shell { gap: 28px !important; }

  /* Header brand-copy small text don't wrap weird */
  .brand-copy small { white-space: nowrap; font-size: 9px; }

  /* Pricing card padding */
  .pricing-card { padding: 24px; }
  .pricing-price strong { font-size: 56px; }

  /* Pilot card layout */
  .pilot-card-large { padding: 32px 22px; }

  /* Story paragraphs tighter */
  .story-copy h2 { font-size: 28px; }
  .story-points li { font-size: 13.5px; }
}

@media (max-width: 760px) {
  /* Laptop komplett weg auf Mobile — Phone reicht als Hero-Visual */
  .device-laptop { display: none !important; }
  .device-phone {
    width: min(280px, 90%);
    margin: 24px auto 0 !important;
  }
  .phone-screen { height: 540px; }
}

/* ============================================================
   STICKY CTA — ensure content never gets covered
   ============================================================ */

body[data-page="landing"].sticky-cta-active {
  scroll-padding-bottom: 100px;
}

body[data-page="landing"].sticky-cta-active .landing-main {
  padding-bottom: 90px;
}

@media (max-width: 760px) {
  body[data-page="landing"].sticky-cta-active .landing-main {
    padding-bottom: 80px;
  }
}

/* ============================================================
   HEADER LOGIN BUTTON
   ============================================================ */

.header-login {
  position: relative;
  padding-left: 14px;
  padding-right: 18px;
  gap: 8px;
}

.header-login-icon {
  width: 14px;
  height: 14px;
  color: var(--coral);
  transition: transform 240ms var(--ease-spring), color 220ms var(--ease-out);
  flex: none;
}

.header-login:hover .header-login-icon {
  transform: scale(1.08);
  color: var(--bone);
}

.header-login span {
  font-weight: 600;
  letter-spacing: 0.005em;
}

@media (max-width: 760px) {
  .header-login { padding: 0 14px; gap: 6px; }
  .header-login-icon { width: 13px; height: 13px; }
}

/* ============================================================
   CONTACT MODAL — fancy popup
   ============================================================ */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
}

.contact-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 24, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  cursor: pointer;
}

.contact-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--paper);
  border-radius: var(--r-2xl);
  box-shadow:
    0 30px 80px rgba(13, 13, 24, 0.32),
    0 8px 24px rgba(13, 13, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition:
    transform 480ms var(--ease-spring),
    opacity 280ms var(--ease-out);
  display: flex;
  flex-direction: column;
}

.contact-modal.is-open .contact-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contact-modal-glow {
  position: absolute;
  top: -40%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(80, 70, 229, 0.3), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  animation: modalGlow 8s ease-in-out infinite alternate;
}

.contact-modal-card::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 141, 107, 0.18), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
}

@keyframes modalGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 30px); }
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 13, 24, 0.06);
  border: 0;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 220ms var(--ease-out), transform 200ms var(--ease-out);
  z-index: 2;
}

.contact-modal-close:hover {
  background: rgba(13, 13, 24, 0.12);
  color: var(--ink);
  transform: rotate(90deg);
}

.contact-modal-close svg {
  width: 14px;
  height: 14px;
}

.contact-modal-head {
  padding: 36px 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.contact-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  background: var(--blood-soft);
  color: var(--blood);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

.contact-modal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 141, 107, 0.5);
  animation: stickyPulse 2.4s ease-in-out infinite;
}

#contact-modal-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
  margin: 0;
}

.contact-modal-head p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
}

.contact-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 32px 28px;
  overflow-y: auto;
}

.cm-status {
  min-height: 18px;
  margin: -2px 0 0;
  color: var(--blood);
  font-size: 12.5px;
  line-height: 1.45;
}

.cm-status[data-state="ok"] {
  color: var(--good);
}

.cm-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cm-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.cm-label small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  font-style: italic;
}

.cm-field input,
.cm-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bone-soft);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  resize: none;
  font-feature-settings: "ss01";
}

.cm-field input::placeholder,
.cm-field textarea::placeholder {
  color: var(--ink-5);
  opacity: 1;
}

.cm-field input:hover,
.cm-field textarea:hover {
  background: var(--bone-3);
}

.cm-field input:focus,
.cm-field textarea:focus {
  background: var(--paper);
  border-color: var(--blood);
  box-shadow: 0 0 0 4px rgba(80, 70, 229, 0.12);
}

.cm-field textarea {
  min-height: 80px;
  font-family: var(--font-body);
  line-height: 1.5;
}

.cm-foot {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cm-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.cm-trust svg {
  width: 14px;
  height: 14px;
  color: var(--good);
}

.cm-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--bone);
  border: 0;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition:
    background 240ms var(--ease-out),
    transform 160ms var(--ease-out),
    box-shadow 320ms var(--ease-out);
  box-shadow: 0 4px 14px rgba(13, 13, 24, 0.18);
}

.cm-submit:hover {
  background: var(--blood);
  box-shadow: 0 8px 24px rgba(80, 70, 229, 0.32);
}

.cm-submit:hover svg { transform: translateX(3px); }

.cm-submit:active { transform: scale(0.97); }

.cm-submit svg {
  width: 14px;
  height: 14px;
  color: var(--coral);
  transition: transform 220ms var(--ease-out);
}

/* Success state */

.contact-modal-success {
  position: absolute;
  inset: 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out);
}

.contact-modal.is-success .contact-modal-success {
  opacity: 1;
  pointer-events: auto;
}

.cm-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  animation: cmSuccessIn 700ms var(--ease-spring);
}

@keyframes cmSuccessIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cm-success-icon svg {
  width: 32px;
  height: 32px;
}

.contact-modal-success h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.contact-modal-success p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  max-width: 32ch;
  line-height: 1.55;
}

/* Locked body when modal open */

body.contact-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .contact-modal { padding: 12px; }
  .contact-modal-head { padding: 28px 22px 18px; }
  .contact-modal-form { padding: 0 22px 22px; }
  .contact-modal-close { top: 12px; right: 12px; }
  #contact-modal-title { font-size: 24px; }
  .cm-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .cm-submit { width: 100%; justify-content: center; }
  .cm-trust { justify-content: center; }
}

/* ============================================================
   LOGIN MODAL
   ============================================================ */

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
}

.login-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.login-modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--paper);
  border-radius: var(--r-2xl);
  box-shadow:
    0 30px 80px rgba(13, 13, 24, 0.32),
    0 8px 24px rgba(13, 13, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition:
    transform 480ms var(--ease-spring),
    opacity 280ms var(--ease-out);
  display: flex;
  flex-direction: column;
}

.login-modal.is-open .login-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.login-state {
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}

.login-state-reset,
.login-state-setup {
  display: none;
}

.login-modal.is-reset .login-state-default,
.login-modal.is-setup .login-state-default {
  display: none;
}

.login-modal.is-reset .login-state-reset,
.login-modal.is-setup .login-state-setup {
  display: flex;
}

.login-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blood-soft);
  color: var(--blood);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.login-mark svg { width: 24px; height: 24px; }

.login-mark-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

#login-modal-title,
.login-state-reset .login-head h3,
.login-state-setup .login-head h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}

.login-head p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-pw-wrap {
  position: relative;
}

.login-pw-wrap input {
  padding-right: 44px;
  letter-spacing: 0.05em;
}

.login-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}

.login-pw-toggle:hover {
  background: var(--bone-3);
  color: var(--ink);
}

.login-pw-toggle.is-on { color: var(--blood); }

.login-pw-toggle svg { width: 16px; height: 16px; }

.login-forgot-link {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blood);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 200ms var(--ease-out);
}

.login-forgot-link:hover {
  color: var(--blood-3);
  text-decoration: underline;
}

.login-foot {
  margin-top: -4px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.login-foot-link {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--blood);
  cursor: pointer;
  transition: color 200ms var(--ease-out);
}

.login-foot-link:hover { color: var(--blood-3); }

.login-setup-secret {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(80, 70, 229, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 70, 229, 0.12), transparent 36%),
    var(--bone-soft);
}

.login-setup-secret span,
.login-password-rules {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.login-setup-secret code {
  display: block;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: normal;
  word-break: break-word;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.login-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.login-check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--blood);
}

.login-password-rules {
  margin: -2px 0 0;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0.03em;
}

/* RESET STATE */

.login-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px 6px 8px;
  background: var(--bone-3);
  border: 0;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
  margin-bottom: -10px;
}

.login-back:hover {
  background: var(--ink);
  color: var(--bone);
}

.login-back svg { width: 13px; height: 13px; }

.login-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}

.login-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

.login-steps li > div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.login-steps li > div span {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

.login-reset-note {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  background: var(--warn-soft);
  border: 1px solid rgba(240, 160, 64, 0.24);
  border-radius: var(--r-md);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.login-reset-note svg {
  width: 16px;
  height: 16px;
  color: var(--warn);
  margin-top: 1px;
}

.login-reset-note strong { color: var(--ink); font-weight: 700; }
.login-reset-note em {
  color: var(--blood);
  font-style: normal;
  font-weight: 700;
}

.login-reset-actions { display: flex; }

.cm-submit-secondary {
  width: 100%;
  background: var(--blood);
  text-decoration: none;
  justify-content: center;
}

.cm-submit-secondary:hover { background: var(--blood-3); }

.cm-submit-secondary svg { color: var(--coral); }

/* Finora readiness branding */
:root {
  --finora-mark-url: url("assets/finora-logo-mark.png");
  --blood: #41d816;
  --blood-2: #62ff13;
  --blood-3: #21a30d;
  --blood-soft: rgba(98, 255, 19, 0.13);
  --blood-soft-2: rgba(98, 255, 19, 0.21);
  --line-accent: rgba(65, 216, 22, 0.22);
  --line-blood: rgba(65, 216, 22, 0.22);
  --shadow-blood: 0 18px 40px rgba(65, 216, 22, 0.22);
}

.brand-mark,
.phone-mark,
.sidebar-mark,
.login-mark {
  background: transparent var(--finora-mark-url) center / contain no-repeat !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: visible !important;
  text-indent: 0 !important;
}

.brand-mark img,
.phone-mark img,
.sidebar-mark img,
.login-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark svg,
.phone-mark svg,
.sidebar-mark svg,
.login-mark svg,
.brand-mark::after,
.phone-mark::after,
.sidebar-mark::after,
.login-mark::after {
  display: none !important;
}

@media (max-width: 760px) {
  .login-state { padding: 28px 22px 22px; }
  .login-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}
