/* homdu landing — design tokens + base */

:root {
  /* light theme defaults */
  --bg:        #FBFAF7;
  --bg-soft:   #F4F1EA;
  --bg-panel:  #FFFFFF;
  --bg-elev:   #FFFFFF;
  --ink:       #15171C;
  --ink-2:     #5A5E68;
  --ink-3:     #8B8F98;
  --line:      rgba(20, 22, 28, 0.08);
  --line-2:    rgba(20, 22, 28, 0.14);
  --shadow-sm: 0 1px 2px rgba(20,22,28,0.05), 0 1px 0 rgba(20,22,28,0.03);
  --shadow-md: 0 4px 14px rgba(20,22,28,0.06), 0 1px 0 rgba(20,22,28,0.03);
  --shadow-lg: 0 32px 80px -28px rgba(20,22,28,0.22), 0 12px 28px -12px rgba(20,22,28,0.12);
  --shadow-phone: 0 60px 120px -40px rgba(20,22,28,0.35), 0 24px 50px -20px rgba(20,22,28,0.18);

  --glass-bg:     rgba(255, 255, 255, 0.62);
  --glass-bg-2:   rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-tint:   rgba(20, 22, 28, 0.02);

  /* homdu signature — deep blue */
  --hdu:        #2E6FD4;
  --hdu-dark:   #1A5FA0;
  --hdu-grad:   linear-gradient(180deg, #3A7FE5 0%, #1A5FA0 100%);
  --hdu-glow:   radial-gradient(60% 60% at 50% 40%, rgba(46, 111, 212, 0.35) 0%, rgba(46, 111, 212, 0) 70%);

  /* 8 stage gradients */
  --stg-blue:        linear-gradient(160deg, #3A7FE5 0%, #1A5FA0 100%);
  --stg-green:       linear-gradient(160deg, #2BA476 0%, #155F8F 100%);
  --stg-terracotta:  linear-gradient(160deg, #D8703E 0%, #9C2222 100%);
  --stg-purple:      linear-gradient(160deg, #8246D6 0%, #4D1E93 100%);
  --stg-amber:       linear-gradient(160deg, #EAA721 0%, #AD6604 100%);
  --stg-teal:        linear-gradient(160deg, #18A0B5 0%, #0A5066 100%);
  --stg-slate:       linear-gradient(160deg, #5A607F 0%, #292D47 100%);
  --stg-rose:        linear-gradient(160deg, #E04C7F 0%, #991E4D 100%);

  --status-progress: #2E6FD4;
  --status-planned:  #E0901C;
  --status-done:     #1E9D63;
  --status-paused:   #8B8F98;
  --status-alert:    #D44A2F;

  --r-sm: 8px;
  --r:    12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --nav-h: 64px;

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg:        #0B0C10;
  --bg-soft:   #131419;
  --bg-panel:  #15171C;
  --bg-elev:   #1B1E24;
  --ink:       #F2EFE8;
  --ink-2:     #A5AAB4;
  --ink-3:     #6C7280;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-lg: 0 40px 100px -30px rgba(0,0,0,0.7), 0 12px 30px -10px rgba(0,0,0,0.5);
  --shadow-phone: 0 80px 160px -50px rgba(0,0,0,0.9), 0 30px 60px -20px rgba(0,0,0,0.6);

  --glass-bg:     rgba(28, 30, 38, 0.55);
  --glass-bg-2:   rgba(36, 39, 48, 0.65);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-tint:   rgba(255, 255, 255, 0.02);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

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

/* ── RWD safety net ────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
img, video, iframe, svg { max-width: 100%; }
img, video { height: auto; }

::selection { background: var(--hdu); color: white; }

/* ── shared layout ─────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section--tight { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
}

/* ── typography ─────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  padding: 6px 12px;
  background: var(--glass-bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--hdu);
  box-shadow: 0 0 0 3px rgba(46, 111, 212, 0.18);
}

.h-display {
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.h-card {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}

.sub {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  text-wrap: pretty;
  margin: 0;
}

.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

.mono { font-family: var(--font-mono); font-feature-settings: "ss03"; }

/* ── glass utilities ─────────────────────────────────────────── */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.glass-strong {
  background: var(--glass-bg-2);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* ── buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 24px -8px rgba(20,22,28,0.4);
}
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 14px 36px -10px rgba(20,22,28,0.5); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { background: var(--glass-bg-2); }

.btn--brand {
  background: var(--hdu-grad);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 8px 24px -8px rgba(46, 111, 212, 0.55);
}
.btn--brand:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.28) inset,
    0 14px 36px -10px rgba(46, 111, 212, 0.7);
}

.btn--brand-outline {
  background: transparent;
  color: var(--hdu);
  border: 1.5px solid var(--hdu);
}
.btn--brand-outline:hover {
  background: rgba(46, 111, 212, 0.08);
  border-color: var(--hdu-dark);
  color: var(--hdu-dark);
}

.btn--glass {
  background: var(--glass-bg-2);
  color: var(--ink);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.btn--lg {
  padding: 18px 28px;
  font-size: 16px;
}

/* App Store badge */
.appstore-badge { display: inline-block; line-height: 0; transition: transform 0.2s; vertical-align: middle; }
.appstore-badge:hover { transform: translateY(-1px); }
.appstore-badge img { display: block; height: var(--asb-h, 52px); width: auto; max-width: 100%; }
.appstore-badge--dark img { filter: invert(1); }
[data-theme="dark"] .appstore-badge:not(.appstore-badge--dark) img { filter: invert(1); }
[data-theme="dark"] .appstore-badge--dark img { filter: none; }
.appstore-badge img { display: block; height: 52px; }
[data-theme="dark"] .appstore-badge img { filter: invert(1); }

/* ── reveal animation ─────────────────────────────────────────── */

/* ── reveal: just a no-op alias. Some preview iframes have a frozen document
   timeline that traps CSS animations at their "from" state forever, so we keep
   content unconditionally visible and rely on inherent layout polish instead
   of timed entrance animations. */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── nav ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 1180px;
  height: var(--nav-h);
  padding: 0 12px 0 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--glass-bg-2);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  transition: top 0.3s, transform 0.3s;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0088FF;
  text-decoration: none;
}
.nav__logo img { display: block; }
.nav__logo__mark {
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(20,22,28,0.12), 0 2px 6px -2px rgba(20,22,28,0.15);
  flex-shrink: 0;
}
.nav__logo__wm { width: auto; }
@media (max-width: 480px) {
  .nav__logo { gap: 8px; }
}

.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--ink); background: var(--glass-tint); }

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

/* ── mobile hamburger button ───────────────────────────── */
.nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s;
}
.nav__hamburger:hover { background: var(--glass-tint); }
.nav__hamburger__icon {
  position: relative;
  width: 18px;
  height: 14px;
  display: block;
}
.nav__hamburger__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav__hamburger__icon span:nth-child(1) { top: 0; }
.nav__hamburger__icon span:nth-child(2) { top: 6px; }
.nav__hamburger__icon span:nth-child(3) { top: 12px; }
.nav__hamburger__icon.is-open span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav__hamburger__icon.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger__icon.is-open span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ── mobile sheet ──────────────────────────────────────── */
.nav__sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}
.nav__sheet.is-open { pointer-events: auto; visibility: visible; }
.nav__sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 22, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav__sheet.is-open .nav__sheet__scrim { opacity: 1; }
.nav__sheet__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 20px 24px;
  box-shadow: -20px 0 60px -20px rgba(15,17,22,0.35);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
  overscroll-behavior: contain;
}
.nav__sheet.is-open .nav__sheet__panel { transform: translateX(0); }
.nav__sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.nav__sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}
.nav__sheet__close:hover { background: var(--glass-tint); }
.nav__sheet__close svg { width: 16px; height: 16px; }
.nav__sheet__links {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  overflow-y: auto;
}
.nav__sheet__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 14px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-radius: 12px;
  transition: background 0.2s;
  min-height: 56px;
}
.nav__sheet__links a:hover,
.nav__sheet__links a:focus-visible { background: var(--glass-tint); outline: none; }
.nav__sheet__links a svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.nav__sheet__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.nav__sheet__foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.nav__sheet__foot__row a { color: var(--ink-2); }
.nav__sheet__foot__row a:hover { color: var(--ink); }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__hamburger { display: inline-flex; }
  /* on tight phones, hide redundant inline Pobierz — it's in the sheet */
  .nav__download { display: none; }
}
@media (max-width: 560px) {
  .nav { width: calc(100% - 20px); padding: 0 8px 0 16px; gap: 8px; }
}

