/* livedropr — landing page styles
 * Background, rhythm, and the few global states we need.
 * Component-level CSS lives inline in the JSX — these are the things
 * that have to be global. */

html, body {
  margin: 0;
  padding: 0;
  background: #FAFAF7;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--fg-on-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

img { display: block; max-width: 100%; }

a { color: inherit; }

/* ────────────────────────────────────────────────────────────────
 * Top nav + footer responsive overrides
 * ──────────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .ld-topnav-links { display: none !important; }
  .ld-topnav-cta-desktop { display: none !important; }
  .ld-topnav-menu-btn { display: inline-flex !important; }
  .ld-topnav-mobile-panel[data-open="true"] { display: block !important; }
}
@media (max-width: 560px) {
  .ld-topnav-cta span:first-child { display: none; }
  .ld-topnav-cta { padding: 12px !important; width: 40px; height: 40px; justify-content: center; }
}
@media (max-width: 800px) {
  .ld-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 36px !important; }
}
@media (max-width: 480px) {
  .ld-footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .ld-footer-bottom { flex-direction: column; align-items: flex-start !important; }
}

/* ── v5 promo banner + platform-logo wall responsive (Landing Phase 3) ── */
@media (max-width: 720px) {
  /* §1 (v5 polish): keep the promo banner on ONE line at every mobile width */
  .ld-promo-row {
    padding: 10px 12px !important;
    min-height: 0 !important;
    gap: 10px !important;
    font-size: 12.5px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
  .ld-promo-row > span:first-child {       /* the "NOW OPEN" pill */
    padding: 3px 8px !important;
    font-size: 9.5px !important;
    letter-spacing: 0.06em !important;
  }
  .ld-promo-copy { white-space: nowrap !important; }
  .v5-platform-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

  /* v15: clamp phone section paddings to fix mobile overflow. The !important
   * is intentional — many sections set inline paddingTop/paddingBottom that
   * would otherwise win. (Breakpoint widened from 640px → 720px this pass.) */
  .ld-section          { padding: 48px 0 !important; }
  .ld-section--loose   { padding: 64px 0 !important; }
  .ld-section--tight   { padding: 32px 0 !important; }
  section.ld-section.ld-bg-paper { padding: 48px 0 32px !important; }
  section:has(> .v2-hero-grid) { padding: 32px 0 56px !important; }
  .v2-hero-grid > div:last-child { min-height: 360px !important; }
}
@media (max-width: 560px) {
  .v5-tier-rail { grid-template-columns: 1fr !important; }
}
@media (max-width: 440px) {
  .v5-platform-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* §1 (v5 polish): promo banner tightest tier — iPhone SE / small phones */
@media (max-width: 420px) {
  .ld-promo-row { gap: 8px !important; font-size: 11.5px !important; }
  .ld-promo-row > span:last-child { gap: 4px !important; }
  .ld-promo-row > span:last-child svg { width: 10px; height: 10px; }
  .ld-promo-row > span:first-child { padding: 3px 6px !important; }
}
/* /faq: collapse the rail + question list to one column on tablet/phone */
@media (max-width: 900px) {
  .v5-faq-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .v5-faq-rail { position: static !important; }
}

/* ── §3 (v5 polish): catchphrase ribbon marquee (V4CatchphraseRibbon) ── */
.v4-ribbon {
  position: relative;
  padding: 18px 0;
  background: #0A0A0F;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.v4-ribbon-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 200px at 10% 50%, rgba(124,58,237,0.22), transparent 60%),
    radial-gradient(420px 200px at 90% 50%, rgba(236,72,153,0.20), transparent 60%);
}
.v4-ribbon-lane {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.v4-ribbon-track {
  display: inline-flex; align-items: center;
  gap: 48px; padding-right: 48px;
  flex-shrink: 0; min-width: 100%;
  will-change: transform;
  animation: v4-ribbon-scroll 38s linear infinite;
}
.v4-ribbon-phrase {
  font: 800 clamp(20px, 2.2vw, 30px)/1 'Plus Jakarta Sans', system-ui;
  letter-spacing: -0.02em;
  color: #fff; white-space: nowrap;
  padding-bottom: 0.12em;       /* descender room so g/y don't clip */
}
.v4-ribbon-phrase.grad {
  background: linear-gradient(135deg, #A78BFA 0%, #EC4899 50%, #FED7AA 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.v4-ribbon-sep {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,0.30); flex-shrink: 0;
}
@keyframes v4-ribbon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .v4-ribbon        { padding: 14px 0; }
  .v4-ribbon-track  { gap: 28px; padding-right: 28px; animation-duration: 30s; }
  .v4-ribbon-phrase { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .v4-ribbon-track { animation: none; }
}

/* Live dot pulse — used in product mocks */
@keyframes ld-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.7); }
}
.ld-pulse { animation: ld-pulse 1.6s cubic-bezier(0.4,0,0.4,1) infinite; }

/* Soft entry fade for content sections so the page feels considered */
@keyframes ld-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ld-rise { animation: ld-rise 0.7s cubic-bezier(0.2,0.8,0.2,1) both; }

/* Background — subtle geometric paper texture that nods to current site,
 * but cleaner. Drawn in CSS so it scales and tints cleanly. */
.ld-bg-paper {
  background:
    radial-gradient(900px 600px at 12% 8%,  rgba(124,58,237,0.05), transparent 60%),
    radial-gradient(900px 600px at 88% 32%, rgba(236,72,153,0.04), transparent 60%),
    #FAFAF7;
}

.ld-bg-lavender {
  background:
    radial-gradient(1200px 800px at 50% 0%, rgba(167,139,250,0.18), transparent 60%),
    linear-gradient(180deg, #F5F3FA 0%, #EFEAF7 100%);
}

.ld-bg-pink-grad {
  background:
    radial-gradient(1400px 900px at 15% 20%, rgba(255,255,255,0.30), transparent 60%),
    linear-gradient(135deg, #C084FC 0%, #F0ABFC 45%, #FBCFE8 80%, #FED7AA 100%);
}

/* Faint geometric weave overlay (used on lavender + pink-grad sections to
 * echo the current site's wireframe vibe, but quieter) */
.ld-weave::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(45deg,  rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Section rhythm */
.ld-section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.ld-section--tight { padding: 72px 0; }
.ld-section--loose { padding: 128px 0; }

.ld-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Eyebrow gradient text — used above feature titles */
.ld-eyebrow {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #A78BFA 0%, #EC4899 50%, #FED7AA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 24px;
  line-height: 1.3;
}

.ld-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 28px;
  color: var(--fg-on-light);
  text-wrap: balance;
}
.ld-title--smaller { font-size: 52px; }

.ld-body {
  font-size: 19px;
  line-height: 1.65;
  color: var(--fg-on-light-muted);
  margin: 0;
  text-wrap: pretty;
}

/* The pulse-line accent above some text columns */
.ld-accent-line {
  width: 96px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #A78BFA 0%, #EC4899 50%, #FED7AA 100%);
  margin-bottom: 32px;
}

/* CTA button — gradient pill with white inner ring */
.ld-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #A78BFA 0%, #EC4899 60%, #FED7AA 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 3px solid rgba(255,255,255,0.95);
  cursor: pointer;
  box-shadow:
    0 18px 36px -12px rgba(124,58,237,0.45),
    0 6px 14px -4px rgba(236,72,153,0.25);
  transition: transform 220ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 220ms;
}
.ld-cta:hover { transform: translateY(-2px) scale(1.025); box-shadow: 0 22px 42px -12px rgba(124,58,237,0.55); }
.ld-cta--ghost {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.85);
  box-shadow: none;
}
.ld-cta--ghost:hover { background: rgba(255,255,255,0.28); }

.ld-cta-arrow {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ────────────────────────────────────────────────────────────────
 * Waitlist email-capture form
 *
 * Pill-shaped: input on the left, gradient submit pill on the right.
 * Two themes:
 *   default — for cream / light backgrounds (hero, pricing tile)
 *   --ghost — for dark/gradient backgrounds (founder, pricing card)
 * Both inherit the same height + radius as `.ld-cta` so the page rhythm
 * is unchanged.
 * ──────────────────────────────────────────────────────────────── */
.ld-waitlist {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 999px;
  box-shadow:
    0 18px 36px -12px rgba(124,58,237,0.30),
    0 6px 14px -4px rgba(236,72,153,0.18);
  max-width: 100%;
  min-width: min(440px, 100%);
  transition: box-shadow 220ms, border-color 220ms;
}
.ld-waitlist:focus-within {
  border-color: rgba(124,58,237,0.55);
  box-shadow:
    0 0 0 4px rgba(167,139,250,0.18),
    0 22px 42px -12px rgba(124,58,237,0.40);
}

.ld-waitlist-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: #0F172A;
  padding: 12px 22px;
  letter-spacing: -0.01em;
}
.ld-waitlist-input::placeholder { color: rgba(15,23,42,0.42); }
.ld-waitlist-input:disabled { opacity: 0.6; }

.ld-waitlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #A78BFA 0%, #EC4899 60%, #FED7AA 100%);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(124,58,237,0.45);
  transition: transform 180ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 180ms;
}
.ld-waitlist-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(124,58,237,0.55);
}
.ld-waitlist-btn:disabled { cursor: default; opacity: 0.85; }

