/* ============================================================
   Upswell.ai — Marketing site styles
   Plain CSS, no build step.
   Edit brand tokens in :root below.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand red (from Figma UP Design system; visual swatches) */
  --red-50:  #FEF2F4;
  --red-100: #FCE0E5;
  --red-200: #F8B8C2;
  --red-300: #F18A9C;
  --red-400: #E95773;
  --red-500: #E12A4F;   /* primary brand */
  --red-600: #C91E42;
  --red-700: #A31837;
  --red-800: #7A112A;
  --red-900: #4F0B1B;

  /* Neutrals */
  --ink-900: #0A0A0A;
  --ink-700: #1F1F1F;
  --ink-500: #6B6B6B;
  --ink-400: #8B8B8B;
  --ink-300: #B5B5B5;
  --ink-200: #D4D4D4;
  --ink-100: #E8E8E8;
  --ink-50:  #F5F5F5;
  --surface-0:  #FFFFFF;
  --surface-50: #FAFAFA;

  /* Type */
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --max-w: 1280px;
  --max-w-narrow: 1100px;
  --max-w-prose: 760px;
  --gutter: clamp(24px, 4.5vw, 48px);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 6px 18px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.06);
  --shadow-red: 0 12px 28px rgba(225, 42, 79, .25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
:focus-visible { outline: 3px solid var(--red-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--max-w-narrow); margin-inline: auto; }
.container--prose { max-width: var(--max-w-prose); margin-inline: auto; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); }
.section--dark { background: var(--ink-900); color: var(--surface-0); }
.section--tinted { background: var(--red-50); }
.section--surface { background: var(--surface-50); }

/* ---------- Typography ---------- */
.eyebrow {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-500);
}
.eyebrow--ink { color: var(--ink-500); }

.h-display {
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}
.h1 {
  font-weight: 800;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.h2 {
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.h3 {
  font-weight: 700;
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.3;
  color: var(--ink-900);
}

.lead {
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-700);
}
.muted { color: var(--ink-500); }
.muted-strong { color: var(--ink-400); }
.serif-quote {
  font-style: italic;
  color: var(--ink-700);
}

/* Inverse colors on dark sections */
.section--dark .h-display, .section--dark .h1, .section--dark .h2, .section--dark .h3 { color: var(--surface-0); }
.section--dark .muted { color: rgba(255,255,255,.65); }
.section--dark .eyebrow--ink { color: rgba(255,255,255,.55); }
/* Cards inside dark sections keep their dark titles (cards stay white) */
.section--dark .card .h3,
.section--dark .card .card__title { color: var(--ink-900); }

/* Highlight a phrase in red */
.hl { color: var(--red-500); }
.hl-underline {
  background-image: linear-gradient(transparent 62%, rgba(225, 42, 79, .25) 62%);
  background-repeat: no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  border-radius: var(--r-pill);
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 18px 30px; font-size: 18px; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--primary { background: var(--red-500); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-600); }
.btn--ink { background: var(--ink-900); color: #fff; }
.btn--ink:hover { background: var(--ink-700); }
.btn--outline { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }
.btn--outline:hover { background: var(--ink-900); color: #fff; }
.btn--ghost { color: var(--ink-900); }
.btn--ghost:hover { color: var(--red-500); }
.btn--on-dark { background: #fff; color: var(--ink-900); }
.btn--on-dark:hover { background: var(--ink-100); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark img { height: 44px; width: auto; }
.nav {
  /* Reset any element-selector leaks from injected pages (XP, etc.) */
  position: static;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  padding: 10px 14px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--r-md);
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--ink-900); background: var(--ink-50); }
.nav__cta { margin-left: 8px; }

/* Upswell XP wordmark — matches the brand mark on the XP page */
.nav__xp {
  font-family: 'Bricolage Grotesque', 'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.nav__xp em {
  font-style: italic;
  color: #C4A500;
  font-weight: 600;
}
.nav__xp:hover { background: transparent; }
.nav__xp:hover em { color: #8B7300; }

/* Force white text on the primary CTA button inside the nav (overrides .nav a) */
.nav a.btn--primary,
.nav a.btn--primary:hover { color: #fff; background: var(--red-500); }
.nav a.btn--primary:hover { background: var(--red-600); }

/* Upswell XP — premium gold-on-black pill */
.nav a.nav__xp {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  color: #E0B341;
  font-weight: 700;
  border: 1px solid rgba(224, 179, 65, .35);
  letter-spacing: .01em;
}
.nav a.nav__xp:hover {
  background: linear-gradient(135deg, #E0B341 0%, #B8881A 100%);
  color: #0a0a0a;
  border-color: transparent;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--ink-100);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--ink-100);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open a { padding: 14px 12px; }
  .nav__cta { margin-left: 0; margin-top: 8px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.78);
  padding-block: 56px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  transition: color .18s ease;
}
.footer-col a:hover { color: #fff; }

.footer-brand p {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255,255,255,.65);
  max-width: 320px;
}
.footer-brand .brand__mark img { filter: brightness(0) invert(1); height: 24px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 13px;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}
.footer-bottom img { height: 22px; opacity: .85; }

/* ---------- Hero ---------- */
/* Homepage hero — scoped to .section--hero so .hero on other pages (e.g. /upswell-xp/) is untouched */
/* Layout mirrors live /restaurant-growth: media on the LEFT, copy on the RIGHT */
.section--hero .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) { .section--hero .hero { grid-template-columns: 1fr; } }

.section--hero .hero__copy { max-width: 560px; min-width: 0; }
.section--hero .hero__title {
  margin-top: 18px;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.section--hero .hero__sub { margin-top: 22px; max-width: 540px; }
.section--hero .hero__ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.section--hero .founder-cta { margin-top: 32px; }
.section--hero .hero__media {
  position: relative;
  min-width: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* Matches the live /restaurant-growth hero image (912 × 1076) */
  aspect-ratio: 5 / 6;
  background: var(--ink-900);
}
@media (max-width: 940px) {
  .section--hero .hero__media { aspect-ratio: 4 / 3; }
}
.section--hero .hero__media video, .section--hero .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.section--hero .hero__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
  pointer-events: none;
}
.section--hero .hero__caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  z-index: 1;
}

/* ---------- Card grids ---------- */
.cards {
  display: grid;
  gap: 20px;
}
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .cards--3 { grid-template-columns: 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--ink-200); }
.card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-50); color: var(--red-500);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { margin-bottom: 8px; }
.card__body { color: var(--ink-500); }

