/* Art direction: Impact validation/trust layer - Warm, professional, trustworthy
   Palette: Terracotta (#E8724A) primary, gold (#C9A020) secondary, cream/warm paper backgrounds
   Typography: Nunito 800 (display headings) + Source Sans 3 (body) - rounded warmth + clean readability
   Density: Spacious - generous whitespace, editorial landing page feel */

:root {
  /* Typography */
  --font-display: 'Nunito', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', sans-serif;
  --font-serif: 'Fraunces', 'Cooper Black', Georgia, serif;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Melon Color Palette - Light Mode */
  --color-bg:             #FDF8F0;
  --color-surface:        #F5EFE3;
  --color-surface-2:      #FDF8F0;
  --color-surface-offset: #f0ede8;
  --color-surface-offset-2: #eae7e2;
  --color-surface-dynamic: #e4e1dc;
  --color-divider:        #dcd9d3;
  --color-border:         #d4d1ca;

  /* Text */
  --color-text:           #111111;
  --color-text-muted:     #4b5563;
  --color-text-faint:     #9ca3af;
  --color-text-inverse:   #FDF8F0;

  /* Primary - Melon Terracotta */
  --color-primary:        #E8724A;
  --color-primary-hover:  #D4633D;
  --color-primary-active: #BF5432;
  --color-primary-highlight: #fdf0eb;

  /* Secondary - Gold */
  --color-gold:           #C9A020;
  --color-gold-hover:     #b38e1a;
  --color-gold-active:    #9d7c15;
  --color-gold-paper:     #f4ebcc;

  /* Status Colors */
  --color-success:        #437a22;
  --color-error:          #dc3545;
  --color-warning:        #C9A020;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows (warm-tinted) */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 60 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 60 / 0.12);
  --shadow-xl: 0 20px 48px oklch(0.2 0.02 60 / 0.16);

  /* Content Widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-2xl);
  letter-spacing: 0.05em;
}

h2 {
  font-size: var(--text-xl);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
}

p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =========================================
   LAYOUT
   ========================================= */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* =========================================
   TOP BANNER / TICKER
   ========================================= */

.top-banner {
  background: var(--color-surface);
  overflow: hidden;
  padding: var(--space-2) 0;
  position: relative;
  border-bottom: 1px solid var(--color-surface-offset);
}

.top-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  width: max-content;
}

.top-banner__text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-banner__divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  opacity: 0.35;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from #FDF8F0 l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-4) 0;
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav__logo {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 30px;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.025em;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition-interactive);
}

.nav__links a:hover {
  color: var(--color-primary);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: background var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.nav__cta:hover {
  background: var(--color-primary-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav__cta:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Mobile nav */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    gap: var(--space-3);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__cta--mobile {
    display: inline-flex;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}

.btn--secondary:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.btn--secondary:active {
  transform: translateY(0);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* =========================================
   CARDS
   ========================================= */

.card {
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-6);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  box-shadow: var(--shadow-sm);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

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

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(232, 114, 74, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__text h1 {
  font-size: var(--text-3xl);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.hero__text .subline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 52ch;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero__mark {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mark svg {
  display: inline-block;
}

@media (max-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__mark {
    order: -1;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-8);
  }
}

/* =========================================
   AAA FRAMEWORK SECTION
   ========================================= */

.section--alt {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

.section-header p {
  margin-inline: auto;
  max-width: 60ch;
}

.aaa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.aaa-card {
  padding: var(--space-8);
}

.aaa-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.aaa-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.aaa-card p {
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.aaa-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.aaa-card li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}

.aaa-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
}

@media (max-width: 768px) {
  .aaa-grid {
    grid-template-columns: 1fr;
  }
}

/* Affordability Banner */
.affordability-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #D4633D 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: #fff;
  text-align: center;
}

.affordability-banner h3 {
  color: #fff;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  letter-spacing: 0.06em;
}

.affordability-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-inline: auto;
  max-width: 56ch;
  font-size: var(--text-base);
}

/* =========================================
   MELON DISPLAY
   ========================================= */

.display-section {
  background: var(--color-bg);
}

.display-section .section-header h2 {
  color: var(--color-text);
}

.display-section .section-header p {
  color: var(--color-text-muted);
}

.melon-display {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: var(--space-10) var(--space-10);
  box-shadow: 0 4px 24px rgba(232, 114, 74, 0.08),
              0 12px 48px rgba(232, 114, 74, 0.06);
  border: 1px solid rgba(232, 114, 74, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

/* Left column: branding + description + counters */
.display-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.display-left__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

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

.display-left__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}

.display-left__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display-left__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

.display-left__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.display-left__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.display-left__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
}

.display-left__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 44ch;
}

/* Counter row at bottom of display */
.display-counters {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-surface-offset);
}

.display-counter {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.display-counter__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  font-weight: 600;
}

.display-counter__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-text);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.2;
}

.display-counter__divider {
  width: 1px;
  height: auto;
  align-self: stretch;
  background: var(--color-surface-offset);
  flex-shrink: 0;
}

