/* Beezifi Docs — landing page and legal pages */
:root {
  --font: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand: #2b5ae0;
  --brand-2: #7c4dff;
  --brand-deep: #1b3fae;
  --ink: #0f1424;
  --ink-2: #47506a;
  --ink-3: #6b7489;
  --bg: #ffffff;
  --bg-2: #f5f7fc;
  --bg-3: #eef2fb;
  --line: #e3e8f2;
  --good: #128a4a;
  --bad: #b42318;
  --card: #ffffff;
  --shadow-lg: 0 30px 80px -20px rgba(16, 32, 90, .28), 0 8px 24px -8px rgba(16, 32, 90, .14);
  --shadow: 0 10px 30px -12px rgba(16, 32, 90, .22);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f8; --ink-2: #b9c0d3; --ink-3: #8e97ad;
    --bg: #0c0f19; --bg-2: #121726; --bg-3: #182036; --line: #263049; --card: #141a2b;
    --brand: #6f8dff; --brand-2: #a98bff; --brand-deep: #9db1ff;
    --good: #4cc98a; --bad: #ff8a80;
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7); --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; height: 68px; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 32, 90, .4); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.brand .mark svg { width: 20px; height: 20px; }
.brand small { font-weight: 500; color: var(--ink-3); font-size: 13px; margin-left: 2px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 11px; font: 600 15px var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn.primary { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--brand-2))); color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn.primary:hover { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--brand) 90%, transparent); }
.btn.ghost { color: var(--ink); background: var(--card); border-color: var(--line); }
.btn.link { color: var(--ink-2); background: none; padding: 0 10px; }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero { position: relative; padding: 148px 0 40px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(60% 55% at 22% 18%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%), radial-gradient(45% 45% at 82% 6%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.hero-copy { text-align: center; max-width: 880px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.eyebrow b { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); padding: 2px 9px; border-radius: 999px; font-size: 12px; }
h1 { font: 800 clamp(38px, 6.2vw, 68px)/1.04 var(--display); letter-spacing: -.035em; margin: 22px 0 18px; }
h1 .grad, h2 .grad { background: linear-gradient(100deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 720px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof svg { width: 18px; height: 18px; color: var(--good); flex: none; }

/* browser frame around screenshots */
.shot { position: relative; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; cursor: zoom-in; }
.shot .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.shot .bar i:nth-child(2) { background: #febc2e; }
.shot .bar i:nth-child(3) { background: #28c840; }
.shot .bar span { margin: 0 auto; transform: translateX(-24px); font-size: 12px; color: var(--ink-3); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 2px 40px; }
.shot img { width: 100%; }
.hero-shot { margin: 56px auto 0; max-width: 1140px; }
.caption { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }

/* sections */
section { padding: 96px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; }
h2 { font: 780 clamp(30px, 4.2vw, 46px)/1.1 var(--display); letter-spacing: -.028em; margin: 0 0 16px; }
.sub { font-size: 18px; color: var(--ink-2); max-width: 680px; margin: 0; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }
h3 { font: 700 22px/1.25 var(--display); letter-spacing: -.015em; margin: 0 0 10px; }

/* savings */
.save-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; margin-top: 52px; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.calc label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.calc .field { margin-bottom: 22px; }
.calc input[type=range] { width: 100%; accent-color: var(--brand); }
.calc .row { display: flex; align-items: center; gap: 14px; }
.calc .num { width: 120px; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 600 16px var(--font); background: var(--bg); color: var(--ink); }
.calc .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.result div { border-radius: 14px; padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); }
.result small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.result strong { display: block; font: 800 30px/1.2 var(--display); letter-spacing: -.02em; margin-top: 4px; }
.result .them strong { color: var(--bad); }
.result .us strong { color: var(--good); }
.result .total { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--card)), color-mix(in srgb, var(--brand-2) 10%, var(--card))); }
.result .total strong { font-size: 36px; }
.reasons { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.reasons li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.reasons .ico, .card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.reasons .ico svg, .card .ico svg { width: 22px; height: 22px; }
.reasons b { display: block; font-size: 17px; margin-bottom: 2px; }
.reasons p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* compare table */
.compare { margin: 56px auto 0; max-width: 980px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.compare table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: none; }
.compare thead th { font-size: 14px; color: var(--ink-3); font-weight: 650; background: var(--bg-2); }
.compare thead th.us { color: var(--brand); }
.compare td:first-child { font-weight: 600; width: 26%; }
.compare td.them { color: var(--ink-2); }
.compare td.us { font-weight: 550; background: color-mix(in srgb, var(--brand) 5%, transparent); }
.compare .y, .compare .n { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px; margin-right: 8px; }
.compare .y { background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.compare .n { background: color-mix(in srgb, var(--bad) 85%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/12px no-repeat; }

/* feature rows */
.feature { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; margin-top: 88px; }
.feature:first-of-type { margin-top: 56px; }
.feature.flip { grid-template-columns: 1.15fr 0.85fr; }
.feature.flip .copy { order: 2; }
.feature .copy p { color: var(--ink-2); font-size: 17px; margin: 0 0 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.ticks svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }

/* devices */
.devices { position: relative; margin-top: 60px; display: flex; justify-content: center; align-items: flex-end; gap: 28px; }
.device-laptop { flex: 0 1 760px; }
.device-tablet { flex: 0 0 300px; border-radius: 26px; border: 10px solid #111827; box-shadow: var(--shadow-lg); overflow: hidden; background: #111827; cursor: zoom-in; }
.device-phone { flex: 0 0 188px; border-radius: 30px; border: 8px solid #111827; box-shadow: var(--shadow-lg); overflow: hidden; background: #111827; cursor: zoom-in; position: relative; }
.device-phone { padding-top: 16px; }
.device-phone::before { content: ''; position: absolute; top: 3px; left: 50%; width: 46px; height: 9px; background: #000; border-radius: 6px; transform: translateX(-50%); z-index: 1; }
.device-tablet img, .device-phone img { border-radius: 16px; }
.device-phone img { border-radius: 22px; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 42px; padding: 0; list-style: none; }
.platforms li { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin: 16px 0 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* everything list */
.everything { columns: 3 260px; column-gap: 40px; margin-top: 48px; }
.everything div { break-inside: avoid; margin-bottom: 28px; }
.everything b { display: block; font-size: 15px; margin-bottom: 6px; }
.everything p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* security */
.secure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }

/* faq */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 13px; font-size: 26px; font-weight: 400; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* final cta */
.final { padding: 0 0 100px; }
.final .box { border-radius: 28px; padding: 64px 48px; text-align: center; color: #fff; background: radial-gradient(70% 120% at 10% 0%, #5b7cff 0%, transparent 60%), radial-gradient(70% 120% at 100% 100%, #8e5cff 0%, transparent 60%), linear-gradient(135deg, #2342b8, #3a2aa6); box-shadow: var(--shadow-lg); }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .86); font-size: 18px; max-width: 640px; margin: 0 auto 30px; }
.final .btn.primary { background: #fff; color: #2342b8; }
.final .btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot p { color: var(--ink-3); margin: 14px 0 0; max-width: 340px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); }
.legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 11, 20, .86); display: grid; place-items: center; padding: 28px; cursor: zoom-out; }
.lightbox img { max-width: min(1600px, 96vw); max-height: 92vh; width: auto; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.lightbox[hidden] { display: none; }

/* reveal on scroll */
/* only hidden once landing.js has run, so content is never lost if the script fails */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* legal pages */
.legal { padding: 128px 0 80px; }
.legal .wrap { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; justify-content: center; }
.legal aside { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.legal aside h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px; }
.legal aside ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-3); }
.legal aside a { color: var(--ink-2); }
.legal h1 { font-size: clamp(34px, 4.5vw, 48px); margin: 0 0 10px; }
.legal .meta { color: var(--ink-3); margin: 0 0 28px; font-size: 15px; }
.legal article h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -.015em; }
.legal article h3 { font-size: 17px; margin: 22px 0 6px; }
.legal article p, .legal article li { color: var(--ink-2); font-size: 16px; }
.legal article ul { padding-left: 22px; }
.legal article li { margin-bottom: 6px; }
.legal .callout { border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.legal .callout p { margin: 0; }
.legal .upper { text-transform: uppercase; font-size: 14.5px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 650; background: var(--bg-2); }

/* responsive */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-cta .btn.link { display: none; }
  .save-grid, .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .copy { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .secure { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .device-laptop { display: none; }
  .legal .wrap { grid-template-columns: 1fr; gap: 24px; }
  .legal aside { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { gap: 12px; }
  .brand small { display: none; }
  .nav-cta .btn.ghost { display: none; }
  section { padding: 72px 0; }
  .hero { padding-top: 116px; }
  .hero-cta .btn { width: 100%; }
  .cards, .secure { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 12px; font-size: 14px; }
  .compare td:first-child { width: auto; }
  .devices { gap: 14px; }
  .device-tablet { flex-basis: 56%; border-width: 7px; border-radius: 18px; }
  .device-phone { flex-basis: 36%; border-width: 6px; border-radius: 22px; padding-top: 12px; }
  .shot .bar span { display: none; }
  .final .box { padding: 44px 22px; border-radius: 22px; }
  .foot { grid-template-columns: 1fr; }
  .calc { padding: 22px; }
}
