/* ============================================================
   FASHIONFORGE — LANDING REDESIGN (white-only, editorial-futuristic)
   Self-contained. Loaded AFTER styles.css + showcase.css, ONLY on the
   public landing page (body.lp). It redefines the design tokens to a
   light system (so the showcase demo + inline var() calls adopt the new
   palette) and restyles every landing section.

   Design language:
     - canvas: pure white #FFF + barely-there off-white #FAFAFB bands
     - ink text ~#11121A, coral accent ~#E2574A used SPARINGLY
     - sharp editorial surfaces: ~4px radius, NO shadows, 1px hairlines
     - type: Clash Display (headlines) + Inter (body)
     - motion: restrained — fade+rise, image parallax, magnetic CTA,
       line-draw dividers, stat counters. Driven by Motion (motion.dev).
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');

/* @property enables smooth transitions of the before/after divider position */
@property --pos {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}

/* ── Token override: the landing forces a LIGHT system regardless of the
   dashboard's dark default. Scoped to body.lp so dashboard pages (which do
   not load this file) are untouched. ───────────────────────────────────── */
body.lp {
  /* accent — coral, two strengths (soft for fills, strong for text/CTA on white) */
  --accent: #F07E72;
  --accent-strong: #E2574A;
  --accent-soft: #FCE9E6;

  /* remap legacy vars (used by showcase.css + inline styles) to the light palette */
  --primary: #E2574A;
  --primary-light: #F07E72;
  --primary-dark: #C8463A;
  --secondary: #E2574A;
  --gradient-primary: linear-gradient(135deg, #F07E72 0%, #E2574A 100%);

  --ink: #11121A;
  --ink-panel: #0A0A0F;
  --bg: #FFFFFF;
  --bg-band: #FAFAFB;

  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFB;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-input: #FFFFFF;

  --text: #11121A;
  --text-primary: #11121A;
  --text-secondary: #555A66;
  --text-muted: #8A8F9A;

  --line: rgba(17, 18, 26, 0.10);
  --line-strong: rgba(17, 18, 26, 0.16);
  --border: rgba(17, 18, 26, 0.10);
  --border-hover: rgba(226, 87, 74, 0.45);

  /* sharp editorial — keep corners crisp; substance comes from shadow, not rounding */
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 4px;
  --radius-xl: 6px;
  --radius-full: 999px;

  /* dimensional-minimal elevation system */
  --shadow-xs: 0 1px 2px rgba(17, 18, 26, .05);
  --shadow-sm: 0 2px 10px rgba(17, 18, 26, .06);
  --shadow-md: 0 8px 24px rgba(17, 18, 26, .09);
  --shadow-lg: 0 16px 40px rgba(17, 18, 26, .11);
  --shadow-accent: 0 8px 22px rgba(226, 87, 74, .26);
  --lift: translateY(-2px);
  /* legacy aliases (used by inherited rules) */
  --shadow: var(--shadow-sm);
  --shadow-xl: var(--shadow-lg);
  --shadow-glow: var(--shadow-accent);

  --font-display: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

/* gradient-text → ink on white. Headlines stay clean graphite (no red in the
   copy); coral is reserved for the CTA + accents, which is the higher-converting
   and more premium treatment. */
body.lp .gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: var(--ink);
}

body.lp .font-display,
body.lp h1, body.lp h2, body.lp h3, body.lp h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── Reveal utility — JS adds .is-in on scroll. Hiding is gated behind
   html.lp-js so that with JS disabled (or if the script never runs) all
   content stays fully visible. Stagger is container-level via [data-stagger]. */
html.lp-js body.lp [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
html.lp-js body.lp [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
html.lp-js body.lp [data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html.lp-js body.lp [data-stagger].is-in > * { opacity: 1; transform: none; }
html.lp-js body.lp [data-stagger].is-in > *:nth-child(1) { transition-delay: 0s; }
html.lp-js body.lp [data-stagger].is-in > *:nth-child(2) { transition-delay: .07s; }
html.lp-js body.lp [data-stagger].is-in > *:nth-child(3) { transition-delay: .14s; }
html.lp-js body.lp [data-stagger].is-in > *:nth-child(4) { transition-delay: .21s; }
html.lp-js body.lp [data-stagger].is-in > *:nth-child(5) { transition-delay: .28s; }
html.lp-js body.lp [data-stagger].is-in > *:nth-child(6) { transition-delay: .35s; }
html.lp-js body.lp [data-stagger].is-in > *:nth-child(7) { transition-delay: .42s; }
html.lp-js body.lp [data-stagger].is-in > *:nth-child(8) { transition-delay: .49s; }

/* ============================================================
   BUTTONS
   ============================================================ */
body.lp .btn {
  font-family: var(--font-body);
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .25s var(--ease), background .2s ease, color .2s ease, border-color .2s ease;
}
body.lp .btn-primary {
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
body.lp .btn-primary:hover {
  background: #C8463A;
  border-color: #C8463A;
  transform: var(--lift);
  box-shadow: 0 12px 30px rgba(226, 87, 74, .34);
}
body.lp .btn-secondary {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
body.lp .btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--accent-soft);
  transform: var(--lift);
  box-shadow: var(--shadow-md);
}
/* on ink panels */
body.lp .lp-ink .btn-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
  box-shadow: none;
}
body.lp .lp-ink .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

/* ============================================================
   NAV — transparent over hero, frosted slim bar on scroll
   ============================================================ */
body.lp .nav {
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease, padding .3s ease;
  padding: 6px 0;
}
body.lp .nav.is-stuck {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
body.lp .nav-inner { max-width: var(--maxw); }
body.lp .nav-logo-text { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
body.lp .nav-logo-text span { color: var(--accent-strong); }
body.lp .nav-link {
  color: var(--ink);
  font-weight: 500;
  opacity: .82;
  transition: opacity .2s ease, color .2s ease;
}
body.lp .nav-link:hover { opacity: 1; color: var(--accent-strong); }
body.lp .nav-toggle span { background: var(--ink); }
body.lp .mobile-menu {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* ============================================================
   HERO — full-bleed before/after, ~80vh, left-anchored scrim
   ============================================================ */
body.lp .lp-hero {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 560px;
  max-height: 880px;
  overflow: hidden;
  background: var(--ink-panel);
  isolation: isolate;
}

/* media stack (the before/after compare) */
body.lp .lp-hero-media {
  position: absolute;
  inset: 0;
  --pos: 0%;
  touch-action: none;
  user-select: none;
  cursor: default;
}
body.lp .lp-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
body.lp .lp-hero-slide.is-active { opacity: 1; }
body.lp .lp-hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  pointer-events: none;
}
/* the "before" (product) layer is clipped to --pos width */
body.lp .lp-hero-before {
  position: absolute;
  inset: 0;
  width: var(--pos);
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}
body.lp .lp-hero-before img {
  /* keep the before image aligned to the full viewport so the reveal lines up */
  width: 100vw;
  max-width: none;
}

/* divider handle */
body.lp .lp-hero-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-1px);
  z-index: 4;
  pointer-events: none;
}
body.lp .lp-hero-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  pointer-events: auto;          /* only the circle starts a drag */
  cursor: grab;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
body.lp .lp-hero-grip:hover { transform: translate(-50%, -50%) scale(1.06); }
body.lp .lp-hero-media.is-dragging .lp-hero-grip { cursor: grabbing; }
/* left scrim so the headline stays crisp */
body.lp .lp-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.86) 26%,
    rgba(255, 255, 255, 0.45) 44%,
    rgba(255, 255, 255, 0) 60%);
}
@media (max-width: 760px) {
  body.lp .lp-hero-scrim {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.7) 34%,
      rgba(255, 255, 255, 0) 62%);
  }
}

