/* MyHub Pitch — friendly storytelling landing page
   ------------------------------------------------- */

:root {
  /* Warm palette */
  --bg: #fffaf3;
  --bg-soft: #fff3e0;
  --bg-cream: #fef6ea;
  --surface: #ffffff;
  --surface-shadow: 0 4px 20px rgba(82, 60, 32, 0.08);
  --surface-shadow-lg: 0 10px 40px rgba(82, 60, 32, 0.12);

  /* Brand */
  --brand: #4338ca;          /* Indigo for friendly tech */
  --brand-soft: #ede9fe;
  --brand-deep: #3730a3;
  --accent: #f97316;         /* Warm orange for energy */
  --accent-soft: #ffedd5;
  --teal: #0891b2;
  --teal-soft: #cffafe;
  --rose: #e11d48;
  --rose-soft: #ffe4e6;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --yellow: #eab308;

  /* Text */
  --text: #1c1917;
  --text-muted: #57534e;
  --text-subtle: #78716c;

  /* Border / outline */
  --line: #e7e5e4;
  --line-strong: #d6d3d1;

  /* Typography */
  --font-heading: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sizing */
  --max-w: 1120px;
  --max-w-narrow: 720px;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 9999px;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 600;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4.5vw, 48px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); }

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--max-w-narrow);
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}
.nav__logo:hover { text-decoration: none; }
.nav__logo-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 16px;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
.nav__links a:hover {
  color: var(--text);
  text-decoration: none;
}
@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s, box-shadow 0.18s, background 0.15s;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.32);
}
.btn--primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(67, 56, 202, 0.4);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  text-decoration: none;
}
.btn--small {
  padding: 8px 18px;
  font-size: 14px;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.18s;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ============== SECTIONS ============== */
.section {
  padding: 96px 0;
}
.section--tight { padding: 64px 0; }
.section--cream { background: var(--bg-cream); }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: var(--brand-soft);
  border-radius: var(--radius-pill);
}
.eyebrow--accent { color: var(--accent); background: var(--accent-soft); }
.eyebrow--rose { color: var(--rose); background: var(--rose-soft); }
.eyebrow--green { color: var(--green); background: var(--green-soft); }

.lead {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 24px;
}

/* ============== HERO ============== */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
}
.hero__title {
  margin: 0 0 20px;
}
.hero__title em {
  color: var(--brand);
  font-style: italic;
}
.hero__subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 32px;
}
.hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__art {
  position: relative;
}
.hero__art svg {
  width: 100%;
  height: auto;
}

/* Floating shapes for hero (subtle background decoration) */
.hero__deco {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand-soft), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ============== STORY 2-COLUMN BLOCKS ============== */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story--reverse > .story__art { order: -1; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 32px; }
  .story--reverse > .story__art { order: 0; }
}
.story__art svg {
  width: 100%;
  height: auto;
}

/* ============== STEPS ============== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--surface-shadow-lg);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: 18px;
}
.step__art {
  margin: -8px auto 16px;
  width: 120px;
  height: 110px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.step p {
  font-size: 16px;
  margin: 0;
}

/* ============== BENEFITS ============== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.benefit:hover {
  transform: translateY(-3px);
  box-shadow: var(--surface-shadow);
  border-color: transparent;
}
.benefit__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.benefit--accent .benefit__icon { background: var(--accent-soft); color: var(--accent); }
.benefit--teal .benefit__icon { background: var(--teal-soft); color: var(--teal); }
.benefit--rose .benefit__icon { background: var(--rose-soft); color: var(--rose); }
.benefit--green .benefit__icon { background: var(--green-soft); color: var(--green); }
.benefit h3 {
  margin: 0;
  font-size: 20px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.benefit p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* ============== AUDIENCE / "FOR" ============== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 900px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .audience-grid { grid-template-columns: 1fr; } }
.audience {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.audience:hover {
  transform: translateY(-3px);
  box-shadow: var(--surface-shadow);
}
.audience__emoji {
  font-size: 36px;
  line-height: 1;
}
.audience h4 {
  margin: 0;
  font-size: 17px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.audience p {
  margin: 0;
  font-size: 14px;
  color: var(--text-subtle);
}

/* ============== CTA ============== */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, #6d28d9 100%);
  border-radius: var(--radius-l);
  padding: 64px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.cta h2 {
  color: white;
  margin: 0 0 16px;
}
.cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin: 0 auto 32px;
  max-width: 56ch;
}
.cta .btn--primary {
  background: white;
  color: var(--brand);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.cta .btn--primary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* ============== FOOTER ============== */
.footer {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

/* ============== REVEAL ANIMATION ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== Narration player ============== */
.narration-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 12px 8px 8px;
  box-shadow: var(--surface-shadow);
  margin-top: 24px;
  width: fit-content;
  max-width: 100%;
}
.narration-player__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  flex-shrink: 0;
}
.narration-player__btn:hover { background: var(--brand-deep); }
.narration-player__btn:active { transform: scale(0.94); }
.narration-player__btn[disabled] {
  background: var(--line-strong);
  cursor: not-allowed;
}
.narration-player__btn .play-icon,
.narration-player__btn .pause-icon {
  display: inline-flex;
}
.narration-player__btn .pause-icon { display: none; }

.narration-player__stop {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.narration-player__stop:hover {
  background: var(--bg-cream);
  color: var(--text);
}

.narration-player__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  max-width: 320px;
}
.narration-player__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.narration-player__progress {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}
.narration-player__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.2s ease;
}
.narration-player__status {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}
.narration-player__voice {
  margin-left: 4px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 10px;
  background: white;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  max-width: 160px;
}

/* ============== Reduced motion ============== */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn,
  .step,
  .benefit,
  .audience {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