/* Progress bars under counters */
.display-counter__bar-track {
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-2);
}

.display-counter__bar-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.display-counter__bar-fill--gold {
  background: linear-gradient(90deg, #C9A020, #dbb530);
}

.display-counter__bar-fill--coral {
  background: linear-gradient(90deg, #F09060, #E8724A);
}

.display-counter__bar-fill--red {
  background: linear-gradient(90deg, #BF5432, #C9A020);
}

/* Right column: Big Donut gauge */
.display-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.donut-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
}

.donut-svg {
  width: 100%;
  height: 100%;
}

.donut-segment {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  width: 140px;
}

.donut-center__label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  font-weight: 600;
}

.donut-center__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.2;
}

.donut-center__sub {
  font-family: var(--font-body);
  font-size: 0.55rem;
  color: var(--color-text-faint);
  line-height: 1.3;
}

.donut-center__org {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-top: 2px;
}

/* Responsive: stack on mobile */
@media (max-width: 700px) {
  .melon-display {
    grid-template-columns: 1fr;
    padding: var(--space-6);
    border-radius: 20px;
  }

  .display-right {
    order: -1;
  }

  .donut-wrapper {
    width: 220px;
    height: 220px;
  }

  .display-counters {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .display-counter__divider {
    width: 100%;
    height: 1px;
  }
}

/* =========================================
   THREE LENSES (Dashboard + Showcase + Jive)
   Vertical stack of horizontal cards.
   Each card: head (left) + product preview (right).
   ========================================= */

/* Product-lens names inside prose — italic Fraunces in coral */
.lens-name {
  font-family: 'Fraunces', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.005em;
}

.three-lenses {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1160px;
  margin: 0 auto;
}

.lens-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(232, 114, 74, 0.10);
  box-shadow: 0 4px 24px rgba(232, 114, 74, 0.06),
              0 12px 36px rgba(232, 114, 74, 0.04);
  padding: var(--space-8) var(--space-8);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-8);
  align-items: center;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 200ms ease;
}

/* --- Dashboard lens: the preview is a cream panel like Showcase/Jive --- */
.lens-card--dashboard .melon-display {
  box-shadow: none;
  border: none;
  padding: var(--space-6) var(--space-6);
  margin: 0;
  max-width: none;
  border-radius: 14px;
  background: var(--color-bg);
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
}

.lens-card--dashboard .donut-wrapper {
  width: 210px;
  height: 210px;
}

/* Shrink the embedded dashboard brand text so it reads in-card */
.lens-card--dashboard .display-left__logo {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}
.lens-card--dashboard .display-left__subtitle {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}
/* Pathway heading: Output -> Behaviour -> Outcome -> Value */
.lens-card--dashboard .display-left__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text);
  line-height: 1.3;
  white-space: nowrap;
}

/* Linkage Pathway: equal-width columns, content centred so arrows sit tidy */
.display-pathway {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-surface-offset);
}

.pathway-col {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  text-align: center;
  min-width: 0;
  padding: 4px 6px;
  position: relative;
  min-height: 72px;
}
.pathway-col > .pathway-col__tag   { align-self: end; }
.pathway-col > .pathway-col__value { align-self: center; }
.pathway-col > .pathway-col__unit  { align-self: start; }

/* Arrow sits at the vertical centre of the big number row, not the whole cell */
.pathway-col:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-primary);
  opacity: .55;
  line-height: 1;
}

.pathway-col__tag {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.pathway-col--behaviour .pathway-col__tag { color: var(--color-gold); }
.pathway-col--outcome   .pathway-col__tag { color: #2D7E4F; }

.pathway-col__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1rem, 0.6rem + 0.7vw, 1.25rem);
  color: var(--color-text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.1;
  white-space: nowrap;
}

.pathway-col__unit {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.2;
  margin-top: 4px;
}

.lens-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* When the whole card is a link, strip default anchor styling */
.lens-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.lens-card__eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.lens-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem);
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0;
}

.lens-card__desc {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 42ch;
  margin: 0;
}

.lens-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}

.lens-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-success);
  background: rgba(67, 122, 34, 0.10);
  padding: 4px 10px;
  border-radius: 999px;
}

.lens-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse-dot 2s ease-in-out infinite;
}

.lens-card__tier {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-text-faint);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Preview area is a miniature of the real product */
.lens-preview {
  background: linear-gradient(180deg, #FDF8F0 0%, #F5EFE3 100%);
  border-radius: 14px;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 240px;
  transition: background 200ms ease;
}

/* ---------- Showcase preview: mini of the real Showcase ---------- */
.lens-preview--showcase { padding: 0; overflow: hidden; }

.lp-sh__brand {
  background: #1f1f1d;
  color: #FDF8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid rgba(232,114,74,.35);
}
.lp-sh__brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--color-primary);
}
.lp-sh__brand-name span { color: #FDF8F0; margin-left: 4px; }
.lp-sh__brand-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: #b5b2aa;
  letter-spacing: 0.02em;
}

