/* ───────── Reset & Foundations ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:       #7F77DD;
  --purple-dark:  #534AB7;
  --purple-deep:  #3d3494;
  --lavender:     #F5F3FF;
  --lavender-mid: #EDE9FE;
  --green-light:  #76E89A;
  --green:        #1FA84C;
  --green-deep:   #15803d;
  --gold:         #EDBE16;
  --gold-light:   #FFF8E1;
  --coral:        #F0997B;
  --error:        #E24B4A;
  --blue:         #378ADD;
  --blue-light:   #85B7EB;
  --card-shadow:  #e4e4e4;
  --text-dark:    #1f2937;
  --text-mid:     #4b5563;
  --text-light:   #9ca3af;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: #fff4f2;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ───────── Utility ───────── */
.container {
  max-width: 675px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-full {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ───────── Scroll Animations ───────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ───────── 3D Card (SocBuddy signature) ───────── */
.card-3d {
  background: white;
  border-radius: 20px;
  box-shadow: 0 3px 0 0 var(--card-shadow);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 var(--card-shadow), 0 12px 32px rgba(127,119,221,0.08);
}

/* ───────── Hero ───────── */
.hero {
  padding: 36px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero .container-full {
  max-width: 900px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(127,119,221,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 52px;
  align-items: center;
}

/* Left: text, vertically centered */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* Right: two labeled images side by side */
.hero-visual-journey {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-visual-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.hero-visual-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-mid);
  background: white;
  border-radius: 20px;
  padding: 4px 12px;
  box-shadow: 0 2px 0 0 var(--card-shadow);
  white-space: nowrap;
}

.hero-goals-img {
  width: 180px;
  height: 400px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
}
.hero-goals-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.phone-preview {
  width: 340px;
  height: 655px;
  flex-shrink: 0;
  background: white;
  border-radius: 40px;
  overflow: hidden;
}
.phone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 24px;
}
.hero-subtitle .dot {
  color: var(--purple);
  margin: 0 6px;
}

/* ───────── Stat Pills (3D like app badges) ───────── */
.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 0 0 rgba(0,0,0,0.08);
  transition: transform 0.15s ease;
}
.stat-pill:hover {
  transform: translateY(-1px);
}
.stat-pill.purple {
  background: var(--lavender-mid);
  color: var(--purple-dark);
}
.stat-pill.green {
  background: #dcfce7;
  color: var(--green-deep);
}
.stat-pill.gold {
  background: var(--gold-light);
  color: #92400e;
}
.stat-pill.blue {
  background: #dbeafe;
  color: #1e40af;
}

/* ───────── Section Headers ───────── */
.section {
  padding: 56px 0;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.section-emoji {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 0 0 rgba(0,0,0,0.06);
}
.section-emoji.purple-bg { background: var(--lavender-mid); }
.section-emoji.green-bg  { background: #dcfce7; }
.section-emoji.blue-bg   { background: #dbeafe; }
.section-emoji.gold-bg   { background: var(--gold-light); }

.section-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dark);
}

/* ───────── Challenge Section ───────── */
.challenge-quote {
  font-size: 20px;
  font-weight: 800;
  color: var(--purple-dark);
  font-style: italic;
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 4px solid var(--purple);
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 160px));
  gap: 10px;
  justify-content: center;
}
.goal-card {
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 3px 0 0 var(--card-shadow);
  line-height: 1.15;
}
.goal-card .goal-emoji {
  font-size: 26px;
  margin-bottom: 7px;
  display: block;
}
.goal-card .goal-text {
  font-size: 14px;
  font-weight: 700;
  display: block;
}
/* Goal card colors */
.goal-card.c-purple { background: var(--lavender-mid); }
.goal-card.c-purple .goal-text { color: var(--purple-dark); }
.goal-card.c-green  { background: #dcfce7; }
.goal-card.c-green .goal-text  { color: var(--green-deep); }
.goal-card.c-gold   { background: var(--gold-light); }
.goal-card.c-gold .goal-text   { color: #92400e; }
.goal-card.c-blue   { background: #dbeafe; }
.goal-card.c-blue .goal-text   { color: #1e40af; }

/* ───────── Napkin image ───────── */
.napkin-img-wrap {
  margin: 20px auto;
  width: 70%;
  position: relative;
}
.napkin-img-wrap img {
  width: 100%;
  display: block;
  height: auto;
  border-radius: 12px 12px 0 0;
}
.napkin-img-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  padding: 8px 14px;
  background: var(--lavender);
  border-radius: 0 0 12px 12px;
}


/* ───────── Expandable Details ───────── */
details {
  margin-top: 8px;
}
details summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
details summary:hover {
  color: var(--purple-dark);
}
details summary::before {
  content: '▸';
  font-size: 12px;
  transition: transform 0.2s;
}
details[open] summary::before {
  transform: rotate(90deg);
}
details summary::-webkit-details-marker { display: none; }

.expand-content {
  margin-top: 16px;
  padding: 20px;
  background: var(--lavender);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}
.expand-content blockquote {
  border-left: 3px solid var(--purple);
  padding-left: 16px;
  margin: 12px 0;
  font-style: italic;
  color: var(--text-dark);
}

/* ───────── Tension Cards ───────── */
.tensions-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ───────── Tension Card (panel redesign) ───────── */
.tension-card-new {
  background: white;
  border-radius: 20px;
  box-shadow: 0 3px 0 0 var(--card-shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 316px;
  align-items: stretch;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tension-card-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 var(--card-shadow), 0 8px 24px rgba(127,119,221,0.06);
}

.tension-card-new .tc-text {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.tension-card-new .tc-number {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.tension-card-new .tc-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0;
}

.tension-card-new .tc-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

.tension-card-new .tc-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

/* Color variants for the phone panel */
.tension-card-new.tc-purple .tc-number { background: #ede9fe; color: var(--purple-dark); }
.tension-card-new.tc-purple .tc-visual { background: #ccc2f9; }
.tension-card-new.tc-green  .tc-number { background: #dcfce7; color: var(--green-deep); }
.tension-card-new.tc-green  .tc-visual { background: #dcfce7; }
.tension-card-new.tc-blue   .tc-number { background: #dbeafe; color: #1e40af; }
.tension-card-new.tc-blue   .tc-visual { background: #dbeafe; }
.tension-card-new.tc-gold   .tc-number { background: var(--gold-light); color: #92400e; }
.tension-card-new.tc-gold   .tc-visual { background: var(--gold-light); }
.tension-card-new.tc-coral  .tc-number { background: #fddcd1; color: #9a3412; }
.tension-card-new.tc-coral  .tc-visual { background: #fddcd1; }

.tension-card-new .tc-phone {
  width: 264px;
  height: 509px;
  background: white;
  border-radius: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 2.5px solid rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.tension-card-new .tc-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Flipped variant: phone panel on left */
.tension-card-new.tc-flip {
  grid-template-columns: 316px 1fr;
}
.tension-card-new.tc-flip .tc-visual { order: -1; }

/* Responsive: collapse to stacked at mobile */
@media (max-width: 768px) {
  .tension-card-new {
    grid-template-columns: 1fr;
  }
  .tension-card-new.tc-flip {
    grid-template-columns: 1fr;
  }
  .tension-card-new.tc-flip .tc-visual { order: 0; }
  .tension-card-new .tc-text {
    padding: 24px 20px;
  }
  .tension-card-new .tc-visual {
    padding: 20px;
    justify-content: center;
  }
  .tension-card-new .tc-phone {
    width: 200px;
    height: 385px;
    border-radius: 28px;
  }
}

/* ───────── AI Section ───────── */
.ai-tagline {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 24px;
  font-style: italic;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ai-card {
  border-radius: 16px;
  padding: 20px;
  background: white;
  box-shadow: 0 3px 0 0 var(--card-shadow);
  transition: transform 0.2s;
}
.ai-card:hover {
  transform: translateY(-2px);
}
.ai-card-emoji {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 0 0 rgba(0,0,0,0.05);
}
.ai-card-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}
.ai-card-desc {
  font-size: 15px;
  line-height: 1.6;
}
/* AI card color variants — white cards, colored emoji accents */
.ai-card.c-purple .ai-card-title { color: var(--purple-deep); }
.ai-card.c-purple .ai-card-desc  { color: var(--text-mid); }
.ai-card.c-green  .ai-card-title { color: var(--green-deep); }
.ai-card.c-green  .ai-card-desc  { color: var(--text-mid); }
.ai-card.c-gold   .ai-card-title { color: #92400e; }
.ai-card.c-gold   .ai-card-desc  { color: var(--text-mid); }

/* ───────── Prototype Section ───────── */
.prototype-section {
  background: linear-gradient(180deg, var(--lavender) 0%, var(--lavender-mid) 100%);
  padding: 56px 0 72px;
}
.prototype-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.prototype-phone {
  width: 375px;
  height: 680px;
  background: white;
  border-radius: 40px;
  box-shadow:
    0 4px 0 0 var(--card-shadow),
    0 20px 60px rgba(83,74,183,0.15),
    inset 0 0 0 3px #e5e7eb;
  overflow: hidden;
  position: relative;
}
.prototype-phone iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.prototype-phone .notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 28px;
  background: white;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}
.prototype-hint {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
}

/* ───────── Footer ───────── */
.footer {
  padding: 48px 0;
  text-align: center;
}
.footer-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.footer-subtitle {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.footer-link {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: white;
  color: var(--purple-dark);
  box-shadow: 0 2px 0 0 var(--card-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.footer-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 0 var(--card-shadow);
}

/* ───────── Body paragraph ───────── */
.body-para {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ───────── Divider ───────── */
.section-divider {
  width: 60px;
  height: 6px;
  background: linear-gradient(90deg, var(--purple), var(--purple-dark));
  border-radius: 3px;
  margin: 0 auto;
}


/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .goals-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 28px; }
  .container-wide { padding: 0 28px; }
  .container-full { padding: 0 28px; }
  /* Tablet: shrink hero journey */
  .hero { padding-top: 80px; }
  .hero-grid { gap: 32px; }
  .hero-goals-img { width: 140px; height: 300px; border-radius: 12px; }
  .phone-preview { width: 240px; height: 462px; border-radius: 32px; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual-journey { flex-direction: column; align-items: center; gap: 20px; }
  .hero-goals-img { width: 80%; height: 180px; border-radius: 12px; }
  .phone-preview { width: 80%; height: auto; aspect-ratio: 9/17.4; border-radius: 30px; }
  .hero-text h1 { font-size: 26px; }
  .goals-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-asks-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; }
  .prototype-phone { width: 320px; height: 580px; border-radius: 32px; }
  .container { padding: 0 20px; }
  .container-wide { padding: 0 20px; }
  .container-full { padding: 0 20px; }
  .napkin-img-wrap { width: 85%; }
  .napkin-img-caption { padding: 8px 0; text-align: center; }
}

@media (max-width: 480px) {
  .goals-grid { grid-template-columns: 1fr 1fr; }
  .stat-pills { gap: 8px; }
  .prototype-phone { width: 100%; max-width: 340px; height: 560px; }
}

/* ───────── Site nav ───────── */
.site-logo {
  position: fixed;
  top: 2rem;
  left: 2rem;
  height: 2.4rem;
  z-index: 100;
}

.site-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  text-align: right;
  z-index: 100;
  font-family: unset;
}

.site-nav a {
  display: block;
  color: #1e1a41;
  text-decoration: none;
  font-family: "IM Fell DW Pica", serif;
  font-weight: normal;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .site-nav a:hover { opacity: 0.6; }
}

.menu-trigger {
  display: none;
  position: fixed;
  top: 2rem;
  right: 2rem;
  height: 2.4rem;
  z-index: 101;
  font-family: "IM Fell DW Pica", serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #1e1a41;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  line-height: 2.4rem;
}

@media (hover: hover) {
  .menu-trigger:hover { opacity: 0.7; }
}

.top-bar-fade {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 7.5rem;
  z-index: 99;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 244, 242, 0.95) 0%,
    rgba(255, 244, 242, 0.95) 30%,
    rgba(255, 244, 242, 0.88) 45%,
    rgba(255, 244, 242, 0.72) 60%,
    rgba(255, 244, 242, 0.45) 78%,
    rgba(255, 244, 242, 0.18) 90%,
    rgba(255, 244, 242, 0) 100%
  );
}

.fog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  background: linear-gradient(
    to bottom left,
    rgba(255, 244, 242, 0.97) 0%,
    rgba(255, 244, 242, 0.96) 25%,
    rgba(255, 244, 242, 0.94) 40%,
    rgba(255, 244, 242, 0.91) 52%,
    rgba(255, 244, 242, 0.86) 63%,
    rgba(255, 244, 242, 0.79) 74%,
    rgba(255, 244, 242, 0.70) 84%,
    rgba(255, 244, 242, 0.68) 92%,
    rgba(255, 244, 242, 0.60) 100%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fog-overlay.visible { display: flex; }
.fog-overlay.active  { opacity: 1; }

.fog-overlay a {
  color: #1e1a41;
  text-decoration: none;
  font-family: "IM Fell DW Pica", serif;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.fog-overlay.active a { opacity: 1; }

.fog-overlay.active a:nth-of-type(1) { transition-delay: 0.15s; }
.fog-overlay.active a:nth-of-type(2) { transition-delay: 0.3s; }
.fog-overlay.active a:nth-of-type(3) { transition-delay: 0.45s; }
.fog-overlay.active a:nth-of-type(4) { transition-delay: 0.6s; }
.fog-overlay.active a:nth-of-type(5) { transition-delay: 0.75s; }

.fog-overlay.closing a { opacity: 0; }
.fog-overlay.closing a:nth-of-type(5) { transition-delay: 0s; }
.fog-overlay.closing a:nth-of-type(4) { transition-delay: 0.15s; }
.fog-overlay.closing a:nth-of-type(3) { transition-delay: 0.3s; }
.fog-overlay.closing a:nth-of-type(2) { transition-delay: 0.45s; }
.fog-overlay.closing a:nth-of-type(1) { transition-delay: 0.6s; }

.fog-overlay.closing { transition-delay: 0.65s; }

@media (hover: hover) {
  .fog-overlay a:hover { opacity: 0.6; }
}

.fog-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  height: 2.4rem;
  line-height: 2.4rem;
  color: #1e1a41;
  font-family: "IM Fell DW Pica", serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .fog-close:hover { opacity: 0.7; }
}

@media (max-width: 600px) {
  .site-nav    { display: none; }
  .menu-trigger { display: block; }
  .top-bar-fade { display: block; }
}