/* ── logo mark ─────────────────────────────────────────── */

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--hdu-grad);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 4px 10px -2px rgba(46, 111, 212, 0.5);
}

.logo-mark svg { width: 16px; height: 16px; color: white; }

.logo-mark--lg { width: 44px; height: 44px; border-radius: 12px; }
.logo-mark--lg svg { width: 24px; height: 24px; }

/* ── theme toggle (in nav) ─────────────────────────────────────────── */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--ink); background: var(--glass-tint); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ── iphone frame ─────────────────────────────────────────── */

.iphone {
  --w: 320px;
  --h: 660px;
  width: var(--w);
  height: var(--h);
  border-radius: 50px;
  background: linear-gradient(180deg, #1f2026 0%, #0d0e12 100%);
  padding: 11px;
  position: relative;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.06),
    0 0 0 6px #1a1b22,
    0 0 0 7.5px rgba(0,0,0,0.5),
    var(--shadow-phone);
  isolation: isolate;
}

.iphone__screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  /* light fill so the <image-slot> placeholder caption is readable until a real screenshot is dropped in */
  background: #F4F1EA;
  position: relative;
}

.iphone__island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  border-radius: 999px;
  background: #000;
  z-index: 3;
  pointer-events: none;
}

.iphone__statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 0;
  font-size: 14px;
  font-weight: 600;
  color: white;
  z-index: 2;
  pointer-events: none;
}