/* Showcase preview — header bar */
.lp-sh__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(17,17,17,.06);
}
.lp-sh__id {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.lp-sh__id-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--color-text);
}
.lp-sh__id-brand span { color: var(--color-primary); margin-left: 0; }
.lp-sh__id-client {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.lp-sh__hd-r { display: inline-flex; align-items: center; gap: 10px; }
.lp-sh__live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2D7E4F;
  background: rgba(45,126,79,.1);
  padding: 3px 8px;
  border-radius: 999px;
}
.lp-sh__live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2D7E4F;
  animation: pulse-dot 2s ease-in-out infinite;
}
.lp-sh__open {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Column labels strip */
.lp-sh__labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--color-bg);
  padding: 8px 0 0 0;
}
.lp-sh__col-label {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 8px;
  color: var(--color-text-faint);
  border-right: 1px solid rgba(17,17,17,.06);
  position: relative;
}
.lp-sh__col-label:last-child { border-right: none; }
.lp-sh__col-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 28px; height: 2px;
  border-radius: 2px;
}
.lp-sh__col-label--a { color: #D4633D; }
.lp-sh__col-label--a::after { background: #E8724A; }
.lp-sh__col-label--b { color: #226038; }
.lp-sh__col-label--b::after { background: #2D7E4F; }
.lp-sh__col-label--c { color: #A78418; }
.lp-sh__col-label--c::after { background: #C9A020; }

/* 3-column reel */
.lp-sh__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--color-bg);
}
.lp-sh__col {
  position: relative;
  height: 158px;
  border-right: 1px solid rgba(17,17,17,.06);
  overflow: hidden;
}
.lp-sh__col:last-child { border-right: none; }
.lp-sh__col--a { background: linear-gradient(180deg, #fff 0%, rgba(232,114,74,.035) 100%); }
.lp-sh__col--b { background: linear-gradient(180deg, #fff 0%, rgba(45,126,79,.03) 100%); }
.lp-sh__col--c { background: linear-gradient(180deg, #fff 0%, rgba(201,160,32,.04) 100%); }

.lp-sh__card {
  position: absolute;
  inset: 0;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(60%) rotateX(20deg);
  transform-origin: center top;
  will-change: transform, opacity;
  animation: lp-sh-cycle 15s cubic-bezier(0.16, 1, 0.3, 1) infinite backwards;
}

/* Stat card fields */
.lp-sh__tag {
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.lp-sh__val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.lp-sh__val span { font-size: 0.65em; opacity: .75; }
.lp-sh__lab {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.lp-sh__sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* Update card (column C, timestamped recent activity) */
.lp-sh__card--upd { gap: 5px; }
.lp-sh__upd-time {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A78418;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lp-sh__upd-time::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #C9A020;
  box-shadow: 0 0 0 3px rgba(201,160,32,.16);
}
.lp-sh__upd-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.lp-sh__upd-body {
  font-family: var(--font-body);
  font-size: 0.64rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* Voice card (column B, state-coloured dot) */
.lp-sh__card--v { gap: 6px; }
.lp-sh__vh {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lp-sh__vd {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.lp-sh__vl {
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lp-sh__vq {
  font-family: 'Fraunces', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--color-text);
}

/* Theory of change strip */
.lp-sh__toc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-bg);
  border-top: 1px solid rgba(17,17,17,.06);
  flex-wrap: wrap;
}
.lp-sh__toc-label {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  white-space: nowrap;
}
.lp-sh__toc-flow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.lp-sh__toc-node {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--n, var(--color-text));
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--n, var(--color-primary)) 35%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--n, var(--color-primary)) 12%, transparent);
}
.lp-sh__toc-arr {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-primary);
  opacity: .55;
}

/* Footer bar (optional) */
.lp-sh__ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: var(--color-bg);
  border-top: 1px solid rgba(17,17,17,.06);
}
.lp-sh__ft-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--color-text);
}
.lp-sh__ft-brand span { color: var(--color-primary); margin-left: 3px; }
.lp-sh__ft-client {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}

/* Continuous cycle animation for each card */
@keyframes lp-sh-cycle {
  0%   { opacity: 0; transform: translateY(60%) rotateX(20deg); }
  4%   { opacity: 1; transform: translateY(0) rotateX(0); }
  30%  { opacity: 1; transform: translateY(0) rotateX(0); }
  33%  { opacity: 0; transform: translateY(-60%) rotateX(-20deg); }
  34%  { opacity: 0; transform: translateY(60%) rotateX(20deg); }
  100% { opacity: 0; transform: translateY(60%) rotateX(20deg); }
}

/* Stagger cards within each column (5s offset = 33% of 15s cycle) */
.lp-sh__col .lp-sh__card:nth-child(1) { animation-delay: 0s; }
.lp-sh__col .lp-sh__card:nth-child(2) { animation-delay: 5s; }
.lp-sh__col .lp-sh__card:nth-child(3) { animation-delay: 10s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .lp-sh__card {
    animation: none;
    opacity: 0;
    transform: none;
  }
  .lp-sh__col .lp-sh__card:nth-child(1) { opacity: 1; }
}

/* ---------- Jive preview: mini of the real Jive ---------- */
.lens-preview--jive { padding: 0; overflow: hidden; }

.lp-jv__brand {
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid rgba(17,17,17,.06);
}
.lp-jv__brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--color-text);
}
.lp-jv__brand-name span { color: var(--color-primary); margin-left: 0; }
.lp-jv__brand-sub {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.lp-jv__body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 14px;
  padding: 14px 14px 10px 14px;
  align-items: start;
}

/* LEFT: Listening to */
.lp-jv__watch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.lp-jv__watch-head,
.lp-jv__alerts-head {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.lp-jv__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.lp-jv__src {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 999px;
  padding: 3px 9px;
  line-height: 1.3;
  white-space: nowrap;
}
.lp-jv__egg {
  width: 100%;
  max-width: 170px;
  height: auto;
  display: block;
  margin: 2px auto 0 auto;
}
.lp-jv__watch-foot {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.lp-jv__pulse {
  transform-origin: 95px 90px;
  transform-box: fill-box;
  animation: lp-jv-pulse 2.6s ease-in-out infinite;
}
@keyframes lp-jv-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0; }
}

/* RIGHT: Recent alerts */
.lp-jv__alerts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.lp-jv__alert {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 9px;
  background: #fff;
  border: 1px solid rgba(17,17,17,.06);
  border-radius: 8px;
  padding: 7px 10px;
  align-items: flex-start;
  min-width: 0;
}
.lp-jv__alert-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 5px;
}
.lp-jv__alert-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-jv__alert-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.lp-jv__alert-tag {
  font-family: var(--font-body);
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lp-jv__alert-time {
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600;
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}
.lp-jv__alert-text {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-text);
  line-height: 1.3;
  font-weight: 500;
}

.lp-jv__states {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 14px 14px 14px;
  border-top: 1px solid rgba(17,17,17,.06);
  flex-wrap: wrap;
}
.lp-jv__states-lead {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-right: 4px;
}
.lp-jv__chip {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
}
.lp-jv__chip-lab {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin-right: 4px;
}

/* Responsive: below 900px, each card stacks head-above-preview */
@media (max-width: 900px) {
  .lens-card {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-6);
  }
  .lens-card--dashboard .melon-display {
    grid-template-columns: 1fr;
  }
  .lens-card--dashboard .display-right { order: -1; }
  .lens-card--dashboard .donut-wrapper { width: 200px; height: 200px; }

  /* Pathway: tighten columns on mobile */
  .display-pathway {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .pathway-col__value { font-size: 1.05rem; }
  .pathway-col__unit  { font-size: 0.6rem; }
  .pathway-col:not(:last-child)::after { right: -3px; font-size: 0.9rem; }

  .lp-sh__cols { grid-template-columns: 1fr; }
  .lp-sh__col {
    border-right: none;
    border-bottom: 1px solid rgba(17,17,17,.06);
    height: 140px;
  }
  .lp-sh__col:last-child { border-bottom: none; }
  .lp-sh__labels { grid-template-columns: 1fr; gap: 0; }
  .lp-sh__col-label { border-right: none; border-bottom: 1px solid rgba(17,17,17,.05); }
  .lp-sh__toc { padding: 10px 14px; gap: 6px; }
  .lp-sh__toc-node { font-size: 0.58rem; padding: 2px 7px; }
  .lp-jv__body { grid-template-columns: 1fr; gap: 12px; }
  .lp-jv__egg { max-width: 180px; }
}

/* =========================================
   HOW IT WORKS - JOURNEY TIMELINE
   ========================================= */

.journey {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  /* Vertical line through the steps */
  padding-left: 40px;
}

.journey::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}

/* --- Branch card (MEL Design - Step 0) --- */
.journey__branch {
  position: relative;
  margin-bottom: var(--space-10);
  padding-left: var(--space-6);
}

.journey__branch-line {
  position: absolute;
  left: -21px;
  top: 24px;
  width: 28px;
  height: 2px;
  background: var(--color-gold);
}

.journey__branch-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid var(--color-bg);
}

