/* Password Manager website — self-hosted, no external fonts or scripts. */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --card: #ffffff;
  --brand: #1d4ed8;
  --brand-2: #4f46e5;
  --brand-soft: #eef2ff;
  --ok: #047857;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --night: #0b1224;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11, 18, 36, .86); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; letter-spacing: -.2px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #2563eb, #4f46e5); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(79,70,229,.45); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #cbd5e1; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #fff; }
.nav .btn { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: 650 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; box-shadow: 0 8px 24px rgba(37, 99, 235, .35); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-light { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(1200px 600px at 85% -10%, rgba(79,70,229,.55), transparent 60%),
  radial-gradient(900px 500px at -10% 30%, rgba(37,99,235,.45), transparent 60%),
  var(--night); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #a5b4fc; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -1.8px; margin: 14px 0 18px; font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, #93c5fd, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: #cbd5e1; max-width: 560px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.test-note { margin-top: 12px; font-size: 14px; color: #94a3b8; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #e2e8f0; }
.trust svg { color: #86efac; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; } .hero .lead { font-size: 18px; } .cta-row .btn { flex: 1 1 220px; } }

/* Phone mockups (synthetic data, built in HTML/CSS) */
.phones { display: flex; justify-content: center; gap: 18px; }
.phone { width: 236px; border-radius: 34px; padding: 10px; background: #0f172a; box-shadow: 0 30px 60px rgba(2,6,23,.55), inset 0 0 0 2px #1e293b; }
.phone + .phone { margin-top: 44px; }
.screen { position: relative; border-radius: 26px; background: #f8fafc; color: var(--ink); height: 470px; overflow: hidden; padding: 30px 14px 14px; font-size: 12px; }
.screen.dark { background: #0b1224; color: #e2e8f0; }
.notch { position: absolute; top: 9px; left: 50%; width: 70px; height: 16px; margin-left: -35px; border-radius: 10px; background: #0f172a; }
.m-title { font-weight: 750; font-size: 17px; margin: 6px 4px 10px; }
.m-search { background: #e2e8f0; border-radius: 12px; padding: 9px 12px; color: #64748b; margin-bottom: 12px; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.m-tile { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 9px; display: flex; gap: 7px; align-items: center; }
.m-tile b { display: block; font-size: 11.5px; } .m-tile small { color: #64748b; }
.m-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.m-row { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 9px 10px; margin-bottom: 7px; }
.m-row b { display: block; font-size: 12px; } .m-row small { color: #64748b; }
.m-lock { display: grid; place-items: center; text-align: center; height: 100%; padding: 30px 10px; }
.m-badge { width: 64px; height: 64px; border-radius: 50%; background: rgba(99,102,241,.2); display: grid; place-items: center; margin: 0 auto 14px; color: #a5b4fc; }
.m-input { width: 100%; background: rgba(255,255,255,.08); border-radius: 12px; padding: 11px; color: #94a3b8; text-align: left; margin: 14px 0 9px; }
.m-btn { width: 100%; border-radius: 12px; padding: 11px; background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; font-weight: 700; }
.m-btn.outline { background: transparent; border: 1px solid rgba(255,255,255,.2); margin-top: 8px; }
@media (max-width: 900px) { .phone:nth-child(2) { display: none; } .phone { width: 250px; } }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.12; letter-spacing: -1px; margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--brand-2); }
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { section { padding: 60px 0; } }

.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -.2px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.icon.green { background: #ecfdf5; color: var(--ok); }
.icon.amber { background: var(--warn-soft); color: var(--warn); }

/* How it works */
.steps { counter-reset: step; }
.step { position: relative; }
.step .num { position: absolute; top: 20px; right: 20px; font: 700 13px var(--mono); color: #94a3b8; }

/* Sharing flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; margin: 8px 0 28px; }
.flow .node { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; font-size: 14px; font-weight: 650; box-shadow: var(--shadow); }
.flow .node small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
.flow .node.lock { background: #0b1224; color: #e2e8f0; border-color: #0b1224; }
.flow .node.lock small { color: #94a3b8; }
.flow .arrow { color: #94a3b8; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); justify-self: center; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--brand-soft); color: #3730a3; font-size: 14px; font-weight: 600; }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; margin-top: 0; }
.price { font-size: 30px; font-weight: 800; letter-spacing: -.6px; margin: 4px 0 14px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.ticks li:last-child { border-bottom: 0; }
.ticks svg { color: var(--ok); flex: none; margin-top: 4px; }
.plan.featured { border: 2px solid #c7d2fe; background: linear-gradient(180deg, #fff, #f5f7ff); }
.plan .btn { margin-top: auto; }

/* Download band */
.band { background: linear-gradient(135deg, #1d4ed8, #4f46e5); color: #fff; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; box-shadow: 0 24px 50px rgba(37, 99, 235, .3); }
.band h2 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.8px; }
.band p { margin: 0; color: #dbeafe; }
.band .btn-light { color: #1d4ed8; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 30px 22px; } .band .btn { width: 100%; } }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

/* Notices, tables, documents */
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--warn-soft); border: 1px solid #fed7aa; color: #7c2d12; font-size: 15.5px; }
.notice svg { color: var(--warn); flex: none; margin-top: 3px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--warn-soft); color: var(--warn); border: 1px solid #fed7aa; }
.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts th, .facts td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 600; width: 42%; padding-right: 16px; }
.mono { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; }
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -1px; line-height: 1.1; margin: 8px 0 12px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -.3px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .updated { color: var(--muted); font-size: 14px; }
ol.install { padding-left: 22px; } ol.install li { margin: 10px 0; }
.release { border-left: 3px solid #c7d2fe; padding: 2px 0 2px 18px; margin: 18px 0; }
.release h3 { margin: 0 0 4px; font-size: 18px; }
.release ul { margin: 8px 0 0; padding-left: 20px; }

/* Footer */
.site-footer { background: var(--night); color: #94a3b8; padding: 48px 0 36px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; align-content: start; }
.site-footer .brand { margin-bottom: 10px; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; font-size: 13.5px; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }

/* Sticky mobile download bar */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 6; }
  .mobile-cta .btn { width: 100%; min-height: 52px; }
  body.has-mobile-cta { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Developer documentation */
.doc pre { background: #0b1224; color: #e2e8f0; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: #eef2f7; padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.doc pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
