/* ═══════════════════════════════════════════════════════
   Goal-Based Pages — Shared Styles (Rebuilt)
   ═══════════════════════════════════════════════════════ */

/* ═══ HERO ═══ */
.goal-hero {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 40%, #2a1a4a 100%);
  padding: 160px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.goal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(91,62,140,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(245,166,35,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.goal-hero .container { position: relative; z-index: 1; }
.goal-hero .section-label { color: var(--orange); }
.goal-hero h1 {
  color: #fff; max-width: 800px; margin: 0 auto 24px;
  background: linear-gradient(135deg, #fff 0%, #e0d0f0 50%, #c084fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.goal-hero p {
  color: var(--text-light); font-size: 20px; line-height: 1.7;
  max-width: 640px; margin: 0 auto 40px;
}
.goal-hero .btn-primary { font-size: 18px; padding: 16px 36px; }

/* Hero proof bar */
.hero-proof-bar {
  display: flex; justify-content: center; align-items: center; gap: 32px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.proof-stat { text-align: center; }
.proof-stat .proof-number {
  display: block; font-size: 28px; font-weight: 800; color: #fff;
}
.proof-stat .proof-label {
  display: block; font-size: 13px; color: var(--text-light); margin-top: 4px;
}
.hero-proof-bar .proof-divider {
  width: 1px; height: 40px; background: rgba(255,255,255,0.15);
}

/* ═══ PROBLEM SECTION ═══ */
.goal-problem {
  padding: 100px 24px;
  background: var(--bg);
}
.goal-problem .section-label { color: #c44; }
.goal-problem h2 { max-width: 700px; }

/* Narrative blocks */
.narrative-block {
  font-size: 18px; color: var(--text-secondary); line-height: 1.8;
  max-width: 680px; margin-bottom: 48px;
}
.narrative-block p { margin-bottom: 20px; }
.narrative-block strong { color: var(--text); }

/* Problem grid */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.problem-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 32px;
}
.problem-icon { margin-bottom: 16px; }
.problem-card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text);
}
.problem-card p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.6;
}

/* Pullquote */
.pullquote {
  max-width: 680px;
  margin: 64px 0 0;
  padding: 32px 32px 32px 36px;
  border-left: 4px solid var(--purple);
  background: var(--purple-bg2);
  border-radius: 0 12px 12px 0;
}
.pullquote svg { margin-bottom: 12px; opacity: 0.6; }
.pullquote p {
  font-size: 18px; font-style: italic; line-height: 1.7; color: var(--text);
  margin-bottom: 12px;
}
.pullquote cite {
  font-size: 14px; color: var(--text-muted); font-style: normal; font-weight: 600;
}

/* ═══ NARRATIVE SECTION ═══ */
.goal-narrative .section-label { color: var(--purple); }
.goal-narrative h2 { max-width: 700px; }
.goal-narrative em { color: var(--purple); font-style: italic; }

/* ═══ SOLUTION SECTION ═══ */
.goal-solution {
  padding: 100px 24px;
  background: var(--bg-subtle);
}
.goal-solution h2 { max-width: 700px; }
.goal-solution .solution-intro {
  font-size: 18px; color: var(--text-secondary); line-height: 1.7;
  max-width: 640px; margin-bottom: 48px;
}
.solution-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.solution-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.solution-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--purple-bg); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--purple);
}
.solution-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.solution-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ═══ PHASE TIMELINE ═══ */
.phase-timeline { max-width: 800px; margin: 60px auto 0; }
.phase-block {
  position: relative;
  padding-left: 32px;
  margin-bottom: 48px;
  border-left: 3px solid var(--border);
}
.phase-block:last-child { margin-bottom: 0; }
.phase-header {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 16px;
}
.phase-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: -48px;
  box-shadow: 0 4px 16px rgba(91,62,140,0.3);
}
.phase-meta { padding-top: 4px; }
.phase-duration {
  display: inline-block;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--orange);
  background: var(--orange-light); padding: 3px 10px; border-radius: 4px;
  margin-bottom: 6px;
}
.phase-meta h3 { font-size: 22px; font-weight: 700; margin-bottom: 0; }
.phase-body { padding-left: 24px; }
.phase-body > p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 20px; max-width: 600px;
}
.phase-details {
  display: flex; flex-direction: column; gap: 10px;
}
.phase-detail {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text);
}
.phase-detail svg { flex-shrink: 0; }

/* ═══ BEFORE/AFTER ═══ */
.goal-results {
  padding: 100px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2a1a4a 100%);
  color: #fff;
}
.goal-results .section-label { color: var(--orange); }
.goal-results h2 {
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #c084fc 50%, #F5A623 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.goal-results .results-intro {
  font-size: 18px; color: var(--text-light); line-height: 1.7;
  max-width: 640px; margin-bottom: 48px;
}
.before-after-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-top: 48px;
}
.ba-column {
  border-radius: 12px; padding: 32px;
}
.ba-before {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
}
.ba-after {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
}
.ba-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; margin-bottom: 20px;
  color: #fff;
}
.ba-column ul { list-style: none; padding: 0; }
.ba-column li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 15px; color: var(--text-light); line-height: 1.5;
}
.ba-column li:last-child { border-bottom: none; }

