/* ==========================================================================
   FavelaFood — Marketing Site (light / pink-affair theme, admin-aligned)
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-inter);
  background: #FFECEC;          /* Pink Affair — the workspace */
  color: #1B1B1B;               /* Eerie Black */
  overflow-x: hidden;
  line-height: 1.45;
  font-weight: 500;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #FFD4D4; border-radius: 8px; border: 2px solid #FFECEC; }
::-webkit-scrollbar-thumb:hover { background: #F5B0B0; }

:root {
  --ff-app-bg:        #FFECEC;
  --ff-canvas:        #FFF7F7;
  --ff-surface:       #FFFFFF;
  --ff-surface-2:     #FFF2F2;
  --ff-border:        #FFD4D4;
  --ff-border-strong: #F5B0B0;
  --ff-divider:       #FFE3E3;
  --ff-ink:           #1B1B1B;
  --ff-ink-muted:     #696969;
  --ff-ink-subtle:    #9F9F9F;
  --ff-pill-bg:       #1B1B1B;
  --ff-pill-fg:       #FFECEC;
  --ff-dark-surface:  #1B1B1B;
  --ff-brand:         #FF3535;
  --ff-brand-hover:   #FF5353;
  --ff-brand-deep:    #881414;
  --ff-smoothie:      #FFC5C5;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ff-brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--ff-brand);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { width: 18px; }

.section-title {
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--ff-ink);
  margin-top: 18px;
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--ff-brand);
}

.section-lede {
  margin-top: 22px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ff-ink-muted);
  max-width: 560px;
  line-height: 1.55;
  font-weight: 500;
}

/* Pills / Buttons — brand pill, ALL-CAPS, wide tracking */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: var(--ff-brand);
  color: var(--ff-pill-fg);
  border-color: var(--ff-brand);
  box-shadow: 0 8px 20px rgba(255,53,53,0.22);
}
.btn-primary:hover {
  background: var(--ff-brand-hover); border-color: var(--ff-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255,53,53,0.32);
}
.btn-primary:active { background: var(--ff-brand-deep); transform: scale(0.98); }
.btn-secondary {
  background: var(--ff-dark-surface);
  color: var(--ff-pill-fg);
  border-color: var(--ff-dark-surface);
}
.btn-secondary:hover { background: var(--ff-brand); border-color: var(--ff-brand); }
.btn-outline-dark {
  background: transparent;
  color: var(--ff-ink);
  border-color: var(--ff-ink);
}
.btn-outline-dark:hover { background: var(--ff-ink); color: var(--ff-pill-fg); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background 240ms ease, padding 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 236, 236, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--ff-border);
  padding: 10px 0;
}

/* Nav over hero — pink-affair text, no filter on logo (we swap src in JS) */
[data-nav-on-dark] .nav:not(.scrolled) .nav-links a { color: #FFECEC; }
[data-nav-on-dark] .nav:not(.scrolled) .nav-links a::after { background: #FFECEC; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--ff-border-strong);
  background: transparent;
  color: var(--ff-ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  position: relative;
}
.theme-toggle:hover {
  background: var(--ff-ink);
  color: var(--ff-pill-fg);
  border-color: var(--ff-ink);
  transform: rotate(-12deg);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-nav-on-dark] .nav:not(.scrolled) .theme-toggle {
  color: #FFECEC;
  border-color: rgba(255, 236, 236, 0.32);
}
[data-nav-on-dark] .nav:not(.scrolled) .theme-toggle:hover {
  background: #FFECEC; color: #1B1B1B; border-color: #FFECEC;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 11px;
  font-weight: 800;
  color: var(--ff-ink);
  text-decoration: none;
  transition: color 160ms ease;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--ff-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

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

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 28px 100px;
  overflow: hidden;
  isolation: isolate;

  /* Theme variables -- overridden by [data-hero-theme] */
  --hero-bg-1: #1B1B1B;
  --hero-bg-2: #2A1A1A;
  --hero-fg: #FFECEC;
  --hero-fg-mute: rgba(255, 236, 236, 0.78);
  --hero-accent: #FF3535;
  --hero-accent-2: #FFECEC;
  --hero-chip-bg: #FF3535;
  --hero-chip-fg: #FFECEC;
  --hero-pattern-color: #FF3535;
  --hero-pattern-opacity: 0.10;
  --hero-glow: rgba(255, 53, 53, 0.35);
  --hero-store-bg: #FF3535;
  --hero-store-fg: #FFECEC;
  --hero-store-alt-bg: #FFECEC;
  --hero-store-alt-fg: #1B1B1B;

  color: var(--hero-fg);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, var(--hero-bg-2) 0%, var(--hero-bg-1) 60%, var(--hero-bg-1) 100%);
}

/* Subtle dotted grid overlay */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--hero-pattern-color) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  background-position: 0 0;
  opacity: var(--hero-pattern-opacity);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}

