/* SherlockGuard landing page. Colors, type and radii come from tokens.css (generated from lib/ui/theme.ts). */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2-variations");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--text-base)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--wash); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--weight-strong); letter-spacing: -.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
strong { color: var(--accent-text); font-weight: var(--weight-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--weight-strong); font-size: var(--text-md); color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: var(--text-sm); }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:not(.btn):hover { color: var(--fg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-md); font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--line); color: var(--fg); background: var(--card); transition: background-color .16s ease, border-color .16s ease; }
.btn:hover { background: var(--hover); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.small { padding: 8px 14px; font-size: var(--text-sm); }

/* Hero */
.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); letter-spacing: -.035em; }
.hero .lead { max-width: 640px; margin: 20px auto 0; font-size: var(--text-md); color: var(--muted); }
.hero .ctas { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: var(--text-sm); color: var(--muted); }

/* A browser-like frame around screenshots */
.frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.frame .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hero .frame { max-width: 980px; margin: 48px auto 0; }

/* Sections */
section { padding: 72px 0 0; }
.kicker { font-size: var(--text-sm); font-weight: 600; color: var(--accent-text); text-transform: uppercase; letter-spacing: .08em; }
section h2 { font-size: var(--text-2xl); margin-top: 8px; }
section .intro { margin-top: 12px; color: var(--muted); max-width: 640px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--hover); color: var(--accent-text); font-weight: var(--weight-strong); margin-bottom: 14px; }
.steps h3 { font-size: var(--text-lg); }
.steps p { margin-top: 8px; color: var(--muted); }

.features { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.features h3 { font-size: var(--text-md); }
.features p { margin-top: 6px; color: var(--muted); font-size: var(--text-sm); }

.privacy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--accent-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.privacy .more { margin-top: 20px; }

.gallery { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-size: var(--text-sm); color: var(--muted); text-align: center; }

.req { margin-top: 32px; font-size: var(--text-sm); color: var(--muted); }

.cta-end { margin: 72px auto 0; text-align: center; padding: 48px 24px; }
.cta-end h2 { font-size: var(--text-2xl); }
.cta-end p { margin: 10px 0 24px; color: var(--muted); }

/* Footer */
.foot { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }
.foot p { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .rights { margin-top: 8px; }
.foot .fine { margin-top: 8px; }

/* Privacy policy page */
.policy { max-width: 760px; margin: 24px auto 0; padding: 36px 40px; }
.policy h1 { font-size: var(--text-2xl); margin-bottom: 6px; }
.policy h1 + p { color: var(--muted); font-size: var(--text-sm); margin-bottom: 20px; }
.policy p { margin: 0 0 14px; }
.policy ul { margin: -6px 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.policy b { font-weight: var(--weight-strong); }
.policy > :last-child { margin-bottom: 0; }

/* Tablet and phone */
@media (max-width: 860px) {
  .steps, .features, .gallery, .privacy { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 32px; }
  .hero .frame { margin-top: 32px; }
  section { padding-top: 56px; }
  .card { padding: 20px; }
  .policy { padding: 20px; }
  .frame .bar { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
