/* Amplify dark theme: the one source of colour, type and shape for every page on the site.
 *
 * Copied from the app's design system (amplify repo, branch claude/dark-mode-design-system:
 * apps/web/app/globals.css dark block + DESIGN.md). Same role names as the app, so a token here
 * means exactly what it means there. Load this FIRST on every page; page stylesheets (styles.css,
 * landing.css, pricing.css, free-tools ugc.css) only map onto these names, never their own hexes.
 * When the app's tokens change, change them here and every page follows.
 *
 * Rules from DESIGN.md that every page follows:
 *  - the orange gradient (--grad-primary, off-black --on-orange text) is the ONE primary action
 *  - selection is teal (--select); orange never marks a selection
 *  - small on/off controls turn solid --contrast when on
 *  - Geist for everything (headings 500, tight), Geist Mono for small uppercase labels; Sora 800 only for the wordmark (21 Nov: matches the home page)
 *  - heights 32 / 40 / 48; radii 20 card, 16 inner, 10 field, pill for anything you press
 *  - every small surface carries the faint 1px edge (--fill-edge)
 */
:root {
  color-scheme: dark;

  /* brand */
  --orange: #ff7a00;
  --orange-d: #ff6a00;
  --orange-soft: rgba(255, 122, 0, 0.22);
  --on-orange: #1f2328;
  --grad-primary: linear-gradient(90deg, #f25c00 0%, #ff7a00 55%, #ffad5c 100%);
  --teal: #0fb5a6;
  --teal-ink: #2bc4b3;
  --green: #5fc45c;
  --green-ink: #6fd36b;
  --sky: #39bef8;
  --select: #0fb5a6;
  --on-select: #1f2328;
  --danger: #e03131;
  --danger-d: #c42727;
  --on-danger: #ffffff;

  /* ground and type */
  --bg: #080f16;
  --ink: #e8f1f6;
  --slate: #9db0ba;
  --slate2: #7d919b;
  --faint: #6f838d;

  /* surfaces: depth on a dark ground comes from the edge, not the fill */
  --surface-card: #111a22;
  --surface-1: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.035);
  --surface-3: rgba(255, 255, 255, 0.07);
  --surface-veil: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.05);
  --gborder: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(22px) saturate(160%);
  --chrome: rgba(255, 255, 255, 0.04);
  --chrome-solid: rgba(10, 18, 26, 0.82);
  --fill: rgba(255, 255, 255, 0.06);
  --fill-hover: rgba(255, 255, 255, 0.1);
  --fill-edge: rgba(255, 255, 255, 0.14);
  --fill-lift: rgba(255, 255, 255, 0.16);
  --raised: rgba(255, 255, 255, 0.05);
  --field: #17212a;
  --line-control: rgba(255, 255, 255, 0.2);
  --cloud: rgba(255, 255, 255, 0.06);
  --cloud-2: rgba(255, 255, 255, 0.12);
  --contrast: #e8f1f6;
  --on-contrast: #080f16;
  --btn2: #e8f1f6;
  --on-btn2: #080f16;
  --scrim: #1f2328; /* does not flip: it darkens a user's own media, which has no theme */
  --mark-tile: #767676;

  /* elevation: a shadow is the ground showing through, so it deepens on a dark ground */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.62);

  /* the four lamps, turned down for the dark ground */
  --mesh: linear-gradient(#080f16, #080f16);   /* 21 Nov: flat, like the home page (was four soft lamps) */

  /* shape */
  --r-card: 20px;
  --r-inner: 16px;
  --r-ctl: 10px;
  --r-pill: 999px;
  --h-sm: 32px;
  --h-md: 40px;
  --h-lg: 48px;

  /* type */
  --font-display: "Geist", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-brand: "Sora", system-ui, -apple-system, sans-serif;
  --btn-weight: 600;
  --heading-weight: 500;
  --track-tight: -0.04em;
}