/* Soft top highlight + bottom vignette for depth */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 8%, var(--hero-glow) 0%, transparent 55%),
    linear-gradient(to bottom, transparent 60%, rgba(136, 20, 20, 0.18) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ============ HERO THEMES ============ */
[data-hero-theme="black"] {
  --hero-bg-1: #1B1B1B;
  --hero-bg-2: #2A1A1A;
  --hero-fg: #FFECEC;
  --hero-fg-mute: rgba(255, 236, 236, 0.72);
  --hero-accent: #FF3535;
  --hero-accent-2: #FFECEC;
  --hero-chip-bg: #FF3535;
  --hero-chip-fg: #FFECEC;
  --hero-pattern-color: #FF3535;
  --hero-pattern-opacity: 0.18;
  --hero-glow: rgba(255, 53, 53, 0.28);
  --hero-store-bg: #FF3535;
  --hero-store-fg: #FFECEC;
  --hero-store-alt-bg: #FFECEC;
  --hero-store-alt-fg: #1B1B1B;
}
[data-hero-theme="white"] {
  --hero-bg-1: #FFFFFF;
  --hero-bg-2: #FFECEC;
  --hero-fg: #1B1B1B;
  --hero-fg-mute: #696969;
  --hero-accent: #FF3535;
  --hero-accent-2: #FF3535;
  --hero-chip-bg: #1B1B1B;
  --hero-chip-fg: #FFECEC;
  --hero-pattern-color: #FF3535;
  --hero-pattern-opacity: 0.10;
  --hero-glow: rgba(255, 53, 53, 0.16);
  --hero-store-bg: #1B1B1B;
  --hero-store-fg: #FFECEC;
  --hero-store-alt-bg: #FF3535;
  --hero-store-alt-fg: #FFECEC;
}
[data-hero-theme="red"] {
  --hero-bg-1: #FF3535;
  --hero-bg-2: #FF5353;
  --hero-fg: #FFECEC;
  --hero-fg-mute: rgba(255, 236, 236, 0.85);
  --hero-accent: #FFECEC;
  --hero-accent-2: #1B1B1B;
  --hero-chip-bg: #1B1B1B;
  --hero-chip-fg: #FFECEC;
  --hero-pattern-color: #FFECEC;
  --hero-pattern-opacity: 0.18;
  --hero-glow: rgba(255, 236, 236, 0.18);
  --hero-store-bg: #1B1B1B;
  --hero-store-fg: #FFECEC;
  --hero-store-alt-bg: #FFECEC;
  --hero-store-alt-fg: #FF3535;
}
[data-hero-theme="saintjohn"] {
  --hero-bg-1: #881414;
  --hero-bg-2: #B01D1D;
  --hero-fg: #FFECEC;
  --hero-fg-mute: rgba(255, 236, 236, 0.85);
  --hero-accent: #FFECEC;
  --hero-accent-2: #FF3535;
  --hero-chip-bg: #FF3535;
  --hero-chip-fg: #FFECEC;
  --hero-pattern-color: #FFC5C5;
  --hero-pattern-opacity: 0.18;
  --hero-glow: rgba(255, 197, 197, 0.20);
  --hero-store-bg: #FFECEC;
  --hero-store-fg: #881414;
  --hero-store-alt-bg: #FF3535;
  --hero-store-alt-fg: #FFECEC;
}
[data-hero-theme="smoothie"] {
  --hero-bg-1: #FFC5C5;
  --hero-bg-2: #FFD9D9;
  --hero-fg: #881414;
  --hero-fg-mute: rgba(136, 20, 20, 0.72);
  --hero-accent: #881414;
  --hero-accent-2: #FFFFFF;
  --hero-chip-bg: #881414;
  --hero-chip-fg: #FFECEC;
  --hero-pattern-color: #881414;
  --hero-pattern-opacity: 0.12;
  --hero-glow: rgba(255, 255, 255, 0.32);
  --hero-store-bg: #881414;
  --hero-store-fg: #FFECEC;
  --hero-store-alt-bg: #FF3535;
  --hero-store-alt-fg: #FFECEC;
}
[data-hero-theme="pinkaffair"] {
  --hero-bg-1: #FFECEC;
  --hero-bg-2: #FFD4D4;
  --hero-fg: #1B1B1B;
  --hero-fg-mute: rgba(27, 27, 27, 0.62);
  --hero-accent: #881414;
  --hero-accent-2: #FF3535;
  --hero-chip-bg: #1B1B1B;
  --hero-chip-fg: #FFECEC;
  --hero-pattern-color: #FF3535;
  --hero-pattern-opacity: 0.32;
  --hero-glow: rgba(255, 255, 255, 0.42);
  --hero-store-bg: #1B1B1B;
  --hero-store-fg: #FFECEC;
  --hero-store-alt-bg: #FF3535;
  --hero-store-alt-fg: #FFECEC;
}

/* ============ Floating product moments ============ */
.hero-float {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 236, 236, 0.96);
  color: #1B1B1B;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  font-family: var(--font-inter);
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-float .hf-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-float .hf-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: #1B1B1B;
  white-space: nowrap;
}
.hero-float .hf-meta {
  font-size: 11px;
  font-weight: 500;
  color: #696969;
  white-space: nowrap;
}
.hero-float .hf-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--ff-brand);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255, 53, 53, 0.22);
  animation: hfDot 1.6s ease-in-out infinite;
}
@keyframes hfDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 53, 53, 0.22); }
  50% { box-shadow: 0 0 0 8px rgba(255, 53, 53, 0); }
}
.hero-float .hf-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #1B1B1B;
}
.hero-float .hf-stars svg {
  width: 16px; height: 16px;
  color: var(--ff-brand);
}
.hero-float .hf-bag {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ff-brand);
  color: #FFECEC;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-float .hf-bag svg { width: 18px; height: 18px; }
