/* Public marketing homepage for DukaPro.
   Extends the shared tokens in styles.css with a landing-page-only scale. */

@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700;800&display=swap");

.home-body {
  /* Ink + surfaces */
  --h-ink: #0B1220;
  --h-ink-2: #33415C;
  --h-muted: #64748B;
  --h-line: rgba(16, 24, 40, 0.09);
  --h-line-soft: rgba(16, 24, 40, 0.05);
  --h-surface: #FFFFFF;
  --h-canvas: #F7F9FC;

  /* Brand depth */
  --h-navy-950: #061225;
  --h-navy-900: #0A1C36;
  --h-navy-800: #0F2748;
  --h-navy-700: var(--color-brand-navy);
  --h-green: var(--color-brand-forest-green);
  --h-green-bright: #1F9E56;
  --h-mint: #5FE3A1;
  --h-teal: #38C6E8;

  /* On-dark */
  --h-on-dark: rgba(255, 255, 255, 0.94);
  --h-on-dark-2: rgba(255, 255, 255, 0.66);
  --h-on-dark-3: rgba(255, 255, 255, 0.42);
  --h-on-dark-line: rgba(255, 255, 255, 0.13);

  /* Elevation — layered, soft */
  --h-shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 2px 6px rgba(11, 18, 32, 0.04);
  --h-shadow-md: 0 2px 4px rgba(11, 18, 32, 0.05), 0 8px 20px rgba(11, 18, 32, 0.07);
  --h-shadow-lg: 0 4px 8px rgba(11, 18, 32, 0.05), 0 18px 44px rgba(11, 18, 32, 0.11);
  --h-shadow-xl: 0 8px 16px rgba(11, 18, 32, 0.06), 0 32px 80px rgba(11, 18, 32, 0.20);

  --h-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --h-max: 1180px;
  --h-gutter: 24px;
  --h-section: 112px;

  margin: 0;
  background: var(--h-surface);
  color: var(--h-ink-2);
  font-size: 15px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

.home-body ::selection {
  background: rgba(31, 158, 86, 0.22);
  color: var(--h-ink);
}

.home-body :focus-visible {
  outline: 2px solid var(--h-green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.home-body h1,
.home-body h2,
.home-body h3 {
  font-family: var(--h-display);
  color: var(--h-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-container {
  width: 100%;
  max-width: var(--h-max);
  margin: 0 auto;
  padding: 0 var(--h-gutter);
}

.home-icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ============ Reveal choreography ============ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-body *,
  .home-body *::before,
  .home-body *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ Header ============ */

.home-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.home-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.home-header.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--h-line);
  box-shadow: 0 1px 24px rgba(11, 18, 32, 0.05);
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

/* The DukaPro mark, matching the dashboard sidebar: a hard-split diagonal
   gradient behind a white "D" (see .brand-mark in styles.css). */
.home-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F6A23B 0 48%, #4FA9AA 48% 100%);
  color: #FFFFFF;
  font-family: var(--h-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.home-header.is-stuck .home-brand-mark {
  box-shadow: 0 7px 16px rgba(23, 112, 94, 0.18);
}

.home-brand-copy {
  display: grid;
  gap: 1px;
}

.home-brand-copy strong {
  font-family: var(--h-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 23px;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  transition: color 0.35s ease;
}

/* "Pro" carries the teal accent, as it does in the app. */
.home-brand-copy strong span {
  color: #8BD9D2;
  transition: color 0.35s ease;
}

.home-brand-tagline {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: 0.01em;
  color: rgba(226, 239, 236, 0.58);
  transition: color 0.35s ease;
}

.home-header.is-stuck .home-brand-copy strong {
  color: #17211F;
}

.home-header.is-stuck .home-brand-copy strong span {
  color: #278F81;
}

.home-header.is-stuck .home-brand-tagline {
  color: #8A949F;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--h-on-dark-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.home-nav a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.home-header.is-stuck .home-nav a {
  color: var(--h-ink-2);
}

.home-header.is-stuck .home-nav a:hover {
  color: var(--h-ink);
  background: rgba(11, 18, 32, 0.045);
}

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

.home-link-quiet {
  padding: 8px 12px;
  color: var(--h-on-dark-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-link-quiet:hover {
  color: #FFFFFF;
}

.home-header.is-stuck .home-link-quiet {
  color: var(--h-ink-2);
}

.home-header.is-stuck .home-link-quiet:hover {
  color: var(--h-ink);
}

/* ============ Buttons ============ */

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--h-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease,
    background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.home-btn:active {
  transform: translateY(1px);
}

.home-btn .home-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-btn:hover .home-icon {
  transform: translateX(3px);
}

.home-btn-primary {
  background: linear-gradient(180deg, var(--h-green-bright), var(--h-green));
  color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 6px 18px rgba(19, 104, 57, 0.3);
}

.home-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 10px 26px rgba(19, 104, 57, 0.38);
}

.home-btn-glass {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.home-header.is-stuck .home-btn-glass {
  background: var(--h-surface);
  border-color: rgba(16, 24, 40, 0.14);
  color: var(--h-ink);
  box-shadow: var(--h-shadow-sm);
}

.home-header.is-stuck .home-btn-glass:hover {
  border-color: rgba(16, 24, 40, 0.26);
  background: var(--h-surface);
}

.home-btn-outline {
  background: var(--h-surface);
  border-color: rgba(16, 24, 40, 0.14);
  color: var(--h-ink);
  box-shadow: var(--h-shadow-sm);
}

.home-btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 24, 40, 0.26);
  box-shadow: var(--h-shadow-md);
}

.home-btn-light {
  background: #FFFFFF;
  color: var(--h-navy-900);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.home-btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.home-btn-lg {
  padding: 13px 24px;
  font-size: 15.5px;
  border-radius: 11px;
}

/* ============ Section furniture ============ */

.home-section {
  padding: var(--h-section) 0;
}

.home-section-tint {
  background: var(--h-canvas);
  border-block: 1px solid var(--h-line-soft);
}

.home-section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.home-section-head h2 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -0.03em;
}

.home-section-head p {
  margin: 0;
  color: var(--h-muted);
  font-size: 17px;
  line-height: 28px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 6px 13px 6px 9px;
  border: 1px solid rgba(19, 104, 57, 0.18);
  border-radius: 999px;
  background: rgba(31, 158, 86, 0.07);
  color: var(--h-green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-eyebrow .home-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.home-eyebrow-dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: var(--h-mint);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============ Hero ============ */

.home-hero {
  position: relative;
  padding: 168px 0 128px;
  overflow: hidden;
  background: var(--h-navy-950);
  isolation: isolate;
}

.home-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(920px 560px at 8% -6%, rgba(31, 158, 86, 0.30), transparent 62%),
    radial-gradient(880px 520px at 88% 4%, rgba(28, 52, 89, 0.85), transparent 64%),
    radial-gradient(700px 460px at 62% 96%, rgba(56, 198, 232, 0.15), transparent 66%),
    linear-gradient(168deg, var(--h-navy-900), var(--h-navy-950) 62%);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.5%, 1%, 0);
  }
}

.home-hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(900px 620px at 30% 25%, #000 5%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 620px at 30% 25%, #000 5%, transparent 78%);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: 64px;
}

.home-hero h1 {
  margin: 0 0 22px;
  color: #FFFFFF;
  font-size: 62px;
  font-weight: 700;
  line-height: 66px;
  letter-spacing: -0.038em;
}

.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--h-mint) 6%, var(--h-teal) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero-lead {
  max-width: 520px;
  margin: 0 0 34px;
  color: var(--h-on-dark-2);
  font-size: 17.5px;
  font-weight: 400;
  line-height: 30px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.home-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--h-on-dark-3);
  font-size: 13.5px;
  line-height: 20px;
}

.home-hero-note .home-icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--h-mint);
}

.home-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--h-on-dark-line);
}

