/* Code Owner: Aslam Jabri. The glass look on the public site (AJ 2026-11-29, approved mockups:
   claude.ai/artifact/VmugUv8FHx8r7nLZpRZ4nm). Loaded last by every public page, after public.css and (landing only)
   landing.css; values only, so every page keeps its markup. The token blocks below are the app's
   (look-glass.css) copied byte for byte: tests/test_glass_look.py keeps them equal, so both sides share one palette.

   - Titles in the operating system's bold sans, never the serif. Sentence-case purple pill buttons.
   - The black band (hero and closing) keeps its own fixed colours, now the app's black with faint glows.
   - Light: Apple-like greys, white cards with a soft shadow. Black: glass cards. */

/* GLASS TOKENS START (copied from look-glass.css) */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "IBM Plex Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Manrope", "IBM Plex Sans", Arial, sans-serif;
  --font-serif: var(--font-display);
  --radius-sm: 6px;
  --radius-input: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --glass-blur-card: blur(24px) saturate(140%);
  --glass-blur-bar: saturate(180%) blur(20px);
}

/* ---- Black theme ---- */
:root:not([data-theme="light"]) {
  --canvas: #050507;
  --surface: #111116;
  --surface-raised: #18181f;
  --surface-overlay: #1d1d25;
  --surface-sunken: #0a0a0e;
  --surface-hover: rgba(255, 255, 255, 0.05);
  --surface-selected: rgba(124, 100, 255, 0.16);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --line-input: #6e6e7a;
  --text-primary: #f5f5f7;
  --text-secondary: #c7c7cc;
  --text-muted: #9b9ba4;
  --text-disabled: #5c5c66;
  --accent: #6f55f0;
  --accent-hover: #5f45e0;
  --accent-ink: #b3a4ff;
  --accent-soft: rgba(124, 100, 255, 0.16);
  --focus-ring: #b3a4ff;
  --sev-critical: #ff8a80;
  --sev-high: #ffb35c;
  --sev-medium: #f2d46b;
  --sev-low: #8ab4ff;
  --sev-info: #9b9ba4;
  --ok: #4cc38a;
  --warn: #f2d46b;
  --danger: #ff8a80;
  --running: #7fd4d4;
  --neutral: #9b9ba4;
  --glass-card: rgba(255, 255, 255, 0.045);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --glass-bar: rgba(18, 18, 22, 0.62);
  --shadow-overlay: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-menu: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ---- Light theme ---- */
:root[data-theme="light"] {
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-overlay: #ffffff;
  --surface-sunken: #f0f0f3;
  --surface-hover: rgba(0, 0, 0, 0.04);
  --surface-selected: rgba(91, 63, 217, 0.09);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --line-input: #86868b;
  --text-primary: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #6e6e73;
  --accent: #5b3fd9;
  --accent-hover: #4a30c4;
  --accent-ink: #5b3fd9;
  --accent-soft: #efebff;
  --focus-ring: #5b3fd9;
  --sev-critical: #b42318;
  --sev-high: #b54708;
  --sev-medium: #7a5c00;
  --sev-low: #1d4ed8;
  --ok: #1e7a52;
  --warn: #7a5c00;
  --danger: #b42318;
  --danger-fill: #b42318;
  --glass-card: #ffffff;
  --glass-edge: 0 2px 12px rgba(0, 0, 0, 0.05);
  --glass-bar: rgba(251, 251, 253, 0.72);
  --shadow-overlay: 0 24px 64px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --shadow-menu: 0 12px 40px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
/* GLASS TOKENS END */

:root { --brand-ink: var(--text-primary); --brand-key: var(--accent-ink); }

/* ---- Type: bold, tight sans titles ---- */
h1, h2, h3, .brand, .surfaces dt, .workflow strong, .boundary strong, .clip figcaption strong,
.lp-more summary > span, .lp-flow strong, .lp-honest > p:first-child, .lp .faq-item h3 {
  font-family: var(--font-display); font-variation-settings: normal; font-weight: 700; letter-spacing: -0.025em;
}
h3, .surfaces dt, .workflow strong, .boundary strong, .clip figcaption strong, .lp-more summary > span,
.lp-flow strong, .lp .faq-item h3 { font-weight: 650; letter-spacing: -0.015em; }
.lp :is(h1, h2, h3), .lp-hero h1 { font-variation-settings: normal; }
.lp-hero h1 { letter-spacing: -0.035em; line-height: 1.04; }
.brand { font-size: 1.35rem; letter-spacing: -0.02em; }
.window-score strong, .lp-sheet .window-score strong { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; }

/* ---- Top bar: frosted ---- */
.public-nav { background: var(--glass-bar); border-bottom-color: var(--line);
  -webkit-backdrop-filter: var(--glass-blur-bar); backdrop-filter: var(--glass-blur-bar); }
.platform-menu-panel { border-radius: var(--radius-md); box-shadow: var(--shadow-menu); }

/* ---- Buttons: purple pills, sentence case ---- */
.button, .lp .button { border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: var(--text-sm); font-weight: 600; padding-inline: var(--space-5); }
.button-lg, .lp .button-lg { font-size: var(--text-md); }
.button.secondary { border-color: var(--line-strong); }
.nav-theme-toggle { border-radius: 999px; }
/* Sign-in and sign-up (auth.html): the same pill buttons; a text link stays a link. */
.auth-card .btn { border-radius: 999px; }
.auth-inset { border-radius: var(--radius-md); }
.lp .lp-scan .hero-scan-row { border-radius: 999px; padding-left: var(--space-2); }
.lp .lp-scan input { border-radius: 999px 0 0 999px; }
.lp .lp-scan .button { border-radius: 999px; }

/* ---- Cards: white with a soft shadow (light), glass (black) ---- */
:is(.public-plan-card, .trust-card, .lp-sheet, .demo-form, .public-tool, .changelog-entry, .sample-report) {
  border-radius: var(--radius-lg); border-color: transparent; background: var(--glass-card); box-shadow: var(--glass-edge);
}
:root:not([data-theme="light"]) :is(.public-plan-card, .trust-card, .demo-form, .public-tool, .changelog-entry, .sample-report) {
  -webkit-backdrop-filter: var(--glass-blur-card); backdrop-filter: var(--glass-blur-card);
}
.clip img, .clip video { border-radius: var(--radius-md); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { border-radius: var(--radius-input); }

/* ---- Black theme: faint glows behind the glass ---- */
:root:not([data-theme="light"]) body {
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(111, 85, 240, 0.16), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(56, 120, 255, 0.10), transparent 60%),
    var(--canvas);
  background-attachment: fixed;
}

/* ---- The band: the app's black, with a purple glow; same token names as landing.css ---- */
.lp-hero, .lp-close {
  --canvas: #050507; --surface: #111116; --surface-raised: #18181f; --surface-sunken: #0a0a0e;
  --surface-hover: rgba(255, 255, 255, 0.05); --surface-selected: rgba(124, 100, 255, 0.16);
  --line: rgba(255, 255, 255, 0.09); --line-strong: rgba(255, 255, 255, 0.18); --line-input: #6e6e7a; --border-strong: rgba(255, 255, 255, 0.18);
  --text-primary: #f5f5f7; --text-secondary: #c7c7cc; --text-muted: #9b9ba4;
  --accent: #6f55f0; --accent-hover: #5f45e0; --accent-ink: #b3a4ff; --accent-soft: rgba(124, 100, 255, 0.16); --focus-ring: #b3a4ff;
  --glass-card: rgba(255, 255, 255, 0.045);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background-image: radial-gradient(800px 480px at 78% 30%, rgba(111, 85, 240, 0.22), transparent 65%);
}
.lp-sheet { -webkit-backdrop-filter: var(--glass-blur-card); backdrop-filter: var(--glass-blur-card); }

@media (prefers-reduced-transparency: reduce) {
  .public-nav, :is(.public-plan-card, .trust-card, .lp-sheet, .demo-form, .public-tool, .changelog-entry, .sample-report) {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .public-nav { background: var(--canvas); }
}
