/* Startup Riders Pro — landing. Mobile-first: base = movil, media queries suben.
   Marca del cliente (cream/negro/amarillo). Tokens en brand-tokens.css. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--brand-ink);
  background: var(--brand-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
em { font-style: normal; font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* highlight marker */
mark { background: var(--brand-yellow); color: var(--brand-yellow-ink); padding: 0 .12em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* eyebrow */
.eyebrow { font-family: var(--font-text); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--brand-ink-soft); margin-bottom: 14px; }
.eyebrow-dark { color: var(--brand-ink-soft); }

/* ---------- CTAs ---------- */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font-family: var(--font-text); font-weight: 700; text-decoration: none; min-height: 48px; padding: 14px 22px; border-radius: var(--radius); font-size: 1.0625rem; line-height: 1.1; }
.cta-primary { background: var(--brand-yellow); color: var(--brand-yellow-ink); box-shadow: var(--shadow-cta); transition: transform .12s ease, background-color .12s ease; }
.cta-primary:hover { background: var(--brand-yellow-dim); transform: translateY(-1px); }
.cta-primary:active { transform: translateY(0); }
.cta-lg { font-size: 1.15rem; padding: 18px 30px; }
.cta-ghost { color: var(--brand-ink); font-weight: 600; text-decoration: none; padding: 12px 4px; border-bottom: 2px solid var(--brand-ink); border-radius: 0; min-height: 0; align-self: flex-start; }
.cta-ghost:hover { color: var(--brand-ink-soft); border-color: var(--brand-ink-soft); }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: color-mix(in srgb, var(--brand-bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--brand-border); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--brand-ink); }
.brand img { border-radius: 6px; display: block; }
.nav-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; background: var(--brand-ink); color: var(--brand-on-black); border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem; text-decoration: none; }

/* ---------- HERO ---------- */
.hero { padding: 36px 20px 8px; }
.hero-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2rem, 8.4vw, 3.6rem); line-height: 1.04; font-weight: 700; margin-bottom: 18px; }
.hero .sub { font-size: clamp(1.05rem, 4.2vw, 1.3rem); color: var(--brand-ink-soft); max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 26px 0 12px; }
.microcopy { color: var(--brand-ink-soft); font-size: .92rem; }
.trust { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--brand-border); color: var(--brand-ink-soft); font-size: .95rem; }
.trust strong { color: var(--brand-ink); }

/* hero figure: editorial growth-curve teardown (drawn, not a templated card) */
.fig { align-self: start; border-top: 2px solid var(--brand-ink); padding-top: 16px; }
.fig-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fig-tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--brand-ink-soft); }
.fig-company { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.fig-curve { display: block; width: 100%; height: auto; margin: 14px 0 8px; overflow: visible; }
.fig-area { fill: var(--brand-ink); fill-opacity: .06; }
.fig-line { fill: none; stroke: var(--brand-ink); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fig-dot { fill: var(--brand-ink); stroke: var(--brand-bg); stroke-width: 2; }
.fig-dot-peak { fill: var(--brand-yellow); stroke: var(--brand-ink); stroke-width: 1.5; }
.fig-axis { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: .8rem; color: var(--brand-ink-soft); }
.fig-peak { color: var(--brand-ink); font-weight: 700; }
.fig-levers { list-style: none; padding: 0; margin: 16px 0 0; }
.fig-levers li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--brand-border); font-size: .92rem; line-height: 1.4; }
.fig-levers li:first-child { border-top: 1px solid var(--brand-ink); }
.fig-n { font-family: var(--font-mono); font-weight: 700; color: var(--brand-ink); font-size: .78rem; flex: none; }
.fig-foot { margin-top: 16px; font-size: .82rem; color: var(--brand-ink-soft); }

/* ---------- generic section ---------- */
section { padding: 52px 20px; }
section h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.1; }