/* Tinted variant for problem section */
.card--problem {
  background: #fff;
  border: 1px solid var(--ink-100);
}
.card--problem .card__icon {
  background: var(--ink-900);
  color: #fff;
}

/* ---------- Steps timeline ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  margin-top: 40px;
}
@media (max-width: 940px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  position: relative;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--red-500);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.step__title { margin-bottom: 6px; font-size: 19px; font-weight: 600; color: var(--ink-900); }
.step__body { font-size: 16px; color: var(--ink-500); line-height: 1.55; }

/* ---------- AI agents grid ---------- */
.agents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 1023px) { .agents { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .agents { grid-template-columns: 1fr; } }

.agent {
  background: var(--surface-0);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.agent:hover { border-color: var(--red-300); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.agent__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-50);
  color: var(--red-500);
  border-radius: var(--r-md);
  flex: 0 0 auto;
}
.agent__icon svg { width: 22px; height: 22px; }
.agent__name { font-weight: 700; font-size: 17px; color: var(--ink-900); line-height: 1.25; }
.agent__dot { display: none; } /* legacy, no longer rendered */

/* Dark variant for the deck/presentation context */
.section--dark .agent {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}
.section--dark .agent:hover { border-color: var(--red-500); transform: translateY(-2px); }
.section--dark .agent__name { color: #fff; }
.section--dark .agent__icon {
  background: rgba(225, 42, 79, 0.15);
  color: var(--red-400);
}

/* ---------- Stats / pillars ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
}
.stat__num { font-size: clamp(36px, 4vw, 52px); font-weight: 800; color: var(--red-500); line-height: 1; letter-spacing: -.02em; }
.stat__label { margin-top: 10px; color: var(--ink-700); font-size: 15px; }

/* Dark variant: white stat boxes on a black section */
.section--dark .stat {
  background: #fff;
  border-color: #fff;
}
.section--dark .stat__num { color: var(--red-500); }
.section--dark .stat__label { color: var(--ink-700); }

/* Logos on dark: subtle white pill so dark-on-transparent logos stay visible */
.section--dark .logos img {
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--r-md);
  height: 72px;
}

/* ---------- Community (alternating bubble + video rows) ---------- */
.community-rows {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  margin-top: 56px;
}
.community-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 760px) {
  .community-row { grid-template-columns: 1fr; }
  .community-bubble-right, .community-bubble-left { justify-content: center !important; }
}

.community-bubble-right { display: flex; justify-content: flex-end; }
.community-bubble-left  { display: flex; justify-content: flex-start; }