/* overlay content */
body.lp .lp-hero-overlay {
  position: relative;
  z-index: 5;
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  pointer-events: none;
}
body.lp .lp-hero-overlay > * { pointer-events: auto; }
body.lp .lp-hero-inner { max-width: 560px; }

/* Hero copy crossfade — slides share one grid cell so the block sizes to the
   tallest and the CTA below never shifts as text swaps. */
body.lp .lp-hero-copy { display: grid; margin-bottom: 30px; }
body.lp .lp-hero-copy-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
  pointer-events: none;
}
body.lp .lp-hero-copy-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
body.lp .lp-hero-copy .lp-hero-sub { margin-bottom: 0; }

body.lp .lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 20px;
}
body.lp .lp-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-strong);
}
body.lp .lp-hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
body.lp .lp-hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 30px;
  max-width: 460px;
}
body.lp .lp-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
body.lp .lp-hero-dots {
  display: flex;
  gap: 9px;
  margin-bottom: 26px;
}
body.lp .lp-hero-dot {
  width: 28px;
  height: 3px;
  border: none;
  padding: 0;
  border-radius: 2px;
  background: rgba(17, 18, 26, 0.18);
  cursor: pointer;
  transition: background .3s ease, width .3s ease;
}
body.lp .lp-hero-dot.is-active { background: var(--accent-strong); width: 42px; }