.home-hero-proof div strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--h-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.home-hero-proof .home-icon {
  width: 17px;
  height: 17px;
  color: var(--h-mint);
}

.home-hero-proof div span {
  display: block;
  margin-top: 3px;
  color: var(--h-on-dark-3);
  font-size: 13px;
  line-height: 20px;
}

/* ============ Hero product mock ============ */

.home-mock-wrap {
  position: relative;
  perspective: 1600px;
}

.home-mock {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: var(--h-canvas);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(3deg) translateZ(0);
  transform-origin: left center;
  animation: mockSettle 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes mockSettle {
  from {
    opacity: 0;
    transform: rotateY(-13deg) rotateX(6deg) translateY(28px);
  }
  to {
    opacity: 1;
    transform: rotateY(-7deg) rotateX(3deg) translateY(0);
  }
}

.home-mock-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #12294A, #0E2140);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.home-mock-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.home-mock-chrome i:first-child {
  background: #FF5F57;
}

.home-mock-chrome i:nth-child(2) {
  background: #FEBC2E;
}

.home-mock-chrome i:nth-child(3) {
  background: #28C840;
}

.home-mock-tab {
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
  font-weight: 600;
}

.home-mock-live {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-mock-live em {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h-mint);
  box-shadow: 0 0 0 0 rgba(95, 227, 161, 0.65);
  animation: livePulse 2.2s ease-out infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 227, 161, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(95, 227, 161, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(95, 227, 161, 0);
  }
}