.bubble {
  position: relative;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  max-width: 460px;
  margin: 0;
}
.bubble--gray { background: var(--ink-50); }
.bubble__head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.bubble__profile {
  width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  background: var(--ink-100);
}
.bubble__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.bubble__name { font-weight: 700; font-size: 15px; color: var(--ink-900); }
.bubble__role { font-size: 13px; color: var(--ink-500); }
.bubble__divider { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); flex: 0 0 auto; }
.bubble__body { font-size: 16px; line-height: 1.6; color: var(--ink-700); font-style: italic; }

.community-video {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--ink-900);
  max-width: 320px;
  margin-inline: auto;
  width: 100%;
  box-shadow: var(--shadow-md);
  display: block;
  text-decoration: none;
}
.community-video video,
.community-video img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.community-video__label {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  color: #fff; font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,.55); padding: 8px 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 8px;
  pointer-events: none;
}
.community-video__cta {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  color: var(--ink-900);
  background: rgba(255,255,255,.95); padding: 8px 14px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  transition: background .18s ease;
}
.community-video__cta:hover { background: #fff; }

/* ---------- Gallery (mixed photo + video tiles, masonry) ---------- */
.gallery {
  column-count: 3;
  column-gap: clamp(12px, 1.5vw, 20px);
  margin-top: 36px;
}
@media (max-width: 1023px) { .gallery { column-count: 2; } }
@media (max-width: 640px)  { .gallery { column-count: 1; } }

.gallery__item {
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ink-100);
  box-shadow: var(--shadow-sm);
  margin: 0 0 clamp(12px, 1.5vw, 20px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gallery__item img,
.gallery__item video {
  width: 100%; height: auto;
  display: block;
}

/* ---------- Testimonial videos (portrait 9:16) ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 32px);
  max-width: 920px;
  margin: 40px auto 0;
}
@media (max-width: 760px) { .testimonials { grid-template-columns: 1fr; max-width: 420px; } }

.testimonial {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--ink-900);
  box-shadow: var(--shadow-md);
}
.testimonial video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.testimonial__name {
  position: absolute;
  bottom: 12px; left: 12px;
  z-index: 2;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  background: rgba(0,0,0,.55);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ---------- Logo wall ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 32px;
  align-items: center;
  margin-top: 32px;
}
@media (max-width: 860px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 540px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.logos img {
  width: 100%;
  max-width: 140px;
  height: 64px;
  object-fit: contain;
  margin-inline: auto;
  transition: transform .2s ease;
}
.logos img:hover { transform: scale(1.04); }

/* ---------- Cross-sell row ---------- */
.crosssell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}
.crosssell-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, transform .2s ease;
}
.crosssell-card:hover { border-color: var(--red-300); transform: translateY(-2px); }
.crosssell-card__title { font-size: 22px; font-weight: 700; color: var(--ink-900); }
.crosssell-card__body { color: var(--ink-500); margin-top: 4px; }

/* ---------- Final CTA ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--red-500) 0%, var(--red-700) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,.85); margin-top: 14px; max-width: 560px; margin-inline: auto; }
.cta-block__ctas { margin-top: 28px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Generic prose pages (legal, about) ---------- */
.prose { max-width: var(--max-w-prose); margin-inline: auto; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; color: var(--ink-900); margin-bottom: 16px; letter-spacing: -.02em; }
.prose h2 { font-size: 22px; font-weight: 700; color: var(--ink-900); margin: 36px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink-900); margin: 24px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--ink-700); }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; margin-left: 22px; margin-bottom: 14px; }
.prose ul li { margin-bottom: 6px; }
.prose a { color: var(--red-500); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--red-700); }
.prose strong { color: var(--ink-900); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--ink-100); margin: 40px 0; }
.prose-meta {
  display: inline-block;
  color: var(--ink-500);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal-notice {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-left: 4px solid var(--red-500);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 12px 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-700);
}
.legal-notice strong { color: var(--ink-900); }
.legal-updated {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0 0 32px;
}

/* ---------- Page hero (lighter than homepage hero) ---------- */
.page-hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-hero .h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 18px; max-width: 60ch; }

