/* ========================================================================
   Social Brew Toronto Newsletter Funnel - Shared Stylesheet (Light Theme)
   Brand: Satoshi | #4a3aff #221f55 #e6e6ff
   ======================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,500,400,300&display=swap');

:root {
  /* Light brand palette */
  --bg: #fcfcff;          /* near-white with subtle cool tint */
  --surf: #e6e6ff;        /* brand light cream, used for alt sections */
  --card: #ffffff;        /* pure white card surface */
  --purple: #4a3aff;      /* brand primary purple */
  --purp-l: #6b5cff;      /* lighter shade for hover + links */
  --purp-d: #221f55;      /* brand secondary purple */
  --orange: #ff4726;      /* error accent only */
  --blue: #2563eb;        /* success accent only */

  /* Text */
  --t1: #221f55;          /* primary text = brand secondary purple */
  --t2: #5b5980;          /* muted body text */
  --t3: #8a89a8;          /* placeholder / faintest */

  /* Border + utility */
  --bdr: rgba(34, 31, 85, 0.10);
  --bdr-strong: rgba(34, 31, 85, 0.18);
  --shadow-sm: 0 1px 2px rgba(34, 31, 85, 0.06);
  --shadow-md: 0 8px 24px rgba(34, 31, 85, 0.08);
  --shadow-lg: 0 20px 60px rgba(74, 58, 255, 0.18);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --r8: 8px;
  --r16: 16px;
  --r24: 24px;
  --maxw: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--t1);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain on light background — uses dark turbulence at low opacity */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

main {
  position: relative;
  z-index: 2;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--t1);
}

h1 { font-size: clamp(2rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 1.8vw, 1.375rem); letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { color: var(--t2); }

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--purp-d); }

/* Layout */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
  position: relative;
}

/* ============================================================
   Navbar — fixed top, logo left, CTA right (light theme adapt)
   Uses fixed positioning so it sits over the hero without
   pushing content down (preserves the fold peek of "4 Reasons").
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 68px;
  background: rgba(252, 252, 255, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--bdr);
}

.navbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 16px;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
}

.navbar__brand img {
  display: block;
  height: 32px;
  width: auto;
}

.navbar__nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.navbar__nav a:hover {
  color: var(--purple);
}

.navbar__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 100px;
  background: var(--purple);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(74, 58, 255, 0.28);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.navbar__cta:hover {
  transform: translateY(-1px);
  background: var(--purp-l);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(74, 58, 255, 0.38);
}

.navbar__cta-arrow {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 899px) {
  .navbar__nav { display: none; }
  .navbar__inner { grid-template-columns: 1fr auto; }
  .navbar__cta { justify-self: end; }
}

@media (max-width: 599px) {
  .navbar { height: 60px; }
  .navbar__brand img { height: 26px; }
  .navbar__cta { padding: 10px 16px; font-size: 13px; }
  .navbar__cta-arrow { display: none; }
}

/* Eyebrow pill — tight inline pill with purple dot indicator (Outreachify pattern) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 16px;
  border: 1px solid var(--bdr-strong);
  border-radius: 100px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--t1);
  box-shadow: var(--shadow-sm);
  text-transform: none;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(74, 58, 255, 0.18);
}

/* Solid pill CTA — clean, no decoration. Stretches inside .form, auto-width elsewhere */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border: none;
  border-radius: 100px;
  background: var(--purple);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(74, 58, 255, 0.22);
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--purp-l);
  box-shadow: 0 12px 26px rgba(74, 58, 255, 0.30);
  color: #ffffff;
}

.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: 3px solid var(--purp-l);
  outline-offset: 3px;
}

/* Form: stacked centered column — input then full-width button (Outreachify pattern) */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  width: 100%;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form__input {
  width: 100%;
  min-width: 0;
  padding: 16px 24px;
  border: 1px solid var(--bdr-strong);
  border-radius: 100px;
  background: var(--card);
  color: var(--t1);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.form__input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(74, 58, 255, 0.12);
}

.form__input::placeholder { color: var(--t3); }

/* Inside a form, the button stretches to fill the row (column flex stretch default) */
.form .btn { width: 100%; }

.form__trust {
  font-size: 13px;
  color: var(--t2);
  text-align: center;
  font-weight: 600;
}

.form__status {
  min-height: 20px;
  font-size: 14px;
  color: var(--orange);
  text-align: center;
}

.form__status--ok { color: var(--blue); }

/* ============================================================
   Scroll Reveal Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Hero — single centered column (Outreachify pattern)
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 0 28px;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 110%, rgba(155, 140, 255, 0.32), transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(230, 230, 255, 0.55), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.hero__title {
  font-size: clamp(2.125rem, 4.3vw, 3.375rem);
  max-width: 1040px;
  line-height: 1.1;
}

/* Forced 3-line layout on desktop via block spans; collapses to natural wrapping on mobile */
.hero__line { display: block; }

@media (max-width: 768px) {
  .hero__line { display: inline; }
}