body.lp .lp-hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
body.lp .lp-hero-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}
body.lp .lp-hero-stat-label {
  font-size: .74rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  margin-top: 5px;
}

/* arrows */
body.lp .lp-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(10, 10, 15, 0.32);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s ease;
}
body.lp .lp-hero-arrow:hover { background: rgba(10, 10, 15, 0.55); }
body.lp .lp-hero-arrow-left { right: auto; left: auto; }
body.lp .lp-hero-arrow-prev { left: 18px; }
body.lp .lp-hero-arrow-next { right: 18px; }
@media (max-width: 760px) { body.lp .lp-hero-arrow { display: none; } }

body.lp .lp-scrollcue {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  color: var(--text-muted);
  font-size: 1.3rem;
  animation: lp-bob 2s ease-in-out infinite;
}
@keyframes lp-bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,7px);} }

/* hide the old hero ornaments if any leak through */
body.lp .hero-orb { display: none !important; }

/* SEO landing heroes (ai-*.html) reuse the base .hero, whose background falls
   back to the dark app theme (--gradient-bg: #030712). The light body.lp theme
   never remaps that var, so dark ink headings landed on a near-black hero and
   were invisible. Light-theme the hero to match the rest of the page. */
body.lp .hero {
  background: var(--bg);
  min-height: auto;
  padding: calc(var(--header-height, 64px) + 4.5rem) 1.5rem 3.5rem;
  text-align: center;
}
body.lp .hero h1 { color: var(--ink); }
body.lp .hero .hero-subtitle { color: var(--text-secondary); }

/* ============================================================
   SECTION SHELL — alternating white / off-white bands + hairlines
   ============================================================ */
body.lp .section {
  position: relative;
  background: var(--bg);
  border: none;
  padding: 104px 0;
}
body.lp .section.section-dark { background: var(--bg); }   /* neutralise old dark band */
body.lp .section:nth-of-type(even) { background: var(--bg-band); }
/* (section hairline dividers removed — rhythm comes from the alternating bands) */

body.lp .container { max-width: var(--maxw); }

body.lp .section-header { margin-bottom: 60px; }
body.lp .section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: none;
  border: none;
  padding: 0 0 14px;
  margin: 0;
}
body.lp .section-header h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
body.lp .section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
}

/* ============================================================
   RESULTS — big alternating editorial rows
   ============================================================ */
body.lp #results .ba-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.lp #results .ba-card {
  display: grid;
  grid-template-columns: 1.85fr 0.62fr;
  gap: 48px;
  align-items: center;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 64px 0;
}
body.lp #results .ba-card:last-child { border-bottom: 1px solid var(--line); }
body.lp #results .ba-card:nth-child(even) { direction: rtl; }
body.lp #results .ba-card:nth-child(even) > * { direction: ltr; }

body.lp #results .ba-panels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
body.lp #results .ba-panel { background: none; border: none; padding: 0; position: relative; }
body.lp #results .ba-panel-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-band);
}
body.lp #results .ba-panel-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.lp #results .ba-panel-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-muted);
  border: 1px solid var(--line);
}
body.lp #results .ba-panel-badge.ba-badge-after { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
body.lp #results .ba-panel-info { padding-top: 12px; }
body.lp #results .ba-panel-label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
body.lp #results .ba-panel-sub { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
body.lp #results .ba-arrow-wrap { display: flex; align-items: center; justify-content: center; }
body.lp #results .ba-arrow { font-size: 1.4rem; color: var(--accent-strong); }
body.lp #results .ba-footer { margin-top: 22px; }
body.lp #results .ba-tags { display: flex; gap: 8px; flex-wrap: wrap; }
body.lp #results .ba-tag {
  font-size: .74rem;
  color: var(--text-secondary);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
