/* DefenderMon marketing site — shared chrome + tokens.
   Recreated from the Claude Design handoff (design_handoff_defendermon_site).
   Auth/app pages use style.css/app.css — this file styles ONLY the 5 marketing pages. */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --card: #fff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #424245;
  --muted: #86868b;
  --accent: #0E4FB8;
  --accent-h: #2E8DE1;
  --accent-tint: #e8f1ff;
  --ok: #34c759;
  --hairline: #d2d2d7;
  --border: rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .15s ease, background .15s ease, border-color .15s ease; }
a:hover { color: var(--accent-h); }
::selection { background: #d5e6fb; }
img { max-width: 100%; }

/* ---------- Nav (sticky, blurred) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  background: rgba(251,251,253,0.8); border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 52px; display: flex; align-items: center; gap: 32px; }
.nav-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 16px; }
.nav-brand:hover { color: var(--text); }
.nav-brand img { width: 22px; height: 22px; display: block; }
.nav-links { display: flex; gap: 28px; font-size: 13px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-3); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.cta { background: var(--accent); color: #fff; padding: 7px 16px; border-radius: 980px; font-weight: 500; }
.nav-links a.cta:hover { background: var(--accent-h); color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; color: var(--text); }
.nav-toggle svg { display: block; }

/* ---------- Buttons (pills) ---------- */
.btn-fill, .btn-line, .btn-white {
  display: inline-block; border-radius: 980px; font-size: 17px; font-weight: 500;
  padding: 13px 28px; text-align: center; transition: all .15s ease;
}
.btn-fill { background: var(--accent); color: #fff; }
.btn-fill:hover { background: var(--accent-h); color: #fff; }
.btn-line { border: 1px solid var(--hairline); color: var(--text); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: var(--accent); font-weight: 600; }
.btn-white:hover { background: var(--accent-tint); color: var(--accent); }

/* ---------- Sections / headings ---------- */
.eyebrow { margin: 0 0 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.section-h2 { margin: 0 auto; max-width: 720px; text-align: center; font-size: 52px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.section-sub { margin: 20px auto 56px; max-width: 620px; text-align: center; font-size: 19px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.h2-44 { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.h2-40 { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.page-h1 { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }

/* ---------- Cards + grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-white { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px 24px; }
.card-gray { background: var(--bg-alt); border-radius: 20px; padding: 26px 24px; }
.card-white h3, .card-gray h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card-white p, .card-gray p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.status-active { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.status-active .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,199,89,0.15); }
.status-active .lbl { font-size: 12px; font-weight: 600; color: var(--ok); letter-spacing: 0.04em; }

/* ---------- Screenshot frames + placeholder slots ---------- */
.browser-frame { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(14,79,184,0.25), 0 2px 8px rgba(0,0,0,0.06); border: 1px solid var(--border-strong); background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); background: var(--bg-alt); }
.browser-bar .b-dot { width: 11px; height: 11px; border-radius: 50%; background: #e4e4e8; }
.browser-bar .b-url { margin: 0 auto; font-size: 12px; color: var(--muted); background: #fff; border-radius: 6px; padding: 3px 40px; border: 1px solid rgba(0,0,0,0.05); }
.shot { position: relative; width: 100%; height: 100%; background: linear-gradient(180deg, #f8f9fb, #eef1f6); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.shot.contain img { object-fit: contain; }
.shot .shot-ph { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 24px; text-align: center; }
.shot .shot-ph svg { opacity: .45; }
.shot:has(img) .shot-ph { display: none; }

/* Lightbox (click-to-zoom for real screenshots) */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(29,29,31,0.82); padding: 4vh 4vw; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,0.5); object-fit: contain; }

/* ---------- Code / copy bar ---------- */
.code-bar { display: flex; align-items: center; gap: 12px; background: #1d1d1f; border-radius: 14px; padding: 16px 18px; text-align: left; }
.code-bar code { font-family: Consolas, 'SF Mono', Menlo, monospace; font-size: 14.5px; color: var(--accent-tint); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.code-bar code .ps { color: #5BC2F5; }
.code-bar button { flex-shrink: 0; background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 980px; cursor: pointer; font-family: inherit; transition: background .15s ease; }
.code-bar button:hover { background: rgba(255,255,255,0.22); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan-card { border-radius: 24px; padding: 36px 32px; display: flex; flex-direction: column; position: relative; }
.plan-card.free { background: var(--bg-alt); border: 1px solid rgba(0,0,0,0); }
.plan-card.pro { background: #fff; border: 2px solid var(--accent); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 980px; letter-spacing: 0.03em; }
.plan-card h3 { margin: 0; font-size: 22px; font-weight: 700; }
.plan-price { margin: 14px 0 4px; font-size: 46px; font-weight: 700; letter-spacing: -0.02em; }
.plan-price small { font-size: 18px; font-weight: 500; color: var(--text-2); }
.plan-note { margin: 0 0 22px; font-size: 14px; color: var(--text-2); }
.plan-feats { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 11px; font-size: 15px; color: var(--text-3); }
.plan-feats li { display: flex; gap: 10px; }
.plan-feats .ck { color: var(--accent); }
.plan-cta-line { margin-top: auto; text-align: center; border: 1px solid var(--hairline); color: var(--text); padding: 12px; border-radius: 980px; font-size: 15px; font-weight: 500; }
.plan-cta-line:hover { border-color: var(--accent); color: var(--accent); }
.plan-cta-fill { margin-top: auto; text-align: center; background: var(--accent); color: #fff; padding: 12px; border-radius: 980px; font-size: 15px; font-weight: 500; }
.plan-cta-fill:hover { background: var(--accent-h); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); padding: 96px 24px; text-align: center; }
.cta-band h2 { margin: 0 auto; max-width: 640px; color: #fff; font-size: 48px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.cta-band p { margin: 18px auto 32px; max-width: 480px; color: rgba(255,255,255,0.75); font-size: 18px; }
.cta-band.compact h2 { font-size: 36px; max-width: 560px; }

/* ---------- Contact cards ---------- */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 40px 36px; display: block; color: inherit; transition: border-color .15s ease; }
a.contact-card:hover { border-color: var(--accent); color: inherit; }

/* ---------- Screenshot viewports ----------
   Sized by the real screenshots' aspect ratio (2000x1028 / 2000x1032) so the full dashboard is
   visible with zero cropping at any width — ~594px tall at the 1080px container, close to the
   design's 620/520px intent. */
.shot-vp-hero { aspect-ratio: 2000 / 1028; }
.shot-vp-patch { aspect-ratio: 2000 / 1032; }
.shot:has(img) { background: #fff; }

/* ---------- Footers ---------- */
.footer-main { background: var(--bg); border-top: 1px solid rgba(0,0,0,0.06); padding: 48px 24px; }
.footer-main .cols { max-width: 1080px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-main .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); }
.footer-main .brand img { width: 20px; height: 20px; }
.footer-main .groups { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-main .group { display: grid; gap: 10px; font-size: 13px; }
.footer-main .group span { font-weight: 600; color: var(--text); }
.footer-main .group a { color: var(--text-2); }
.footer-main .group a:hover { color: var(--accent); }
.footer-main .legal { max-width: 1080px; margin: 36px auto 0; font-size: 12px; color: var(--muted); }
.footer-sub { border-top: 1px solid rgba(0,0,0,0.06); padding: 36px 24px; }
.footer-sub .row { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.footer-sub .copy { color: var(--muted); }
.footer-sub .links { display: flex; gap: 24px; }
.footer-sub .links a { color: var(--text-2); }
.footer-sub .links a:hover { color: var(--accent); }

/* ---------- Content / comparison pages (SEO) ---------- */
.prose-page { max-width: 760px; margin: 0 auto; padding: 72px 24px 88px; }
.prose-page h1 { margin: 0 0 14px; font-size: 46px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.prose-page .lede { margin: 0 0 8px; font-size: 20px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.prose-body { font-size: 17px; line-height: 1.65; color: var(--text-3); }
.prose-body h2 { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.015em; margin: 44px 0 14px; text-wrap: balance; }
.prose-body h3 { font-size: 19px; font-weight: 600; color: var(--text); margin: 28px 0 8px; }
.prose-body p { margin: 0 0 16px; text-wrap: pretty; }
.prose-body ul { margin: 0 0 18px; padding: 0 0 0 4px; list-style: none; display: grid; gap: 9px; }
/* Hanging-indent dash, NOT display:flex on the li — flex turns every inline child (<strong>, each
   text run) into its own column, which shredded any list item containing bold text. */
.prose-body li { position: relative; padding-left: 22px; }
.prose-body li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.prose-body strong { color: var(--text); }

/* Comparison table — scrolls horizontally on small screens rather than breaking the page */
.cmp-wrap { overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.cmp-table caption { caption-side: top; text-align: left; font-size: 14px; color: var(--muted); padding: 0 0 10px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp-table thead th { background: var(--bg-alt); font-weight: 600; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table td:first-child { font-weight: 600; color: var(--text); }
.cmp-table td:last-child { background: rgba(14,79,184,.035); }

/* FAQ */
.faq-list { display: grid; gap: 14px; margin: 0 0 8px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }
.faq-item h3 { margin: 0 0 7px; font-size: 16px; font-weight: 600; color: var(--text); }
.faq-item p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.6; }

/* ---------- Savings calculator ---------- */
.calc { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; margin: 8px 0 24px; }
.calc h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--text); }
.calc .calc-sub { margin: 0 0 20px; font-size: 14px; color: var(--text-2); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.calc-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 6px; }
.calc-field input {
  width: 100%; font-family: inherit; font-size: 17px; font-weight: 600; color: var(--text);
  padding: 11px 13px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--bg);
  -moz-appearance: textfield;
}
.calc-field input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(14,79,184,.12); }
.calc-field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; text-align: center; }
.calc-out div { background: var(--bg-alt); border-radius: 14px; padding: 16px 12px; }
.calc-out .k { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.calc-out .v { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.calc-out .save { background: rgba(52,199,89,.10); }
.calc-out .save .v { color: #1e8e3e; }
.calc-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
@media (max-width: 768px) {
  .calc { padding: 22px 18px; }
  .calc-fields { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
  .calc-out .v { font-size: 24px; }
}

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .prose-page { padding: 44px 20px 64px; }
  .prose-page h1 { font-size: 32px; }
  .prose-page .lede { font-size: 18px; }
  .prose-body h2 { font-size: 24px; }
}

/* ---------- Legal article ---------- */
.legal-article { max-width: 680px; margin: 0 auto; padding: 80px 24px 96px; }
.legal-article h1 { margin: 0 0 8px; font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.legal-article .updated { margin: 0 0 40px; font-size: 14px; color: var(--muted); }
.legal-body { font-size: 16px; line-height: 1.65; color: var(--text-3); }
.legal-body h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 36px 0 12px; }
.legal-body p { margin: 0 0 16px; text-wrap: pretty; }
.legal-body strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 52px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 16px 16px; font-size: 16px;
    background: rgba(251,251,253,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 8px; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .nav-links a.cta { margin-top: 10px; text-align: center; border-bottom: 0; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 40px !important; }
  .hero .hero-sub { font-size: 18px !important; }
  .hero .hero-ctas { flex-direction: column; align-items: stretch; }
  .section-h2 { font-size: 34px; }
  .h2-44 { font-size: 32px; }
  .h2-40 { font-size: 30px; }
  .page-h1 { font-size: 38px; }
  .cta-band h2, .cta-band.compact h2 { font-size: 32px; }
  .code-bar button { min-height: 44px; }
  .footer-sub .links a { padding: 12px 4px; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr !important; padding: 28px !important; }
  .two-col .shot-holder { height: 260px !important; }
  .legal-article h1 { font-size: 34px; }
  .contact-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
