/* ==========================================================================
   Solopreneur Solution Show — shared design system
   Light theme · Montserrat · brand gradient #7f51b5 / #fa7d9c / #ffab54
   ========================================================================== */

:root {
  --bg: #f5faff;
  --surface: #ffffff;
  --heading: #242424;
  --body: #494949;
  --muted: #6d7484;
  --border: #e6edf6;
  --border-strong: #d5deec;

  --cta: #fa7d9c;
  --cta-ink: #ffffff;
  --cta-hover: #f5658a;

  --grad-a: #7f51b5;
  --grad-b: #fa7d9c;
  --grad-c: #ffab54;
  --grad: linear-gradient(120deg, var(--grad-a), var(--grad-b) 52%, var(--grad-c));

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(36, 50, 86, .07);
  --shadow-lg: 0 18px 46px rgba(36, 50, 86, .12);
  --shadow-cta: 0 10px 24px rgba(250, 125, 156, .34);

  --font: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(250, 125, 156, .28); }

h1, h2, h3, h4 { color: var(--heading); font-family: var(--font); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p { color: var(--body); }
strong { color: var(--heading); font-weight: 700; }

a { color: var(--cta-hover); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(127, 81, 181, .45);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 17px; line-height: 1.1;
  padding: 16px 30px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--cta); color: var(--cta-ink); box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(250, 125, 156, .42); color: #fff; }
.btn-outline { background: var(--surface); color: var(--heading); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--grad-a); color: var(--grad-a); transform: translateY(-2px); }
.btn-lg { padding: 18px 38px; font-size: 18px; }
.btn-sm { padding: 11px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Nav (white header) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.wordmark {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 18px; color: var(--heading); letter-spacing: -0.01em;
}
.wordmark .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(127, 81, 181, .32);
}
.wordmark .mark svg { display: block; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a.navlink { color: var(--muted); font-size: 15px; font-weight: 600; }
.nav-links a.navlink:hover { color: var(--heading); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 80px; text-align: center; overflow: hidden; }
/* brand gradient kept in the top section, at 10% opacity, no grid */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b) 50%, var(--grad-c));
  opacity: .10;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
}
.hero .wrap { position: relative; }
.hero.hero-sm { padding: 70px 0 54px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grad-a);
  border: 1px solid rgba(127, 81, 181, .28); background: rgba(127, 81, 181, .08);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 3px rgba(250, 125, 156, .25); }

