/* ==========================================================================
   Watermelon AI — shared page styles
   Put this at /assets/wm-page.css and link it from every content page.

   WHY A SHARED FILE: index.html currently inlines ~28 KB of CSS in its <head>
   (more than half the page weight), and every other page repeats its own copy.
   That means zero cross-page caching and a nav change means editing 40 files.
   One cached stylesheet fixes both. See AUDIT.md section 6.

   COLOR NOTE: these tokens match the LIVE SITE (--wm-red #FF3B3F) so this page
   sits visually alongside the existing pages. They do NOT match docs/brand.md,
   which specifies #FD4659 red and #0B1C2C navy and explicitly says #48C78E is a
   dashboard status color that is "not a Watermelon brand color". Reconcile the
   whole site to brand.md in one pass rather than making this page the odd one
   out. See AUDIT.md section 8.
   ========================================================================== */

:root {
  --wm-red: #FF3B3F;
  --wm-pink: #FF5E78;
  --wm-green: #48C78E;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --text: #1A1A2E;
  --text-2: #4A5568;
  --text-3: #718096;
  --border: #E2E8F0;
  --shadow: rgba(0, 0, 0, 0.08);
  --maxw: 780px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- header --- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 20px;
  color: var(--text); text-decoration: none;
}
.logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--wm-red); }
.btn {
  background: linear-gradient(135deg, var(--wm-red), var(--wm-pink));
  color: #fff; padding: 11px 22px; border-radius: 30px;
  text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 59, 63, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(255, 59, 63, 0.4); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* --- article --- */
article { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 0; }

.breadcrumb { font-size: 14px; color: var(--text-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--wm-red); }

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800; line-height: 1.18; letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* The extractable answer. Generative engines lift self-contained opening
   passages — this block is deliberately first, short, and complete on its own.
   See AUDIT.md section 10. */
.answer {
  font-size: 19px; line-height: 1.6; color: var(--text-2);
  border-left: 3px solid var(--wm-red);
  padding: 4px 0 4px 20px; margin-bottom: 32px;
}

.meta { font-size: 14px; color: var(--text-3); margin-bottom: 32px; }

.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 14px; overflow: hidden; margin-bottom: 40px;
  box-shadow: 0 4px 24px var(--shadow);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

article h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 27px; font-weight: 700; line-height: 1.3;
  margin: 44px 0 14px;
}
article h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px; font-weight: 600; margin: 30px 0 10px;
}
article p { margin-bottom: 18px; color: var(--text-2); }
article ul, article ol { margin: 0 0 18px 22px; color: var(--text-2); }
article li { margin-bottom: 9px; }
article strong { color: var(--text); font-weight: 600; }

.callout {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text); background: var(--bg-alt); }
td { color: var(--text-2); }

.faq-q {
  font-family: 'Poppins', sans-serif;
  font-size: 19px; font-weight: 600; margin: 28px 0 8px;
}

/* --- CTA --- */
.cta-block {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 18px; padding: 38px 32px; margin: 52px 0;
  text-align: center;
}
.cta-block h2 { margin-top: 0; font-size: 25px; }
.cta-block p { max-width: 480px; margin: 0 auto 24px; }

/* --- footer --- */
footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 44px 24px 28px; margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: center;
  padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; }
footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: var(--wm-red); }
.footer-bottom {
  padding-top: 22px; font-size: 14px; line-height: 1.9;
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between;
}
.footer-contact a { color: #fff; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