.home-mock-body {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
}

.home-mock-rail {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 0;
  background: #FFFFFF;
  border-right: 1px solid var(--h-line-soft);
  justify-items: center;
}

.home-mock-rail span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #94A3B8;
  background: transparent;
}

.home-mock-rail span.is-active {
  background: rgba(31, 158, 86, 0.1);
  color: var(--h-green);
}

.home-mock-rail .home-icon {
  width: 17px;
  height: 17px;
}

.home-mock-main {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.home-mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-mock-kpi {
  padding: 12px;
  border: 1px solid var(--h-line-soft);
  border-radius: 11px;
  background: #FFFFFF;
  box-shadow: var(--h-shadow-sm);
}

.home-mock-kpi span {
  display: block;
  color: var(--h-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-mock-kpi strong {
  display: block;
  margin-top: 5px;
  font-family: var(--h-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.025em;
  color: var(--h-ink);
}

.home-mock-kpi em {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: var(--h-green-bright);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.home-mock-kpi em.is-flat {
  color: var(--h-muted);
}

.home-mock-panel {
  padding: 14px;
  border: 1px solid var(--h-line-soft);
  border-radius: 11px;
  background: #FFFFFF;
  box-shadow: var(--h-shadow-sm);
}

.home-mock-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.home-mock-panel-head strong {
  font-family: var(--h-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}

.home-mock-panel-head span {
  color: var(--h-muted);
  font-size: 10.5px;
  font-weight: 600;
}

.home-mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 76px;
}

.home-mock-chart i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #2F4E80, #1C3459);
  transform-origin: bottom;
  animation: barRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-mock-chart i.is-peak {
  background: linear-gradient(180deg, var(--h-green-bright), var(--h-green));
}

@keyframes barRise {
  from {
    transform: scaleY(0.05);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.home-mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--h-line-soft);
  font-size: 12px;
}

.home-mock-row:first-of-type {
  border-top: 0;
}

.home-mock-swatch {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(140deg, #E8EDF5, #D8E1EE);
  flex: none;
}

.home-mock-row b {
  color: var(--h-ink);
  font-size: 12px;
  font-weight: 600;
}

.home-mock-row small {
  display: block;
  color: var(--h-muted);
  font-size: 10.5px;
  font-weight: 500;
}

.home-mock-tag {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.home-mock-tag-ok {
  background: rgba(31, 158, 86, 0.1);
  color: var(--h-green);
}

.home-mock-tag-low {
  background: rgba(255, 193, 7, 0.16);
  color: var(--color-warning-amber-text);
}

.home-mock-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid var(--h-line-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--h-shadow-lg);
  animation: floatY 5.5s ease-in-out infinite;
}

.home-mock-badge-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(31, 158, 86, 0.1);
  color: var(--h-green);
}

.home-mock-badge strong {
  display: block;
  font-family: var(--h-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}

.home-mock-badge span {
  display: block;
  color: var(--h-muted);
  font-size: 11px;
  line-height: 15px;
}

.home-mock-badge-a {
  left: -52px;
  bottom: -20px;
  animation-delay: 0.4s;
}

.home-mock-badge-b {
  right: -22px;
  top: -24px;
  animation-delay: 1.6s;
}

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

/* ============ Problem → answer ledger ============ */

.home-compare {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  /* Stretch keeps both panels equal height so the pivot badge stays centred
     on both, whatever the copy length. */
  align-items: stretch;
}

.home-compare-panel {
  padding: 34px 32px;
  border: 1px solid var(--h-line);
  border-radius: 22px;
}

/* The "today" panel sits flat and desaturated against the canvas. */
.home-compare-before {
  background: linear-gradient(180deg, #EEF1F6, #F2F4F8);
  border-color: rgba(16, 24, 40, 0.07);
}

/* The DukaPro panel lifts off the page — the eye should land here. */
.home-compare-after {
  background:
    radial-gradient(520px 220px at 50% -10%, rgba(31, 158, 86, 0.10), transparent 70%),
    var(--h-surface);
  border-color: rgba(19, 104, 57, 0.2);
  box-shadow: 0 4px 10px rgba(11, 18, 32, 0.05), 0 24px 56px rgba(11, 18, 32, 0.1),
    0 0 0 4px rgba(31, 158, 86, 0.05);
}

.home-compare-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 22px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--h-line);
}

.home-compare-after .home-compare-head {
  border-bottom-color: rgba(19, 104, 57, 0.14);
}

.home-compare-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
}

.home-compare-before .home-compare-badge {
  background: linear-gradient(150deg, #FFE3DD, #FFD2C9);
  color: #B01D0F;
}

.home-compare-before .home-compare-badge .home-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

/* Same mark as the app sidebar, so the panel is unmistakably DukaPro. */
.home-compare-after .home-compare-badge {
  background: linear-gradient(135deg, #F6A23B 0 48%, #4FA9AA 48% 100%);
  color: #FFFFFF;
  font-family: var(--h-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 7px 16px rgba(23, 112, 94, 0.22);
}

.home-compare-head strong {
  display: block;
  font-family: var(--h-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 23px;
  letter-spacing: -0.02em;
  color: var(--h-ink);
}

.home-compare-before .home-compare-head strong {
  color: var(--h-ink-2);
}

/* Scoped to the text column — a bare `span` here also matched the badge and
   overrode its display:grid centring. */
.home-compare-head > div > span {
  display: block;
  margin-top: 2px;
  color: var(--h-muted);
  font-size: 13px;
  line-height: 19px;
}

.home-compare-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-compare-list li {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--h-line-soft);
}

.home-compare-after .home-compare-list li {
  border-bottom-color: rgba(19, 104, 57, 0.1);
}

.home-compare-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-compare-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
}

.home-compare-mark .home-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.8;
}

/* Hollow and receding on the left… */
.home-compare-before .home-compare-mark {
  background: rgba(212, 35, 20, 0.08);
  box-shadow: 0 0 0 1px rgba(212, 35, 20, 0.14) inset;
  color: #C42918;
}

/* …solid and affirmative on the right. */
.home-compare-after .home-compare-mark {
  background: linear-gradient(150deg, var(--h-green-bright), var(--h-green));
  color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 3px 8px rgba(19, 104, 57, 0.24);
}

.home-compare-list b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--h-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.015em;
  color: var(--h-ink);
}

.home-compare-before .home-compare-list b {
  color: var(--h-ink-2);
}

.home-compare-list p {
  margin: 0;
  color: var(--h-muted);
  font-size: 13.5px;
  line-height: 22px;
}

/* Pivot badge straddling the two panels. */
.home-compare-pivot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--h-surface);
  color: var(--h-green);
  border: 1px solid rgba(19, 104, 57, 0.16);
  box-shadow: var(--h-shadow-lg);
  transform: translate(-50%, -50%);
}

.home-compare-pivot .home-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* ============ Bento features ============ */

.home-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--h-line);
  border-radius: 18px;
  background: var(--h-surface);
  box-shadow: var(--h-shadow-sm);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 24, 40, 0.14);
  box-shadow: var(--h-shadow-lg);
}