.iphone__statusbar .icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* full-bleed image slot mode */
.iphone--bleed image-slot,
.iphone--bleed .iphone__bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
}

/* sizes */
.iphone--sm { --w: 240px; --h: 500px; padding: 9px; border-radius: 40px; }
.iphone--sm .iphone__screen { border-radius: 32px; }
.iphone--sm .iphone__bleed { border-radius: 32px; }
.iphone--sm .iphone__island { width: 76px; height: 24px; top: 9px; }
.iphone--sm .iphone__statusbar { height: 40px; padding: 12px 20px 0; font-size: 11px; }

.iphone--lg { --w: 360px; --h: 740px; }

/* ── image-slot styling within phones ─────────────────────────────────────────── */

image-slot {
  --slot-bg: linear-gradient(160deg, #1a1c24 0%, #0f1015 100%);
}

.iphone image-slot {
  width: 100%;
  height: 100%;
}

/* ── KPI pill row (used in hero, etc.) ─────────────────────────────────────────── */

.kpi-row {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--glass-bg-2);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.kpi-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  min-width: 80px;
}

.kpi-pill .v {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi-pill .l {
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── feature cards ─────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: white;
  margin-bottom: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 20px -8px rgba(0,0,0,0.3);
}
.feature-card__icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.feature-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.feature-card__orb {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  top: -80px; right: -60px;
  z-index: -1;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s;
}
.feature-card:hover .feature-card__orb {
  transform: scale(1.15) translate(-10px, 10px);
  opacity: 0.45;
}

/* ── KPI counter (animated) ─────────────────────────────────────────── */

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__v {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--hdu-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__l {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}

/* ── footer ─────────────────────────────────────────── */

.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* cross-funnel band (B2C ↔ B2B) */
.footer__cross {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  margin-bottom: 56px;
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hdu) 8%, var(--bg-panel)) 0%, var(--bg-panel) 100%);
  border: 1px solid color-mix(in srgb, var(--hdu) 22%, var(--line));
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.footer__cross:hover {
  border-color: color-mix(in srgb, var(--hdu) 40%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.footer__cross__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--hdu-grad);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset;
}
.footer__cross__lead {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer__cross__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hdu);
}
.footer__cross:hover .footer__cross__cta { gap: 12px; }
@media (max-width: 620px) {
  .footer__cross { flex-wrap: wrap; gap: 14px; padding: 20px; }
  .footer__cross__cta { margin-left: 0; width: 100%; }
}

.footer h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer a:hover { color: var(--ink); }

.footer__btm {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ── checklist (used in feature sections) ─────────────────────────────────────────── */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.checklist li .ck {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--hdu-grad);
  color: white;
  margin-top: 1px;
  box-shadow: 0 4px 10px -4px rgba(46, 111, 212, 0.5);
}
.checklist li .ck svg { width: 12px; height: 12px; }
.checklist li b { font-weight: 600; }

/* ── stage gradient swatch ─────────────────────────────────────────── */

.stage-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 20px;
  color: white;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.stage-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, var(--shadow-lg); }
.stage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 80% 0%, rgba(255,255,255,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.stage-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  z-index: 1;
}
.stage-card .meta {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.stage-card .pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── parallax / scroll-driven ─────────────────────────────────────────── */

.scroll-rise {
  will-change: transform;
}

/* ── floating chips (used near hero phone) ─────────────────────────────────────────── */

.float-chip {
  position: absolute;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--glass-bg-2);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  z-index: 4;
  animation: float-y 6s ease-in-out infinite;
}

.float-chip__icon {
  width: 30px; height: 30px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
}
.float-chip__icon svg { width: 16px; height: 16px; }

