/* Public site (landing, blog). Same visual language as the app: dark, glass, mint→indigo. */
:root {
  --bg: #070b14; --card: rgb(255 255 255 / 0.045); --card-2: rgb(255 255 255 / 0.07);
  --text: #eef2ff; --text-2: #c3c9da; --muted: #8a93a8; --line: rgb(255 255 255 / 0.09); --line-strong: rgb(255 255 255 / 0.16);
  --accent: #2dd4bf; --accent-2: #818cf8; --good: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --grad: linear-gradient(135deg, #2dd4bf 0%, #818cf8 100%);
  --radius: 22px; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -0.03em; line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 14px; }
h3 { font-size: 1.12rem; margin: 0 0 6px; letter-spacing: -0.015em; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 640px; }
.sub { color: var(--text-2); margin: 0 auto 36px; max-width: 560px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: filter .15s, box-shadow .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #03201c; box-shadow: 0 10px 30px -10px rgb(45 212 191 / 0.7); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgb(45 212 191 / .4), 0 12px 36px -8px rgb(45 212 191 / .55); }
.btn.ghost { color: var(--text); border-color: var(--line-strong); background: var(--card); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(7 11 20 / 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.g1 { width: 520px; height: 520px; background: #0f766e; left: -160px; top: -140px; }
.g2 { width: 620px; height: 620px; background: #4338ca; right: -220px; top: 40px; opacity: .45; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); margin: 0 0 20px; font-weight: 800; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 26px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.9rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { color: var(--accent); }
.hero-visual { position: relative; }
.device { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -20px rgb(0 0 0 / .8), 0 0 0 8px rgb(255 255 255 / .03); transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
.float { position: absolute; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; background: rgb(15 21 36 / .82); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 50px -12px rgb(0 0 0 / .7); font-size: 0.86rem; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-weight: 650; }
.float small { color: var(--muted); }
.float small.big { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--text); }
.f1 { left: -28px; top: 14%; } .f2 { right: -16px; top: 46%; animation-delay: -2s; } .f3 { left: 8%; bottom: -26px; animation-delay: -4s; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.warn { background: var(--warn); box-shadow: 0 0 12px var(--warn); } .dot.good { background: var(--good); box-shadow: 0 0 12px var(--good); } .dot.bad { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding: 88px 0; }
.section.tight { padding: 40px 0 72px; }
.leak-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.leak { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.leak-amt { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }
.leak-amt span { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.leak-eq { color: var(--text-2); margin: 4px 0 10px; } .leak-eq b { color: var(--warn); font-size: 1.15rem; }
.leak p { margin: 0; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.feature > svg { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: rgb(45 212 191 / .12); color: var(--accent); margin-bottom: 16px; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.96rem; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 32px; display: flex; flex-direction: column; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 56px; color: var(--text-2); }
.steps li b { color: var(--text); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #03201c; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.phone { justify-self: center; width: min(320px, 100%); border-radius: 38px; padding: 10px; background: #0b1120; border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -20px rgb(0 0 0 / .8); }
.phone img { border-radius: 30px; }
.families-card { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: center; padding: 48px; border-radius: 28px; background: radial-gradient(500px 260px at 0% 0%, rgb(45 212 191 / .14), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgb(129 140 248 / .16), transparent 70%), var(--card); border: 1px solid var(--line); }
.families-card p { color: var(--text-2); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.checks li::before { content: '✓'; color: var(--good); font-weight: 800; margin-right: 10px; }
.ring-num { fill: var(--text); font: 800 34px 'Plus Jakarta Sans', sans-serif; }
.ring-label { fill: var(--muted); font: 600 11px Inter, sans-serif; }
.privacy { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; max-width: 860px; }
.privacy > div:first-child svg { width: 56px; height: 56px; padding: 13px; border-radius: 16px; background: rgb(129 140 248 / .14); color: var(--accent-2); }
.privacy p { color: var(--text-2); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card a { display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.post-card a:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-card h3 { font-size: 1.2rem; margin: 8px 0; }
.post-card p { color: var(--text-2); font-size: 0.95rem; margin: 0 0 14px; flex: 1; }
.read-more { color: var(--accent); font-weight: 650; font-size: 0.92rem; }
.post-meta { color: var(--muted); font-size: 0.86rem; }
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--text-2); margin: 0 0 16px; }
.cta-card { text-align: center; padding: 56px 24px; border-radius: 28px; background: radial-gradient(600px 300px at 50% 0%, rgb(45 212 191 / .18), transparent 70%), var(--card); border: 1px solid var(--line-strong); }
.cta-card p { color: var(--text-2); margin: 0 0 24px; }
.cta-card.small { padding: 32px 24px; margin: 48px 0 0; }
.cta-card.small h2 { font-size: 1.5rem; }

/* Blog */
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 0 0 12px; }
.article-head { padding: 56px 24px 8px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 10px 0 14px; }
.crumbs { font-size: 0.88rem; color: var(--muted); } .crumbs a { color: var(--muted); }
.draft { color: var(--warn); }
.cover { border-radius: 18px; margin: 24px 0 8px; border: 1px solid var(--line); }
.prose { font-size: 1.08rem; color: var(--text-2); padding-top: 12px; padding-bottom: 8px; }
.prose h2 { font-size: 1.6rem; color: var(--text); margin: 44px 0 12px; }
.prose h3 { color: var(--text); margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 14px 14px 0; color: var(--text); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); }
.prose code { background: var(--card-2); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.prose img { border-radius: 14px; margin: 8px 0 20px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--text-2); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer-base { margin-top: 28px; font-size: 0.86rem; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 72px; }
  .hero-grid, .how-grid, .families-card { grid-template-columns: 1fr; }
  .device { transform: none; }
  .f1 { left: -6px; top: -18px; } .f2 { right: -6px; } .f3 { left: 12px; }
  .leak-grid, .features, .post-grid { grid-template-columns: 1fr; }
  .families-card { padding: 32px 24px; }
  .ring-visual { justify-self: center; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-inner { gap: 12px; height: 60px; }
  .nav-cta .ghost { border: none; background: none; padding: 8px 6px; }
  .brand span { font-size: 1.05rem; }
  .float { font-size: 0.78rem; padding: 9px 12px; }
  .f2 { display: none; }
  .section { padding: 64px 0; }
  .privacy { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