.hero-float .hf-label:has(+ .hf-meta:not(:empty)),
.hero-float .hf-label {
  /* stylelint-disable */
}
.hero-float .hf-body .hf-label:first-child:has(+ .hf-meta) { /* noop */ }

/* Positions */
.hf-1 { top: 130px; left: 5%;  transform: rotate(-4deg); animation-delay: 0s; }
.hf-2 { top: 160px; right: 5%; transform: rotate(5deg);  animation-delay: 0.6s; padding: 8px 14px; flex-direction: column; align-items: flex-start; gap: 2px; }
.hf-3 { bottom: 80px; left: 7%; transform: rotate(3deg); animation-delay: 1.2s; }

/* Earnings card highlight color */
.hf-3 .hf-label { color: #1B1B1B; font-size: 13px; }

@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

@media (max-width: 1080px) {
  .hf-2 { right: 3%; }
  .hf-1, .hf-3 { display: none; }
}
@media (max-width: 760px) {
  .hero-float { display: none; }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 980px;
  width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: var(--hero-chip-bg);
  color: var(--hero-chip-fg);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: heroPulse 2s infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.hero-logo {
  margin: 36px auto 0;
  display: block;
  width: min(420px, 64vw);
  height: auto;
  filter:
    drop-shadow(0 18px 36px rgba(0, 0, 0, 0.22))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
  animation: heroLogoFloat 6s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-headline {
  margin-top: 40px;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: var(--hero-fg);
  text-wrap: balance;
  font-feature-settings: "ss01" 1;
}
.hero-headline .accent {
  color: var(--hero-accent-2);
  position: relative;
  display: inline-block;
}
.hero-headline .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -0.12em;
  height: 6px;
  background: color-mix(in srgb, var(--hero-accent) 55%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: accent-strike 0.9s cubic-bezier(.65,0,.35,1) 0.5s forwards paused;
}
.hero-headline.in .accent::after, .hero-headline:not(.reveal) .accent::after { animation-play-state: running; }
@keyframes accent-strike { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-headline .accent::after { animation: none; transform: scaleX(1); } }

.hero-sub {
  margin: 28px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--hero-fg-mute);
  line-height: 1.55;
  text-wrap: pretty;
  font-weight: 500;
}

.hero-download { margin-top: 40px; }
.download-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hero-fg-mute);
  margin-bottom: 18px;
  font-weight: 800;
}
.download-row {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}