body.lp #results .ba-caption-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 12px;
}
body.lp #results .ba-caption-text { color: var(--text-secondary); line-height: 1.6; font-size: .98rem; }

@media (max-width: 900px) {
  body.lp #results .ba-card { grid-template-columns: 1fr; gap: 28px; }
  body.lp #results .ba-card:nth-child(even) { direction: ltr; }
}

/* ============================================================
   HOW IT WORKS — minimal numbered steps
   ============================================================ */
body.lp .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
/* kill the stray purple→pink connector bar inherited from styles.css */
body.lp .steps-grid::before { display: none !important; }
body.lp .step-card {
  background: none;
  border: none;
  border-radius: 0;
  text-align: center;
  padding: 8px 22px;
}
/* animated SVG ring + numeral (replaces the old number badge) */
body.lp .lp-step-ring {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}
body.lp .lp-step-ring svg {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
  overflow: visible;
}
body.lp .lp-ring-track { fill: none; stroke: var(--line); stroke-width: 2; }
body.lp .lp-ring-draw {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 182.2;
  stroke-dashoffset: 182.2;
  transition: stroke-dashoffset .9s var(--ease);
}
body.lp .steps-grid.is-in .lp-ring-draw { stroke-dashoffset: 0; }
body.lp .steps-grid.is-in .step-card:nth-child(2) .lp-ring-draw { transition-delay: .15s; }
body.lp .steps-grid.is-in .step-card:nth-child(3) .lp-ring-draw { transition-delay: .3s; }
/* related futuristic icon centered in the ring */
body.lp .lp-step-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent-strong);
}
/* small numbered badge on the ring */
body.lp .lp-step-num {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  box-shadow: 0 2px 8px rgba(226, 87, 74, .35);
}
body.lp .step-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
body.lp .step-card p { color: var(--text-secondary); line-height: 1.6; font-size: .95rem; }
@media (max-width: 820px) {
  body.lp .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  body.lp .step-card { padding: 0; }
  body.lp .step-card:first-child { border-top: none; }
}

/* ============================================================
   SHOWCASE — restyle the framing around the kept interactive demo
   ============================================================ */
