/* =========================================
   Buddy — Shared Stylesheet
   ========================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700;800&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #25D366;
  --green-dark:  #128C7E;
  --green-light: #e8faf0;
  --navy:        #1a1a2e;
  --navy2:       #16213e;
  --text:        #1a1a2e;
  --muted:       #6c757d;
  --bg-alt:      #f8f9fa;
  --white:       #ffffff;
  --shadow:      0 10px 30px rgba(0,0,0,0.10);
  --radius:      15px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.6; font-size: 16px; }

h1, h2, h3, h4, h5 { font-family: 'Poppins', sans-serif; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.nav-logo { font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--white); }
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.82); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); text-decoration: none; }
.nav-cta {
  background: var(--green); color: var(--white) !important;
  padding: 0.45rem 1.1rem; border-radius: 25px; font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--green-dark) !important; transform: translateY(-1px); text-decoration: none !important; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.3s; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #0d3b2e 100%);
  min-height: 92vh; display: flex; align-items: center;
  padding: 5rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,211,102,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 4rem; width: 100%; position: relative; }
.hero-text { flex: 1; }
.hero-badge {
  display: inline-block; background: rgba(37,211,102,0.15); color: var(--green);
  border: 1px solid rgba(37,211,102,0.3); padding: 0.3rem 1rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: 0.5px;
}
.hero-text h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 1.25rem; }
.hero-text h1 span { color: var(--green); }
.hero-text p { font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 520px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--green); color: var(--white); padding: 0.85rem 1.8rem;
  border-radius: 30px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent; color: var(--white); padding: 0.85rem 1.8rem;
  border-radius: 30px; font-weight: 600; font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); text-decoration: none; }

/* Chat Mockup */
.hero-visual { flex: 0 0 320px; }
.chat-mockup {
  background: #e5ddd5; border-radius: 20px; padding: 1.25rem;
  box-shadow: var(--shadow), 0 0 0 8px rgba(255,255,255,0.06);
  max-width: 320px;
}
.chat-header {
  background: var(--green-dark); border-radius: 12px 12px 0 0; margin: -1.25rem -1.25rem 1rem;
  padding: 0.85rem 1.25rem; display: flex; align-items: center; gap: 0.75rem;
}
.chat-avatar { width: 38px; height: 38px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chat-header-info .name { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.chat-header-info .status { color: rgba(255,255,255,0.7); font-size: 0.78rem; }
.chat-msg { margin-bottom: 0.7rem; display: flex; flex-direction: column; }
.chat-msg.user { align-items: flex-end; }
.chat-msg.buddy { align-items: flex-start; }
.bubble {
  padding: 0.55rem 0.9rem; border-radius: 12px; font-size: 0.9rem; max-width: 85%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12); line-height: 1.45;
}
.chat-msg.user .bubble { background: #dcf8c6; border-radius: 12px 4px 12px 12px; color: #222; }
.chat-msg.buddy .bubble { background: var(--white); border-radius: 4px 12px 12px 12px; color: #222; }
.bubble .time { font-size: 0.7rem; color: #999; margin-top: 0.2rem; text-align: right; }

/* --- Sections --- */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: 0.85rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 3rem; }

/* --- Card Grid --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #f0f0f0;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.13); }
.card-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 2rem 1.5rem; }
.step-num {
  width: 56px; height: 56px; background: var(--green); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 700;
  margin: 0 auto 1rem; box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* --- Stats Row --- */
.stats-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 3rem; }
.stat { text-align: center; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--green); }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* --- Alt BG Section --- */
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: var(--white); }
.bg-dark .section-title, .bg-dark .section-tag { color: var(--white); }
.bg-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* --- Impact / Why Section --- */
.impact-inner { display: flex; gap: 4rem; align-items: center; flex-wrap: wrap; }
.impact-text { flex: 1; min-width: 280px; }
.impact-text p { color: var(--muted); margin-bottom: 1.5rem; font-size: 1rem; }
.impact-list { display: flex; flex-direction: column; gap: 0.6rem; }
.impact-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.97rem; }
.impact-list li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 1rem; }
.impact-visual { flex: 0 0 320px; }
.impact-box {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); border-left: 4px solid var(--green);
}
.impact-box .quote { font-size: 1.05rem; color: var(--text); font-style: italic; line-height: 1.7; }
.impact-box .author { margin-top: 1rem; font-weight: 600; color: var(--green-dark); font-size: 0.9rem; }

/* --- CTA Section --- */
.cta-section { text-align: center; padding: 6rem 2rem; }
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.75); margin-bottom: 2.5rem; font-size: 1.05rem; }

