/* ==========================================================================
   Kuulee marketing page — static stylesheet
   Theme tokens (swap here to rebrand): --brand, --brand-2, --gradient
   ========================================================================== */
:root {
  --brand: #0284c7;
  --brand-2: #0369a1;
  --gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 55%, #075985 100%);
  --ink: #18181b;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 16px; height: 16px; flex-shrink: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; border: none; cursor: pointer;
  padding: 12px 22px; border-radius: 10px; transition: all .15s ease-out;
  white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 15px; border-radius: 12px; }
.btn-brand {
  background: #0284c7; color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.1);
  border: 1px solid transparent;
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 1px 3px rgba(2,132,199,.3), 0 4px 12px rgba(2,132,199,.15);
}
.btn-brand:hover {
  background: #0369a1; transform: translateY(-1px);
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 2px 6px rgba(2,132,199,.35), 0 8px 20px rgba(2,132,199,.2);
}
.btn-brand:active { background: #075985; transform: translateY(0); }
.btn-dark { background: #18181b; color: #fff; }
.btn-dark:hover { background: #27272a; }
.btn-white {
  background: #fff; color: #18181b; border: 1px solid #e4e4e7;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
}
.btn-white:hover { background: #fafafa; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.08); }

/* ── Navbar ──────────────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 100; }
.topbar {
  background: #0369a1; color: #fff; text-align: center;
  font-size: 14px; padding: 13px 16px; line-height: 1.3;
}
.topbar-icon { margin-right: 6px; }
.topbar-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 32px; max-width: 1280px; margin: 0 auto;
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled .navbar-inner { background: #fff; box-shadow: 0 1px 0 var(--line); }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 8px; }
.nav-links a { font-size: 15px; font-weight: 500; color: #3f3f46; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: #18181b; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-signin { font-size: 14px; color: #52525b; }
.nav-signin:hover { color: #18181b; }
.nav-cta { padding: 10px 20px; height: 40px; }
.menu-btn {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; position: relative;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: #18181b; border-radius: 2px; transition: all .25s ease; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 12px 24px 24px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.mobile-menu a { padding: 14px 0; font-size: 18px; font-weight: 700; }
.mobile-menu.open { display: flex; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%); }
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, #0284c7 1px, transparent 1px),
                    linear-gradient(to bottom, #0284c7 1px, transparent 1px);
  background-size: 60px 60px; opacity: .06;
}
.hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, #0284c7 1.5px, transparent 1.5px);
  background-size: 36px 36px; opacity: .08;
}
.orb { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.orb-1 { width: 560px; height: 560px; top: -12%; left: -8%; background: radial-gradient(circle, rgba(2,132,199,.4) 0%, transparent 70%); animation: float1 14s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; top: 38%; right: -6%; background: radial-gradient(circle, rgba(2,132,199,.3) 0%, transparent 70%); animation: float2 18s ease-in-out infinite; }
.orb-3 { width: 320px; height: 320px; bottom: -10%; left: 30%; background: radial-gradient(circle, rgba(2,132,199,.3) 0%, transparent 70%); animation: float3 16s ease-in-out infinite 2s; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; text-align: center; padding: 72px 24px 80px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: #3f3f46; background: rgba(255,255,255,.8); border: 1px solid #e4e4e7;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 28px; backdrop-filter: blur(8px);
}
.hero-badge svg { color: var(--brand); }
.hero h1 { font-size: clamp(34px, 6vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: #18181b; margin-bottom: 24px; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { display: flex; justify-content: center; gap: 12px; font-size: 17px; color: #3f3f46; margin: 0 auto 30px; max-width: 560px; line-height: 1.6; }
.hero-bar { width: 4px; height: 24px; margin-top: 4px; border-radius: 999px; background: linear-gradient(180deg, var(--brand), #38bdf8); flex-shrink: 0; }
.hero-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid #e4e4e7; border-radius: 16px; padding: 6px; box-shadow: 0 16px 40px rgba(24,24,27,.1); }
.hero-form input { flex: 1; border: none; outline: none; font-size: 15px; padding: 12px 14px; background: transparent; color: #18181b; }
.hero-form input::placeholder { color: #a1a1aa; }
.hero-stats { display: flex; justify-content: center; gap: 44px; margin-top: 36px; }
.hstat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hstat-value { font-size: 16px; font-weight: 700; color: #27272a; }
.hstat-label { font-size: 12px; color: #71717a; }

/* ── Marquee ─────────────────────────────────────────── */
.marquee { overflow: hidden; max-width: 640px; margin: 24px auto 0; }
.marquee-track { display: flex; gap: 28px; white-space: nowrap; animation: marquee 24s linear infinite; }
.marquee-track span { font-size: 14px; color: #71717a; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--muted); }

/* ── Templates ───────────────────────────────────────── */
.cat-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.cat-btn {
  font-size: 14px; font-weight: 500; padding: 8px 18px; border-radius: 999px;
  background: #fff; color: #52525b; border: 1px solid #e4e4e7; cursor: pointer;
  transition: all .2s ease;
}
.cat-btn:hover { border-color: #a1a1aa; }
.cat-btn.active { background: #18181b; color: #fff; border-color: #18181b; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tpl-card {
  background: #fff; border: 1px solid #e4e4e7; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(24,24,27,.05); transition: transform .25s ease, box-shadow .25s ease;
}
.tpl-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(24,24,27,.12); }
.tpl-cover { aspect-ratio: 4/3; }
.cover-1 { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.cover-2 { background: linear-gradient(135deg, #f472b6, #fb923c); }
.cover-3 { background: linear-gradient(135deg, #075985, #0ea5e9); }
.cover-4 { background: linear-gradient(135deg, #a78bfa, #f472b6); }
.cover-5 { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.cover-6 { background: linear-gradient(135deg, #fbbf24, #f472b6); }
.tpl-body { padding: 16px; }
.tpl-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.tpl-body p { font-size: 13px; color: #71717a; }

/* ── Steps ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative; text-align: center; background: #fff; border: 1px solid #f4f4f5;
  border-radius: 16px; padding: 28px 20px; transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(24,24,27,.08); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: #fff; border: 1px solid #f4f4f5; box-shadow: 0 1px 3px rgba(0,0,0,.05);
  font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 16px;
}
.step-icon { width: 56px; height: 56px; border-radius: 14px; background: #e0f2fe; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px; }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Mid CTA ─────────────────────────────────────────── */
.mid-cta { padding: 48px 24px; text-align: center; }
.mid-cta p { font-size: 13px; color: #a1a1aa; margin-top: 12px; }

/* ── Trust ───────────────────────────────────────────── */
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 72px; text-align: center; }
.tstat-value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.tstat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: #fff; border: 1px solid #e4e4e7; border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(24,24,27,.05); display: flex; flex-direction: column; }
.stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; margin-bottom: 16px; }
.quote { font-size: 14px; color: #52525b; line-height: 1.65; flex: 1; margin-bottom: 20px; font-style: italic; }
.tperson { display: flex; align-items: center; gap: 12px; border-top: 1px solid #f4f4f5; padding-top: 16px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.av-1 { background: #0284c7; }
.av-2 { background: #ec4899; }
.av-3 { background: #0ea5e9; }
.tname { font-size: 14px; font-weight: 600; }
.trole { font-size: 12px; color: #71717a; }

/* ── Pricing ─────────────────────────────────────────── */
.billing-toggle { display: flex; justify-content: center; gap: 4px; margin-bottom: 40px; background: #f4f4f5; padding: 4px; border-radius: 12px; width: fit-content; margin-left: auto; margin-right: auto; }
.cycle-btn { font-size: 14px; font-weight: 500; padding: 8px 22px; border-radius: 9px; background: transparent; border: none; cursor: pointer; color: #52525b; transition: all .2s ease; }
.cycle-btn.active { background: #fff; color: #18181b; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; }
.plan-highlight { border: 2px solid var(--brand); box-shadow: 0 20px 40px rgba(2,132,199,.14); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.plan-desc { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.plan-price { margin-bottom: 22px; display: flex; align-items: baseline; gap: 4px; }
.price-amount { font-size: 42px; font-weight: 800; letter-spacing: -.03em; }
.price-period { font-size: 15px; color: var(--faint); }
.plan-cta { margin-bottom: 26px; width: 100%; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.plan li { font-size: 14px; color: #3f3f46; display: flex; align-items: center; gap: 10px; }
.plan li::before { content: "✓"; color: #0284c7; font-weight: 700; }
.pricing-note { text-align: center; font-size: 13px; color: #a1a1aa; margin-top: 28px; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-wrap { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid #e4e4e7; border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 500; color: #18181b; padding: 18px 22px;
  transition: background .15s ease;
}
.faq-q:hover { background: #fafafa; }
.faq-icon { font-size: 20px; color: #71717a; line-height: 1; transition: transform .2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 22px 20px; font-size: 14px; color: #52525b; line-height: 1.65; }

/* ── CTA ─────────────────────────────────────────────── */
.cta { background: var(--gradient); padding: 80px 0; text-align: center; }
.cta-inner { max-width: 640px; }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.85); font-size: 17px; margin-bottom: 8px; }
.cta-sub { color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 28px; }
.cta-btn { padding: 16px 32px; font-size: 16px; border-radius: 14px; }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: #18181b; color: #a1a1aa; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-logo { font-weight: 800; font-size: 20px; color: #fff; }
.footer-brand p { font-size: 14px; color: #71717a; margin-top: 12px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: #a1a1aa; padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #27272a; padding-top: 24px; font-size: 13px; color: #71717a; }

/* ── Back to top ─────────────────────────────────────── */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px;
  border-radius: 12px; background: var(--brand); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 10px 24px rgba(2,132,199,.35); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { opacity: .9; }

/* ── Animations ──────────────────────────────────────── */
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.08); } 66% { transform: translate(-15px,15px) scale(.95); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(-25px,15px) scale(1.1); } 50% { transform: translate(20px,-25px) scale(.92); } 75% { transform: translate(-10px,-10px) scale(1.05); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-20px,-30px) scale(1.12); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .tpl-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-form { flex-direction: column; }
  .hero-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