.journey__branch-card {
  background: var(--color-surface-2);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  box-shadow: var(--shadow-sm);
}

.journey__branch-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.journey__branch-badge svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.journey__branch-card h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.journey__branch-intro {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.journey__branch-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.journey__branch-card li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.5;
}

.journey__branch-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.5;
}

/* --- Journey steps (1, 2) --- */
.journey__step {
  position: relative;
  padding-left: var(--space-6);
  padding-bottom: var(--space-10);
}

.journey__step:last-child {
  padding-bottom: 0;
}

.journey__marker {
  position: absolute;
  left: -31px;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #D4633D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--color-bg), var(--shadow-md);
  z-index: 1;
}

.journey__marker-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  color: #fff;
  line-height: 1;
}

.journey__connector {
  position: absolute;
  left: -10px;
  top: 42px;
  bottom: 0;
  width: 2px;
  /* No extra connector needed; the main timeline line handles this */
  display: none;
}

.journey__body {
  padding-top: var(--space-1);
}

.journey__tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-2);
}

.journey__body h3 {
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.journey__lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-weight: 400;
  max-width: 56ch;
}

.journey__body ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.journey__body li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.5;
}

.journey__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
}

@media (max-width: 768px) {
  .journey {
    padding-left: 32px;
  }

  .journey::before {
    left: 15px;
  }

  .journey__marker {
    left: -25px;
    width: 34px;
    height: 34px;
  }

  .journey__marker-num {
    font-size: var(--text-sm);
  }

  .journey__branch {
    padding-left: var(--space-4);
  }

  .journey__branch-line {
    left: -17px;
    width: 22px;
  }

  .journey__branch-card {
    padding: var(--space-4) var(--space-5);
  }
}