/* --- Footer --- */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand { flex: 1; min-width: 220px; }
.footer-brand .logo { font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.footer-brand .logo span { color: var(--green); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); max-width: 260px; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); text-decoration: none; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.85rem; }
.footer-bottom p { color: rgba(255,255,255,0.45); }

/* --- Legal Pages --- */
.legal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 70%, #0d3b2e 100%);
  padding: 5rem 2rem 4rem; text-align: center;
}
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); margin-bottom: 0.75rem; }
.legal-hero .subtitle { color: rgba(255,255,255,0.65); font-size: 1rem; }
.legal-hero .updated { color: var(--green); font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; }

.legal-body { max-width: 820px; margin: 0 auto; padding: 3rem 2rem 5rem; }

.summary-box {
  background: var(--green-light); border-left: 4px solid var(--green); border-radius: 10px;
  padding: 1.25rem 1.5rem; margin-bottom: 3rem;
}
.summary-box p { margin: 0; font-size: 0.97rem; }

.legal-body h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; color: var(--navy); padding-bottom: 0.4rem; border-bottom: 2px solid var(--green-light); }
.legal-body h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; color: var(--navy); }
.legal-body p { color: #444; margin-bottom: 0.75rem; font-size: 0.97rem; }
.legal-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-body ul li { list-style: disc; color: #444; font-size: 0.97rem; margin-bottom: 0.4rem; }
.legal-body a { color: var(--green-dark); }

.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.93rem; }
.legal-table th { background: var(--navy); color: var(--white); text-align: left; padding: 0.7rem 1rem; }
.legal-table td { padding: 0.7rem 1rem; border-bottom: 1px solid #eee; vertical-align: top; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: var(--bg-alt); }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0 1.5rem; }
.do-box, .dont-box { border-radius: 10px; padding: 1.25rem 1.5rem; }
.do-box { background: #e8faf0; border: 1px solid #b2dfc4; }
.dont-box { background: #fff0f0; border: 1px solid #f5c6c6; }
.do-box h4 { color: #1a7a3c; margin-bottom: 0.75rem; }
.dont-box h4 { color: #c0392b; margin-bottom: 0.75rem; }
.do-box li, .dont-box li { list-style: none; font-size: 0.93rem; margin-bottom: 0.3rem; }
.do-box li::before { content: '✅ '; }
.dont-box li::before { content: '❌ '; }

.contact-box {
  background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem 2rem;
  margin-top: 2.5rem; border: 1px solid #e0e0e0;
}
.contact-box h3 { margin-bottom: 0.75rem; }
.contact-box p { margin: 0.25rem 0; font-size: 0.95rem; }

/* --- Data Deletion Page --- */
.deletion-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.deletion-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); border: 2px solid #e0e0e0; transition: border-color 0.2s;
}
.deletion-card.primary { border-color: var(--green); }
.deletion-card h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.deletion-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0.5rem; }
.deletion-card ul { padding-left: 0; margin: 1rem 0; }
.deletion-card ul li { list-style: none; font-size: 0.93rem; margin-bottom: 0.35rem; color: #444; }
.deletion-card ul li::before { content: '✓  '; color: var(--green); font-weight: 700; }
.wip-badge { display: inline-block; background: rgba(37,211,102,0.12); color: var(--green-dark); font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 10px; margin-bottom: 0.75rem; }

.faq-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.faq-item { background: var(--white); border-radius: 10px; padding: 1.25rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #eee; }
.faq-item h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.faq-item p { color: var(--muted); font-size: 0.93rem; margin: 0; }

.reassurance-box {
  background: var(--green-light); border: 1px solid #b2dfc4; border-radius: 10px;
  padding: 1.25rem 1.5rem; margin: 2rem 0; font-size: 0.95rem;
}
.reassurance-box strong { color: var(--green-dark); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1.5rem 2rem; gap: 1rem; z-index: 99; }
  .nav-hamburger { display: block; }
  .hero-inner { flex-direction: column; gap: 2.5rem; }
  .hero-visual { width: 100%; }
  .chat-mockup { max-width: 100%; }
  .impact-inner { flex-direction: column; gap: 2rem; }
  .impact-visual { flex: none; width: 100%; }
  .do-dont { grid-template-columns: 1fr; }
  .deletion-options { grid-template-columns: 1fr; }
  .footer-top { gap: 2rem; }
  .stats-row { gap: 1.5rem; }
}
@media (max-width: 480px) {
  section { padding: 3.5rem 1.25rem; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
}