.hero h1 { font-size: clamp(34px, 5.6vw, 60px); max-width: 900px; margin: 0 auto 22px; }
.hero p.sub { font-size: clamp(17px, 2.1vw, 21px); color: var(--body); max-width: 680px; margin: 0 auto 36px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .micro { font-size: 14px; color: var(--muted); margin-top: 18px; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Section shells ---------- */
section { padding: 76px 0; position: relative; }
.section-tight { padding: 56px 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grad-a); margin-bottom: 12px; }
.section-title { font-size: clamp(27px, 3.9vw, 42px); margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 640px; font-size: 18px; }

/* ---------- Video embed (responsive 16:9) ---------- */
.video-wrap { max-width: 860px; margin: 40px auto 0; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #2a1c46, #7f51b5);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; text-align: center; padding: 24px; }
.video-ph .play { width: 74px; height: 74px; border-radius: 50%; background: #fff; color: var(--cta); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .2s ease; }
.video-ph:hover .play { transform: scale(1.08); }
.video-ph .vp-label { font-weight: 700; font-size: 17px; }
.video-ph .vp-sub { font-size: 13.5px; opacity: .85; }

/* ---------- Pain-point / feature cards ---------- */
.pain { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.p-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 26px 28px; position: relative; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.p-card::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 4px; background: var(--grad); }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.p-card .q-icon { color: var(--cta); font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.p-card p { color: var(--heading); font-weight: 600; font-size: 17.5px; line-height: 1.5; margin: 0; }

/* feature cards (3-up) */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.f-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.f-card .icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(127,81,181,.10); color: var(--grad-a); margin-bottom: 16px; }
.f-card h3 { font-size: 19px; margin-bottom: 8px; }
.f-card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Lead magnet ---------- */
.lead { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lead-card {
  display: grid; grid-template-columns: 0.8fr 1.1fr; gap: 44px; align-items: center;
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 40px 44px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.lead-mock { display: flex; justify-content: center; }
.lead-cover {
  width: 205px; aspect-ratio: 8.5 / 11; border-radius: 12px;
  background: linear-gradient(160deg, #2a1c46, #7f51b5 60%, #fa7d9c);
  box-shadow: 14px 20px 40px rgba(36,50,86,.28); color: #fff;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-3deg);
}
.lead-cover .lc-k { font-size: 9px; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; color: #ffd9a8; }
.lead-cover .lc-n { font-size: 42px; font-weight: 800; line-height: 1; }
.lead-cover .lc-t { font-size: 16px; font-weight: 700; line-height: 1.25; }
.lead-cover .lc-b { margin-top: auto; font-size: 9.5px; opacity: .85; }
.lead-text h2 { font-size: clamp(24px, 3.3vw, 33px); margin-bottom: 14px; }
.lead-text > p { color: var(--body); margin-bottom: 22px; }

/* Substack embed shell */
.substack-embed { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 12px; box-shadow: var(--shadow); }
.substack-embed iframe { width: 100% !important; border: 0; background: transparent; display: block; }
.embed-micro { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Show concept ---------- */
.concept .wrap { max-width: 820px; text-align: center; }
.concept h2 { font-size: clamp(26px, 3.8vw, 40px); margin-bottom: 18px; }
.concept p { font-size: 19px; color: var(--body); }

/* ---------- Qualification box (apply) ---------- */
.qual { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 34px 36px; box-shadow: var(--shadow-lg); }
.qual h2 { font-size: 22px; margin-bottom: 18px; }
.check-list { list-style: none; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; color: var(--body); }
.check-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(250,125,156,.14); color: var(--cta); display: grid; place-items: center; margin-top: 2px; }

/* ---------- Form (apply) ---------- */
.form-card { max-width: 640px; margin: 40px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 34px 30px; box-shadow: var(--shadow-lg); }
.form-embed-placeholder {
  border: 2px dashed var(--border-strong); border-radius: var(--radius);
  padding: 44px 24px; text-align: center; color: var(--muted); background: var(--bg);
}
.form-embed-placeholder strong { display: block; color: var(--heading); margin-bottom: 6px; font-size: 16px; }
.form-row { margin-bottom: 16px; text-align: left; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 7px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--heading);
  background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 13px 15px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--grad-a); box-shadow: 0 0 0 3px rgba(127,81,181,.14); }
.form-row input:invalid:not(:placeholder-shown), .form-row textarea:invalid:not(:placeholder-shown) { border-color: #e0698a; }
.form-row .req { color: var(--cta); }
/* honeypot — visually hidden, off-screen, not display:none (so bots still see it) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* form status message */
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; text-align: center; }
.form-status.loading { background: rgba(127,81,181,.08); color: var(--grad-a); }
.form-status.success { background: rgba(60,180,120,.12); color: #1f8a5a; }
.form-status.error { background: rgba(224,105,138,.12); color: #c23a63; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: var(--surface); border-top: 1px solid var(--border); }
.cta-band h2 { font-size: clamp(28px, 4.3vw, 44px); margin-bottom: 16px; }
.cta-band p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 46px 0 40px; background: var(--surface); }
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.soc { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--border); background: var(--bg); transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.soc:hover { color: var(--grad-a); border-color: var(--border-strong); transform: translateY(-3px); }
.foot-handle { font-weight: 700; color: var(--heading); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.foot-links a:hover { color: var(--heading); }
.foot-copy { font-size: 13.5px; color: var(--muted); }

/* ---------- Modal (Substack opt-in) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(31, 20, 46, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 24px; overflow-y: auto;
}
.modal-overlay.open { display: grid; place-items: center; }
.modal {
  width: 100%; max-width: 480px; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 34px 32px 28px; position: relative; text-align: center;
  animation: modal-in .22s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal .modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border); color: var(--muted); font-size: 20px;
  display: grid; place-items: center; cursor: pointer; line-height: 1;
}
.modal .modal-close:hover { color: var(--heading); border-color: var(--border-strong); }
.modal .m-k { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cta); margin-bottom: 8px; }
.modal h3 { font-size: 23px; margin-bottom: 8px; }
.modal p.m-sub { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.modal .embed-micro { margin-top: 12px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .p-card, .f-card, .soc { transition: none; }
  .modal { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .lead-card { grid-template-columns: 1fr; gap: 28px; padding: 34px 28px; }
  .lead-mock { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links a.navlink { display: none; }
  .hero { padding: 64px 0 60px; }
  section { padding: 58px 0; }
  .card-grid, .feat-grid { grid-template-columns: 1fr; }
  .btn { white-space: normal; }
  .lead-card, .qual, .form-card { padding: 28px 22px; }
  .concept p { font-size: 17.5px; }
}
