/* Mailbox Radar — public site styles */
:root {
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-light: #eef2ff;
  --ink: #0f172a;
  --slate: #475569;
  --slate-light: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --green: #059669;
  --radius: 14px;
  --maxw: 1140px;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 10px 30px rgba(15,23,42,.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dark); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--indigo), #7c3aed);
  display: grid; place-items: center; color: #fff; font-size: 17px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-block; font-weight: 600; font-size: .95rem;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dark); color: #fff; }
.btn-ghost { color: var(--slate); border-color: var(--border); background: #fff; }
.btn-ghost:hover { color: var(--ink); border-color: var(--slate-light); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 72px; background: radial-gradient(1200px 400px at 50% -100px, var(--indigo-light), transparent); text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--indigo);
  background: var(--indigo-light); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 20px; }
.hero p.lead { font-size: 1.2rem; color: var(--slate); max-width: 680px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--slate-light); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 1.08rem; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(15,23,42,.08), 0 20px 40px rgba(15,23,42,.08); }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px; background: var(--indigo-light);
  color: var(--indigo); display: grid; place-items: center; font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: .97rem; }

/* ---------- Split / alternating ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h3 { font-size: 1.6rem; letter-spacing: -.01em; margin-bottom: 14px; }
.split p { color: var(--slate); margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.check-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.visual {
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-soft);
  padding: 28px; box-shadow: var(--shadow); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86rem; color: var(--slate); overflow: auto;
}
.visual .k { color: var(--indigo); }
.visual .ok { color: var(--green); }
.visual .warn { color: #d97706; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-light), var(--shadow); position: relative; }
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 6px; }
.plan .tagline { color: var(--slate-light); font-size: .92rem; margin-bottom: 20px; }
.plan .price { font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--slate-light); }
.plan .features { list-style: none; margin: 24px 0; display: grid; gap: 12px; flex: 1; }
.plan .features li { display: flex; gap: 10px; color: var(--slate); font-size: .95rem; }
.plan .features li::before { content: "✓"; color: var(--green); font-weight: 700; }
.plan .btn { width: 100%; text-align: center; }

/* ---------- About ---------- */
.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin: 36px 0 12px; letter-spacing: -.01em; }
.prose p { color: var(--slate); margin-bottom: 16px; font-size: 1.05rem; }
.contact-box {
  margin-top: 40px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.contact-box h3 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-box p { color: var(--slate); margin-bottom: 18px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--indigo), #6d28d9); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; }
.cta-band .btn-primary { background: #fff; color: var(--indigo-dark); }
.cta-band .btn-primary:hover { background: #f1f5f9; color: var(--indigo-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 36px; }
.footer-brand { max-width: 300px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #94a3b8; font-size: .92rem; }
.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #cbd5e1; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; font-size: .86rem; color: #94a3b8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 72px 0 40px; text-align: center; background: radial-gradient(1000px 300px at 50% -80px, var(--indigo-light), transparent); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -.02em; margin-bottom: 14px; }
.page-head p { color: var(--slate); font-size: 1.12rem; max-width: 640px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .price-grid { grid-template-columns: 1fr; }
  .grid-2, .split { grid-template-columns: 1fr; gap: 32px; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 18px;
  }
  .footer-grid { flex-direction: column; }
}

/* =====================================================================
   Modern look — animated hero, glass cards, scroll reveal, coming soon
   ===================================================================== */
:root { --night: #070b1a; --violet: #7c3aed; --cyan: #22d3ee; --mint: #34d399; }

/* Buttons: gradient + glow */
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: 0 6px 18px rgba(79,70,229,.35);
  position: relative; overflow: hidden;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--indigo-dark), #6d28d9); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(79,70,229,.45); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }
.cta-band .btn-primary { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.cta-band .btn-primary:hover { background: #f1f5f9; }

/* ---------- Hero (dark, animated) ---------- */
.hero-dark {
  position: relative; overflow: hidden; background: var(--night); color: #fff;
  text-align: left; padding: 96px 0 104px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.blob.b1 { width: 540px; height: 540px; background: var(--indigo); opacity: .55; top: -180px; left: -140px; animation: drift1 18s ease-in-out infinite alternate; }
.blob.b2 { width: 480px; height: 480px; background: var(--violet); opacity: .45; top: 20px; right: -140px; animation: drift2 22s ease-in-out infinite alternate; }
.blob.b3 { width: 400px; height: 400px; background: #0ea5e9; opacity: .3; bottom: -200px; left: 38%; animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-120px, 110px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-160px, -60px) scale(1.2); } }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
  animation: gridmove 24s linear infinite;
}
@keyframes gridmove { to { background-position: 56px 56px; } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-dark .eyebrow { background: rgba(255,255,255,.08); color: #c7d2fe; border: 1px solid rgba(165,180,252,.25); display: inline-flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero-dark h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
.grad {
  background: linear-gradient(100deg, #a5b4fc, #22d3ee, #c084fc, #a5b4fc); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.hero-dark p.lead { color: #cbd5e1; margin: 0 0 32px; max-width: 560px; }
.hero-dark .hero-actions { justify-content: flex-start; }
.hero-dark .btn-ghost { background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.hero-dark .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.hero-dark .hero-note { color: #94a3b8; }

/* Radar visual */
.hero-visual { position: relative; padding: 18px; }
.radar {
  position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.22), rgba(10,15,35,.7) 70%);
  border: 1px solid rgba(165,180,252,.35);
  box-shadow: 0 0 90px rgba(99,102,241,.4), inset 0 0 60px rgba(99,102,241,.22);
}
.radar::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 24.2%, rgba(165,180,252,.28) 24.6%, transparent 25% 49.2%, rgba(165,180,252,.28) 49.6%, transparent 50% 74.2%, rgba(165,180,252,.28) 74.6%, transparent 75%),
    linear-gradient(rgba(165,180,252,.22), rgba(165,180,252,.22)) center / 1px 100% no-repeat,
    linear-gradient(rgba(165,180,252,.22), rgba(165,180,252,.22)) center / 100% 1px no-repeat;
}
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(129,140,248,0) 0deg, rgba(129,140,248,0) 280deg, rgba(129,140,248,.45) 350deg, rgba(199,210,254,.85) 360deg);
  animation: spin 5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.radar-core {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 18px;
  background: linear-gradient(135deg, var(--indigo), var(--violet)); display: grid; place-items: center;
  box-shadow: 0 0 40px rgba(124,58,237,.8); animation: breathe 3s ease-in-out infinite;
}
.radar-core svg { width: 32px; height: 32px; }
@keyframes breathe { 50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(124,58,237,1); } }
.blip { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.blip::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; animation: ping 3s ease-out infinite; animation-delay: var(--d, 0s); }
.blip em { position: absolute; left: 18px; top: -4px; font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: #a7f3d0; white-space: nowrap; }
.blip.warn { background: #fbbf24; box-shadow: 0 0 14px #fbbf24; }
.blip.warn::after { border-color: #fbbf24; }
.blip.warn em { color: #fde68a; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* Floating glass cards */
.float-card {
  position: absolute; z-index: 3; font-size: .8rem; line-height: 1.4; color: #e2e8f0;
  background: rgba(15,23,42,.62); border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  padding: 12px 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35); animation: floaty 6s ease-in-out infinite;
}
.float-card small { display: block; color: #94a3b8; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.float-card strong { color: #fff; font-size: 1.05rem; }
.fc1 { top: 2%; left: -4%; }
.fc2 { bottom: 6%; right: -2%; animation-delay: -2s; max-width: 230px; }
.fc3 { top: 40%; right: -6%; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.lookup-bad { color: #fb7185; }
.lookup-good { color: var(--mint); }
.lookup-num { display: inline-block; transition: color .4s ease, transform .4s ease; }
.lookup-num.flip { transform: scale(1.12); }

/* Provider marquee */
.marquee { background: var(--night); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; padding: 20px 0; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--night), transparent); }
.marquee-label { text-align: center; color: #64748b; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { color: #94a3b8; font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards & sections: subtle polish */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--violet), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card .icon { transition: transform .3s ease, background .3s ease; }
.card:hover .icon { transform: rotate(-6deg) scale(1.1); background: #e0e7ff; }
.cta-band { background: linear-gradient(120deg, var(--indigo), #6d28d9, #0ea5e9, var(--indigo)); background-size: 300% 300%; animation: ctaflow 14s ease infinite; }
@keyframes ctaflow { 50% { background-position: 100% 50%; } }
.page-head { position: relative; overflow: hidden; }

/* Scroll reveal (class added by main.js) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
/* Hero entrance */
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-visual { animation: rise 1s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Coming soon page ---------- */
.cs-hero { min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 72px 0; }
.cs-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cs-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; }
.cs-hero .lead { color: #cbd5e1; font-size: 1.15rem; max-width: 540px; margin-bottom: 28px; }
.cs-list { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.cs-list li { display: flex; gap: 12px; align-items: center; color: #e2e8f0; }
.cs-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); flex-shrink: 0; }
.cs-progress { height: 6px; max-width: 360px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 10px; }
.cs-progress i { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--cyan), var(--violet)); background-size: 200% 100%; animation: load 3.2s ease-in-out infinite alternate, shimmer 3s linear infinite; }
@keyframes load { from { width: 22%; } to { width: 78%; } }
.cs-status { color: #94a3b8; font-size: .9rem; margin-bottom: 30px; }
.cs-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Responsive additions ---------- */
@media (max-width: 900px) {
  .hero-dark { padding: 64px 0 72px; }
  .hero-inner, .cs-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { width: 100%; max-width: 420px; margin: 0 auto; }
  .fc2 { max-width: 190px; font-size: .74rem; }
  .fc1 { left: 0; } .fc2 { right: 0; } .fc3 { display: none; }
  .cs-hero { min-height: 0; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
