/* glowproof-site.css — shared styles for the glowproof.app marketing + legal site
   Beauty Counter v1.1 tokens. Mobile-first, responsive. */

/* self-hosted fonts (latin) — no Google Fonts round-trip on marketing pages */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/hanken-grotesk-var.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2'); }

:root {
  --bg: #FAF7F4;
  --ink: #1A1715;
  --card: #FFFFFF;
  --sub: #6B635C;
  --faint: #A39A91;
  --line: rgba(26,23,21,0.10);
  --petal: oklch(0.62 0.13 15);
  --petal-soft: oklch(0.95 0.03 15);
  --caution: #A4660A;
  --cam: #141110;
  --serif: 'Instrument Serif', Georgia, serif;
  --head: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow: 0 2px 14px rgba(26,23,21,0.05);
  --shadow-lift: 0 16px 44px rgba(26,23,21,0.14);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--head); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ── type roles ─────────────────────────────────────────── */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sub); }
.petal { color: var(--petal); }
h1, h2 { text-wrap: balance; }

/* wordmark */
.wm { font-family: var(--head); font-weight: 400; letter-spacing: -0.012em; color: var(--ink); white-space: nowrap; }
.wm b { font-weight: 800; }
.wm.rev { color: var(--bg); }

/* ── layout ─────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 64px 0; }
@media (min-width: 760px) { section { padding: 96px 0; } body { font-size: 18px; } }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 60px; }
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--sub); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 760px) { .nav-links { display: flex; } }
/* the CTA stays visible on mobile — launch traffic is phones */
.nav-cta { margin-left: auto; }
@media (min-width: 760px) { .nav-cta { margin-left: 0; } }

/* ── buttons ────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--head); font-weight: 600; font-size: 0.96rem;
  padding: 13px 22px; border-radius: 100px; border: none; cursor: pointer;
  background: var(--ink); color: #fff; transition: transform .15s, opacity .15s;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-1px); opacity: 0.94; }
.pill.petal { background: var(--petal); }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill.sm { padding: 9px 16px; font-size: 0.86rem; }
/* the wordmark inside a CTA pill: split-weight, lowercase, no period */
.pill .pill-wm { font-weight: 400; letter-spacing: -0.012em; }
.pill .pill-wm b { font-weight: 800; }
.link-quiet { font-size: 0.95rem; color: var(--sub); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.link-quiet:hover { color: var(--ink); border-color: var(--ink); }

/* ── cards ──────────────────────────────────────────────── */
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }

/* ── striped placeholder ────────────────────────────────── */
.ph {
  background: repeating-linear-gradient(45deg, #EDE7E1 0 10px, #E5DED7 10px 20px);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: rgba(26,23,21,0.42); font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 12px;
}
.ph.dark { background: repeating-linear-gradient(45deg, #212624 0 10px, #272D2A 10px 20px); color: rgba(242,243,242,0.5); }

/* ── footer ─────────────────────────────────────────────── */
.foot { background: var(--ink); color: var(--bg); padding: 56px 0 40px; }
.foot a { color: rgba(250,247,244,0.7); transition: color .15s; }
.foot a:hover { color: #fff; }
.foot-grid { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 760px) { .foot-grid { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.foot-nav { display: flex; flex-wrap: wrap; gap: 18px 28px; font-size: 0.95rem; }

/* ── doc pages (legal) ──────────────────────────────────── */
.doc { max-width: 720px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 8px; letter-spacing: -0.01em; }
.doc h2 { font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--sub); line-height: 1.7; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .mono-note { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.doc-card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 22px 24px; margin: 22px 0; }

/* ── faq ────────────────────────────────────────────────── */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 18px 2px; font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--faint); font-size: 1.1rem; transition: transform .15s; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--sub); line-height: 1.65; font-size: 0.97rem; }

/* ── qr (desktop only — phones just tap the pill) ───────── */
.qr { display: none; }
@media (min-width: 860px) {
  .qr { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
  .qr img { border-radius: 12px; background: #fff; padding: 8px; box-shadow: var(--shadow); }
}

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