.float-chip .sub-line {
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 500;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── donut visual (cost section accent) ─────────────────────────────────────────── */

.donut {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    #3A7FE5 0% 28%,
    #2BA476 28% 47%,
    #D8703E 47% 64%,
    #8246D6 64% 78%,
    #EAA721 78% 88%,
    rgba(20,22,28,0.08) 88% 100%
  );
  display: grid;
  place-items: center;
}
.donut::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--bg-panel);
}
.donut__center {
  position: relative;
  text-align: center;
}
.donut__center .v {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: block;
}
.donut__center .l {
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── tweaks panel anchor ─────────────────────────────────────────── */
/* the tweaks panel from starter handles its own positioning */

/* ── Chaos section: asymmetric "before / after" comparison ───────── */
.chaos-grid {
  display: grid;
  grid-template-columns: 1.18fr auto 1fr;  /* ~54% / arrow / ~46% */
  gap: 28px;
  align-items: stretch;
}

/* prevent nowrap labels from busting the grid track */
.chaos-grid > * { min-width: 0; }

.chaos-card {
  position: relative;
  border-radius: 24px;
  padding: 36px 32px 30px;
  min-height: 460px;
  overflow: hidden;
  height: 100%;
}

.chaos-card--bad {
  background: linear-gradient(180deg,
    color-mix(in srgb, #F5F1EA 92%, var(--bg-panel)) 0%,
    var(--bg-panel) 100%);
  border: 1.5px dashed color-mix(in srgb, var(--status-alert) 22%, var(--line-2));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 22px 48px -28px rgba(212,74,47,0.28);
}

.chaos-card--ok {
  background: linear-gradient(180deg, #F8FAFF 0%, var(--bg-panel) 100%);
  border: 1px solid #E0E9FF;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 22px 48px -28px rgba(46,111,212,0.30);
}

[data-theme="dark"] .chaos-card--bad {
  background: linear-gradient(180deg,
    color-mix(in srgb, #2a221a 65%, var(--bg-panel)) 0%,
    var(--bg-panel) 100%);
  border-color: color-mix(in srgb, var(--status-alert) 30%, var(--line-2));
}
[data-theme="dark"] .chaos-card--ok {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--hdu) 8%, var(--bg-panel)) 0%,
    var(--bg-panel) 100%);
  border-color: color-mix(in srgb, var(--hdu) 28%, var(--line-2));
}

.chaos-card__noise {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(212,74,47,0.08) 0px,
    rgba(212,74,47,0.08) 2px,
    transparent 2px,
    transparent 11px
  );
  pointer-events: none;
}

.chaos-card__wash {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 100% 0%, rgba(46,111,212,0.14) 0%, transparent 65%);
  pointer-events: none;
}

.chaos-card__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 12px;
}

.chaos-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chaos-card__badge--bad { background: rgba(212,74,47,0.10); color: var(--status-alert); }
.chaos-card__badge--ok  { background: rgba(30,157,99,0.12);  color: var(--status-done);  }

.chaos-card__metric { font-size: 12px; }
.chaos-card__metric--bad { color: var(--ink-3); }
.chaos-card__metric--ok  { color: var(--ink-2); font-weight: 500; }

.chaos-tiles {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chaos-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms;
  will-change: transform;
  min-width: 0;
}

.chaos-tile--bad {
  background: var(--bg-soft);
  transform: rotate(var(--rot, 0deg));
}
.chaos-tile--bad:hover {
  transform: rotate(0deg) translateY(-1px);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.chaos-tile--ok {
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
}
.chaos-tile--ok:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chaos-tile__icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chaos-tile__icon--bad {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.chaos-tile__icon--ok {
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset;
}

.chaos-tile__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chaos-tile__meta {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chaos-tile__meta--bad { color: var(--ink-3); }
.chaos-tile__meta--ok  { color: var(--ink-2); }

.chaos-card__foot {
  position: relative;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ── arrow with pulse ── */
.chaos-arrow {
  display: grid;
  place-items: center;
  padding: 0 6px;
}

.chaos-arrow__pill {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--hdu-grad);
  display: grid;
  place-items: center;
  color: white;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 12px 28px -10px rgba(46,111,212,0.5);
  animation: chaosPulse 2s ease-in-out infinite;
}

@keyframes chaosPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 28px -10px rgba(46,111,212,0.5); }
  50%      { transform: scale(1.05); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 16px 36px -10px rgba(46,111,212,0.65); }
}

@media (prefers-reduced-motion: reduce) {
  .chaos-arrow__pill { animation: none; }
}

/* ── mobile: stack, chaos on top, arrow rotates ── */
@media (max-width: 880px) {
  .chaos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .chaos-arrow {
    padding: 4px 0;
    transform: rotate(90deg);
  }
  .chaos-card {
    padding: 28px 22px 24px;
    min-height: 0;
  }
}

/* ── narrow phones: 1 column of tiles, let long emotional copy wrap ── */
@media (max-width: 600px) {
  .chaos-tiles {
    grid-template-columns: 1fr;
  }
  .chaos-tile__label,
  .chaos-tile__meta {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* Hero B2B secondary CTA */
.hero-b2b-cta svg { transition: transform 0.2s ease; }
.hero-b2b-cta:hover svg { transform: translateX(3px); }
