/* skinovance.com — shared by the landing, support and privacy pages.
   Colours are sampled from the shipped app (icon + screens): cream paper,
   one olive, red only for Warning. Light only, like the app. Layout is
   deliberately plain: serif headings, hairline rules, few boxes. */
:root {
  color-scheme: light;
  --paper: #F1EDE3;
  --paper-2: #EAE5D8;
  --white: #FBFAF6;
  --rule: #D9D2C2;
  --ink: #1F1E1B;
  --muted: #5F5C55;
  --faint: #8A867C;
  --olive: #6B723F;
  --olive-deep: #4E5430;
  --caution-bg: #F1E3C3;
  --caution-ink: #6E5110;
  --warn-bg: #F8D3CF;
  --warn-ink: #9C2B2B;
  --good-bg: #DFE2CC;
  --good-ink: #434A22;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(107, 114, 63, 0.22); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
img { max-width: 100%; }
a { color: var(--olive-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .container { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(31, 30, 27, 0.10); }
.wordmark { font-size: 14px; font-weight: 400; letter-spacing: 0.22em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav .hide-sm { display: none; }
@media (min-width: 720px) { .site-nav .hide-sm { display: inline; } }
.site-nav .nav-cta { color: var(--olive-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .container { display: grid; gap: 20px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: start; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.site-footer p { margin: 10px 0 0; max-width: 34em; }
.site-footer .copy { color: var(--faint); font-size: 13px; }

/* ---------- Long-form pages (support, privacy) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 20px 72px; }
@media (min-width: 768px) { .doc { padding: 72px 40px 96px; } }
.doc h1 { font-size: 40px; line-height: 1.1; margin: 0 0 14px; }
@media (min-width: 768px) { .doc h1 { font-size: 52px; } }
.doc h2 { font-size: 26px; line-height: 1.2; margin: 48px 0 10px; padding-top: 22px; border-top: 1px solid var(--rule); }
.doc h3 { font-size: 16px; font-weight: 600; margin: 26px 0 4px; }
.doc p, .doc li { font-size: 16px; margin: 8px 0; }
.doc ul { padding-left: 20px; }
.doc .lede { font-size: 18.5px; color: var(--muted); margin: 0 0 6px; }
.doc .note { font-size: 13.5px; color: var(--faint); }
.doc .box { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 20px 24px; margin: 28px 0; }
.doc .box h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 22px; }
.tablewrap { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-size: 13px; font-weight: 600; color: var(--faint); }
.doc td { color: var(--muted); }
.doc td:first-child { color: var(--ink); }
.doc tr:last-child td { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