/* =========================================
   WHAT YOU GET EVERY QUARTER - CLEAN LIST
   ========================================= */

.quarterly-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.quarterly-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-surface-offset);
  transition: background var(--transition-interactive);
}

.quarterly-item:last-child {
  border-bottom: none;
}

.quarterly-item:hover {
  background: var(--color-surface-offset);
}

.quarterly-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.quarterly-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quarterly-item__text h3 {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.quarterly-item__text p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .quarterly-item {
    padding: var(--space-4);
    gap: var(--space-3);
  }
}

/* =========================================
   TURN YOUR IMPACT - EDITORIAL LAYOUT
   ========================================= */

.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.editorial__lead {
  position: sticky;
  top: calc(var(--space-16) + var(--space-8));
}

.editorial__lead h2 {
  margin-bottom: var(--space-4);
}

.editorial__lead p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 48ch;
}

.editorial__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.editorial__benefit {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.editorial__benefit-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--color-primary);
  opacity: 0.18;
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}

.editorial__benefit h3 {
  font-size: var(--text-base);
  color: var(--color-text);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-1);
}

.editorial__benefit p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .editorial {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .editorial__lead {
    position: static;
    text-align: center;
  }

  .editorial__lead p {
    margin-inline: auto;
  }

  .editorial__benefit-num {
    font-size: var(--text-xl);
    min-width: 36px;
  }
}

/* =========================================
   WHO SEES THE DIFFERENCE - COMPACT STRIP
   ========================================= */

.who-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6) var(--space-8);
}

.who-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
}

.who-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.who-item h3 {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-transform: none;
}

.who-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 28ch;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .who-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .who-strip {
    grid-template-columns: 1fr;
  }
}

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

.cta-section {
  background: var(--color-surface);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section .cta-text {
  margin-inline: auto;
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.cta-email {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cta-email a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.cta-email a:hover {
  text-decoration: underline;
}

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

.site-footer {
  background: var(--color-surface);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-divider);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer-content p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-content a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-content a:hover {
  color: var(--color-primary);
}

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

/* Reveal: visible by default, JS adds .js-reveal-init to hide them */
.reveal {
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal-init .reveal {
  opacity: 0;
}

.js-reveal-init .reveal--visible {
  opacity: 1;
}

/* Stagger children */
.reveal-stagger > .reveal {
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

/* ============================================================
   ===  MELON REBUILD ADDITIONS (April 2026)  ===
   Italic Fraunces emphasis, Funders section, Lite section,
   nav login, edge tabs, drawers (Network + Gallery)
   ============================================================ */

/* --- Italic Fraunces emphasis on headlines --- */
h1 em,
h2 em,
h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 900;
  color: var(--color-primary);
  font-feature-settings: 'ss01';
}

/* --- Nav login button --- */
.nav__login {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--color-text);
  background: transparent;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text) !important;
  text-decoration: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive);
}
.nav__login:hover {
  background: var(--color-text);
  color: var(--color-bg) !important;
}

/* --- Hero coral pitch block (Seeking funding?) --- */
.hero__pitch {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-primary);
  max-width: 60ch;
}
.hero__pitch p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}
.hero__pitch strong {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.005em;
}

/* --- Funders section (NEW) --- */
.funders {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.funders__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.funders__label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.funders__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0 auto 1.75rem;
  max-width: 22ch;
}
.funders__lead {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text);
  max-width: 56ch;
  margin: 0 auto 1.25rem;
}
.funders__lead:last-of-type {
  margin-bottom: 2.5rem;
}
.funders__divider {
  width: 120px;
  height: 1px;
  background: var(--color-primary);
  margin: 0 auto 2.5rem;
}
.funders__stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.funders__stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 2rem + 4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-primary);
}
.funders__stat-caption {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 22ch;
  text-align: left;
  line-height: 1.4;
}
.funders__caveat {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-faint);
  margin: 0;
}

