/* ============================================================
   Leaddit homepage. Builds on site.css and biz.css.
   ============================================================ */

.ld .section + .section { padding-top: 0; }

/* ---- Hero ---- */

.ld-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.ld-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.ld-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--flare-ink);
}
.ld-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--flare); }
.ld-title { margin-top: 18px; font-size: clamp(38px, 4.4vw, 58px); }
.ld-title .accent { display: block; color: var(--ink-3); }
.ld-hero-copy .lede { margin-top: 24px; max-width: 34em; }
.ld-hero-copy .url-form { margin-top: 32px; }

/* The feed: example threads drifting up, each with its fit score */
.ld-feed {
  position: relative;
  padding: 20px 20px 16px;
  border-radius: 28px;
  background: var(--hero-bg);
  color: var(--hero-ink);
  box-shadow: var(--shadow-2);
}
.ld-feed-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; opacity: .8; }
.ld-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--go); }
.ld-live::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--go);
  animation: ld-ping 2s var(--ease) infinite;
}
@keyframes ld-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

.ld-feed-window {
  height: 388px;
  margin-top: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 82%, transparent);
}
.ld-feed-list { list-style: none; display: grid; gap: 10px; }
.ld-feed-list.is-moving { animation: ld-drift 36s linear infinite; }
.ld-feed:hover .ld-feed-list { animation-play-state: paused; }
@keyframes ld-drift { to { transform: translateY(calc(-50% - 5px)); } }

.ld-thread {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--hero-ink) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hero-ink) 8%, transparent);
}
.ld-score {
  display: grid;
  place-items: center;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--flare) 18%, transparent);
  color: #ffb08a;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
}
.ld-sub { font-family: var(--mono); font-size: 12px; opacity: .6; }
.ld-thread p { margin-top: 4px; font-size: 15px; line-height: 1.4; }
.ld-intent {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--go) 20%, transparent);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
}
.ld-feed-note { margin-top: 12px; font-size: 12px; opacity: .5; }

@media (max-width: 960px) {
  .ld-hero-grid { grid-template-columns: 1fr; }
  .ld-feed-window { height: 300px; }
}

/* Results: on small screens show the threads before the profile and save card */
@media (max-width: 900px) {
  .run-main { order: -1; }
}

/* ---- Products ---- */

.ld-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.ld-product {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  background: var(--cloud);
}
.ld-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ld-product-name {
  margin-top: 18px;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.ld-product-pitch { margin-top: 8px; font-size: 18px; color: var(--ink-2); }
.ld-list { list-style: none; display: grid; gap: 12px; margin: 24px 0 28px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ld-list li { position: relative; padding-left: 28px; }
.ld-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--flare-wash);
  box-shadow: inset 0 0 0 5px var(--flare-wash), inset 0 0 0 9px var(--flare);
}
.ld-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ld-from { font-size: 14px; color: var(--ink-2); }
.ld-from b { color: var(--ink); }

.ld-subhead { margin-top: 64px; font-family: var(--display); font-stretch: 112%; font-weight: 750; font-size: 24px; letter-spacing: -.02em; }
.ld-choose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.ld-choice {
  display: grid;
  gap: 6px;
  padding: 24px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.ld-choice:hover { box-shadow: inset 0 0 0 1px var(--ink-3); transform: translateY(-2px); }
.ld-choice-main { box-shadow: inset 0 0 0 2px var(--flare); }
.ld-choice-main:hover { box-shadow: inset 0 0 0 2px var(--flare); }
.ld-choice-if { font-size: 14px; color: var(--ink-3); }
.ld-choice-then { font-size: 20px; font-weight: 600; }
.ld-choice-then::after { content: ' →'; color: var(--flare); }
.ld-choice-why { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 860px) {
  .ld-products, .ld-choose { grid-template-columns: 1fr; }
}

/* ---- Better together: a three-step sequence ---- */

.ld-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.ld-steps li {
  counter-increment: step;
  position: relative;
  padding: 28px;
  border-radius: 22px;
  background: var(--cloud);
}
.ld-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}
.ld-step-who { position: absolute; top: 32px; right: 28px; font-size: 13px; font-weight: 600; color: var(--flare-ink); }
.ld-steps .h3 { margin-top: 20px; }
.ld-steps p { margin-top: 8px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 860px) { .ld-steps { grid-template-columns: 1fr; } }

/* ---- Pricing tabs ---- */

.ld-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 40px;
  padding: 4px;
  border-radius: 999px;
  background: var(--cloud);
}
.ld-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.ld-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.ld-save {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--flare);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ld-tiers { margin-top: 24px; }
.ld-tiers[hidden] { display: none; }
.ld-tiers-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.ld-tiers-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .ld-tiers-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ld-tiers-2 { grid-template-columns: 1fr; } }
.ld-pricing-note { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

/* ---- Floating help button ---- */

.ld-help {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  transition: transform .2s var(--ease);
}
.ld-help:hover { transform: translateY(-2px); }
@media (max-width: 560px) {
  .ld-help { width: 52px; padding: 0; justify-content: center; }
  .ld-help-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ld-feed-list.is-moving { animation: none; }
  .ld-live::after { animation: none; }
}

/* Lifetime plan in the "Both" tab */
.ld-lifetime { background: var(--hero-bg); color: var(--hero-ink); box-shadow: none; }
.ld-lifetime ul { color: color-mix(in srgb, var(--hero-ink) 72%, transparent); }
.ld-lifetime .tier-price small { color: color-mix(in srgb, var(--hero-ink) 55%, transparent); }
.ld-lifetime .btn-primary { background: var(--flare); color: #fff; }
.ld-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--flare);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}