/* Store badges */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px;
  background: var(--hero-store-bg);
  color: var(--hero-store-fg);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1.5px solid var(--hero-store-bg);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}
.store-badge:hover { transform: translateY(-3px); }
.store-badge.alt {
  background: var(--hero-store-alt-bg);
  color: var(--hero-store-alt-fg);
  border-color: var(--hero-store-alt-bg);
}
.store-badge.alt:hover { transform: translateY(-3px); }
.store-badge .glyph {
  width: 24px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.store-badge .glyph svg { width: 100%; height: 100%; }
.store-badge .copy { line-height: 1.05; text-align: left; }
.store-badge .copy small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 700;
}
.store-badge .copy strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--hero-fg-mute);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 800;
  animation: bobble 2.4s ease-in-out infinite;
}
.scroll-hint .line {
  width: 1.5px; height: 28px;
  background: linear-gradient(to bottom, var(--hero-fg), transparent);
  opacity: 0.6;
}
@keyframes bobble {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ==========================================================================
   Generic section
   ========================================================================== */

.section {
  position: relative;
  padding: 120px 0;
  isolation: isolate;
}
.section.canvas { background: var(--ff-canvas); }

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head.center { margin: 0 auto 64px; text-align: center; }
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

.section-divider {
  height: 2px;
  background: var(--ff-border);
  width: 100%;
}

/* Page-header style block: black glyph w/ red corner accent */
.kicker-glyph {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--ff-dark-surface);
  color: var(--ff-pill-fg);
  display: grid; place-items: center;
  position: relative;
  margin-bottom: 18px;
}
.kicker-glyph::after {
  content: ""; position: absolute; right: -4px; bottom: -4px;
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--ff-brand);
}
.kicker-glyph svg { width: 24px; height: 24px; }

/* ==========================================================================
   Section: Beyond Restaurant — Categories
   ========================================================================== */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 960px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

.cat-card {
  position: relative;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: 16px;
  padding: 24px;
  min-height: 220px;
  display: flex; flex-direction: column;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 240ms ease, background 240ms ease;
  overflow: hidden;
  cursor: default;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 100% 100%, rgba(255, 53, 53, 0.50) 0%, rgba(255, 53, 53, 0.18) 35%, transparent 70%),
    linear-gradient(135deg, transparent 50%, rgba(255, 83, 83, 0.10) 100%);
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  border-radius: inherit;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--ff-brand);
  box-shadow: 0 18px 40px rgba(255, 53, 53, 0.18);
}
.cat-card:hover::after { opacity: 1; }

.cat-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--ff-dark-surface);
  color: var(--ff-smoothie);
  border-radius: 14px;
  margin-bottom: auto;
  position: relative;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cat-icon::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 12px; height: 12px; background: var(--ff-brand); border-radius: 3px;
}
.cat-card:hover .cat-icon { transform: rotate(-8deg) scale(1.06); }
.cat-icon svg { width: 26px; height: 26px; position: relative; z-index: 1; display: block; }

.cat-title {
  margin-top: 36px;
  font-size: 19px;
  font-weight: 900;
  color: var(--ff-ink);
  letter-spacing: -0.02em;
}
.cat-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ff-ink-muted);
  font-weight: 500;
}
.cat-card .arrow-corner {
  position: absolute; top: 22px; right: 22px;
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--ff-ink-subtle);
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}
.cat-card:hover .arrow-corner {
  background: var(--ff-brand);
  color: var(--ff-pill-fg);
  transform: rotate(-45deg);
}
.cat-card .arrow-corner svg { width: 14px; height: 14px; }

/* ==========================================================================
   Section: Apps for everyone
   ========================================================================== */

.apps-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 980px) {
  .apps-grid { grid-template-columns: 1fr; }
}

.app-card {
  position: relative;
  border-radius: 24px;
  padding: 32px 32px 32px;
  min-height: 480px;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid var(--ff-border);
}
.app-card:hover { transform: translateY(-4px); }