body.lp .showcase-tabs { gap: 8px; }
body.lp .showcase-tab {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-secondary);
  font-weight: 500;
}
body.lp .showcase-tab.showcase-tab-active {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  background: var(--accent-soft);
}
body.lp .showcase-screen {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}
body.lp .showcase-arrow {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
/* Light-mode the faux-app demo chrome (showcase.css ships dark-theme tints) */
body.lp .demo-topbar { background: #F4F4F7; border-bottom: 1px solid var(--line); }
body.lp .demo-topbar-title { color: var(--text-muted); }
body.lp .demo-sidebar { background: #FAFAFB; border-right: 1px solid var(--line); }
body.lp .demo-preview { background: #FAFAFB; }
body.lp .demo-option-btn { border: 1px solid var(--line); background: #fff; color: var(--text-secondary); }
body.lp .demo-option-btn.demo-option-btn-active { background: var(--accent-soft); border-color: var(--accent-strong); color: var(--accent-strong); }
body.lp .demo-product-card { border: 1px solid var(--line); background: #fff; }
body.lp .demo-generate-btn { background: var(--accent-strong); color: #fff; }

/* ============================================================
   FEATURES + diversity bar
   ============================================================ */
body.lp .diversity-bar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px 18px;
  margin-bottom: 56px;
}
body.lp .diversity-num { font-family: var(--font-display); font-weight: 600; color: var(--accent-strong); }
body.lp .diversity-lbl { color: var(--text-muted); }
body.lp .diversity-sep { background: var(--line); }

body.lp .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
body.lp .feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s ease;
}
body.lp .feature-card:hover {
  transform: var(--lift);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
body.lp .feature-card:hover .feature-icon {
  background: rgba(226, 87, 74, .18);
  color: var(--accent-strong);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
body.lp .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
body.lp .feature-icon svg { width: 28px; height: 28px; }
body.lp .feature-icon .ph { font-size: 28px; }
body.lp .feature-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
body.lp .feature-card p { color: var(--text-secondary); line-height: 1.6; font-size: .92rem; }
body.lp .feature-chip {
  font-size: .72rem;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
@media (max-width: 900px) {
  body.lp .features-grid { grid-template-columns: 1fr; }
  body.lp .feature-card { border-left: none !important; }
}

/* ============================================================
   CATEGORIES — crisp image tiles
   ============================================================ */
/* full container width (drop the inherited 960px cap) for larger tiles */
body.lp .categories-grid { max-width: var(--maxw); gap: 20px; }
body.lp .category-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .3s var(--ease), border-color .25s ease;
}
body.lp .category-card:hover { transform: var(--lift); box-shadow: var(--shadow-md); border-color: var(--border-hover); }
/* height lives on the image element itself (override the inherited 4/3 aspect)
   so it works whether or not absolute positioning is in play — no gaps. */
body.lp .category-img {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(380px, 40vw, 520px);
  aspect-ratio: auto;
  overflow: hidden;
}
body.lp .category-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
body.lp .category-card:hover .category-img img { transform: scale(1.06); }
/* The overlay text carries its OWN gradient backing and sits at the top of the
   stack — robust regardless of how the image/scrim layers resolve. */
body.lp .category-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 70px 24px 22px;
  background: linear-gradient(to top, rgba(10, 10, 15, .92) 0%, rgba(10, 10, 15, .6) 45%, rgba(10, 10, 15, 0) 100%);
  pointer-events: none;
}
body.lp .category-info h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: #fff;
}
body.lp .category-info h3::after {
  content: "\2192";
  font-size: 1rem;
  color: var(--accent);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .3s ease;
}
body.lp .category-card:hover .category-info h3::after { transform: translateX(0); opacity: 1; }
body.lp .category-info p { color: rgba(255, 255, 255, .82); font-size: .86rem; }

/* ============================================================
   PRICING — minimal cards
   ============================================================ */
body.lp .pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, transform .3s var(--ease), box-shadow .3s var(--ease);
}
body.lp .pricing-card:hover { transform: var(--lift); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
body.lp .pricing-card.recommended {
  border-color: var(--accent-strong);
  box-shadow: var(--shadow-accent);
  transform: scale(1.03);
  z-index: 2;
}
body.lp .pricing-card.recommended:hover { transform: scale(1.03) var(--lift); box-shadow: 0 16px 38px rgba(226, 87, 74, .32); }
@media (max-width: 900px) {
  body.lp .pricing-card.recommended { transform: none; }
  body.lp .pricing-card.recommended:hover { transform: var(--lift); }
}
body.lp .pricing-badge {
  background: var(--accent-strong) !important;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .04em;
}
body.lp .pricing-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
body.lp .pricing-price { color: var(--ink); }
body.lp .pricing-price span:first-child { color: var(--accent-strong); }
body.lp .pricing-period { color: var(--text-muted); }
body.lp .pricing-divider { background: var(--line); }
body.lp .pricing-feature { color: var(--text-secondary); }
body.lp .pricing-feature .ph { color: var(--accent-strong); }

/* ============================================================
   CTA — ink panel (rare dark moment)
   ============================================================ */
body.lp .cta-section {
  background: var(--ink-panel);
  border: none;
}
body.lp .cta-section::before, body.lp .cta-section::after { display: none; }
body.lp .cta-content h2 { color: #fff; }
body.lp .cta-content h2 .gradient-text { color: var(--accent); -webkit-text-fill-color: var(--accent); }
body.lp .cta-content p { color: rgba(255, 255, 255, 0.7); }
body.lp .cta-section .btn-primary { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
body.lp .cta-section .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
body.lp .cta-section .btn-secondary { border-color: rgba(255, 255, 255, 0.3); color: #fff; background: transparent; box-shadow: none; }
body.lp .cta-section .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

/* ============================================================
   FOOTER — ink panel
   ============================================================ */
body.lp .footer {
  background: var(--ink-panel);
  border-top: none;
  color: rgba(255, 255, 255, 0.7);
}
body.lp .footer-grid { max-width: var(--maxw); }
body.lp .footer-brand p { color: rgba(255, 255, 255, 0.55); }
body.lp .footer .nav-logo span,
body.lp .footer-brand span { color: #fff; font-family: var(--font-display); }
body.lp .footer .gradient-text { color: var(--accent); -webkit-text-fill-color: var(--accent); }
body.lp .footer-col h4 { color: #fff; }
body.lp .footer-link { color: rgba(255, 255, 255, 0.6); transition: color .2s ease; }
body.lp .footer-link:hover { color: #fff; }
body.lp .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.45); }

/* ============================================================
   MAGNETIC CTA helper (JS sets --mx/--my)
   ============================================================ */
body.lp .lp-magnetic { transform: translate(var(--mx, 0), var(--my, 0)); }

/* ============================================================
   HERO copy — minimal masked slide-up reveal
   Each glyph rises into place from behind a clip edge, left→right,
   slow and restrained (no blur, no fade). The word is the clip mask;
   padding/negative-margin give ascenders + descenders room so the
   resting glyph is never trimmed. Driven by Motion in index.html.
   ============================================================ */
/* keep whole words intact so the glyph stagger never breaks mid-word */
body.lp .lp-word {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.14em 0;
  margin: -0.14em 0;
}
body.lp .lp-char { display: inline-block; will-change: transform; }
/* legacy hook (older masked reveal) — harmless if unused */
body.lp .lp-word-inner { display: inline-block; will-change: transform; }

/* ============================================================
   THICKER PAGE SCROLLBAR
   (root-level selectors are safe — landing.css only loads on the landing)
   ============================================================ */
html { scrollbar-width: auto; scrollbar-color: rgba(226, 87, 74, .5) #f1f1f5; }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #f1f1f5; }
::-webkit-scrollbar-thumb {
  background: rgba(226, 87, 74, .45);
  border-radius: 10px;
  border: 3px solid #fff;
}
::-webkit-scrollbar-thumb:hover { background: rgba(226, 87, 74, .7); }

/* ============================================================
   BACK-TO-TOP BUTTON
   ============================================================ */
body.lp .lp-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 20px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s ease, color .2s ease;
}
body.lp .lp-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
body.lp .lp-to-top:hover { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
@media (max-width: 600px) { body.lp .lp-to-top { right: 16px; bottom: 16px; } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  body.lp [data-reveal],
  body.lp [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none; }
  body.lp .lp-hero-media { --pos: 50%; }
  body.lp .lp-scrollcue { animation: none; }
  body.lp .lp-hero-slide { transition: none; }
  body.lp .lp-ring-draw { stroke-dashoffset: 0 !important; transition: none; }
  body.lp .lp-word-inner,
  body.lp .lp-char { transform: none !important; filter: none !important; opacity: 1 !important; }
}

/* ============================================================
   SHARED PUBLIC PAGES — auth · legal · coming-soon
   landing.css is loaded on every public page (under body.lp), not just the
   landing, so these neutralise dark-theme leftovers on the white canvas.
   ============================================================ */

/* Legal (terms / privacy) — the page's inline CSS references an undefined
   --card-bg, so the card would be invisible on white. Give it a real surface. */
body.lp .legal-page { background: var(--bg); }
body.lp .legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
body.lp .legal-card h1 { font-family: var(--font-display); color: var(--ink); }
body.lp .legal-card h2 { color: var(--accent-strong); }

/* Coming-soon — the access chip is a dark pill; make it editorial-white. */
body.lp .cs-access-toggle {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
body.lp .cs-access-toggle:hover { border-color: var(--border-hover); }

/* Auth — keep the violet visual panel (var(--gradient-primary)); make sure the
   form side is pure white and its heading uses the display face. */
body.lp .auth-form-side { background: #fff; }
body.lp .auth-form-header h1,
body.lp .auth-form-header h2 { font-family: var(--font-display); color: var(--ink); }

/* ============================================================
   ONE-TAP RETOUCH (#retouch-magic) — remove-bg + ghost mannequin
   Futuristic before/after: clip-path reveal led by a glowing coral
   "scan beam" + sparkle particles + shimmer. Driven by Motion (JS sets
   --reveal 0→100%). Reduced-motion / no-JS shows the AFTER statically.
   ============================================================ */
body.lp #retouch-magic .rm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
body.lp #retouch-magic .rm-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* stage: the two images stacked + the magic layers */
body.lp #retouch-magic .rm-stage {
  --reveal: 100%;                 /* default = AFTER fully shown (no-JS/reduced) */
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-band);
  isolation: isolate;
}
body.lp #retouch-magic .rm-before,
body.lp #retouch-magic .rm-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* the AFTER is wiped in left→right via --reveal */
body.lp #retouch-magic .rm-after {
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
  z-index: 2;
}
/* transparency checkerboard behind the remove-bg AFTER (reads as "cut out") */
body.lp #retouch-magic .rm-stage--checker .rm-after {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e9ebf0 25%, transparent 25%),
    linear-gradient(-45deg, #e9ebf0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9ebf0 75%),
    linear-gradient(-45deg, transparent 75%, #e9ebf0 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

/* the glowing "scan beam" that rides the reveal edge */
body.lp #retouch-magic .rm-beam {
  position: absolute;
  top: -4%;
  left: var(--reveal);
  width: 3px;
  height: 108%;
  z-index: 3;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    transparent 0%,
    color-mix(in srgb, var(--accent-strong) 30%, transparent) 12%,
    var(--accent-strong) 50%,
    color-mix(in srgb, var(--accent-strong) 30%, transparent) 88%,
    transparent 100%);
  box-shadow:
    0 0 14px 2px color-mix(in srgb, var(--accent-strong) 70%, transparent),
    0 0 40px 8px color-mix(in srgb, var(--accent-strong) 35%, transparent);
  opacity: 0;
}
body.lp #retouch-magic .rm-stage.is-playing .rm-beam {
  opacity: 1;
  /* gentle vertical drift + slight tilt so the scan path softly waves rather than
     tracking a dead-straight vertical line — kept subtle and slow to stay smooth */
  animation: rm-beam-wander 2.6s ease-in-out infinite;
}
/* keeps translateX(-50%) so the horizontal position stays driven by --reveal;
   only a soft Y drift / tilt vary, with smooth eased steps (no jitter) */
@keyframes rm-beam-wander {
  0%   { transform: translateX(-50%) translateY(-1.4%) rotate(-1deg)   skewX(-1.4deg); }
  25%  { transform: translateX(-50%) translateY(1.2%)  rotate(0.8deg)  skewX(1.2deg); }
  50%  { transform: translateX(-50%) translateY(-0.8%) rotate(1deg)    skewX(-0.6deg); }
  75%  { transform: translateX(-50%) translateY(1.4%)  rotate(-0.8deg) skewX(1deg); }
  100% { transform: translateX(-50%) translateY(-1.4%) rotate(-1deg)   skewX(-1.4deg); }
}

/* a soft shimmer sweep over the AFTER while it settles */
body.lp #retouch-magic .rm-after::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}
body.lp #retouch-magic .rm-stage.is-playing .rm-after::after {
  animation: rm-shimmer 1.6s ease-out 0.25s;
}
@keyframes rm-shimmer {
  0%   { transform: translateX(-120%); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* sparkle particles along the reveal edge (coral logo spark) */
body.lp #retouch-magic .rm-sparkles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
body.lp #retouch-magic .rm-spark {
  position: absolute;
  left: var(--reveal);
  width: 16px;
  height: 16px;
  margin-left: -8px;
  color: var(--accent-strong);
  opacity: 0;
  transform: scale(0.4);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent-strong) 70%, transparent));
}
body.lp #retouch-magic .rm-spark svg { width: 100%; height: 100%; fill: currentColor; display: block; }
body.lp #retouch-magic .rm-spark:nth-child(1) { top: 16%; }
body.lp #retouch-magic .rm-spark:nth-child(2) { top: 34%; width: 11px; height: 11px; margin-left: -5.5px; }
body.lp #retouch-magic .rm-spark:nth-child(3) { top: 52%; width: 20px; height: 20px; margin-left: -10px; }
body.lp #retouch-magic .rm-spark:nth-child(4) { top: 70%; width: 12px; height: 12px; margin-left: -6px; }
body.lp #retouch-magic .rm-spark:nth-child(5) { top: 86%; }
body.lp #retouch-magic .rm-stage.is-playing .rm-spark {
  animation: rm-spark-pop 1.5s ease-out infinite;
}
body.lp #retouch-magic .rm-stage.is-playing .rm-spark:nth-child(2) { animation-delay: .18s; }
body.lp #retouch-magic .rm-stage.is-playing .rm-spark:nth-child(3) { animation-delay: .36s; }
body.lp #retouch-magic .rm-stage.is-playing .rm-spark:nth-child(4) { animation-delay: .54s; }
body.lp #retouch-magic .rm-stage.is-playing .rm-spark:nth-child(5) { animation-delay: .72s; }
@keyframes rm-spark-pop {
  0%   { opacity: 0; transform: scale(0.2) rotate(0deg); }
  30%  { opacity: 1; transform: scale(1) rotate(35deg); }
  60%  { opacity: 0; transform: scale(0.5) rotate(70deg); }
  100% { opacity: 0; transform: scale(0.2) rotate(90deg); }
}

/* flip label pill (JS toggles Before ↔ After) */
body.lp #retouch-magic .rm-flip-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
  transition: background .3s ease, color .3s ease;
}
body.lp #retouch-magic .rm-flip-label.is-after {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}

/* caption */
body.lp #retouch-magic .rm-caption-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
body.lp #retouch-magic .rm-caption-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

@media (max-width: 820px) {
  body.lp #retouch-magic .rm-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  body.lp #retouch-magic .rm-stage { --reveal: 100%; }
  body.lp #retouch-magic .rm-beam,
  body.lp #retouch-magic .rm-spark { display: none; }
  body.lp #retouch-magic .rm-after::after { animation: none; }
}

/* ============================================================
   RESPONSIVE — LANDING MOBILE
   landing.css's body.lp rules out-specify the plain-class mobile
   media queries in styles.css, so the landing needs its OWN mobile
   overrides here (placed last so they win). Without these the
   sections run edge-to-edge (base .container has no side padding,
   and body.lp .section zeroes horizontal padding) and the fixed-
   height hero clips its content on phones.
   ============================================================ */
@media (max-width: 760px) {
  /* Sections — restore horizontal gutters + tighten the vertical rhythm */
  body.lp .section { padding: 64px 20px; }
  body.lp .section-header { margin-bottom: 40px; }

  /* Hero — let it grow with content (no clip) and stack the CTAs full-width */
  body.lp .lp-hero { height: auto; min-height: 88vh; max-height: none; }
  body.lp .lp-hero-overlay { justify-content: center; padding: 96px 20px 48px; }
  body.lp .lp-hero-inner { max-width: 100%; }
  body.lp .lp-hero-copy { margin-bottom: 24px; }
  body.lp .lp-hero-cta { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 24px; }
  body.lp .lp-hero-cta .btn { width: 100%; justify-content: center; }
  body.lp .lp-hero-dots { margin-bottom: 22px; }
  body.lp .lp-hero-stats { gap: 22px; }

  /* Results — the inner before→after panels were already 1-col via #results@900;
     tighten the panel gap so the two shots don't crush at phone widths */
  body.lp #results .ba-card { padding: 44px 0; }
  body.lp #results .ba-panels { gap: 12px; }
  body.lp #results .ba-caption-title { font-size: 1.35rem; }

  /* Categories — base grid is 2-col on mobile; the editorial tiles are far too
     tall there, so cap the image height and trim the overlay's top gradient pad */
  body.lp .category-img { height: clamp(200px, 34vw, 320px); }
  body.lp .category-info { padding: 46px 16px 16px; }
  body.lp .category-info h3 { font-size: 1.05rem; }

  /* Diversity bar — compact so the four stats wrap cleanly */
  body.lp .diversity-bar { padding: 16px 10px; margin-bottom: 40px; }
}

@media (max-width: 480px) {
  body.lp .section { padding: 52px 16px; }
  body.lp .section-header { margin-bottom: 32px; }

  body.lp .lp-hero-overlay { padding: 88px 16px 40px; }
  body.lp .lp-hero-title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  body.lp .lp-hero-sub { font-size: 0.96rem; }
  body.lp .lp-hero-stats { gap: 16px; }
  body.lp .lp-hero-stat-value { font-size: 1.3rem; }

  /* keep the before/after readable when the row gets very narrow */
  body.lp #results .ba-panels { gap: 10px; }
  body.lp #results .ba-panel-label { font-size: 0.86rem; }
  body.lp #results .ba-panel-badge { font-size: 0.55rem; padding: 4px 7px; }

  body.lp .category-info { padding: 40px 14px 14px; }
}