.home-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: linear-gradient(150deg, #F1F5FB, #E3EAF5);
  color: var(--h-navy-700);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.home-card-icon .home-icon {
  width: 21px;
  height: 21px;
}

.home-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 26px;
}

.home-card > p {
  margin: 0 0 18px;
  color: var(--h-muted);
  font-size: 14.5px;
  line-height: 24px;
}

.home-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--h-ink-2);
  font-size: 13.5px;
  line-height: 21px;
}

.home-card li .home-icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  stroke-width: 2.4;
  color: var(--h-green-bright);
}

/* Featured bento tile — spans the full row so the remaining six cards fill clean rows. */
.home-card-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  align-items: center;
  gap: 44px;
  padding: 40px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(31, 158, 86, 0.07), transparent 62%),
    var(--h-surface);
}

.home-card-feature .home-card-icon {
  background: linear-gradient(150deg, rgba(31, 158, 86, 0.14), rgba(19, 104, 57, 0.08));
  color: var(--h-green);
}

.home-pos {
  border: 1px solid var(--h-line);
  border-radius: 14px;
  background: var(--h-canvas);
  box-shadow: var(--h-shadow-md);
  overflow: hidden;
}

.home-pos-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: var(--h-navy-700);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
}

.home-pos-head .home-icon {
  width: 15px;
  height: 15px;
}

