/* ============================================================================
   PSAware public site
   Two pages: a landing card (index.html) and the privacy statement
   (privacy.html). Colour, type, spacing and radii all come from
   assets/nucleus-tokens.css — no raw hex below except the page-background
   gradient stops and the two store-brand marks, which are brand artwork
   rather than theme colour.

   Dark only. The app itself ships dark and the tokens file defaults to dark;
   a light theme would need a second logo lockup (the Southern Software mark
   here is the white-text variant) so it is deliberately not offered.
   ============================================================================ */

@import url('./fonts/fonts.css');
@import url('./nucleus-tokens.css');

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  /* Two soft accent washes over the page floor, echoing the dark navy ground
     of the app. Fixed so the gradient does not slide under a long page. */
  background-image:
    radial-gradient(ellipse 80% 55% at 18% -8%, rgba(59, 130, 246, 0.13), transparent 60%),
    radial-gradient(ellipse 70% 50% at 88% 12%, rgba(34, 197, 94, 0.07), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-12);
}
.page--narrow { max-width: 760px; }

/* ── Skip link ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-fill);
  color: var(--text-on-fill);
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { left: var(--space-4); }

/* ── Masthead ────────────────────────────────────────────────────────────── */
.masthead { text-align: center; }

.masthead__logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto var(--space-8);
  display: block;
}

.masthead__title {
  margin: 0;
  font-size: var(--text-h1);
  font-weight: var(--weight-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--track-h1);
}

.masthead__tagline {
  margin: var(--space-3) auto 0;
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: 17px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-1) var(--space-3);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
}
.badge svg { width: 14px; height: 14px; }

/* ── Screenshot ──────────────────────────────────────────────────────────── */
.shot {
  margin: var(--space-12) auto 0;
  width: 100%;
  max-width: 300px;
}

.shot__frame {
  /* A full 1080x2400 device capture with its own black bezel baked in, so the
     frame only needs to round the corners and lift it off the page. */
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.shot__caption {
  margin: var(--space-4) 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Store badges ────────────────────────────────────────────────────────── */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 208px;
  padding: 10px var(--space-5);
  border: var(--border-width) solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-colors), transform var(--duration-fast) var(--ease-standard);
}
.store:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.store:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.store__glyph { flex: 0 0 auto; width: 26px; height: 26px; }

.store__text { display: flex; flex-direction: column; line-height: 1.25; }
.store__kicker {
  font-size: 10px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.store__name { font-size: 17px; font-weight: var(--weight-semibold); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  max-width: 880px;
  margin: var(--space-16) auto 0;
  padding: var(--space-6) var(--space-6) var(--space-12);
  border-top: var(--border-width) solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--accent-text); }
.footer__sep { margin: 0 var(--space-2); opacity: 0.5; }

a { color: var(--accent-text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ── Privacy document ────────────────────────────────────────────────────── */
.doc__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
}
.doc__back:hover { color: var(--accent-text); }
.doc__back svg { width: 14px; height: 14px; }

.doc__title {
  margin: 0;
  font-size: var(--text-h1);
  font-weight: var(--weight-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--track-h1);
}

.doc__meta {
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.doc__body {
  margin-top: var(--space-12);
  /* Wider measure than default body copy, but still inside the 75ch ceiling. */
  max-width: 68ch;
}

.doc__body h2 {
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-width) solid var(--border-color);
  font-size: var(--text-h3);
  font-weight: var(--weight-h3);
  line-height: var(--lh-h3);
}

.doc__body h3 {
  margin: var(--space-12) 0 var(--space-4);
  font-size: var(--text-h4);
  font-weight: var(--weight-h4);
  line-height: var(--lh-h4);
  color: var(--text-primary);
}

.doc__body p { margin: 0 0 var(--space-4); color: var(--text-secondary); }
.doc__body strong { color: var(--text-primary); font-weight: var(--weight-semibold); }

.doc__body ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
  color: var(--text-secondary);
}
.doc__body li { margin-bottom: var(--space-3); }
.doc__body li::marker { color: var(--text-muted); }

/* The one call-out in the statement: background location collection. Store
   reviewers look for exactly this disclosure, so it gets a visual anchor
   rather than being left as another paragraph. */
.callout {
  margin: 0 0 var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: var(--border-width) solid var(--border-color);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius);
  background: var(--warning-soft);
}
.callout p { margin: 0; color: var(--text-primary); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page { padding: var(--space-12) var(--space-4) var(--space-10); }
  .masthead__title, .doc__title { font-size: var(--text-h2); }
  .masthead__logo { max-width: 260px; }
  .store { min-width: 0; flex: 1 1 100%; justify-content: center; }
  .doc__body h3 { margin-top: var(--space-10); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .store:hover { transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .doc__back, .footer { display: none; }
  .doc__body p, .doc__body ul { color: #000; }
  .callout { border: 1px solid #999; background: transparent; }
}
