/* Static content pages of the web version. Colours follow the app. */
:root {
  --bg: #12151c;
  --surface: #1a1f29;
  --border: #2a3140;
  --text: #e6e9ef;
  --muted: #98a2b6;
  --accent: #6ea8fe;
  --accent-text: #0d1320;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --border: #dde1e8;
    --text: #1b2130;
    --muted: #5d6779;
    --accent: #2f6fd6;
    --accent-text: #ffffff;
    color-scheme: light;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a {
  color: var(--accent);
}
code {
  font-size: 0.9em;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 760px;
}

/* header and footer */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
}
.site-footer a {
  color: var(--muted);
}

/* buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* home */
.hero {
  padding: 56px 0 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 16em;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40em;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.feature,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.feature h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}
.steps ol {
  padding-left: 1.3em;
}
.steps li {
  margin: 8px 0;
}

/* article pages */
main.page {
  padding: 32px 0 0;
}
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.breadcrumb a {
  color: var(--muted);
}
.page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 12px;
}
.page h2 {
  margin-top: 2em;
  font-size: 1.35rem;
}
.prose li {
  margin: 6px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}
th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.note {
  color: var(--muted);
  font-style: italic;
}
.checklist {
  padding-left: 1.2em;
}
.checklist li {
  margin: 10px 0;
}
.faq dt {
  font-weight: 650;
  margin-top: 22px;
}
.faq dd {
  margin: 6px 0 0;
}
.related {
  margin-top: 40px;
}

/* card lists (guides, tips, scores) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}
.cards a.card {
  display: block;
  height: 100%;
  color: var(--text);
  text-decoration: none;
}
.cards a.card:hover {
  border-color: var(--accent);
}
.card h2,
.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.card .meta {
  margin-top: 10px;
  font-size: 0.85rem;
}

/* score page */
.score-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.score-facts dt {
  color: var(--muted);
}
.score-facts dd {
  margin: 0;
}
.practice-now {
  margin: 24px 0;
}

/*
 * Ad slots. Each one reserves its full size before an ad arrives, so nothing
 * moves when it loads (fixed ad sizes per screen width; AdSense supports
 * this when the <ins> has an explicit width and height and no data-ad-format).
 */
.ad-slot {
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px auto;
  width: 100%;
  /* label (16px) + ad height */
  height: 116px;
  overflow: hidden;
  contain: layout size;
}
.ad-label {
  height: 16px;
  font: 11px/16px system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}
.ad-unit {
  display: block;
  width: 320px;
  height: 100px;
}
@media (min-width: 760px) {
  .ad-slot {
    height: 106px;
  }
  .ad-unit {
    width: 728px;
    height: 90px;
  }
}
/* A slot shown only during development, when no AdSense ids are configured. */
.ad-placeholder .ad-unit {
  border: 1px dashed currentColor;
  opacity: 0.35;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 12px system-ui, sans-serif;
}