/* Ghost variant — for dark/gradient backgrounds (founder, pricing card). */
.ld-waitlist--ghost {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.30);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.40);
}
.ld-waitlist--ghost:focus-within {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.65);
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.16),
    0 12px 28px -10px rgba(0,0,0,0.50);
}
.ld-waitlist--ghost .ld-waitlist-input { color: #fff; }
.ld-waitlist--ghost .ld-waitlist-input::placeholder { color: rgba(255,255,255,0.55); }

/* Success state — replaces the form with a pill confirmation. */
.ld-waitlist--success {
  padding: 14px 22px 14px 14px;
  background: #fff;
  border-color: rgba(34,197,94,0.45);
  box-shadow:
    0 0 0 4px rgba(34,197,94,0.10),
    0 18px 36px -14px rgba(34,197,94,0.30);
  gap: 12px;
  color: #0F172A;
  font-size: 15px;
  font-weight: 600;
  flex-wrap: wrap;
}
.ld-waitlist--success.ld-waitlist--ghost {
  background: rgba(34,197,94,0.14);
  border-color: rgba(74,222,128,0.6);
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(74,222,128,0.14),
    0 18px 36px -14px rgba(0,0,0,0.40);
}
.ld-waitlist-check {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: #22C55E;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ld-waitlist--ghost .ld-waitlist-check { background: #4ADE80; color: #052e16; }
.ld-waitlist-success-email {
  font-weight: 700;
  color: var(--brand-purple, #7C3AED);
  margin-left: 4px;
  word-break: break-all;
}
.ld-waitlist--ghost .ld-waitlist-success-email { color: #FED7AA; }

/* ────────────────────────────────────────────────────────────────
 * Feature row grid — controlled via class so we can break on mobile
 * ──────────────────────────────────────────────────────────────── */
.ld-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ld-feature-gap, 80px);
  align-items: center;
}

/* Visual frame — proportionally scales the dark cards (designed at a
 * fixed native width of 560px / ~618px outer) to fit the column without
 * clipping the product view. `zoom` shrinks the layout box (not just
 * visuals like transform: scale) so the scaled card occupies its real
 * footprint and stays centered. */
.ld-visual-frame {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.ld-visual-frame > * {
  zoom: var(--ld-visual-scale, 0.85);
}

/* Stacked layout — visual on top, text below, full width.
 * Override scale to 1 since the column is wide enough for native size. */
[data-ld-layout="stacked"] .ld-feature-grid,
[data-ld-layout="stacked"] .ld-cooked-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 48px !important;
  direction: ltr !important;
}
[data-ld-layout="stacked"] .ld-feature-grid > *,
[data-ld-layout="stacked"] .ld-cooked-grid > * {
  direction: ltr !important;
  min-width: 0;
}
[data-ld-layout="stacked"] .ld-visual-frame > * {
  zoom: 1;
}

/* ────────────────────────────────────────────────────────────────
 * Tablet — single column from here down
 * ──────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ld-section          { padding: 72px 0; }
  .ld-section--loose   { padding: 96px 0; }
  .ld-section--tight   { padding: 56px 0; }
  .ld-container        { padding: 0 32px; }

  .ld-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    direction: ltr !important;
  }
  .ld-feature-grid > * { direction: ltr !important; min-width: 0; }

  .ld-title            { font-size: 44px; }
  .ld-title--smaller   { font-size: 38px; }
  .ld-eyebrow          { font-size: 16px; margin-bottom: 18px; }
  .ld-body             { font-size: 17px; }

  /* Hero headline */
  .ld-hero-title       { font-size: 56px !important; }
  .ld-hero-sub         { font-size: 19px !important; }
  .ld-hero-tag         { font-size: 16px !important; }

  /* Founder + Pricing big titles */
  .ld-founder-title    { font-size: 48px !important; }
  .ld-pricing-title    { font-size: 60px !important; }

  /* Pricing two-col → stack */
  .ld-pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Cooked story → stack */
  .ld-cooked-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 56px !important;
  }
  .ld-cooked-grid > * { min-width: 0; }
}