.home-pos-head span:last-child {
  margin-left: auto;
  opacity: 0.7;
  font-weight: 500;
}

.home-pos-lines {
  display: grid;
  padding: 6px 13px;
  background: #FFFFFF;
}

.home-pos-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--h-line);
  font-size: 12.5px;
}

.home-pos-line span:first-child {
  color: var(--h-ink-2);
  font-weight: 500;
}

.home-pos-line span:nth-child(2) {
  margin-left: auto;
  color: var(--h-muted);
  font-size: 11.5px;
}

.home-pos-line b {
  color: var(--h-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.home-pos-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px;
  background: linear-gradient(180deg, #F3F7F4, #EAF3EE);
  border-top: 1px solid rgba(19, 104, 57, 0.14);
}

.home-pos-total span {
  color: var(--h-ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-pos-total strong {
  margin-left: auto;
  font-family: var(--h-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--h-green);
  font-variant-numeric: tabular-nums;
}

.home-pos-pay {
  display: flex;
  gap: 6px;
  padding: 11px 13px;
  background: #FFFFFF;
  border-top: 1px solid var(--h-line-soft);
}

.home-pos-pay span {
  flex: 1;
  padding: 7px 6px;
  border: 1px solid var(--h-line);
  border-radius: 8px;
  text-align: center;
  color: var(--h-ink-2);
  font-size: 11px;
  font-weight: 600;
}

.home-pos-pay span.is-active {
  border-color: rgba(19, 104, 57, 0.32);
  background: rgba(31, 158, 86, 0.09);
  color: var(--h-green);
}

/* ============ Offline band ============ */

.home-band {
  position: relative;
  padding: var(--h-section) 0;
  overflow: hidden;
  background: var(--h-navy-950);
  color: var(--h-on-dark);
  isolation: isolate;
}

.home-band-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 460px at 82% 12%, rgba(31, 158, 86, 0.24), transparent 62%),
    radial-gradient(700px 420px at 10% 88%, rgba(28, 52, 89, 0.9), transparent 64%),
    linear-gradient(158deg, var(--h-navy-900), var(--h-navy-950));
}

.home-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.home-band h2 {
  margin: 0 0 18px;
  color: #FFFFFF;
  font-size: 40px;
  line-height: 47px;
  letter-spacing: -0.03em;
}

.home-band > .home-container > div > p {
  color: var(--h-on-dark-2);
}

.home-band-copy p {
  margin: 0 0 30px;
  max-width: 480px;
  color: var(--h-on-dark-2);
  font-size: 16.5px;
  line-height: 29px;
}

.home-steps {
  display: grid;
  gap: 14px;
}

.home-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--h-on-dark-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.home-step:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.22);
}

.home-step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--h-mint), var(--h-green-bright));
  color: #05261A;
  font-family: var(--h-display);
  font-size: 13px;
  font-weight: 700;
}

.home-step h3 {
  margin: 0 0 3px;
  color: #FFFFFF;
  font-size: 15.5px;
  line-height: 22px;
}

.home-step p {
  margin: 0;
  color: var(--h-on-dark-2);
  font-size: 13.5px;
  line-height: 22px;
}

/* ============ Audience ============ */