/* ---------- PROBLEM (dark) ---------- */
.problem { background: var(--brand-black); color: var(--brand-on-black); }
.problem h2 { max-width: 18ch; }
.problem p { margin-top: 18px; font-size: clamp(1.05rem, 4vw, 1.22rem); color: #d2d3ce; max-width: 60ch; }
.problem em { color: var(--brand-yellow); font-weight: 600; }
.problem .cta-ghost { margin-top: 26px; color: var(--brand-yellow); border-color: var(--brand-yellow); }
.problem .cta-ghost:hover { color: #fff; border-color: #fff; }

/* ---------- HOW ---------- */
.how h2 { max-width: 16ch; margin-bottom: 30px; }
.cards { display: grid; gap: 16px; margin-bottom: 32px; }
.card { background: var(--brand-surface); border: 1px solid var(--brand-border); border-radius: var(--radius); padding: 24px; }
.card-n { font-family: var(--font-mono); font-weight: 700; font-size: .9rem; color: var(--brand-ink); background: var(--brand-yellow); border-radius: 6px; padding: 2px 9px; }
.card h3 { font-size: 1.22rem; margin: 16px 0 8px; }
.card p { color: var(--brand-ink-soft); }

/* ---------- SEGMENTS ---------- */
.segments { background: var(--brand-bg-2); }
.segments h2 { max-width: 20ch; margin-bottom: 28px; }
.seg-grid { display: grid; gap: 16px; }
.seg { background: var(--brand-surface); border: 1px solid var(--brand-border); border-left: 4px solid var(--brand-yellow); border-radius: var(--radius); padding: 22px; }
.seg h3 { font-size: 1.15rem; margin-bottom: 8px; }
.seg p { color: var(--brand-ink-soft); }

/* ---------- PROOF (dark) ---------- */
.proof { background: var(--brand-black); color: var(--brand-on-black); }
.proof .eyebrow-dark { color: #a9aaa4; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 28px; }
.proof-stat { text-align: left; }
.proof-stat .num { display: block; font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem, 7vw, 2.3rem); color: var(--brand-yellow); line-height: 1; }
.proof-stat .lbl { display: block; margin-top: 8px; font-size: .82rem; color: #c2c3be; }
.proof-line { font-size: clamp(1.02rem, 4vw, 1.18rem); color: #e4e5e0; max-width: 64ch; }
.proof-line strong { color: #fff; }
/* social proof: scroll of real Substack issue covers */
.issues { margin-top: 40px; }
.issues-label { font-family: var(--font-text); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: #a9aaa4; margin-bottom: 18px; }
.issues-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.issue { flex: 0 0 auto; width: 210px; scroll-snap-align: start; text-decoration: none; color: var(--brand-on-black); }
.issue img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); transition: transform .15s ease; }
.issue:hover img { transform: translateY(-3px); }
.issue-cap { display: block; margin-top: 10px; font-size: .9rem; line-height: 1.3; }
.issue-cap strong { font-family: var(--font-display); color: #fff; display: block; }
.issue-cap em { font-family: var(--font-mono); font-style: normal; color: var(--brand-yellow); font-size: .8rem; }
.issues-all { display: inline-block; margin-top: 18px; color: var(--brand-yellow); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--brand-yellow); padding-bottom: 2px; }
.issues-scroll::-webkit-scrollbar { height: 6px; }
.issues-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.issues-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 22px; }
.faq details { border-bottom: 1px solid var(--brand-border); padding: 18px 0; }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--brand-ink-soft); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--brand-ink-soft); max-width: 64ch; }

/* ---------- FINAL (dark) ---------- */
.final { background: var(--brand-black); color: var(--brand-on-black); text-align: center; }
.final h2 { max-width: 18ch; margin: 0 auto; }
.final p { margin: 16px auto 28px; color: #d2d3ce; max-width: 50ch; font-size: 1.1rem; }
.final .cta-primary { margin: 0 auto; }
.final .microcopy { color: #a9aaa4; margin-top: 16px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--brand-black); color: #a9aaa4; padding: 24px 20px 96px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; font-size: .88rem; border-top: 1px solid rgba(255,255,255,.1); }
.footer span:first-child { font-family: var(--font-display); font-weight: 700; color: var(--brand-on-black); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: #c2c3be; text-decoration: underline; text-underline-offset: 2px; }
.microcopy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- STICKY MOBILE CTA ---------- */
.cta-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; text-align: center; background: var(--brand-yellow); color: var(--brand-yellow-ink); padding: 15px; border-radius: var(--radius); font-weight: 700; text-decoration: none; box-shadow: 0 6px 22px rgba(0,0,0,.18); }

/* ---------- DESKTOP ---------- */
@media (min-width: 860px) {
  .hero { padding: 64px 32px 24px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
  section { padding: 84px 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .seg-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-sticky { display: none; }
  .footer { padding-bottom: 28px; }
}
@media (min-width: 600px) and (max-width: 859px) {
  .cards, .seg-grid { grid-template-columns: repeat(2, 1fr); }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-primary { transition: none; }
}