/* --- Get Your First Dashboard / Lite section (NEW) --- */
.lite-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-gold-paper);
}
.lite {
  max-width: 880px;
  margin: 0 auto;
}
.lite__head {
  text-align: center;
  margin-bottom: 3rem;
}
.lite__label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}
.lite__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0 auto 1.25rem;
  max-width: 22ch;
}
.lite__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 54ch;
  margin: 0 auto;
  line-height: 1.55;
}
.lite__sub em {
  font-style: italic;
  color: var(--color-text-muted);
  font-family: inherit;
  font-weight: inherit;
}
.lite__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-text);
  background: #ffffff;
  margin-bottom: 2.75rem;
}
.lite__step {
  padding: 2.25rem 1.75rem;
  border-right: 1px solid var(--color-border);
  position: relative;
}
.lite__step:last-child {
  border-right: none;
}
.lite__step-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  color: var(--color-primary);
  opacity: 0.4;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.lite__step h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}
.lite__step p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 720px) {
  .lite__steps {
    grid-template-columns: 1fr;
  }
  .lite__step {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .lite__step:last-child {
    border-bottom: none;
  }
}
.lite__cta {
  text-align: center;
}
.lite__price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-text);
  min-width: 260px;
  justify-content: center;
}
.lite__price-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--color-primary);
  letter-spacing: -0.035em;
  line-height: 1;
}
.lite__price-period {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lite__cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
/* Lite signup form */
.lite__form {
  max-width: 540px;
  margin: 0 auto 1rem;
  text-align: left;
}

.lite__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lite__form-row--single {
  grid-template-columns: 1fr;
  max-width: 260px;
}

.lite__form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.lite__form-field input,
.lite__form-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.lite__form-field input::placeholder {
  color: var(--color-text-faint);
  opacity: 0.6;
}

.lite__form-field input:focus,
.lite__form-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 114, 74, 0.12);
}

.lite__form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.lite__form-submit {
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
  justify-content: center;
}

.lite__form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
}

.lite__form-success.visible {
  display: block;
}

.lite__form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4ade80;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.lite__form-error {
  display: none;
  text-align: center;
  padding: 1rem 1.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 13px;
  color: #991b1b;
  line-height: 1.5;
}

.lite__form-error.visible {
  display: block;
}

.lite__form-error a {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 520px) {
  .lite__form-row {
    grid-template-columns: 1fr;
  }
  .lite__form-row--single {
    max-width: none;
  }
}

.lite__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 0.85rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.lite__note em {
  font-style: italic;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}

/* --- Footer brand wordmark --- */
.site-footer__brand {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 28px;
  color: var(--color-primary);
  letter-spacing: -0.025em;
  display: inline-block;
}
.site-footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer .footer-content p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}
.site-footer .footer-content a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}
.site-footer .footer-content a:hover {
  color: var(--color-primary);
}

/* ============================================================
   EDGE TABS (Network + Gallery)
   ============================================================ */
.edge-tab {
  position: fixed;
  top: 50%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1.25rem 0.8rem;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  user-select: none;
  box-shadow: 0 6px 24px rgba(26, 26, 26, 0.18);
  border: none;
}
.edge-tab * {
  pointer-events: none;
}
.edge-tab svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}
.edge-tab--left {
  left: 0;
  transform: translateY(-50%);
  background: var(--color-gold);
}
.edge-tab--left:hover {
  background: var(--color-gold-hover);
}
.edge-tab--right {
  right: 0;
  transform: translateY(-50%);
  background: var(--color-primary);
}
.edge-tab--right:hover {
  background: var(--color-primary-hover);
}
@media (max-width: 720px) {
  .edge-tab {
    padding: 0.95rem 0.65rem;
    font-size: 10px;
  }
}

/* ============================================================
   DRAWERS - shared
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.28);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-close {
  position: absolute;
  top: 1.25rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  z-index: 5;
  transition: all var(--transition-interactive);
  cursor: pointer;
}
.drawer-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* Shared label inside drawers */
.nd-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ============================================================
   NETWORK DRAWER (left)
   ============================================================ */
.nd {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(580px, 92vw);
  background: var(--color-bg);
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: 8px 0 40px rgba(26, 26, 26, 0.08);
}
.nd.open { transform: translateX(0); }
.nd.peek { transform: translateX(-100%) translateX(80px); pointer-events: none; }
.nd .drawer-close { right: 1.25rem; }

.nd-inner {
  padding: 5.5rem clamp(1.75rem, 3vw, 2.5rem) 3rem;
}

/* ---- Network Melon Meter widget ---- */
.nd-meter {
  background: #fff;
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 4px 24px rgba(232, 114, 74, 0.08),
              0 12px 48px rgba(232, 114, 74, 0.06);
  border: 1px solid rgba(232, 114, 74, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: center;
  margin-bottom: 2.25rem;
}

.nd-meter__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.nd-meter__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.nd-meter__branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nd-meter__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}

.nd-meter__subtitle {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nd-meter__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

.nd-meter__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

.nd-meter__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nd-meter__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.nd-meter__desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

.nd-meter__counters {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-surface-offset);
}

.nd-meter__counter {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nd-meter__counter-label {
  font-family: var(--font-body);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  font-weight: 600;
}

.nd-meter__counter-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-text);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.2;
}

