/*
 * ADHD-Focus — public site (adhdsupport.click)
 *
 * Static, no build step, no dependencies, no web fonts, no trackers.
 * The palette mirrors the app's design system (src/styles.css) so the site and
 * the product read as one brand: --brand #5468ff light / #7b8cff dark.
 *
 * These pages are opened by App Store and Play reviewers. They must load fast,
 * read clearly, and work on a phone. Nothing clever, nothing that can break.
 */

:root {
  --brand: #5468ff;
  --brand-strong: #3f52e3;
  --brand-soft: rgba(84, 104, 255, 0.1);
  --brand-ink: #ffffff;

  --bg: #ffffff;
  --surface: #f6f7fb;
  --surface-2: #eef0f7;
  --text: #12131a;
  --muted: #656a7e;
  --border: #e4e7f0;
  --shadow: 0 1px 2px rgba(16, 18, 32, 0.04), 0 8px 24px rgba(16, 18, 32, 0.06);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', system-ui, sans-serif;

  --maxw: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7b8cff;
    --brand-strong: #93a1ff;
    --brand-soft: rgba(123, 140, 255, 0.14);
    --brand-ink: #0b0d14;

    --bg: #0e1015;
    --surface: #171a21;
    --surface-2: #1f232c;
    --text: #f2f4f8;
    --muted: #9aa1b2;
    --border: #272b36;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding: 8px 0 64px;
}

/* ---------------------------------------------------------------- header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--brand);
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero .lede {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------- text */

h2 {
  margin: 44px 0 14px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h3 {
  margin: 30px 0 10px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 650;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-strong);
}

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

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 650;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

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

.small {
  font-size: 15px;
}

/* ---------------------------------------------------------------- blocks */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin: 0 0 20px;
}

.card h3 {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

/* The medical disclaimer. Deliberately the loudest element on the page. */
.notice {
  background: var(--brand-soft);
  border: 1px solid var(--brand);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 24px 0;
}

.notice > :last-child {
  margin-bottom: 0;
}

.notice-title {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brand);
}

.features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 620px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.features li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}

.features li b {
  display: block;
  margin-bottom: 3px;
  font-weight: 650;
}

.features li span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Store badges. Replace the placeholder spans with real links at launch. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--brand);
}

.store-btn:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: var(--brand-ink);
}

.store-btn--soon {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border);
  cursor: default;
}

.store-btn--soon:hover {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

/* Plain, readable tables for the pricing and rights grids. */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  min-width: 460px;
}

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

th {
  font-weight: 650;
  background: var(--surface);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Definition-style FAQ */
.faq h3 {
  margin-bottom: 6px;
}

.langs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- meta */

.page-meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-meta p {
  margin: 0 0 4px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 0 0 36px;
  font-size: 16px;
}

.toc b {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 4px;
}

/* ---------------------------------------------------------------- footer */

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

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 16px;
}

.site-footer p {
  margin: 0 0 6px;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 40px 0 32px;
  }

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

  .hero .lede {
    font-size: 18px;
  }

  h2 {
    font-size: 22px;
  }

  .card {
    padding: 18px 18px;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  .site-header,
  .site-footer,
  .stores {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
