/* CallGuard by Aarveta: same design language as aarveta.com (Inter, indigo-violet gradient, pink accent). */
:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --icon-blue: #0028fd;
  --teal: #2bffd1;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8f9ff;
  --hero-start: #eef2ff;
  --hero-end: #faf5ff;
  --card: #ffffff;
  --line: #e5e7eb;
  --card-border: rgba(99, 102, 241, 0.14);
  --shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
  --icon-bg: rgba(99, 102, 241, 0.12);
  --icon-color: #4f46e5;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --heading-gradient: linear-gradient(135deg, #4338ca, #7c3aed 55%, #db2777);
  --btn-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --danger: #dc2626;
  --warning: #d97706;
  --success: #10b981;
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef0fa;
    --muted: #a3a8bd;
    --bg: #0b0d18;
    --bg-soft: #10132a;
    --hero-start: #13163a;
    --hero-end: #1b1235;
    --card: #151829;
    --line: #262a40;
    --card-border: rgba(129, 140, 248, 0.22);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --icon-bg: rgba(129, 140, 248, 0.16);
    --icon-color: #a5b4fc;
    --nav-bg: rgba(11, 13, 24, 0.9);
    --heading-gradient: linear-gradient(135deg, #a5b4fc, #c4b5fd 55%, #f9a8d4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eef0fa;
  --muted: #a3a8bd;
  --bg: #0b0d18;
  --bg-soft: #10132a;
  --hero-start: #13163a;
  --hero-end: #1b1235;
  --card: #151829;
  --line: #262a40;
  --card-border: rgba(129, 140, 248, 0.22);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --icon-bg: rgba(129, 140, 248, 0.16);
  --icon-color: #a5b4fc;
  --nav-bg: rgba(11, 13, 24, 0.9);
  --heading-gradient: linear-gradient(135deg, #a5b4fc, #c4b5fd 55%, #f9a8d4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--icon-color); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name {
  font-size: 1.3rem; font-weight: 800; line-height: 1.1;
  background: var(--btn-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-by { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); -webkit-text-fill-color: var(--muted); letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }
/* The menu's Download button is for the mobile menu; desktop uses the one next to the theme toggle. */
@media (min-width: 861px) { .nav-links .btn { display: none; } }
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; border-bottom: 0; }
  .nav-actions .btn { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0.75rem 1.4rem; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--btn-gradient); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(99, 102, 241, 0.4); color: #fff; }
.btn-secondary { background: transparent; color: var(--icon-color); border-color: var(--primary); }
.btn-secondary:hover { background: var(--icon-bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { min-height: 54px; padding: 0.95rem 1.8rem; font-size: 1.05rem; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (max-width: 640px) { section { padding: 52px 0; } }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--icon-color); background: var(--icon-bg); padding: 6px 12px; border-radius: 999px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
.gradient-text { background: var(--heading-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 640px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .lead { margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 40px 0 56px; } }
.hero h1 { margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.92rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.hero-meta li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 6px; }

/* Phone mockup (illustration only, no real data) */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::before {
  content: ""; position: absolute; width: 420px; height: 420px; max-width: 90vw; max-height: 90vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.phone {
  position: relative; width: 300px; max-width: 86vw; aspect-ratio: 9 / 18.5;
  background: #0b0d18; border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px rgba(30, 20, 80, 0.35), inset 0 0 0 2px #2a2d45;
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; background: #11131f; overflow: hidden; display: flex; flex-direction: column; color: #eef0fa; font-size: 12px; }
.ps-status { display: flex; justify-content: space-between; padding: 10px 18px 4px; font-size: 11px; color: #c7cbe0; }
.ps-title { padding: 8px 16px 6px; font-size: 20px; font-weight: 800; }
.ps-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid #262a40; }
.ps-tabs span { flex: 1; text-align: center; padding: 8px 0; color: #a3a8bd; font-weight: 600; }
.ps-tabs span.on { color: #a5b4fc; box-shadow: inset 0 -2px 0 #a5b4fc; }
.ps-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; }
.ps-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; background: #3730a3; color: #e0e7ff; }
.ps-av.block { background: #7f1d1d; color: #fecaca; box-shadow: 0 0 0 2px #ef4444; }
.ps-av.app { background: linear-gradient(135deg, #f59e0b, #ec4899); color: #fff; }
.ps-name { font-weight: 700; font-size: 13px; }
.ps-sub { color: #a3a8bd; font-size: 11px; }
.ps-name.red { color: #f87171; }
.ps-name.yellow { color: #fbbf24; }
.ps-call { margin-left: auto; color: #22c55e; font-size: 15px; }
.ps-alert {
  margin: auto 12px 14px; border-radius: 18px; padding: 12px 14px;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95); border: 1px solid #a78bfa; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}
.ps-alert b { display: block; font-size: 13px; }
.ps-alert span { color: #ddd6fe; font-size: 11px; }
.ps-alert .ps-btn { display: inline-block; margin-top: 8px; background: #ef4444; color: #fff; font-weight: 700; padding: 5px 12px; border-radius: 8px; font-size: 11px; }

/* ---------- Trust strip ---------- */
.trust { padding: 28px 0; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trust-grid strong { display: block; font-size: 1.35rem; font-weight: 800; }
.trust-grid span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* ---------- Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-color); margin-bottom: 16px; }
.card-icon svg { width: 24px; height: 24px; }

/* Steps */
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn-gradient); color: #fff; font-weight: 800; margin-bottom: 14px;
}

/* Privacy split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16, 185, 129, 0.15); color: var(--success); font-weight: 800; font-size: 0.85rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--primary); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Download ---------- */
.download-box {
  background: linear-gradient(135deg, #4338ca, #7c3aed 60%, #db2777); color: #fff;
  border-radius: 24px; padding: 44px 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  box-shadow: 0 24px 50px rgba(99, 102, 241, 0.35);
}
.download-box img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.download-box h2 { color: #fff; -webkit-text-fill-color: #fff; }
.download-box p { margin: 0; color: #ede9fe; }
.download-box .btn-primary { background: #fff; color: #4338ca; box-shadow: none; }
.download-box .btn-primary:hover { color: #4338ca; }
@media (max-width: 860px) { .download-box { grid-template-columns: 1fr; text-align: center; padding: 36px 20px; } .download-box img { margin: 0 auto; } }
.sha { margin-top: 10px; font-size: 0.78rem; color: #ddd6fe; word-break: break-all; }
.install-steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .install-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .install-steps { grid-template-columns: 1fr; } }
.install-steps li { counter-increment: s; background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 16px 16px 16px 56px; position: relative; font-size: 0.95rem; }
.install-steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-color); font-weight: 800; font-size: 0.85rem;
}

/* ---------- Content pages ---------- */
.page-hero { background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); padding: 48px 0 40px; }
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 32px; }
.prose p, .prose li { color: var(--ink); }
.prose .muted { color: var(--muted); }
.form-card { max-width: 520px; margin: 0 auto; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
input[type="email"], input[type="password"] {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; font-size: 16px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); margin-bottom: 16px;
}
.alert-error { background: rgba(220, 38, 38, 0.1); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.3); padding: 12px 14px; border-radius: 10px; font-weight: 600; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.footer { background: #1f2937; color: #d1d5db; padding: 48px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer p { margin: 0 0 8px; font-size: 0.92rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #d1d5db; text-decoration: none; font-size: 0.92rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #fff; font-weight: 800; font-size: 1.15rem; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 32px; padding-top: 18px; text-align: center; color: #9ca3af; font-size: 0.86rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