.app-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  width: fit-content;
  background: var(--ff-dark-surface);
  color: var(--ff-pill-fg);
}
.app-tag .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ff-brand); }

.app-card h3 {
  margin-top: 22px;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ff-ink);
}
.app-card p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ff-ink-muted);
  max-width: 28ch;
  font-weight: 500;
}
.app-card .spacer { flex: 1; min-height: 32px; }

.app-logo-wrap {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
}
.app-logo {
  width: auto;
  height: 64px;
  max-width: 60%;
  display: block;
}
@media (max-width: 980px) {
  .app-logo { height: 56px; }
}

/* Variant: customer (brand red bg, pink text) */
.app-card.cliente {
  background: var(--ff-brand);
  border-color: var(--ff-brand);
}
.app-card.cliente h3,
.app-card.cliente p { color: var(--ff-pill-fg); }
.app-card.cliente p { color: rgba(255,236,236,0.85); }
.app-card.cliente .app-tag {
  background: var(--ff-dark-surface);
  color: var(--ff-pill-fg);
}
.app-card.cliente .app-tag .dot { background: var(--ff-pill-fg); }

/* Variant: merchant (Saint John Red) */
.app-card.comercio {
  background: var(--ff-saint-john-red);
  border-color: var(--ff-saint-john-red);
}
.app-card.comercio h3 { color: var(--ff-pill-fg); }
.app-card.comercio p { color: rgba(255,236,236,0.7); }
.app-card.comercio .app-tag {
  background: var(--ff-brand);
  color: var(--ff-pill-fg);
}
.app-card.comercio .app-tag .dot { background: var(--ff-pill-fg); }

/* Variant: courier (light surface) */
.app-card.motoboy {
  background: var(--ff-eerie-black);
  border-color: var(--ff-eerie-black);
}
.app-card.motoboy h3, [data-theme="dark"] .app-card.motoboy h3 { color: #FFECEC; }
.app-card.motoboy p, [data-theme="dark"] .app-card.motoboy p { color: rgba(255,236,236,0.7); }
.app-card.motoboy .app-tag { background: var(--ff-brand); color: #FFECEC; }
.app-card.motoboy .app-tag .dot { background: #FFECEC; }
.app-card.motoboy .btn-secondary { background: transparent; border-color: #FFECEC; color: #FFECEC; }
.app-card.motoboy .btn-secondary:hover { background: #FFECEC; color: var(--ff-eerie-black); }

.app-deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.app-action { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.app-action .download-label { margin-bottom: 0; color: rgba(255,236,236,0.75); }
.app-card.motoboy .app-action .download-label { color: rgba(255,236,236,0.75); }
.app-action .badges { display: flex; gap: 10px; flex-wrap: wrap; }

.app-card.cliente .store-badge {
  background: var(--ff-dark-surface);
  border-color: var(--ff-dark-surface);
  color: var(--ff-pill-fg);
}
.app-card.cliente .store-badge:hover {
  background: var(--ff-pill-fg);
  color: var(--ff-dark-surface);
  border-color: var(--ff-pill-fg);
}

/* ==========================================================================
   Section: Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info-list {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 10px;
}
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, border-color 200ms ease;
}
.contact-link:hover {
  transform: translateY(-2px);
  border-color: var(--ff-brand);
}
.contact-link .icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--ff-dark-surface);
  color: var(--ff-smoothie);
  border-radius: 10px;
  display: grid; place-items: center;
  position: relative;
}
.contact-link .icon::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 10px; height: 10px; background: var(--ff-brand); border-radius: 3px;
}
.contact-link .icon svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.contact-link .meta small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ff-ink-muted);
  margin-bottom: 4px;
  font-weight: 800;
}
.contact-link .meta strong {
  font-size: 15px;
  color: var(--ff-ink);
  font-weight: 800;
  letter-spacing: -0.005em;
}

/* Form */
.form-card {
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--ff-brand);
}
@media (max-width: 600px) { .form-card { padding: 26px 22px; } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-field {
  display: flex; flex-direction: column;
  margin-bottom: 14px;
}
.form-field label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ff-ink);
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  background: var(--ff-canvas);
  border: 1.5px solid var(--ff-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ff-ink);
  font-weight: 500;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ff-brand);
  background: var(--ff-surface);
  box-shadow: 0 0 0 4px rgba(255,53,53,0.12);
}
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ff-ink-subtle);
  font-weight: 500;
}
.form-field.error input,
.form-field.error textarea { border-color: var(--ff-brand); }
.form-error-msg {
  font-size: 11px;
  color: var(--ff-brand);
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 16px 22px;
  background: var(--ff-brand);
  color: var(--ff-pill-fg);
  border: 1.5px solid var(--ff-brand);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 180ms ease, transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 180ms ease;
  box-shadow: 0 10px 24px rgba(255,53,53,0.28);
}
.submit-btn:hover { background: var(--ff-brand-hover); border-color: var(--ff-brand-hover); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,53,53,0.4); }
.submit-btn:active { transform: scale(0.98); background: var(--ff-brand-deep); border-color: var(--ff-brand-deep); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.submit-btn.success { background: #1DBF73; border-color: #1DBF73; box-shadow: 0 10px 24px rgba(29,191,115,0.28); }
.submit-btn .arrow { width: 14px; height: 14px; transition: transform 180ms ease; }
.submit-btn:hover .arrow { transform: translateX(3px); }

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

.footer {
  background: var(--ff-dark-surface);
  color: var(--ff-pill-fg);
  padding: 72px 0 36px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--ff-brand);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 18px; }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,236,236,0.65);
  max-width: 300px;
  line-height: 1.55;
  font-weight: 500;
}
.footer-col h5 {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,236,236,0.5);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,236,236,0.85);
  text-decoration: none;
  transition: color 160ms ease;
  font-weight: 500;
}
.footer-col a:hover { color: var(--ff-brand); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,236,236,0.1);
  gap: 18px; flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255,236,236,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-bottom .social { display: flex; gap: 10px; }