.nd-meter__counter-divider {
  width: 1px;
  height: auto;
  align-self: stretch;
  background: var(--color-surface-offset);
  flex-shrink: 0;
}

.nd-meter__bar-track {
  height: 5px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-2);
}

.nd-meter__bar-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nd-meter__bar-fill--gold {
  background: linear-gradient(90deg, #C9A020, #dbb530);
}

.nd-meter__bar-fill--coral {
  background: linear-gradient(90deg, #F09060, #E8724A);
}

.nd-meter__bar-fill--green {
  background: linear-gradient(90deg, #4A8C5E, #5da872);
}

/* Right: Network donut */
.nd-meter__right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nd-meter__donut-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.nd-meter__donut-svg {
  width: 100%;
  height: 100%;
}

.nd-donut-segment {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nd-meter__donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  width: 100px;
}

.nd-meter__donut-label {
  font-family: var(--font-body);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  font-weight: 600;
}

.nd-meter__donut-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.2;
}

.nd-meter__donut-sub {
  font-family: var(--font-body);
  font-size: 0.45rem;
  color: var(--color-text-faint);
  line-height: 1.3;
}

.nd-meter__donut-org {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-top: 2px;
}

/* Network meter responsive */
@media (max-width: 480px) {
  .nd-meter {
    grid-template-columns: 1fr;
    padding: var(--space-5);
    border-radius: 20px;
  }

  .nd-meter__right {
    order: -1;
  }

  .nd-meter__donut-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }

  .nd-meter__counters {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .nd-meter__counter-divider {
    width: 100%;
    height: 1px;
  }
}

.nd-section {
  margin-bottom: 2.25rem;
}
.nd-section .nd-label {
  display: block;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.nd-sector {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-border);
}
.nd-sector:last-child { border-bottom: none; }
.nd-sector__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nd-sector__name {
  flex: 1;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.nd-sector__val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.015em;
}

.nd-org {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}
.nd-org:last-child { border-bottom: none; }
.nd-org__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 11px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.nd-org__name {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--color-text);
}
.nd-org__type {
  font-size: 11px;
  color: var(--color-text-faint);
  font-weight: 600;
}

/* ============================================================
   GALLERY DRAWER (right)
   ============================================================ */
.gd {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, 94vw);
  background: var(--color-bg);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(26, 26, 26, 0.08);
}
.gd.open { transform: translateX(0); }
.gd.peek { transform: translateX(100%) translateX(-80px); pointer-events: none; }
.gd .drawer-close { left: 1.25rem; }

.gd-inner {
  padding: 5.5rem 0 3rem;
}
.gd-head {
  padding: 0 clamp(1.75rem, 3vw, 2.5rem) 1.75rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.25rem;
}
.gd-head .nd-label {
  margin-bottom: 0.5rem;
}
.gd-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.05;
  margin: 0 0 0.65rem;
}
.gd-head p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 48ch;
  margin: 0;
}
.gd-section {
  margin-bottom: 2.5rem;
}
.gd-label-padded {
  padding: 0 clamp(1.75rem, 3vw, 2.5rem);
  display: block;
  margin-bottom: 1rem;
}
.gd-track {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.gd-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.gd-track.is-grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
.gd-track::before,
.gd-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  z-index: 2;
  pointer-events: none;
}
.gd-track::before { left: 0;  background: linear-gradient(90deg,  var(--color-bg), transparent); }
.gd-track::after  { right: 0; background: linear-gradient(270deg, var(--color-bg), transparent); }

.gd-row {
  display: flex;
  gap: 0;
  width: max-content;
}

/* Custom scrollbar under each row */
.gd-scrollbar {
  position: relative;
  height: 6px;
  margin: var(--space-4) var(--space-8) var(--space-8);
  background: var(--color-surface-offset);
  border-radius: 999px;
  cursor: pointer;
}
.gd-scrollbar__thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 40px;
  background: var(--color-primary);
  border-radius: 999px;
  transition: background var(--transition-interactive);
  cursor: grab;
}
.gd-scrollbar__thumb:hover,
.gd-scrollbar.is-active .gd-scrollbar__thumb {
  background: var(--color-primary-hover);
}
.gd-scrollbar.is-dragging .gd-scrollbar__thumb {
  cursor: grabbing;
  background: var(--color-primary-hover);
}

.gd-tile {
  width: 300px;
  flex-shrink: 0;
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background var(--transition-interactive);
  position: relative;
  background: #ffffff;
}
.gd-tile:hover {
  background: var(--color-surface);
}
.gd-tile__bar {
  height: 2px;
  width: 32px;
  margin-bottom: 1.25rem;
}
.gd-tile__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  transition: color var(--transition-interactive);
}
.gd-tile:hover .gd-tile__name {
  color: var(--color-primary);
}
.gd-tile__desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.gd-tile__meta {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--color-text-faint);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.gd-tile__sroi {
  font-family: var(--font-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 12px;
  color: var(--color-primary);
  margin-top: 0.75rem;
}

.gd-soon {
  padding: 2rem clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
}
.gd-soon__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.gd-soon p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--color-text-faint);
  margin: 0 auto;
  max-width: 36ch;
}

