:root {
  --bg: #fafafa;
  --fg: #0a0a0b;
  --muted: #52525b;
  --primary: #2563eb;
  --on-primary: #ffffff;
  --container: #eff4ff;
  --on-container: #1e3a8a;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --line: #e4e4e7;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 4px 16px rgb(0 0 0 / .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --fg: #fafafa;
    --muted: #a1a1aa;
    --primary: #60a5fa;
    --on-primary: #0a0a0b;
    --container: #172554;
    --on-container: #dbeafe;
    --surface: #18181b;
    --surface-2: #111113;
    --line: #27272a;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
a { color: var(--primary); text-underline-offset: .2em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 46rem; }
.skip { position: absolute; left: 16px; top: -4rem; background: var(--primary); color: var(--on-primary); padding: 12px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 8px; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 8px 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 4px; margin-right: auto; min-width: 0; }
.brand a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px; font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; border-radius: 8px; }
.brand a:first-child:not(:last-child) { color: var(--muted); font-weight: 600; }
.brand a:hover { background: var(--surface-2); }
.brand img { height: 36px; width: auto; }
.brand .org { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand .sep { color: var(--muted); }
nav { display: flex; align-items: center; gap: 4px; }
nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--muted); text-decoration: none; border-radius: 8px; font-weight: 500; }
nav a:hover { color: var(--fg); background: var(--surface-2); }
nav .flag { width: 20px; height: 14px; margin-right: 6px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); object-fit: cover; }
@media (max-width: 40rem) {
  nav a.opt { display: none; }
  nav a { padding: 0 8px; }
}

/* hero */
.hero { padding: 48px 0 40px; background: radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%), var(--bg); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 52rem) { .hero { padding: 80px 0 64px; } }
.eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 16px; color: var(--fg); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; margin: 0 0 24px; }
.badge img { height: 56px; width: auto; display: block; }
.badge { display: inline-block; border-radius: 10px; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.text p, .text li { max-width: 40rem; }

/* phone frame */
.phone { margin: 0; border-radius: 28px; border: 6px solid #18181b; background: #18181b; overflow: hidden; box-shadow: var(--shadow); }
.phone img { display: block; width: 100%; height: auto; border-radius: 22px; }

/* sections */
section { padding: 48px 0; }
section.alt { background: var(--surface-2); }
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 600; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 24px 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--container); color: var(--on-container); margin-bottom: 12px; }
.facts .icon { margin: 0; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); margin-top: 24px; }
@media (max-width: 52rem) { .gallery { grid-template-columns: repeat(5, 48%); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; } .gallery .phone { scroll-snap-align: start; } }
.split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 24px; }
.plan h3 { font-size: 1.4rem; }
.plan ul { padding-left: 1.2rem; margin: 12px 0 0; }
.plan.pro { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--container); color: var(--on-container); font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 12px; color: var(--muted); }
.app-card { display: grid; gap: 20px; grid-template-columns: auto 1fr; align-items: center; padding: 24px; }
.app-card img.app { width: 72px; height: 72px; }
.app-card .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; transition: background-color .15s; }
.btn:hover { background: color-mix(in srgb, var(--primary) 88%, black); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* privacy */
.meta { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 16px 0 24px; }
.toc { background: var(--surface-2); border-radius: 16px; padding: 16px 20px 16px 40px; margin: 0 0 24px; columns: 2 16rem; }
.toc li { padding: 2px 0; }
.legal h2 { margin-top: 2rem; font-size: 1.35rem; }
code { font-size: .9em; word-break: break-word; }
.legal p, .legal li { overflow-wrap: anywhere; }

/* footer */
footer.site { border-top: 1px solid var(--line); margin-top: 24px; padding: 40px 0; color: var(--muted); font-size: .92rem; background: var(--surface-2); }
footer.site .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
footer.site h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; color: var(--fg); }
footer.site p { margin: 0 0 4px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--fg); }
footer.site h2 a { color: inherit; }
.notfound { padding: 96px 0; text-align: center; }
.notfound img { width: 72px; height: 72px; }
.grid + p { margin-top: 20px; }
.legal h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.5rem); margin: 40px 0 8px; }
h1, h2, h3 { text-wrap: balance; }
nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 8px 8px 0 0; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.fineprint { max-width: 40rem; margin: 8px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
.cta-box + .fineprint { margin-inline: auto; }
@media (prefers-color-scheme: dark) { .phone { border-color: #27272a; background: #27272a; } }

/* gallery lightbox */
.zoom { display: block; cursor: zoom-in; border-radius: 28px; }
.zoom:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .15s ease-out; }
.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox img { display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 22px; background: #fff; }
.lightbox .count { position: absolute; bottom: 20px; left: 0; right: 0; margin: 0; text-align: center; font-weight: 600; }
.lightbox button { position: absolute; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox button:hover { background: rgb(0 0 0 / .8); }
.lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 40rem) {
  .lightbox img { max-height: 78vh; }
  .lightbox .prev, .lightbox .next { top: auto; bottom: 8px; transform: none; }
  .lightbox .prev { left: 16px; }
  .lightbox .next { right: 16px; }
}
body:has(dialog[open]) { overflow: hidden; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* header call to action */
nav a[aria-current="true"] { color: var(--fg); }

/* articles: guides, ingredients, how it works, FAQ */
.prose { padding-bottom: 24px; }
.prose h1 { margin-top: 24px; }
.prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { max-width: 42rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.prose .lead { color: var(--muted); }
nav.crumbs { display: block; margin-top: 20px; font-size: .9rem; color: var(--muted); }
nav.crumbs a { display: inline; min-height: 0; padding: 0; color: var(--muted); font-weight: 400; text-decoration: underline; }
nav.crumbs a:hover { background: none; color: var(--fg); }
.prose blockquote, blockquote.answer { margin: 16px 0 24px; padding: 16px 20px; background: var(--container); color: var(--on-container); border-radius: 16px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.meta-line { color: var(--muted); font-size: .9rem; margin-top: 2rem; }
.links { list-style: none; padding: 0 !important; }
.links li { padding: 2px 0; overflow-wrap: anywhere; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; margin: 32px 0 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.cta-box p { margin: 0; font-weight: 600; max-width: 24rem; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); list-style: none; padding: 0 !important; margin: 16px 0 24px; }
.cards .card h2, .cards .card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.cards .card a { text-decoration: none; }
.cards .card a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 12px 0 16px; }
table.risk { border-collapse: collapse; min-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table.risk th, table.risk td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.risk thead th { background: var(--surface-2); font-size: .9rem; }
table.risk tr:last-child th, table.risk tr:last-child td { border-bottom: 0; }
table.risk .na { color: var(--muted); }
.lvl { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; border: 1px solid currentColor; }
.lvl-low { color: #1d6b34; background: #e3f4e8; }
.lvl-medium { color: #7a5200; background: #fdf0cf; }
.lvl-high { color: #a33a00; background: #fde5d6; }
.lvl-critical { color: #8c0b17; background: #fbdadd; }
@media (prefers-color-scheme: dark) {
  .lvl-low { color: #8fd8a3; background: #14301d; }
  .lvl-medium { color: #f0cf7a; background: #3a2d0a; }
  .lvl-high { color: #ffb88e; background: #3d1d08; }
  .lvl-critical { color: #ffa8b0; background: #42101a; }
}
details { margin: 8px 0 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
summary { cursor: pointer; font-weight: 600; min-height: 24px; }
details ul { margin: 12px 0 0; }
.faq-q { margin-top: 1.5rem; }
.lvl-none { color: var(--muted); background: var(--surface-2); font-weight: 600; }