.footer-bottom .social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,236,236,0.16);
  border-radius: 999px;
  color: rgba(255,236,236,0.7);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.footer-bottom .social a:hover {
  background: var(--ff-brand); color: var(--ff-pill-fg); border-color: var(--ff-brand);
}

/* ==========================================================================
   Dark mode overrides
   ========================================================================== */

[data-theme="dark"] {
  --ff-app-bg:        #0A0A0A;
  --ff-canvas:        #111111;
  --ff-surface:       #1B1B1B;
  --ff-surface-2:     #242020;
  --ff-border:        #2A2424;
  --ff-border-strong: #3A3232;
  --ff-divider:       #242020;
  --ff-ink:           #FFECEC;
  --ff-ink-muted:     #B89B9B;
  --ff-ink-subtle:    #6E5C5C;
}
[data-theme="dark"] body { background: var(--ff-app-bg); color: var(--ff-ink); }

/* Hero in dark = black theme */
[data-theme="dark"] .hero[data-hero-theme="pinkaffair"] {
  --hero-bg-1: #0A0A0A;
  --hero-bg-2: #2A0808;
  --hero-fg: #FFECEC;
  --hero-fg-mute: rgba(255, 236, 236, 0.72);
  --hero-accent: #FF3535;
  --hero-accent-2: #FF3535;
  --hero-chip-bg: #FF3535;
  --hero-chip-fg: #FFECEC;
  --hero-pattern-color: #FF3535;
  --hero-pattern-opacity: 0.20;
  --hero-glow: rgba(255, 53, 53, 0.32);
  --hero-store-bg: #FF3535;
  --hero-store-fg: #FFECEC;
  --hero-store-alt-bg: #FFECEC;
  --hero-store-alt-fg: #1B1B1B;
}