.home-audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.home-audience span {
  padding: 10px 20px;
  border: 1px solid var(--h-line);
  border-radius: 999px;
  background: var(--h-surface);
  box-shadow: var(--h-shadow-sm);
  color: var(--h-ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-audience span:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 104, 57, 0.3);
  color: var(--h-green);
}

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

.home-cta {
  padding: 0 0 var(--h-section);
  background: var(--h-canvas);
}

.home-cta-card {
  position: relative;
  padding: 68px 56px;
  border-radius: 26px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(680px 340px at 50% -20%, rgba(31, 158, 86, 0.34), transparent 64%),
    linear-gradient(150deg, var(--h-navy-800), var(--h-navy-950));
  box-shadow: 0 30px 70px rgba(6, 18, 37, 0.32);
}

.home-cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(560px 320px at 50% 0%, #000, transparent 74%);
  -webkit-mask-image: radial-gradient(560px 320px at 50% 0%, #000, transparent 74%);
  pointer-events: none;
}

.home-cta-card > * {
  position: relative;
  z-index: 1;
}

.home-cta-card h2 {
  margin: 0 auto 14px;
  max-width: 620px;
  color: #FFFFFF;
  font-size: 40px;
  line-height: 47px;
  letter-spacing: -0.03em;
}

.home-cta-card p {
  margin: 0 auto 32px;
  max-width: 540px;
  color: var(--h-on-dark-2);
  font-size: 16.5px;
  line-height: 28px;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ============ Footer ============ */

.home-footer {
  padding: 64px 0 40px;
  background: var(--h-navy-950);
  color: var(--h-on-dark-3);
}

.home-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--h-on-dark-line);
}

.home-footer .home-brand-copy strong {
  color: #FFFFFF;
}

.home-footer .home-brand-copy strong span {
  color: #8BD9D2;
}

.home-footer-blurb {
  max-width: 320px;
  margin: 16px 0 0;
  color: var(--h-on-dark-3);
  font-size: 13.5px;
  line-height: 23px;
}

.home-footer-col h4 {
  margin: 0 0 14px;
  color: #FFFFFF;
  font-family: var(--h-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-footer-col a {
  color: var(--h-on-dark-2);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-footer-col a:hover {
  color: #FFFFFF;
}

.home-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 13px;
}

.home-footer-motto {
  color: var(--h-mint);
  font-weight: 600;
}

/* ============ Responsive ============ */

@media (max-width: 1080px) {
  .home-hero-inner,
  .home-band-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .home-hero {
    padding: 140px 0 104px;
    text-align: left;
  }

  .home-hero h1 {
    font-size: 50px;
    line-height: 56px;
  }

  .home-mock {
    transform: none;
    animation: none;
  }

  .home-mock-badge-a {
    left: 12px;
  }

  .home-mock-badge-b {
    right: 12px;
  }

  .home-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-compare-panel {
    padding: 28px 24px;
  }
}

@media (max-width: 860px) {
  .home-nav {
    display: none;
  }

  /* Stack the ledger: the pains read first, then their answers. */
  .home-compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* The gap between stacked panels is not at a predictable offset — drop the badge. */
  .home-compare-pivot {
    display: none;
  }

  .home-card-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 30px;
  }
}

@media (max-width: 720px) {
  .home-body {
    --h-section: 76px;
  }

  .home-hero {
    padding: 120px 0 84px;
  }

  .home-hero h1 {
    font-size: 38px;
    line-height: 44px;
    letter-spacing: -0.03em;
  }

  .home-hero-lead {
    font-size: 16px;
    line-height: 27px;
  }

  .home-hero-proof {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 36px;
  }

  .home-section-head h2,
  .home-band h2,
  .home-cta-card h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .home-bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-compare-panel {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .home-compare-list li {
    padding: 16px 0;
  }

  .home-mock-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-mock-badge {
    display: none;
  }

  .home-cta-card {
    padding: 44px 24px;
    border-radius: 20px;
  }

  .home-footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home-brand-copy span {
    display: none;
  }

  .home-btn-lg {
    padding: 12px 20px;
    font-size: 15px;
  }
}

@media (max-width: 400px) {
  .home-hero-actions .home-btn,
  .home-cta-actions .home-btn {
    width: 100%;
  }
}
