:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef2f8;
  --text: #172033;
  --muted: #526078;
  --line: #d8dfeb;
  --accent: #3157d5;
  --accent-strong: #2444ad;
  --focus: #f2a900;
  --shadow: 0 18px 48px rgb(37 55 91 / 12%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

img { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: .7rem 1rem;
  background: var(--text);
  color: var(--surface);
}
.skip-link:focus { top: 1rem; }

.site-header, main, footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.2rem;
}

.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 700; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.language-link { white-space: nowrap; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5.5rem) 0 4rem;
}

h1, h2 { line-height: 1.18; letter-spacing: -.025em; }
h1 { margin: 0 0 1.2rem; font-size: clamp(2.25rem, 5.3vw, 4.6rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.55rem); }
h3 { margin: 0 0 .5rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
.lede { max-width: 60ch; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.3rem); }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.05rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-strong); color: #fff; }

.intro-visual, .screenshot-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.intro-visual img { width: 100%; height: auto; }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading p, .muted { color: var(--muted); }

.comparison, .feature-grid, .privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.privacy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.card p:last-child { margin-bottom: 0; }
.card .label { margin-bottom: .5rem; color: var(--accent); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.screenshot-list { display: grid; gap: 2rem; }
.screenshot-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .4fr); align-items: center; }
.screenshot-card img { width: 100%; }
.screenshot-copy { padding: 1.5rem; }
.steps { margin: 0; padding-left: 1.25rem; }
.steps li + li { margin-top: .45rem; }

kbd {
  padding: .12rem .42rem;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 5px;
  background: var(--surface-muted);
  font: inherit;
  font-size: .9em;
}

details { border-top: 1px solid var(--line); padding: 1rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { max-width: 72ch; margin: .8rem 0 0; color: var(--muted); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2.2rem; color: var(--muted); font-size: .95rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; padding-top: 2rem; }
  .intro-visual { order: -1; }
  .privacy-grid { grid-template-columns: 1fr; }
  .screenshot-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1120px); }
  .comparison, .feature-grid { grid-template-columns: 1fr; }
  .actions, .button { width: 100%; }
  h1 { font-size: 2.35rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141d;
    --surface: #171d28;
    --surface-muted: #212938;
    --text: #eef3fb;
    --muted: #b3bfd1;
    --line: #354054;
    --accent: #91a9ff;
    --accent-strong: #b5c4ff;
    --focus: #ffc857;
    --shadow: 0 18px 48px rgb(0 0 0 / 28%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
