/* Shared styles for the Add to Notes website (homepage + privacy policy).
   No external fonts, scripts or trackers: the site itself collects nothing. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e1e4e8;
  --text: #1c1f24;
  --muted: #5b6472;
  --accent: #2f6fed;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1d2024;
    --border: #2e3238;
    --text: #e8eaed;
    --muted: #a3aab5;
    --accent: #7aa7ff;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

header.site img {
  width: 36px;
  height: 36px;
}

header.site .brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 15px;
}

main.wrap {
  padding-top: 32px;
  padding-bottom: 48px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.hero img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}

.muted {
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}

.sample {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.sample p {
  margin: 0;
}

.sample .sample-link {
  color: #1155cc;
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  .sample .sample-link {
    color: var(--accent);
  }
}

.sample .gap {
  height: 12px;
}

.sample .rule {
  border-bottom: 1px solid var(--border);
  margin-top: 12px;
}

ul, ol {
  padding-left: 22px;
}

li {
  margin: 4px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border: 1px solid var(--border);
}

th {
  background: var(--surface);
}

.table-scroll {
  overflow-x: auto;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  font-size: 14px;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (max-width: 560px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero h1 {
    font-size: 26px;
  }

  header.site nav {
    gap: 12px;
    font-size: 14px;
  }
}