/* Results grid (for stats) */
.results-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.result-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px;
}
.result-stat {
  font-size: 36px; font-weight: 900; color: var(--orange); margin-bottom: 8px;
}
.result-card h3 {
  font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.result-card p {
  font-size: 15px; color: var(--text-light); line-height: 1.6;
}

/* ═══ STAT ROW ═══ */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.stat-block { text-align: center; padding: 24px; }
.stat-number {
  font-size: 48px; font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.stat-block p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  max-width: 280px; margin: 0 auto;
}

/* ═══ TESTIMONIAL DEEP ═══ */
.testimonial-deep {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 48px;
}
.td-quote svg { margin-bottom: 16px; }
.td-quote blockquote {
  font-size: 20px; line-height: 1.8; color: var(--text);
  font-style: italic; margin-bottom: 24px;
}
.td-attribution strong {
  display: block; font-size: 16px; color: var(--text);
}
.td-attribution span {
  font-size: 14px; color: var(--text-muted);
}

/* ═══ EXPECTATION TIMELINE ═══ */
.expectation-timeline { max-width: 700px; margin: 0 auto; }
.exp-row {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.exp-row:last-child { border-bottom: none; }
.exp-week {
  flex-shrink: 0; width: 80px;
  font-size: 13px; font-weight: 700; color: var(--purple);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding-top: 2px;
}
.exp-content h4 {
  font-size: 17px; font-weight: 700; margin-bottom: 4px;
}
.exp-content p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.6;
}

/* ═══ AUDIENCE GRID ═══ */
.audience-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.audience-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.audience-card svg { margin-bottom: 16px; }
.audience-card h3 { font-size: 18px; margin-bottom: 8px; }
.audience-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ═══ SYSTEM DEEP GRID ═══ */
.system-deep-grid {
  display: flex; flex-direction: column; gap: 24px;
  margin-top: 48px;
}
.system-card {
  display: flex; gap: 24px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.system-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.system-icon {
  flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--purple-bg);
  display: flex; align-items: center; justify-content: center;
}
.system-content h3 { font-size: 20px; margin-bottom: 8px; }
.system-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.system-includes {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.system-includes span {
  display: inline-block;
  font-size: 12px; font-weight: 600; color: var(--purple);
  background: var(--purple-bg); padding: 4px 12px; border-radius: 20px;
}

/* ═══ AUTO EXAMPLES ═══ */
.auto-examples {
  display: flex; flex-direction: column; gap: 24px;
  margin-top: 32px;
}
.auto-example {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.auto-trigger {
  flex-shrink: 0; width: 220px;
  font-size: 14px; font-weight: 600; color: var(--text);
  padding: 8px 12px;
  background: var(--orange-light);
  border-radius: 8px;
  border: 1px solid var(--orange-border);
}
.auto-arrow {
  flex-shrink: 0; padding-top: 6px;
}
.auto-result {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}

/* ═══ CALENDAR GRID ═══ */
.calendar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1000px; margin: 0 auto;
}
.cal-week-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--orange);
  margin-bottom: 12px;
}
.cal-items { display: flex; flex-direction: column; gap: 8px; }
.cal-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 10px 14px; border-radius: 8px;
}
.cal-email { background: rgba(91,62,140,0.15); color: #c4b5fd; }
.cal-sms { background: rgba(34,197,94,0.12); color: #86efac; }
.cal-social { background: rgba(59,130,246,0.12); color: #93c5fd; }
.cal-auto { background: rgba(245,166,35,0.12); color: #fcd34d; }
.cal-item svg { flex-shrink: 0; opacity: 0.8; }

/* ═══ FUNNEL FLOW ═══ */
.funnel-flow {
  max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.funnel-step {
  width: 100%;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  text-align: center;
}
.funnel-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.funnel-step h3 { font-size: 20px; margin-bottom: 8px; }
.funnel-step p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; max-width: 480px; margin: 0 auto; }
.funnel-connector {
  padding: 12px 0;
  display: flex; align-items: center; justify-content: center;
}

/* ═══ BENCHMARK COMPARISON ═══ */
.bench-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 800px; margin: 0 auto;
}
.bench-item {
  border-radius: 12px; padding: 24px; text-align: center;
}
.bench-expensive {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
}
.bench-mid {
  background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.2);
}
.bench-winner {
  background: rgba(34,197,94,0.12); border: 2px solid rgba(34,197,94,0.4);
}
.bench-label {
  font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 8px;
}
.bench-value {
  font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 4px;
}
.bench-note {
  font-size: 12px; color: var(--text-light);
}

/* ═══ AVAILABILITY BOX ═══ */
.availability-box {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--purple-bg2);
  border: 1px solid rgba(91,62,140,0.15);
  border-radius: 16px;
  padding: 36px;
}
.avail-icon { flex-shrink: 0; padding-top: 4px; }
.avail-content h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 8px;
}
.avail-content p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.7;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .calendar-grid { grid-template-columns: repeat(2, 1fr); }
  .bench-grid { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 768px) {
  .goal-hero { padding: 120px 24px 80px; }
  .goal-hero p { font-size: 17px; }
  .hero-proof-bar { flex-direction: column; gap: 20px; }
  .hero-proof-bar .proof-divider { width: 40px; height: 1px; }
  .problem-grid,
  .solution-grid,
  .results-grid,
  .stat-row,
  .audience-grid { grid-template-columns: 1fr; }
  .before-after-grid { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: 1fr; }
  .phase-block { padding-left: 20px; }
  .phase-number { width: 44px; height: 44px; font-size: 16px; margin-left: -36px; }
  .system-card { flex-direction: column; }
  .auto-example { flex-direction: column; }
  .auto-trigger { width: 100%; }
  .funnel-step { padding: 24px; }
  .availability-box { flex-direction: column; }
}
@media (max-width: 480px) {
  .phase-body { padding-left: 8px; }
}
