/* =========================================================================
   Modernpreneur — "Modernpreneur Signal" design system
   Structure derived from rundown.ai (Webflow); accent swapped to Signal Green.
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Variable.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --paper: #ffffff;
  --mist: #fafafa;
  --whitesmoke: #f5f5f5;
  --ink: #171717;
  --obsidian: #171717;

  /* text */
  --content-default: #171717;
  --content-secondary: #737373;
  --content-tertiary: #a3a3a3;
  --on-dark: #ffffff;
  --on-dark-muted: #a3a3a3;

  /* accent — Signal Green (replaces rundown #3d38f5 / magenta-indigo) */
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-start: #4ade80;
  --accent-mid: #22c55e;
  --accent-end: #15803d;
  --accent-grad: linear-gradient(120deg, #4ade80 0%, #22c55e 50%, #15803d 100%);
  --accent-grad-text: linear-gradient(92deg, #4ade80 0%, #22c55e 48%, #15803d 96%);
  --accent-soft: #16a34a14;

  /* borders */
  --border: #e5e5e5;
  --border-dark: #ffffff1a;
  --border-strong: #525252;

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --section: 72px;

  /* layout */
  --container: 1080px;
  --gutter: 24px;

  /* dark panel gradients */
  --dark-panel: linear-gradient(180deg, #1c1c1c, #292929);
  --dark-band: linear-gradient(180deg, #000000, #1c1c1c);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Satoshi', system-ui, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--content-default);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; color: var(--ink); }
.display-xl { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(2rem, 4.2vw, 2.8rem); font-weight: 700; line-height: 1.16; letter-spacing: -0.0125em; }
.headline   { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.title      { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.body-lg    { font-size: 1.125rem; line-height: 1.55; }
.label      { font-size: 0.875rem; font-weight: 500; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--content-secondary);
}
.serif { font-family: 'Libre Baskerville', Georgia, serif; }
.accent-text {
  background: var(--accent-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--content-secondary); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--smoke { background: var(--whitesmoke); }
.section--dark { background: var(--dark-band); color: var(--on-dark); }
.section-head { max-width: 720px; margin-bottom: var(--sp-2xl); }
.section-head .eyebrow { margin-bottom: var(--sp-sm); }
.section-head p { color: var(--content-secondary); margin-top: var(--sp-md); font-size: 1.0625rem; }
.section--dark .section-head h2, .section--dark .section-head { color: var(--on-dark); }
.section--dark .section-head p { color: var(--on-dark-muted); }
.center { text-align: center; }
.center.section-head { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  padding: 15px 22px; border-radius: var(--r-md); transition: transform .15s var(--ease), background .2s var(--ease), opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--accent { background: var(--accent-grad); color: #fff; box-shadow: 0 6px 20px -8px #16a34a99; }
.btn--accent:hover { filter: brightness(1.05); }
.btn--ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--border); font-weight: 500; padding: 10px 16px; border-radius: var(--r-sm); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-dark { background: transparent; color: #fff; border: 1px solid var(--border-dark); font-weight: 500; padding: 10px 16px; border-radius: var(--r-sm); }
.btn--ghost-dark:hover { border-color: #fff; background: #ffffff12; }
.btn--sm { padding: 9px 14px; font-size: .875rem; font-weight: 600; }
.btn--lg { padding: 17px 28px; font-size: 1.0625rem; }

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--obsidian); color: #fff;
  border-bottom: 1px solid var(--border-dark);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--sp-lg); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; color: #fff; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: .9375rem; font-weight: 500; color: #e5e5e5; transition: color .15s; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a.is-active { position: relative; }
.nav__links a.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-22px; height:2px; background: var(--accent-mid); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; color: #fff; }
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding-top: 110px; padding-bottom: 92px; text-align: center; background: var(--paper); }
.hero__inner { max-width: 760px; margin-inline: auto; }
.hero h1 { margin-bottom: var(--sp-lg); }
.hero__sub { font-size: 1.1875rem; color: var(--content-secondary); max-width: 560px; margin: 0 auto var(--sp-xl); }
.hero__proof { margin-top: var(--sp-lg); font-size: .9375rem; color: var(--content-secondary); }
.hero__proof b { color: var(--ink); }

/* ---------- Email capture (inline) ---------- */
.capture { display: flex; gap: 10px; max-width: 480px; margin-inline: auto; }
.capture input {
  flex: 1; min-width: 0; padding: 15px 18px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: #fff; color: var(--ink); font-size: 1rem;
}
.capture input::placeholder { color: var(--content-tertiary); }
.capture input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.capture .btn { flex: none; }
.capture--dark input { background: #ffffff; border-color: transparent; }

/* ---------- Logo marquee ---------- */
.marquee { overflow: hidden; padding-block: var(--sp-xl); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__label { text-align: center; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--content-tertiary); margin-bottom: var(--sp-lg); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-size: 1.375rem; font-weight: 700; color: #c2c2c2; letter-spacing: -0.01em; flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Filter pills ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-xl); }
.pill {
  padding: 8px 16px; border-radius: var(--r-full); font-size: .875rem; font-weight: 500;
  background: var(--paper); color: var(--content-default); border: 1px solid var(--border);
  transition: all .15s var(--ease);
}
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--mist .pill { background: #fff; }

/* ---------- Article grid / cards ---------- */
.grid { display: grid; gap: var(--sp-xl); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { display: flex; flex-direction: column; gap: var(--sp-md); transition: transform .2s var(--ease); }
.card__media { aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; background: var(--whitesmoke); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__chip { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); }
.card h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; transition: color .15s; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--content-secondary); font-size: .9375rem; }
.card__meta { font-size: .8125rem; color: var(--content-tertiary); margin-top: auto; }
.card__meta b { color: var(--content-secondary); font-weight: 600; }

/* placeholder media (no CMS image yet) */
.ph {
  display: flex; align-items: center; justify-content: center; height: 100%;
  background: linear-gradient(135deg, #f1f1f1, #e6e6e6);
  color: var(--content-tertiary); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.ph--green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }

/* tools list rows */
.tool-row { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--r-md); transition: background .15s; }
.tool-row:hover { background: var(--whitesmoke); }
.tool-row__logo { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--whitesmoke); display: grid; place-items: center; font-weight: 700; color: var(--accent); flex: none; }
.tool-row__body h3 { font-size: 1rem; font-weight: 700; }
.tool-row__body p { font-size: .875rem; color: var(--content-secondary); }

/* ---------- Dark feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); margin-top: var(--sp-2xl); }
.feature {
  background: var(--dark-panel); border: 1px solid var(--border-dark);
  border-radius: var(--r-xl); padding: var(--sp-xl);
}
.feature__icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-soft); display: grid; place-items: center; margin-bottom: var(--sp-md); }
.feature__icon svg { width: 24px; height: 24px; color: var(--accent-mid); }
.feature h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--on-dark-muted); font-size: .9375rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto var(--sp-md); }
.cta-band p { color: var(--on-dark-muted); max-width: 600px; margin: 0 auto var(--sp-xl); font-size: 1.0625rem; }
.cta-band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Podcast band ---------- */
.podcast { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3xl); align-items: center; }
.podcast__actions { display: flex; gap: 12px; margin-top: var(--sp-lg); flex-wrap: wrap; }
.podcast__embed { background: var(--dark-panel); border:1px solid var(--border-dark); border-radius: var(--r-xl); aspect-ratio: 16/10; display:grid; place-items:center; color: var(--on-dark-muted); }

/* ---------- View-all link ---------- */
.viewall { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-2xl); font-weight: 600; color: var(--ink); }
.viewall:hover { color: var(--accent); }
.viewall svg { width: 18px; height: 18px; transition: transform .15s; }
.viewall:hover svg { transform: translateX(3px); }
.center .viewall { margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--obsidian); color: #fff; padding-block: var(--sp-3xl) var(--sp-2xl); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-2xl); padding-bottom: var(--sp-2xl); border-bottom: 1px solid var(--border-dark); }
.footer__intro p { color: var(--on-dark-muted); font-size: .9375rem; margin: var(--sp-md) 0 var(--sp-lg); max-width: 320px; }
.footer__col h4 { color: #fff; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--sp-md); }
.footer__col a { display: block; color: var(--on-dark-muted); font-size: .9375rem; padding: 6px 0; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--sp-lg); gap: var(--sp-md); flex-wrap: wrap; }
.footer__bottom small { color: var(--content-tertiary); }
.footer__social { display: flex; gap: 14px; }
.footer__social a { color: var(--on-dark-muted); }
.footer__social a:hover { color: #fff; }
.footer__social svg { width: 20px; height: 20px; }
.footer .capture { margin-inline: 0; }
.footer .capture input { background:#fff; border-color: transparent; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: 80px; padding-bottom: 48px; text-align: center; }
.page-hero h1 { margin-bottom: var(--sp-md); }
.page-hero p { color: var(--content-secondary); font-size: 1.125rem; max-width: 600px; margin-inline: auto; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin: var(--sp-2xl) 0 var(--sp-md); }
.prose h3 { font-size: 1.125rem; margin: var(--sp-xl) 0 var(--sp-sm); }
.prose p, .prose li { color: var(--content-secondary); margin-bottom: var(--sp-md); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ---------- Pricing (cohort) ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); max-width: 820px; margin-inline: auto; }
.price-card { border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-xl); background: #fff; }
.price-card--feat { border-color: var(--accent); box-shadow: 0 12px 40px -16px #16a34a55; position: relative; }
.price-card--feat::before { content: "Most popular"; position: absolute; top: -12px; left: var(--sp-xl); background: var(--accent-grad); color:#fff; font-size:.75rem; font-weight:700; padding:4px 12px; border-radius: var(--r-full); }
.price-card .amt { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; margin: var(--sp-sm) 0; }
.price-card .amt span { font-size: 1rem; font-weight: 500; color: var(--content-secondary); }
.price-card ul { margin: var(--sp-lg) 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-size: .9375rem; color: var(--content-default); }
.price-card li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .podcast { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
}
@media (max-width: 640px) {
  :root { --section: 56px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--obsidian); padding: var(--sp-md) var(--gutter); gap: var(--sp-md);
    border-bottom: 1px solid var(--border-dark);
  }
  .nav.is-open .nav__links a.is-active::after { display: none; }
  .nav__cta .btn span.hide-sm { display: none; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .capture { flex-direction: column; }
  .footer__top { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; padding-bottom: 64px; }
}
