/* Bug Bite & Sting Identifier — site styles
   Design system: "Clinical Calm (Sky Trust)" + Source Sans 3 */

:root {
  --primary:#1E66B8; --primary-strong:#17549b; --secondary:#2E9E8F;
  --bg:#F6F9FC; --surface:#FFFFFF; --surface-2:#EFF4FA;
  --ink:#0F1B2D; --muted:#4A5A6E; --line:#E2EAF2;
  --caution:#B5770A; --urgent:#C62828; --success:#1E7D4F;
  --ring: rgba(30,102,184,.35);
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 8px 30px rgba(15,27,45,.07);
  --shadow-lg: 0 20px 60px rgba(15,27,45,.14);
  --radius:18px; --radius-sm:12px; --maxw:1120px;
  --grad: linear-gradient(135deg,#1E66B8 0%,#2E9E8F 100%);
  --grad-soft: linear-gradient(180deg,#EAF2FB 0%,#F6F9FC 60%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary:#5AA0E8; --primary-strong:#7CB6F0; --secondary:#46C2B0;
    --bg:#0D141C; --surface:#18222E; --surface-2:#121B25;
    --ink:#EAF1F8; --muted:#A3B2C2; --line:#26333F;
    --caution:#E8B04A; --urgent:#FF6B6B; --success:#4FC98A;
    --ring: rgba(90,160,232,.4);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 34px rgba(0,0,0,.45);
    --shadow-lg: 0 24px 64px rgba(0,0,0,.55);
    --grad-soft: linear-gradient(180deg,#13202c 0%,#0D141C 60%);
  }
}

*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
html,body { overflow-x:clip; }
.hero-copy,.hero-art,.card,.step,.post-card,.trust-item { min-width:0; }
body {
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Source Sans 3","Source Sans Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:18px; line-height:1.65; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img,svg { max-width:100%; display:block; }
a { color:var(--primary); text-decoration:none; }
a:hover { text-decoration:underline; }
h1,h2,h3 { line-height:1.18; letter-spacing:-.015em; font-weight:700; margin:0 0 .4em; }
h1 { font-size:clamp(2.1rem,5vw,3.4rem); }
h2 { font-size:clamp(1.6rem,3.2vw,2.3rem); }
h3 { font-size:1.18rem; }
p { margin:0 0 1rem; }
:focus-visible { outline:3px solid var(--ring); outline-offset:2px; border-radius:6px; }
.skip { position:absolute; left:-999px; top:0; background:var(--surface); padding:10px 16px; border-radius:8px; z-index:200; }
.skip:focus { left:12px; top:12px; }

.wrap { max-width:var(--maxw); margin:0 auto; padding:0 22px; }
.container-narrow { max-width:760px; margin:0 auto; padding:0 22px; }

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:.55em; font-weight:600; font-size:1.02rem;
  padding:.82em 1.4em; border-radius:999px; border:1px solid transparent; cursor:pointer; transition:transform .12s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { text-decoration:none; transform:translateY(-1px); }
.btn-primary { background:var(--primary); color:#fff; box-shadow:0 8px 22px var(--ring); }
.btn-primary:hover { background:var(--primary-strong); }
.btn-ghost { background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover { background:var(--surface); }
.btn .ico { width:1.15em; height:1.15em; }

/* Header */
.site-header { position:sticky; top:0; z-index:100; background:color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter:saturate(180%) blur(14px); -webkit-backdrop-filter:saturate(180%) blur(14px); border-bottom:1px solid var(--line); }
.nav { display:flex; align-items:center; gap:18px; height:66px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:700; color:var(--ink); font-size:1.06rem; letter-spacing:-.01em; }
.brand:hover { text-decoration:none; }
.brand .logo { width:30px; height:30px; }
.nav-links { display:flex; gap:6px; margin-left:auto; align-items:center; }
.nav-links a { color:var(--muted); font-weight:600; font-size:.98rem; padding:8px 12px; border-radius:10px; }
.nav-links a:hover { color:var(--ink); background:var(--surface); text-decoration:none; }
.nav-cta {
  margin-left:8px;
  background:linear-gradient(135deg, #1E66B8 0%, #17A08B 100%);
  color:#ffffff !important;
  font-weight:700;
  font-size:.92rem;
  padding:8px 18px;
  border-radius:999px;
  box-shadow:0 4px 14px rgba(30,102,184,.3);
  border:1px solid rgba(255,255,255,.2);
  display:inline-flex;
  align-items:center;
  gap:7px;
  transition:all .18s ease;
}
.nav-cta:hover {
  background:linear-gradient(135deg, #15559C 0%, #128270 100%);
  box-shadow:0 6px 20px rgba(30,102,184,.45);
  transform:translateY(-1px);
  text-decoration:none;
  color:#ffffff !important;
}
.nav-cta svg.ico { width:1.05rem; height:1.05rem; margin:0; }
.lang-switch { position:relative; }
.lang-switch summary { list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-weight:600; font-size:.95rem; padding:8px 12px; border-radius:10px; }
.lang-switch summary::-webkit-details-marker { display:none; }
.lang-switch summary:hover { color:var(--ink); background:var(--surface); }
.lang-menu {
  position:absolute; right:0; top:calc(100% + 6px); background:var(--surface); border:1px solid var(--line);
  border-radius:14px; box-shadow:var(--shadow-lg); padding:10px; width:340px; max-height:420px; overflow-y:auto;
  display:grid; grid-template-columns:1fr 1fr; gap:4px; z-index:110;
}
.lang-menu a { display:block; padding:8px 10px; border-radius:8px; color:var(--ink); font-weight:600; font-size:.9rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lang-menu a:hover { background:var(--surface-2); text-decoration:none; }
.lang-menu a[aria-current="true"] { color:var(--primary); font-weight:700; background:color-mix(in srgb, var(--primary) 10%, transparent); }
.menu-toggle { display:none; margin-left:auto; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:9px; cursor:pointer; }
.menu-toggle svg { width:22px; height:22px; stroke:var(--ink); }

@media (max-width:880px) {
  .nav-links {
    position:fixed; inset:66px 0 auto 0; flex-direction:column; align-items:stretch; gap:4px;
    background:var(--surface); border-bottom:1px solid var(--line); padding:16px 22px 26px; margin:0;
    transform:translateY(-12px); opacity:0; pointer-events:none; transition:.2s ease;
    box-shadow:var(--shadow-lg); max-height:calc(100vh - 66px); overflow-y:auto; -webkit-overflow-scrolling:touch;
    z-index:100;
  }
  .nav-links.open { transform:none; opacity:1; pointer-events:auto; }
  .nav-links a { padding:12px 14px; font-size:1.05rem; }
  .nav-cta { margin:10px 0 0; justify-content:center; padding:12px 18px; font-size:1.02rem; }
  .menu-toggle { display:inline-flex; }
  .lang-menu {
    position:static; width:100%; max-height:260px; box-shadow:none; border:1px solid var(--line);
    margin-top:8px; grid-template-columns:1fr 1fr;
  }
}

/* Hero */
.hero { background:var(--grad-soft); border-bottom:1px solid var(--line); overflow:hidden; }
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; padding:64px 0 70px; }
.kicker { display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--primary); background:color-mix(in srgb, var(--primary) 12%, transparent); padding:6px 12px; border-radius:999px; margin-bottom:18px; }
.hero h1 { margin-bottom:.35em; }
.hero p.lead { font-size:1.2rem; color:var(--muted); max-width:34ch; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin:26px 0 14px; }
.hero-note { font-size:.95rem; color:var(--muted); }
.hero-art { position:relative; display:flex; justify-content:center; }
.hero-phone-wrap { width:100%; max-width:320px; position:relative; }
.device-frame {
  position:relative; width:100%; max-width:310px; margin:0 auto; padding:9px;
  background:#0D141C; border:3px solid #26333F; border-radius:44px;
  box-shadow:0 22px 54px -10px rgba(15,27,45,.28), 0 0 0 1px rgba(255,255,255,.08) inset;
}
@media (prefers-color-scheme:dark) {
  .device-frame {
    background:#080D12; border-color:#384656;
    box-shadow:0 26px 64px -10px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.1) inset;
  }
}
.device-island {
  position:absolute; top:16px; left:50%; transform:translateX(-50%);
  width:80px; height:20px; background:#000; border-radius:20px; z-index:10; pointer-events:none;
}
.device-island-sm { top:13px; width:62px; height:16px; }
.device-screen { position:relative; border-radius:34px; overflow:hidden; aspect-ratio:600/1304; background:#000; }
.device-img { width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:880px){
  .hero-grid { grid-template-columns:1fr; gap:30px; padding:42px 0 48px; text-align:center; }
  .hero p.lead { max-width:none; margin-inline:auto; }
  .hero-actions { justify-content:center; }
}

/* Sections */
section { padding:72px 0; }
.section-head { max-width:720px; margin:0 auto 44px; text-align:center; }
.section-head p { color:var(--muted); font-size:1.12rem; margin:0; }
.eyebrow { color:var(--secondary); font-weight:700; text-transform:uppercase; letter-spacing:.08em; font-size:.82rem; display:block; margin-bottom:10px; }

/* Trust strip */
.trust { background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:30px 0; }
.trust-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.trust-item { text-align:center; }
.trust-item .stat { font-weight:700; color:var(--primary); font-size:1.15rem; }
.trust-item .label { color:var(--muted); font-size:.98rem; }
@media (max-width:760px){ .trust-grid { grid-template-columns:1fr; gap:16px; } }

/* Feature cards */
.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .2s ease; }
.card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.card .icon { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; margin-bottom:16px;
  background:color-mix(in srgb, var(--primary) 12%, transparent); color:var(--primary); }
.card .icon svg { width:24px; height:24px; }
.card h3 { margin-bottom:.3em; }
.card p { color:var(--muted); margin:0; font-size:1.02rem; }
@media (max-width:1024px){ .cards { grid-template-columns:repeat(2,1fr); gap:18px; } }
@media (max-width:640px){ .cards { grid-template-columns:1fr; } }

/* Screenshots Showcase Section */
.screenshots-section {
  padding:72px 0 60px; background:var(--surface-2);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden;
}
.screenshots-container {
  width:100%; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  scrollbar-width:thin; padding:10px 0 28px;
}
.screenshots-container::-webkit-scrollbar { height:6px; }
.screenshots-container::-webkit-scrollbar-track { background:transparent; }
.screenshots-container::-webkit-scrollbar-thumb {
  background:color-mix(in srgb, var(--primary) 30%, transparent); border-radius:999px;
}
.screenshots-track {
  display:flex; gap:26px; width:max-content;
  padding:10px max(24px, calc((100vw - var(--maxw)) / 2 + 22px));
}
.screenshot-card {
  flex:0 0 240px; scroll-snap-align:center; display:flex; flex-direction:column;
  align-items:center; text-align:center; transition:transform .2s ease;
}
.screenshot-card:hover { transform:translateY(-4px); }
.device-frame-sm {
  max-width:230px; padding:8px; border-radius:38px; border-width:2.5px;
  box-shadow:var(--shadow); transition:box-shadow .2s ease, transform .2s ease;
}
.screenshot-card:hover .device-frame-sm { box-shadow:var(--shadow-lg); }
.device-frame-sm .device-screen { border-radius:30px; }
.screenshot-caption { margin-top:16px; max-width:230px; }
.screenshot-badge {
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.08em;
  color:var(--primary); background:color-mix(in srgb, var(--primary) 12%, transparent);
  padding:2px 8px; border-radius:999px; margin-bottom:6px;
}
.screenshot-caption h3 { font-size:1.05rem; margin:0 0 4px; color:var(--ink); }
.screenshot-caption p { font-size:.9rem; color:var(--muted); line-height:1.45; margin:0; }
@media (max-width:640px) {
  .screenshots-track { padding-inline:18px; gap:16px; }
  .screenshot-card { flex:0 0 205px; }
  .device-frame-sm { max-width:195px; border-radius:32px; }
}

/* Steps */
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; counter-reset:step; }
.step { position:relative; padding:28px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.step .num { width:40px; height:40px; border-radius:50%; background:var(--grad); color:#fff; font-weight:700; display:grid; place-items:center; margin-bottom:14px; }
.step h3 { margin-bottom:.3em; } .step p { color:var(--muted); margin:0; }
@media (max-width:1024px){ .steps { grid-template-columns:repeat(2,1fr); gap:18px; } }
@media (max-width:640px){ .steps { grid-template-columns:1fr; } }

/* Why / split */
.split { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.split .panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:34px; box-shadow:var(--shadow); }
@media (max-width:880px){ .split { grid-template-columns:1fr; gap:24px; } }

/* Disclaimer note */
.note { background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--caution); border-radius:var(--radius-sm);
  padding:18px 20px; display:flex; gap:14px; align-items:flex-start; }
.note .ico { color:var(--caution); flex:0 0 auto; font-size:1.4rem; line-height:1; }
.note h3 { margin:0 0 .25em; font-size:1.05rem; } .note p { margin:0; color:var(--muted); font-size:.98rem; }

/* FAQ */
.faq { max-width:780px; margin:0 auto; }
.faq details { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:4px 20px; margin-bottom:12px; box-shadow:var(--shadow); }
.faq summary { list-style:none; cursor:pointer; font-weight:600; font-size:1.08rem; padding:16px 30px 16px 0; position:relative; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; position:absolute; right:2px; top:14px; font-size:1.5rem; color:var(--primary); font-weight:400; }
.faq details[open] summary::after { content:"\2013"; }
.faq details p { color:var(--muted); margin:0 0 16px; }

/* CTA band */
.cta-band { background:var(--grad); color:#fff; border-radius:24px; padding:50px 40px; text-align:center; box-shadow:var(--shadow-lg); }
.cta-band h2 { color:#fff; } .cta-band p { color:rgba(255,255,255,.9); font-size:1.12rem; max-width:46ch; margin:0 auto 24px; }
.cta-band .btn-primary { background:#fff; color:var(--primary); box-shadow:0 10px 26px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { background:#f2f6fb; }
@media (max-width:520px){ .cta-band { padding:36px 20px; } }

/* Blog cards */
.posts { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.post-card { display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); transition:transform .15s, box-shadow .2s; }
.post-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); text-decoration:none; }
.post-card .thumb { aspect-ratio:16/9; background:var(--grad); position:relative; overflow:hidden; }
.post-card .thumb .thumb-img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s ease; }
.post-card:hover .thumb .thumb-img { transform:scale(1.04); }
.post-card .thumb .tag { position:absolute; left:14px; top:14px; background:rgba(15,23,42,.85); color:#fff; font-weight:700; font-size:.76rem; padding:5px 12px; border-radius:999px; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); z-index:2; }
.post-card .body { padding:22px; display:flex; flex-direction:column; flex:1; }
.post-card h3 { color:var(--ink); margin-bottom:.4em; }
.post-card p { color:var(--muted); font-size:1rem; margin:0 0 16px; flex:1; }
.post-meta { color:var(--muted); font-size:.86rem; display:flex; gap:10px; align-items:center; }
.post-card .more { color:var(--primary); font-weight:600; margin-top:14px; font-size:.98rem; }
@media (max-width:1024px){ .posts { grid-template-columns:repeat(2,1fr); gap:20px; } }
@media (max-width:640px){ .posts { grid-template-columns:1fr; } }

/* Article */
.article-hero { background:var(--grad-soft); border-bottom:1px solid var(--line); padding:48px 0 36px; }
.breadcrumb { font-size:.9rem; color:var(--muted); margin-bottom:16px; }
.breadcrumb a { color:var(--muted); } .breadcrumb a:hover { color:var(--primary); }
.article-meta { color:var(--muted); font-size:.95rem; margin-top:14px; display:flex; gap:14px; flex-wrap:wrap; }
.article-lead-image { margin:24px 0 0; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow); }
.guide-banner-img { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; display:block; }
.prose { font-size:1.12rem; }
.article-takeaway {
  background:color-mix(in srgb, var(--primary) 8%, var(--surface));
  border:1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-left:4px solid var(--primary);
  border-radius:var(--radius-sm);
  padding:20px 22px;
  margin:0 0 28px;
}
.takeaway-head {
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:var(--primary);
  font-size:.92rem;
  letter-spacing:.03em;
  margin-bottom:8px;
  text-transform:uppercase;
}
.takeaway-head svg { width:18px; height:18px; }
.article-takeaway p { margin:0; color:var(--ink); font-size:1.06rem; line-height:1.55; }
.prose h2 { margin:1.7em 0 .5em; font-size:1.55rem; }
.prose p { margin:0 0 1.1em; color:var(--ink); }
.prose ul { margin:0 0 1.3em; padding-left:0; list-style:none; }
.prose ul li { position:relative; padding-left:30px; margin-bottom:.6em; color:var(--ink); }
.prose ul li::before { content:""; position:absolute; left:6px; top:.62em; width:8px; height:8px; border-radius:50%; background:var(--secondary); }
.prose .callout { background:color-mix(in srgb, var(--primary) 8%, var(--surface)); border:1px solid var(--line); border-left:4px solid var(--primary);
  border-radius:var(--radius-sm); padding:18px 20px; margin:1.6em 0; color:var(--ink); font-size:1.04rem; }
.toc { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:18px 22px; margin:0 0 30px; }
.toc strong { display:block; margin-bottom:8px; font-size:.92rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.toc ol { margin:0; padding-left:20px; } .toc li { margin-bottom:5px; }
.tagrow { display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.tagrow .tag { background:var(--surface-2); color:var(--muted); font-weight:600; font-size:.82rem; padding:5px 12px; border-radius:999px; }

/* Responsive Comparison Table */
.table-wrap { overflow-x:auto; margin:1.8em 0; border:1px solid var(--line); border-radius:var(--radius-sm); box-shadow:var(--shadow); background:var(--surface); }
.comp-table { width:100%; border-collapse:collapse; text-align:left; font-size:.96rem; min-width:540px; }
.comp-table th { background:var(--surface-2); color:var(--ink); font-weight:700; padding:14px 16px; border-bottom:2px solid var(--line); }
.comp-table td { padding:13px 16px; border-bottom:1px solid var(--line); color:var(--ink); line-height:1.45; }
.comp-table tr:last-child td { border-bottom:none; }
.comp-table tr:hover td { background:color-mix(in srgb, var(--primary) 4%, transparent); }

/* Footer */
.site-footer { background:var(--surface); border-top:1px solid var(--line); padding:56px 0 30px; margin-top:30px; }
.foot-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:34px; }
.foot-about { color:var(--muted); font-size:.98rem; max-width:38ch; }
.foot-brand { display:flex; align-items:center; gap:10px; font-weight:700; color:var(--ink); margin-bottom:14px; }
.foot-brand .logo { width:28px; height:28px; }
.foot-col h4 { font-size:.82rem; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin:0 0 14px; }
.foot-col a { display:block; color:var(--ink); padding:5px 0; font-size:.98rem; font-weight:500; }
.foot-col a:hover { color:var(--primary); }
.foot-bottom { border-top:1px solid var(--line); margin-top:40px; padding-top:22px; color:var(--muted); font-size:.88rem; display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.foot-disclaimer { max-width:60ch; }
@media (max-width:880px){ .foot-grid { grid-template-columns:1fr 1fr; gap:26px; } .foot-about{ grid-column:1/-1; } }
@media (max-width:520px){ .foot-grid { grid-template-columns:1fr; } }

/* legal pages prose reuse */
.legal h2 { margin-top:1.7em; }

/* RTL support (ar) */
[dir="rtl"] .nav-links { margin-left:0; margin-inline-start:auto; }
[dir="rtl"] .menu-toggle { margin-left:0; margin-inline-start:auto; }
[dir="rtl"] .nav-cta { margin-left:0; margin-inline-start:6px; }
[dir="rtl"] .lang-menu { right:auto; left:0; }
[dir="rtl"] .note { border-left:0; border-right:4px solid var(--caution); }
[dir="rtl"] .prose .callout { border-left:0; border-right:4px solid var(--primary); }
[dir="rtl"] .prose ul li { padding-left:0; padding-right:30px; }
[dir="rtl"] .prose ul li::before { left:auto; right:6px; }
[dir="rtl"] .faq summary { padding:16px 0 16px 30px; }
[dir="rtl"] .faq summary::after { right:auto; left:2px; }
[dir="rtl"] .toc ol { padding-left:0; padding-right:20px; }