/* ---------- Presentation mode (us-growth/presentation) ---------- */
.deck { background: var(--ink-900); color: #fff; }
.deck .slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.deck .h-display, .deck .h1, .deck .h2 { color: #fff; }
.deck .muted { color: rgba(255,255,255,.65); }
.deck .stat { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.deck .stat__num { color: var(--red-400); }
.deck .stat__label { color: rgba(255,255,255,.78); }
.deck-nav {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 60;
  display: flex; gap: 8px;
}
.deck-nav a {
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.deck-nav a:hover { background: rgba(255,255,255,.16); }

/* ---------- App page (consumer app) ---------- */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .app-hero { grid-template-columns: 1fr; } }
.app-hero__media {
  background: linear-gradient(135deg, var(--red-100), var(--red-50));
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  color: var(--red-500); font-weight: 700;
  border: 1px solid var(--red-200);
}
.store-badges { display: inline-flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.store-badges img { height: 48px; }

/* ---------- Talk to the founder (3-icon CTA cluster) ---------- */
.founder-cta__label {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-900);
  margin-bottom: 14px;
}
.founder-cta__icons {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}
.founder-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--ink-900);
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  transition: background .18s ease, transform .12s ease, color .18s ease;
}
.founder-cta__btn:hover { background: var(--red-500); transform: translateY(-2px); }
.founder-cta__btn svg { width: 28px; height: 28px; stroke: currentColor; fill: none; }
.founder-cta__btn[data-channel="whatsapp"] svg { fill: currentColor; stroke: none; }

/* On-red variant: when the cluster sits inside the red CTA gradient block */
.founder-cta--on-red { display: inline-block; text-align: center; margin-top: 12px; }
.founder-cta--on-red .founder-cta__label { color: #fff; }
.founder-cta--on-red .founder-cta__btn { background: #fff; color: var(--ink-900); }
.founder-cta--on-red .founder-cta__btn:hover { background: var(--ink-900); color: #fff; }

/* ---------- Impact Calculator ---------- */
.impact-calculator {
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.impact-calculator__head { text-align: center; margin-bottom: 28px; }
.impact-calculator__head h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--ink-900);
  margin-top: 8px;
  letter-spacing: -.015em;
}
.impact-calculator__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin-inline: auto;
}
@media (max-width: 600px) { .impact-calculator__inputs { grid-template-columns: 1fr; } }
.ic-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ic-field__label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
}
.ic-field__hint { font-size: 12px; color: var(--ink-500); }
.ic-field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.ic-field__prefix {
  position: absolute;
  left: 18px;
  font-weight: 600;
  color: var(--ink-500);
  pointer-events: none;
}
.ic-field input {
  width: 100%;
  padding: 16px 18px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
  background: var(--surface-50);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--r-md);
  transition: border-color .18s ease, background .18s ease;
}
.ic-field--prefixed input { padding-left: 36px; }
.ic-field input:hover { border-color: var(--ink-200); }
.ic-field input:focus {
  outline: none;
  border-color: var(--red-500);
  background: #fff;
}
.ic-field input.is-error { border-color: var(--red-500); background: #FFF5F7; }
.ic-field__error {
  font-size: 13px;
  color: var(--red-600);
  min-height: 1.2em;
}

.impact-calculator__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 600px) { .impact-calculator__results { grid-template-columns: 1fr; } }
.ic-result {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  text-align: center;
  border: 1px solid var(--ink-100);
  background: var(--surface-50);
}
.ic-result--with {
  background: linear-gradient(135deg, var(--red-500) 0%, var(--red-700) 100%);
  border-color: var(--red-500);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.ic-result__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.ic-result--with .ic-result__label { color: rgba(255,255,255,.85); }
.ic-result__amount {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 8px;
  line-height: 1.05;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.ic-result--with .ic-result__amount { color: #fff; }
.ic-result__sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-500);
}
.ic-result--with .ic-result__sub { color: rgba(255,255,255,.78); }
.ic-result__delta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* ---------- Closing image bridge to footer ---------- */
.closing-image {
  display: block;
  margin: 0;
  padding: 0;
}
.closing-image img {
  display: block;
  width: 100%;
  height: auto;
}
.closing-image__band {
  background: var(--ink-900);
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.closing-image__tagline {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(15px, 1.3vw, 17px);
  font-style: italic;
  letter-spacing: -.005em;
  max-width: 60ch;
  margin-inline: auto;
}

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-500);
  background: var(--red-50);
  border-radius: var(--r-pill);
  border: 1px solid var(--red-100);
}

/* ---------- Showcase: app screenshots ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 940px) { .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .showcase { grid-template-columns: 1fr; } }

.showcase__item {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.showcase__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--ink-200); }
.showcase__media {
  background: var(--surface-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.showcase__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.showcase__title { font-size: 16px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }
.showcase__body { font-size: 13px; color: var(--ink-500); line-height: 1.5; }

/* ---------- Callout (the small banner under the problem cards) ---------- */
.callout {
  margin-top: 48px;
  padding: 28px 36px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  box-shadow: var(--shadow-md);
}
.callout .hl { color: var(--red-400); }

/* ---------- Stop marketing — full section, big text + image ---------- */
.stop-marketing {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) { .stop-marketing { grid-template-columns: 1fr; } }

.stop-marketing__copy { min-width: 0; }
.stop-marketing__text {
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ink-900);
}
.stop-marketing__media { min-width: 0; }
.stop-marketing__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