/* Section backgrounds */
[data-theme="dark"] .section.canvas { background: #131010; }
[data-theme="dark"] .section { background: var(--ff-app-bg); }

/* Cards */
[data-theme="dark"] .cat-card {
  background: var(--ff-surface);
  border-color: var(--ff-border);
}
[data-theme="dark"] .cat-card:hover {
  border-color: var(--ff-brand);
  box-shadow: 0 18px 40px rgba(255, 53, 53, 0.28);
}
[data-theme="dark"] .cat-title { color: var(--ff-ink); }
[data-theme="dark"] .cat-desc { color: var(--ff-ink-muted); }
[data-theme="dark"] .cat-icon {
  background: rgba(255, 53, 53, 0.16);
  color: var(--ff-brand);
}
[data-theme="dark"] .cat-icon::after { background: var(--ff-brand); }
[data-theme="dark"] .arrow-corner { color: var(--ff-ink-subtle); }

/* Section title */
[data-theme="dark"] .section-title { color: var(--ff-ink); }
[data-theme="dark"] .section-lede { color: var(--ff-ink-muted); }

/* App card motoboy (light surface) becomes dark */
[data-theme="dark"] .app-card.motoboy {
  background: var(--ff-eerie-black);
  border-color: var(--ff-eerie-black);
}
[data-theme="dark"] .app-card.motoboy h3 { color: var(--ff-ink); }
[data-theme="dark"] .app-card.motoboy p { color: var(--ff-ink-muted); }
[data-theme="dark"] .app-card.motoboy .app-tag {
  background: var(--ff-brand);
  color: #FFECEC;
}

/* Contact section */
[data-theme="dark"] .contact-info h2 { color: var(--ff-ink); }
[data-theme="dark"] .contact-link {
  background: var(--ff-surface);
  border-color: var(--ff-border);
}
[data-theme="dark"] .contact-link .meta strong { color: var(--ff-ink); }
[data-theme="dark"] .contact-link .meta small { color: var(--ff-ink-muted); }
[data-theme="dark"] .contact-link .icon {
  background: rgba(255, 53, 53, 0.16);
  color: var(--ff-brand);
}

/* Form */
[data-theme="dark"] .form-card {
  background: var(--ff-surface);
  border-color: var(--ff-border);
}
[data-theme="dark"] .form-field label { color: var(--ff-ink); }
[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field textarea {
  background: #0E0B0B;
  border-color: var(--ff-border-strong);
  color: var(--ff-ink);
}
[data-theme="dark"] .form-field input::placeholder,
[data-theme="dark"] .form-field textarea::placeholder { color: var(--ff-ink-subtle); }

/* Nav */
[data-theme="dark"] .nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: var(--ff-border);
}
[data-theme="dark"] .nav.scrolled .nav-links a { color: var(--ff-ink); }
[data-theme="dark"] .nav.scrolled .nav-links a:hover { color: var(--ff-brand); }
[data-theme="dark"] .theme-toggle {
  color: var(--ff-ink);
  border-color: var(--ff-border-strong);
}
[data-theme="dark"] .theme-toggle:hover {
  background: var(--ff-brand);
  color: #FFECEC;
  border-color: var(--ff-brand);
}

/* Hero floats stay readable on dark */
[data-theme="dark"] .hero-float {
  background: rgba(255, 236, 236, 0.94);
}

/* Footer divider visible on dark */
[data-theme="dark"] .footer { border-top: 0; }

.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: #1B1B1B;
  color: #FFECEC;
  border-radius: 16px;
  z-index: 1000;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  overflow: hidden;
  font-family: var(--font-inter);
}
.tweaks-panel[hidden] { display: none; }
.tweaks-panel.is-collapsed .tweaks-body { display: none; }
.tweaks-panel.is-collapsed { width: auto; }
.tweaks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--ff-brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFECEC;
}
.tweaks-head button {
  background: transparent;
  border: 0;
  color: #FFECEC;
  width: 24px; height: 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: grid; place-items: center;
}
.tweaks-head button:hover { background: rgba(255,236,236,0.18); }
.tweaks-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.tw-section { display: flex; flex-direction: column; gap: 10px; }
.tw-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,236,236,0.6);
}
.tw-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tw-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  background: rgba(255,236,236,0.04);
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  color: #FFECEC;
  font-family: inherit;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.tw-swatch:hover { background: rgba(255,236,236,0.10); transform: translateY(-1px); }
.tw-swatch.is-active { border-color: var(--ff-brand); background: rgba(255,53,53,0.16); }
.tw-swatch-bg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}
.tw-swatch-lbl {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,236,236,0.85);
  text-align: center;
  line-height: 1.1;
}

.sticker {
  position: absolute;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--ff-ink);
  color: var(--ff-brand);
  width: 48px; height: 48px;
  z-index: 0;
  opacity: 0.18;
}
.sticker::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 12px; height: 12px; border-radius: 3px; background: var(--ff-brand);
}
