/* Shared styling for the Aprendaal public site (docs/), deployed to EAS Hosting by
   `npm run deploy:site`. Extracted from the original inline <style> in
   privacy-policy.html once the site grew past one page — the three pages must stay
   visually identical, and duplicating the block three times invites drift.

   Brand colors mirror src/theme.ts (NEUTRAL_PRIMARY #E07B00). Light and dark are
   both supported via prefers-color-scheme. No build step, no dependencies. */

:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --heading: #111827;
  --accent: #e07b00;
  --border: #e5e7eb;
  --link: #b45309;
  --field: #ffffff;
  --field-border: #d5dae1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --card: #171b21;
    --text: #d7dbe0;
    --muted: #9aa1ab;
    --heading: #f3f4f6;
    --accent: #f59e0b;
    --border: #262c34;
    --link: #f59e0b;
    --field: #10141a;
    --field-border: #333b45;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px clamp(20px, 5vw, 48px);
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.06);
}
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h1 {
  color: var(--heading);
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.2;
  margin: 0 0 8px;
}
.updated,
.lede {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 8px;
}
.lede {
  font-size: 17px;
  margin-bottom: 4px;
}
h2 {
  color: var(--heading);
  font-size: 21px;
  margin: 36px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
h2.first {
  border-top: none;
  padding-top: 0;
}
h3 {
  color: var(--heading);
  font-size: 17px;
  margin: 22px 0 6px;
}
p {
  margin: 0 0 14px;
}
ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
li {
  margin: 0 0 8px;
}
a {
  color: var(--link);
  text-decoration: none;
  word-break: break-word;
}
a:hover {
  text-decoration: underline;
}
strong {
  color: var(--heading);
}
.contact {
  margin-top: 8px;
}
footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 28px;
}
footer a {
  color: var(--muted);
}

/* --- Site navigation (the back-link at the top of a sub-page) --------------- */
.backlink {
  display: block; /* own line — the brand badge sits directly beneath it */
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}
.backlink:hover {
  color: var(--link);
}

/* --- Landing-page tiles ----------------------------------------------------- */
.tiles {
  display: grid;
  gap: 14px;
  margin: 26px 0 4px;
}
.tile {
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  color: inherit;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.tile:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.tile strong {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}
.tile span {
  color: var(--muted);
  font-size: 15px;
}

/* --- Contact form ----------------------------------------------------------- */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* < 16px makes iOS Safari zoom on focus */
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.button {
  display: inline-block;
  width: 100%;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  cursor: pointer;
}
.button:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
.button:active {
  filter: brightness(0.95);
}
.hint {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

/* Direct-email fallback, for anyone whose browser has no mail client wired up. */
.direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 6px;
}
.direct code {
  font-size: 16px;
  color: var(--heading);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.copy {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  background: none;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  margin-left: auto;
}
.copy:hover {
  border-color: var(--accent);
}
