/* The site's skin (lab-site, L099): the app's look on heypip.help.

   Loaded on every site page right after the export's own <style> and after
   /tokens.css (the app's and the site's shared tokens, both modes), so the
   export's tokens resolve to the app's values. Everything here is what a
   stylesheet can do; what lives in the export's inline styles (fonts,
   buttons, the orbit's rings, the mockups' colors) is changed by the
   rewrite rules in server/routes/siteSkin.js.

   The selector list below is matched at the export's own specificity in
   every mode, so these aliases always win. L103: cream only; the dark
   values below apply only with client/theme.js's PIP_DARK_ENABLED on. */

/* The export's token names, pointed at the app's tokens. */
:root, :root[data-theme], :root:not([data-theme="light"]) {
  --coral-ink: var(--coral-text);
  --coral-lead: var(--coral-on-tint);   /* "For helpers" sits on --bg-alt: 4.2:1 in --coral-text, 6:1 in this */
  --card-shadow: var(--shadow-card);
  --orb-shadow: var(--shadow-orb);
  --orb-shadow-press: var(--shadow-orb-press);
  --nav-bg: color-mix(in srgb, var(--bg) 92%, transparent);
  --grain-op: 0;
}
/* The mockup phones' frame (siteSkin.js): ink on a light page, a step
   lighter than the page on a dark one. */
:root, :root[data-theme="light"] { --pip-bezel: #1A0E10; }
@media (prefers-color-scheme: dark) { :root[data-dark-enabled]:not([data-theme="light"]) { --pip-bezel: #3B2A2E; } }
:root[data-dark-enabled][data-theme="dark"] { --pip-bezel: #3B2A2E; }
/* The helper's pages in the mockups (L090's own two tokens, DESIGN_SYSTEM
   4.47: the task picture's circle and the inset panel); the rest are the
   app's (--surface, --text, --text-soft, --btn-*, --btn2-*). */
:root, :root[data-theme="light"] { --hp-icon: #F7DCD6; --hp-inset: #F4EEE7; }
@media (prefers-color-scheme: dark) { :root[data-dark-enabled]:not([data-theme="light"]) { --hp-icon: #4A2B2E; --hp-inset: #150B0D; } }
:root[data-dark-enabled][data-theme="dark"] { --hp-icon: #4A2B2E; --hp-inset: #150B0D; }

/* The app's page: its two faces, never a faux bold (Song Myung has one
   weight), no page grain (lab-design fixes 2 took it off the app). */
html { font-synthesis: none; background: var(--bg); }
body { font-family: var(--font-body); }
body::after { content: none !important; display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
:focus-visible { outline-color: var(--focus); }
::selection { background: var(--sel-fill); }

/* The site's buttons, pressed like the app's (press.js's look, by :active). */
/* L103: the one matte, raised button on every site page, whatever a page's
   own inline style draws (the launch's Sign up and About buttons carry the
   older paper): a flat fill, no grain or gradient, a soft shadow under it,
   16px corners; the secondary the same shape in cream with a thin border. */
a[data-pip-btn="primary"], button[data-pip-btn="primary"] { background-color: var(--pip-btn-bg) !important; background-image: none !important; color: var(--pip-btn-fg) !important; border-radius: var(--pip-btn-radius) !important; box-shadow: var(--pip-btn-shadow) !important; }
a[data-pip-btn="second"], button[data-pip-btn="second"] { background-color: var(--pip-btn2-bg) !important; background-image: none !important; color: var(--pip-btn2-fg) !important; border: 1px solid var(--pip-btn2-border) !important; border-radius: var(--pip-btn-radius) !important; box-shadow: var(--pip-btn2-shadow) !important; }
a[data-pip-btn], button[data-pip-btn] { transition: translate 120ms ease, scale 120ms ease, box-shadow 120ms ease; }
a[data-pip-btn]:active, button[data-pip-btn]:active:not(:disabled) { translate: 0 2px; scale: 0.97; }
a[data-pip-btn="primary"]:active, button[data-pip-btn="primary"]:active:not(:disabled) { box-shadow: var(--pip-btn-shadow-press) !important; }
a[data-pip-btn="second"]:active, button[data-pip-btn="second"]:active:not(:disabled) { box-shadow: var(--pip-btn2-shadow-press) !important; }
@media (prefers-reduced-motion: reduce) {
  a[data-pip-btn]:active, button[data-pip-btn]:active { translate: none; scale: none; }
}

/* The 3D pictures in the mockups (the app's own files): sharp on 2x and 3x. */
img[data-pip-art] { display: block; flex: none; object-fit: contain; }

/* Every target 44px (the app's rule, DESIGN_SYSTEM 3.6): the wordmark link,
   the footer's links (one row each, a little air between), and How it
   works' step bars (their hit area widened by 2px a side, the drawing kept). */
nav[aria-label="Main"] a[href] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
footer a[href] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
footer nav[aria-label="Footer"] { row-gap: 0 !important; }
[data-screen-label="How it works"] [role="tab"] { position: relative; }
[data-screen-label="How it works"] [role="tab"]::after { content: ""; position: absolute; left: -2px; right: -2px; top: 0; bottom: 0; }
/* The legal pages' contents lists: each entry a 44px row (was 6px of padding). */
li > a[href^="#"] { display: flex !important; align-items: center; min-height: 44px; padding: 0 !important; }
