/* Pest website, shared styles. Colours follow the app's dark theme
   (pest/qml/Theme.qml). The launch page adds home.css on top. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #141414;
  --card: #1c1c1c;
  --sheet: #1a1a1a;
  --subtle: #252525;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --muted: #a0a0a0;
  --green: #099e37;
  --green-text: #4fd37a;
  --blue: #0047ab;
  --blue-text: #6f9fe6;
  --amber: #e0a030;
  --danger: #e88080;
  --radius: 18px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: 0.005em; }

a { color: var(--green-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible, summary:focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

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

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.01em;
}
.brand .mark { width: 32px; height: 32px; flex: none; display: block; }
header.site nav { display: flex; align-items: center; gap: 18px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.site nav a:hover { color: var(--text); }

.button {
  display: inline-block; padding: 14px 22px; border-radius: 14px;
  /* Classic green takes near-black text for contrast (5.3:1; white is 3.5:1), as in the app. */
  background: var(--green); color: #121212; font-weight: 700; text-decoration: none;
  font-size: 17px; border: 0; cursor: pointer; text-align: center;
}
.button.blue { background: var(--blue); color: #fff; }
.button.quiet { background: var(--subtle); color: var(--text); }
.button:hover { filter: brightness(1.1); text-decoration: none; }
.button.wide { display: block; width: 100%; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.card { background: var(--card); border-radius: var(--radius); padding: 22px; }
.card h2, .card h3 { margin-top: 0; }

.notice { background: #241d0f; color: #f2d6a0; border-radius: var(--radius); padding: 16px 20px; margin: 28px 0; }
.notice strong { color: var(--amber); }

section { margin: 40px 0; }
section h2 { font-size: 34px; margin: 0 0 12px; }
ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

footer.site { padding: 32px 0 48px; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--border); margin-top: 24px; }
footer.site a { color: var(--muted); }
footer.site a:hover, footer.site a.brand { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { text-decoration: none; }

/* Join page */
.join { padding: 32px 0; }
.join .card { margin-bottom: 14px; }
.join h1 { font-size: 34px; }
.code {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  font-size: clamp(36px, 11vw, 56px); font-weight: 700; letter-spacing: 0.08em;
  text-align: center; background: var(--bg); border-radius: 14px; padding: 18px 8px; margin: 14px 0 18px;
  user-select: all; word-break: break-all;
}
.hidden { display: none !important; }

/* Text pages: privacy, terms, delete account */
.prose { padding-bottom: 16px; }
.prose h1 { font-size: clamp(38px, 8vw, 52px); margin: 24px 0 8px; }
.prose h2 { font-size: 26px; margin: 34px 0 8px; }
.prose h3 { font-size: 21px; margin: 24px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  header.site nav { gap: 12px; }
  .buttons .button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