/* ────────────────────────────────────────────────────────────────
 * Phone — scale down the dark visual cards proportionally
 * ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ld-container        { padding: 0 20px; }

  /* (v15 section-padding clamps moved up to the 720px block above so they
   * also cover 641–720px; phone-specific type scaling stays here.) */
  .ld-title            { font-size: 36px; }
  .ld-title--smaller   { font-size: 32px; }

  .ld-hero-title       { font-size: 42px !important; line-height: 1.05 !important; }
  .ld-hero-sub         { font-size: 17px !important; }
  .ld-hero-tag         { font-size: 15px !important; }

  .ld-founder-title    { font-size: 36px !important; }
  .ld-pricing-title    { font-size: 44px !important; line-height: 1.05 !important; }

  .ld-pricing-card,
  .ld-pricing-tile {
    padding: 28px !important;
  }
  .ld-pricing-amount   { font-size: 60px !important; }

  /* Scale the dark "Show Mode" cards down so they fit a phone screen.
   * The cards are built at a fixed 560px native width — `zoom` actually
   * shrinks the layout box (transform: scale only shrinks visually and
   * leaves overflow). Browsers we care about all support zoom now.
   * Native card width is ~618px (560 + 28*2 padding + border), so we
   * scale to ~0.52 at <=640px (→ ~320px, fits a 335px content track). */
  .ld-visual-frame > * {
    zoom: 0.52;
  }

  .ld-cta              { padding: 16px 26px; font-size: 16px; }

  /* Waitlist form: stack input on top of button on phones. */
  .ld-waitlist {
    flex-direction: column;
    border-radius: 22px;
    padding: 8px;
    width: 100%;
    min-width: 0;
    max-width: 380px;
    align-items: stretch;
  }
  .ld-waitlist-input  { padding: 14px 18px; text-align: center; }
  .ld-waitlist-btn    { width: 100%; justify-content: center; padding: 14px 22px; }
  /* Success pill on mobile: stack the checkmark on top of the text
   * + match the form's rounded-rectangle shape (border-radius: 22px
   * is the form's mobile shape). Centering both axes prevents a long
   * email from looking left-anchored when it wraps to a 2nd line. */
  .ld-waitlist--success {
    flex-direction: column;
    border-radius: 22px;
    text-align: center;
    align-items: center;
    padding: 18px 16px;
    gap: 10px;
  }
  .ld-waitlist-success-email {
    /* Softer break than `break-all` (which splits every character).
     * `anywhere` lets the browser break at sensible points but only
     * when necessary to avoid horizontal overflow. */
    word-break: normal;
    overflow-wrap: anywhere;
  }

  /* Trust strip (Whatnot · TikTok Shop · …) wraps on phone */
  .ld-trust-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px !important;
    padding: 0 20px;
  }
}

/* ────────────────────────────────────────────────────────────────
 * Small phone — tighter still
 * ──────────────────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .ld-hero-title       { font-size: 36px !important; }
  .ld-pricing-title    { font-size: 36px !important; }
  .ld-founder-title    { font-size: 32px !important; }
  .ld-title            { font-size: 30px; }
  .ld-title--smaller   { font-size: 26px; }

  .ld-visual-frame > * {
    zoom: 0.42;
  }
}
