/* ===========================================================
   Flick Flow — Business & Advertising site
   Design tokens derived from the core Flick Flow app UI:
   cyan → violet → magenta brand gradient, blue→purple avatar
   gradient, soft light backgrounds, rounded glass cards.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --grad-brand: linear-gradient(120deg, #06b6d4 0%, #7c3aed 55%, #ec4899 100%);
  --grad-blue-purple: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grad-cyan: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
  --grad-magenta: linear-gradient(135deg, #d946ef 0%, #a21caf 100%);
  --grad-rose: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  --grad-amber: linear-gradient(120deg, #fbbf24 0%, #f97316 100%);

  --bg-page: #f6f9fc;
  --bg-hero: linear-gradient(180deg, #eaf6fb 0%, #f6f9fc 55%, #ffffff 100%);
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-soft: rgba(15, 23, 42, 0.07);

  --ink-900: #131b2e;
  --ink-700: #33405c;
  --ink-500: #64748b;
  --ink-300: #94a3b8;

  --success: #16a34a;
  --danger: #e11d48;

  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-soft: 0 10px 30px rgba(43, 55, 106, 0.08);
  --shadow-lift: 0 18px 45px rgba(43, 55, 106, 0.14);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink-700);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--ink-900);
  margin: 0 0 .5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p { line-height: 1.65; margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: #ffffff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #7c3aed; background: rgba(124, 58, 237, .09);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: 19px; color: var(--ink-500); max-width: 640px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid #7c3aed; outline-offset: 2px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 12px 26px rgba(124, 58, 237, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(124,58,237,.36); }
.btn-secondary { background: #fff; color: var(--ink-900); border: 1.5px solid var(--border-soft); box-shadow: var(--shadow-soft); }
.btn-secondary:hover { transform: translateY(-2px); border-color: #c4b5fd; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-soft); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 20px; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex-shrink:0; }
img.brand__mark { background: none; object-fit: contain; padding: 0; }
.footer__brand img.brand__mark { width: 38px; height: 38px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-700); transition: background .15s, color .15s; }
.nav__links a:hover, .nav__links a.active { background: rgba(124,58,237,.08); color: #7c3aed; }
.nav__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink-900); margin: 5px 0; border-radius: 2px; }

@media (max-width: 980px) {
  .nav__links { position: fixed; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--border-soft);
    transform: translateY(-130%); opacity: 0; transition: transform .25s ease, opacity .2s ease; box-shadow: var(--shadow-lift);
    max-height: calc(100vh - 66px); overflow-y: auto; }
  .nav__links.open { transform: translateY(0); opacity: 1; }
  .nav__links a { padding: 12px 10px; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
}

/* ---------- Grouped dropdown nav ---------- */
.nav__dropdown { position: relative; }
.nav__dropdown > a { padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-700);
  display: inline-flex; align-items: center; gap: 4px; transition: background .15s, color .15s; }
.nav__dropdown > a .caret { font-size: 10px; transition: transform .15s ease; }
.nav__dropdown > a:hover, .nav__dropdown.active > a { background: rgba(124,58,237,.08); color: #7c3aed; }
.nav__dropdown-menu {
  position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border-soft);
  border-radius: 14px; box-shadow: var(--shadow-lift); padding: 8px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease; z-index: 60;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.nav__dropdown-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-700); }
.nav__dropdown-menu a:hover, .nav__dropdown-menu a.active { background: rgba(124,58,237,.08); color: #7c3aed; }
.nav__dropdown:last-of-type .nav__dropdown-menu { left: auto; right: 0; }

@media (max-width: 980px) {
  .nav__dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    box-shadow: none; border: none; padding: 0 0 6px 16px; min-width: 0; background: transparent; }
  .nav__dropdown > a { width: 100%; justify-content: space-between; }
}

.nav__mobile-cta { display: none; }
@media (max-width: 980px) {
  .nav__mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
}

/* ---------- Hub pages (For Parents / For Creators / For Businesses) ---------- */
.hub-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
@media (max-width: 640px) { .hub-links { grid-template-columns: 1fr; } }
.hub-link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px 22px;
  box-shadow: var(--shadow-soft); transition: transform .15s ease, box-shadow .15s ease;
}
.hub-link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hub-link-card h3 { margin: 0 0 4px; font-size: 16.5px; }
.hub-link-card p { margin: 0; font-size: 13.5px; color: var(--ink-500); }
.hub-link-card .arrow { font-size: 20px; color: #7c3aed; flex-shrink: 0; }

/* ---------- Mailto template box (beta signup, report a bug, etc.) ---------- */
.mailto-box { background: #f6f9fc; border: 1px dashed #c7d2e0; border-radius: var(--radius-md); padding: 22px 26px; margin-top: 22px; }
.mailto-box h3 { font-size: 15px; margin-bottom: 10px; }
.mailto-box pre { white-space: pre-wrap; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink-700); margin: 0; line-height: 1.7; }

.quicklink-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.quicklink {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--border-soft);
  border-radius: 999px; padding: 10px 18px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
  color: var(--ink-900); box-shadow: var(--shadow-soft); transition: transform .15s ease, border-color .15s ease;
}
.quicklink:hover { transform: translateY(-2px); border-color: #c4b5fd; }

.hero { background: var(--bg-hero); padding: 76px 0 56px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 46px; max-width: 620px; }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__visual { position: relative; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } }

.device { background: #ffffff; border-radius: 28px; padding: 22px; box-shadow: var(--shadow-lift); border: 1px solid var(--border-soft); position: relative; z-index: 2; }
.device__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.device__dot { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.device__row { display: flex; gap: 14px; margin-bottom: 14px; }
.device__tile { flex: 1; border-radius: 16px; padding: 16px; color: #fff; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; font-family: 'Poppins', sans-serif; font-weight: 700; }
.device__tile span { font-size: 12px; font-weight: 500; opacity: .9; font-family:'Inter',sans-serif; }
.device__tile strong { font-size: 20px; }
.tile-cyan { background: var(--grad-cyan); }
.tile-purple { background: var(--grad-blue-purple); }
.tile-magenta { background: var(--grad-magenta); }
.tile-rose { background: var(--grad-rose); }
.device__pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.device__pill { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #eef2ff; color: #4f46e5; }
.floaty { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: 1; }
.floaty--1 { width: 120px; height: 120px; background: var(--grad-cyan); top: -30px; right: -30px; }
.floaty--2 { width: 90px; height: 90px; background: var(--grad-rose); bottom: -20px; left: -20px; opacity:.35; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: 15px; margin-bottom: 0; }

.icon-cyan { background: var(--grad-cyan); }
.icon-purple { background: var(--grad-blue-purple); }
.icon-magenta { background: var(--grad-magenta); }
.icon-rose { background: var(--grad-rose); }
.icon-amber { background: var(--grad-amber); }

.panel { background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-soft); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: #e9f7fb; color: #0e7490; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; display:flex; align-items:center; gap:6px; }
.pill.is-active { background: var(--grad-amber); color: #fff; }

.steps { display: grid; gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 22px 26px; box-shadow: var(--shadow-soft); }
.step__num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family:'Poppins',sans-serif; font-weight: 700; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-500); font-size: 15px; }

.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 800px) { .policy-grid { grid-template-columns: 1fr; } }
.policy-card { border-radius: var(--radius-lg); padding: 30px; }
.policy-card--allow { background: #f0fdf4; border: 1px solid #bbf7d0; }
.policy-card--deny { background: #fef2f2; border: 1px solid #fecaca; }
.policy-card h3 { display: flex; align-items: center; gap: 10px; }
.policy-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; color: var(--ink-700); }
.policy-card--allow .tag { color: #15803d; }
.policy-card--deny .tag { color: #b91c1c; }

/* ---------- Contact / mailto (no form — email-first contact) ---------- */
.email-card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 44px; box-shadow: var(--shadow-lift); text-align: center; max-width: 620px; margin: 0 auto;
}
.email-display {
  display: inline-flex; align-items: center; gap: 12px; background: #f6f9fc; border: 1.5px solid var(--border-soft);
  border-radius: 999px; padding: 12px 20px; margin: 18px 0 8px; font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 16px; color: var(--ink-900); flex-wrap: wrap; justify-content: center;
}
.copy-btn {
  background: rgba(124,58,237,.1); color: #7c3aed; border: none; border-radius: 999px; padding: 7px 14px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; cursor: pointer; transition: background .15s;
}
.copy-btn:hover { background: rgba(124,58,237,.18); }
.copy-btn.copied { background: #dcfce7; color: #15803d; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-note { font-size: 13px; color: var(--ink-500); margin-top: 14px; }

.faq-item { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-soft); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q .plus { transition: transform .2s ease; color: #7c3aed; font-size: 20px; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 24px; color: var(--ink-500); font-size: 15px; }
.faq-item.open .faq-a { max-height: 320px; padding: 0 24px 20px; }

.cta-band { background: var(--grad-brand); border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .btn-secondary { background: #fff; color: #7c3aed; border: none; }

.footer { background: #12142b; color: #cbd5e1; padding: 64px 0 28px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 28px; }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
.footer .footer-heading { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer a { color: #a8b3c7; font-size: 14.5px; display: block; padding: 6px 0; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer__brand { color: #fff; font-weight: 700; font-family:'Poppins',sans-serif; font-size: 20px; display:flex; align-items:center; gap:10px; margin-bottom: 12px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #7c88a6; }

.page-head { padding: 64px 0 40px; text-align: center; background: var(--bg-hero); }
.page-head h1 { font-size: 38px; }
.badge-safe { display:inline-flex; align-items:center; gap:8px; background:#ecfdf5; color:#047857; font-weight:600; font-size:13.5px; padding:8px 16px; border-radius:999px; margin-bottom: 16px; }

.divider { height: 1px; background: var(--border-soft); margin: 12px 0; }
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal p, .legal li { color: var(--ink-700); font-size: 15.5px; }
.legal li { padding: 4px 0 4px 18px; position: relative; }
.legal li::before { content: "•"; position: absolute; left: 0; color: #7c3aed; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

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

/* ===========================================================
   AI Assistant chat widget (site-wide, injected by js/chat-widget.js)
   =========================================================== */
.ff-chat-bubble {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad-brand); box-shadow: 0 14px 30px rgba(124,58,237,.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ff-chat-bubble:hover { transform: translateY(-2px) scale(1.04); }
.ff-chat-bubble img { width: 30px; height: 30px; object-fit: contain; }
.ff-chat-bubble .ff-chat-close-icon { display: none; color: #fff; font-size: 24px; line-height: 1; }
.ff-chat-bubble.is-open img { display: none; }
.ff-chat-bubble.is-open .ff-chat-close-icon { display: block; }

.ff-chat-panel {
  position: fixed; bottom: 92px; right: 22px; z-index: 200;
  width: 360px; max-width: calc(100vw - 32px); max-height: min(560px, calc(100vh - 140px));
  background: #fff; border-radius: 22px; border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lift); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.ff-chat-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.ff-chat-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--grad-brand); color: #fff; flex-shrink: 0;
}
.ff-chat-header img { width: 26px; height: 26px; object-fit: contain; }
.ff-chat-header strong { font-family: 'Poppins', sans-serif; font-size: 14.5px; display: block; }
.ff-chat-header span { font-size: 12px; opacity: .9; display: block; }

.ff-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f9fafc; }
.ff-chat-msg { max-width: 84%; font-size: 14px; line-height: 1.5; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.ff-chat-msg.user { align-self: flex-end; background: var(--grad-blue-purple); color: #fff; border-bottom-right-radius: 4px; }
.ff-chat-msg.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--border-soft); color: var(--ink-900); border-bottom-left-radius: 4px; }
.ff-chat-msg.system { align-self: center; background: transparent; color: var(--ink-500); font-size: 12.5px; text-align: center; max-width: 100%; }
.ff-chat-msg.typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.ff-chat-dot { width: 6px; height: 6px; border-radius: 50%; background: #b9c2d4; animation: ffDotPulse 1.1s infinite ease-in-out; }
.ff-chat-dot:nth-child(2) { animation-delay: .15s; }
.ff-chat-dot:nth-child(3) { animation-delay: .3s; }
@keyframes ffDotPulse { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.ff-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border-soft); background: #fff; flex-shrink: 0; }
.ff-chat-input {
  flex: 1; border: 1.5px solid #e2e8f0; border-radius: 999px; padding: 10px 14px; font-size: 14px;
  font-family: 'Inter', sans-serif; outline: none; transition: border-color .15s;
}
.ff-chat-input:focus { border-color: #a78bfa; }
.ff-chat-send {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--grad-brand); color: #fff;
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.ff-chat-send[disabled] { opacity: .5; cursor: not-allowed; }
.ff-chat-disclaimer { font-size: 10.5px; color: var(--ink-500); text-align: center; padding: 0 12px 10px; }

@media (max-width: 480px) {
  .ff-chat-panel { right: 16px; left: 16px; width: auto; bottom: 88px; }
  .ff-chat-bubble { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ff-chat-dot { animation: none; }
}

/* ===========================================================
   v8 polish: glass cards, device frames, alternating media rows,
   background blobs, flow diagrams, timeline, count-up stats.
   =========================================================== */

/* ---------- Background blobs (subtle, decorative only) ---------- */
.bg-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .35; }
.bg-blob--1 { width: 320px; height: 320px; background: var(--grad-cyan); top: -100px; left: -80px; }
.bg-blob--2 { width: 260px; height: 260px; background: var(--grad-magenta); bottom: -80px; right: -60px; opacity: .28; }
.bg-blob--3 { width: 200px; height: 200px; background: var(--grad-amber); top: 40%; right: 10%; opacity: .2; }
.bg-host { position: relative; overflow: hidden; }
.bg-host > .container { position: relative; z-index: 1; }

/* ---------- Glass cards (used on colored/gradient backgrounds) ---------- */
.glass-card {
  background: rgba(255,255,255,.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: 0 12px 34px rgba(43,55,106,.12); transition: transform .2s ease, box-shadow .2s ease;
}
.glass-card:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 20px 46px rgba(43,55,106,.18); }

/* Upgrade existing cards with a slightly richer hover (lift + tiny scale + glow) */
.card:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 20px 46px rgba(124,58,237,.16); }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__icon { transition: transform .2s ease; }

/* ---------- Device frame (for real app screenshots) ---------- */
.device-frame {
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lift); border: 1px solid var(--border-soft);
  background: #fff; transition: transform .25s ease, box-shadow .25s ease; max-width: 320px; margin: 0 auto;
}
.device-frame:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 30px 60px rgba(43,55,106,.22); }
.device-frame img { display: block; width: 100%; height: auto; }
.device-frame-caption { text-align: center; font-size: 13px; color: var(--ink-500); margin-top: 14px; }

/* ---------- Alternating media rows ---------- */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.media-row .media-text { order: 1; }
.media-row .media-visual { order: 2; }
.media-row.media-row--flip .media-text { order: 2; }
.media-row.media-row--flip .media-visual { order: 1; }
@media (max-width: 860px) {
  .media-row { grid-template-columns: 1fr; gap: 30px; }
  .media-row .media-text, .media-row.media-row--flip .media-text { order: 1; }
  .media-row .media-visual, .media-row.media-row--flip .media-visual { order: 2; }
}

/* ---------- Flow diagram (safety pipeline, campaign process, etc.) ---------- */
.flow-steps { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.flow-step {
  display: flex; flex-direction: column; align-items: center; text-align: center; width: 150px; padding: 6px;
}
.flow-step__icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; margin-bottom: 10px; box-shadow: var(--shadow-soft);
}
.flow-step h3 { font-size: 14px; margin: 0 0 4px; }
.flow-step p { font-size: 12.5px; color: var(--ink-500); margin: 0; }
.flow-arrow { display: flex; align-items: center; justify-content: center; width: 34px; color: #c4b5fd; font-size: 20px; flex-shrink: 0; align-self: center; margin-top: -34px; }
@media (max-width: 760px) {
  .flow-steps { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); margin: -4px 0; }
  .flow-step { width: 100%; max-width: 260px; }
}

/* ---------- Timeline (founder story) ---------- */
.timeline { position: relative; margin-top: 30px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, #22d3ee, #7c3aed, #ec4899); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -34px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-brand); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(124,58,237,.25); }
.timeline-item h3 { font-size: 17px; margin-bottom: 6px; }
.timeline-item p { margin-bottom: 0; }

/* ---------- Stat tiles (platform snapshot, clearly labeled preview) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-tile { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 22px; text-align: center; box-shadow: var(--shadow-soft); }
.stat-tile__num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 30px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-tile__label { font-size: 13px; color: var(--ink-500); margin-top: 4px; }
.preview-badge {
  display: inline-flex; align-items: center; gap: 6px; background: #fff7ed; color: #c2410c; font-weight: 700;
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  border: 1px solid #fed7aa; margin-bottom: 16px;
}

/* ---------- Checklist (Why Parents Choose, etc.) ---------- */
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
@media (max-width: 640px) { .check-list { grid-template-columns: 1fr; } }
.check-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px 16px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-soft); }
.check-item .check-mark { width: 26px; height: 26px; border-radius: 50%; background: #dcfce7; color: #15803d; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }

/* ---------- Calculator ---------- */
.calc-box { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-soft); max-width: 560px; margin: 28px auto 0; }
.calc-box label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.calc-box input[type="range"] { width: 100%; accent-color: #7c3aed; }
.calc-box .calc-value { font-family: 'Poppins', sans-serif; font-weight: 700; color: #7c3aed; }
.calc-result { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.calc-result strong { font-size: 26px; font-family: 'Poppins', sans-serif; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Ripple (buttons) ---------- */
.btn { position: relative; overflow: hidden; }
.btn-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0); animation: ffRipple .55s ease-out forwards; pointer-events: none; }
@keyframes ffRipple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- Count-up number reveal ---------- */
[data-countup] { display: inline-block; }

/* ---------- Hero fade-in ---------- */
.hero__grid > * { animation: ffFadeUp .6s ease both; }
.hero__grid > *:nth-child(2) { animation-delay: .08s; }
@keyframes ffFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .hero__grid > *, .btn-ripple { animation: none !important; }
}