/* Glue multi-word phrases together on desktop, allow natural wrap on mobile */
.nowrap { white-space: nowrap; }

@media (max-width: 768px) {
  .nowrap { white-space: normal; }
}

.hero__sub {
  font-size: 16px;
  line-height: 1.55;
  max-width: 820px;
}

.hero .form { margin-top: 4px; }

@media (max-width: 899px) {
  .hero { padding: 100px 0 48px; }
  .hero__inner { gap: 22px; }
}

/* ============================================================
   4 Reasons section — grid below the hero
   ============================================================ */
.reasons {
  background: var(--bg);
  position: relative;
  padding: 56px 0 96px;
}

.reasons::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 31, 85, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 31, 85, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.reasons .wrap {
  position: relative;
  z-index: 1;
}

.reasons__head {
  text-align: center;
  margin-bottom: 56px;
}

.reasons__head h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.1;
}

.reasons__num-text {
  color: var(--purple);
}

.reasons__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.reason {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r24);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.reason:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: var(--shadow-md);
}

.reason__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b7dff 0%, #4a3aff 100%);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(74, 58, 255, 0.3);
}

.reason__title {
  font-size: 19px;
  line-height: 1.3;
  color: var(--t1);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.reason__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--t2);
}

@media (max-width: 768px) {
  .reasons { padding: 72px 0; }
  .reasons__grid { grid-template-columns: 1fr; gap: 16px; }
  .reason { padding: 26px; }
  .reasons__head { margin-bottom: 40px; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   ICP callout
   ============================================================ */
.icp { background: var(--surf); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }

.icp__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.icp__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  width: 100%;
  max-width: 620px;
}

.icp__list li {
  position: relative;
  padding: 18px 22px 18px 56px;
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r16);
  color: var(--t1);
  font-size: 16px;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.icp__list li::before {
  content: '✓';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.icp__tagline {
  font-style: italic;
  font-size: 17px;
  color: var(--t2);
  max-width: 560px;
}

/* ============================================================
   Founder note
   ============================================================ */
.founder__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r24);
  box-shadow: var(--shadow-md);
}

.founder__head { text-align: left; }

.founder__body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--t2);
  margin-bottom: 16px;
}

.founder__body strong { color: var(--t1); }

.founder__sig {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  color: var(--t1);
  font-size: 18px;
  margin-top: 16px;
}

.founder__cta {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 899px) {
  .founder__inner { padding: 28px; }
}

/* ============================================================
   Thank-you final band
   ============================================================ */
.ty-final {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(74, 58, 255, 0.12), transparent 70%),
    var(--bg);
}

.ty-final__inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* ============================================================
   Final CTA band
   ============================================================ */
.final {
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(74, 58, 255, 0.14), transparent 70%),
    var(--bg);
  text-align: center;
}

.final__inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.final .form { width: 100%; max-width: 440px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--bdr);
  background: var(--surf);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer__brand img {
  display: block;
  height: 36px;
  width: auto;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
}

.footer__nav a { color: var(--t2); }
.footer__nav a:hover { color: var(--purple); }

.footer__social {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.footer__copy {
  font-size: 13px;
  color: var(--t2);
}

/* ============================================================
   Thank-you page
   ============================================================ */
.ty-hero {
  padding: 88px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ty-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 30%, rgba(74, 58, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(230, 230, 255, 0.6), transparent 70%);
  z-index: 0;
}

.ty-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.ty-hero__sub { font-size: 18px; max-width: 600px; }

.ty-video {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r24);
  border: 1px solid var(--bdr);
  background: var(--card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.ty-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ty-video__caption {
  font-style: italic;
  font-size: 14px;
  color: var(--t2);
  margin-top: 12px;
}

/* Steps */
.steps { background: var(--surf); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }

.steps__head {
  text-align: center;
  margin-bottom: 48px;
}

.steps__list {
  max-width: 760px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: steps;
}

.steps__list li {
  counter-increment: steps;
  position: relative;
  padding: 28px 28px 28px 96px;
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r16);
  box-shadow: var(--shadow-sm);
}

.steps__list li::before {
  content: counter(steps);
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(74, 58, 255, 0.3);
}

.steps__list strong { color: var(--t1); display: block; margin-bottom: 6px; font-weight: 700; font-size: 17px; }

.steps__list p { color: var(--t2); font-size: 15px; line-height: 1.55; }

code {
  font-family: 'SF Mono', Menlo, monospace;
  color: var(--purple);
  font-size: 14px;
  background: rgba(74, 58, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   Calendly inline embed (thank-you page)
   ============================================================ */
.calendly-section {
  background: var(--bg);
}

.calendly-section__head {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.calendly-section__head p {
  max-width: 580px;
  font-size: 17px;
}

.calendly-frame {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--r24);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.calendly-inline-widget {
  min-width: 320px;
  height: 720px;
}

@media (max-width: 899px) {
  .calendly-inline-widget { height: 1000px; }
}