/* --- Model detail panel inside Gallery --- */
.model-detail {
  display: none;
  padding: 2.75rem clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--color-text);
  margin-top: 1.5rem;
  background: var(--color-surface);
}
.model-detail.open {
  display: block;
  animation: md-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes md-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.model-detail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.model-detail__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--color-text);
}
.model-detail__close {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  cursor: pointer;
}
.model-detail__close:hover { color: var(--color-primary); }
.model-detail__bar {
  height: 2px;
  width: 48px;
  margin-bottom: 1.5rem;
}
.model-detail p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: none;
}
.model-detail__section { margin-bottom: 1.75rem; }
.model-detail__section h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.model-detail__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.model-detail__list li {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.model-detail__benchmarks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.model-detail__bench {
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
}
.model-detail__bench-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.model-detail__bench-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--color-text);
  margin-top: 0.25rem;
  letter-spacing: -0.01em;
}

.model-detail__cta {
  display: inline-flex;
  padding: 0.95rem 1.6rem;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: 1.25rem;
  text-decoration: none;
  transition: background var(--transition-interactive);
}
.model-detail__cta:hover {
  background: var(--color-primary-hover);
}

/* Lock body scroll when a drawer is open (handled also in JS) */
body.drawer-open {
  overflow: hidden;
}

/* ============================================
   TIERS - Melon Lite / Pro / Enterprise
   ============================================ */
.tiers {
  margin-bottom: var(--space-20);
}

.tiers__head {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto var(--space-12);
}

.tiers__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.tiers__heading {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-4);
}
.tiers__heading em {
  font-style: italic;
  color: var(--color-primary);
}

.tiers__sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-inline: auto;
}

.tiers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (max-width: 900px) {
  .tiers__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

.tier {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm, 4px);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}
.tier:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.06);
}

.tier--pro {
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(232, 114, 74, 0.08);
  position: relative;
}
.tier--pro::before {
  content: "Most Popular";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.tier__head {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}

.tier__label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.tier__name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.tier__who {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}
.tier__who em {
  color: var(--color-text);
  font-style: italic;
  font-weight: 600;
}

.tier__price {
  margin-bottom: var(--space-5);
}
.tier__price-amount {
  display: block;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.tier--lite .tier__price-amount {
  color: var(--color-primary);
}
.tier__price-period {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}

.tier__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  flex: 1;
}
.tier__list li {
  position: relative;
  padding-left: 1.4rem;
  padding-block: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text);
}
.tier__list li + li {
  border-top: 1px solid var(--color-divider);
}
.tier__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--color-primary);
  font-weight: 900;
  font-family: var(--font-display);
}
.tier__list li strong {
  color: var(--color-text);
  font-weight: 700;
}

.tier__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive);
  text-align: center;
}
.tier__cta:hover {
  background: var(--color-primary);
  color: #ffffff;
}
.tier__cta--primary {
  background: var(--color-primary);
  color: #ffffff;
}
.tier__cta--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.tiers__footnote {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Lite form: hidden by default, revealed on click */
.lite--hidden {
  display: none;
}
.lite--revealing {
  display: block;
  animation: liteReveal 0.5s ease forwards;
}
@keyframes liteReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Coming Soon tile in gallery */
.gd-tile--soon {
  opacity: 0.7;
  position: relative;
}
.gd-tile--soon .gd-tile__sroi {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* MGM tile - sister brand visual treatment */
.gd-tile--mgm {
  border: 2px solid #facc15;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}
.gd-tile--mgm .gd-tile__sroi {
  background: #facc15;
  color: #000;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* Network drawer hidden until platform has real network data.
   To re-enable: remove .network-hidden class from #nd and #ndOverlay in index.html. */
.network-hidden {
  display: none !important;
}

/* Placeholder tiles in the third row - visually subdued, non-interactive */
.gd-tile--placeholder {
  opacity: 0.55;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    var(--color-bg) 0,
    var(--color-bg) 10px,
    var(--color-surface) 10px,
    var(--color-surface) 20px
  );
}
.gd-tile--placeholder .gd-tile__name {
  font-style: italic;
  color: var(--color-text-faint);
}

/* ============================================
   LITE FORM - MODEL MODE
   When the form is opened via "Apply this model", certain elements
   are hidden so it doesn't look like a $750 Lite signup.
   ============================================ */
.lite.lite--model-mode .lite__price,
.lite.lite--model-mode #liteSteps,
.lite.lite--model-mode #liteNote {
  display: none !important;
}

/* In model mode, remove the empty space the price block leaves behind */
.lite.lite--model-mode .lite__cta {
  flex-direction: column;
  align-items: stretch;
}

/* Soften the heading slightly so it doesn't compete with the model name */
.lite.lite--model-mode #liteHeading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
