/* Lumiward public business website — single shared stylesheet.
 *
 * Visual family follows the vault trust page: centered ~60rem column,
 * system font stack (no webfonts — keeps the CSP's default-src 'none'
 * clean), muted secondary text, thin section rules. Light/dark via
 * custom properties + prefers-color-scheme; body text holds >= 4.5:1
 * contrast and large text/UI >= 3:1 in both themes (WCAG 2.2 AA).
 * Spacing uses a constrained scale (4/8/12/16/24/32/48/64 px).
 */

:root {
  color-scheme: light dark;
  /* Light theme tokens. Contrast on --bg #ffffff:
   * --ink #1a1d21 ~16.6:1, --muted #555555 ~7.5:1, --accent #0b57d0 ~6.9:1. */
  --bg: #ffffff;
  --ink: #1a1d21;
  --muted: #555555;
  --accent: #0b57d0;
  --rule: #d7dade;
  --surface: #f4f6f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark theme tokens. Contrast on --bg #14171a:
     * --ink #e6e8ea ~14.6:1, --muted #a5adb5 ~7.6:1, --accent #8ab4f8 ~8.5:1. */
    --bg: #14171a;
    --ink: #e6e8ea;
    --muted: #a5adb5;
    --accent: #8ab4f8;
    --rule: #3a4048;
    --surface: #1d2126;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  /* Single-column flow that works from ~320px up; the column is
   * centered and capped at the trust-page width. */
  max-width: 60rem;
  margin-inline: auto;
  padding: 0 16px 48px;
}

/* --- Skip link: visually hidden until focused, then a visible,
 * high-contrast block at the top (WCAG 2.4.11 non-obscured focus). --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 1;
}

.skip-link:focus {
  left: 0;
}

/* Visible focus indicator on every focusable control, in both themes. */
a:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

a {
  color: var(--accent);
}

/* --- Header: logo + site navigation. --- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

/* Brand lockup: logo image beside the visible text wordmark. The link
 * inherits ink color and drops the underline so the wordmark reads as
 * identity, not navigation. */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  display: block;
  width: 48px;
  height: 48px;
  /* The logo art carries its own white matte; a small radius keeps it
   * reading as a badge on the dark theme instead of a hard rectangle. */
  border-radius: 6px;
}

.brand .wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  display: inline-block;
  /* >= 24px target size (WCAG 2.5.8); padding makes the whole chip the
   * hit area, not just the glyphs. */
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
}

.site-header nav a:hover {
  background: var(--surface);
}

.site-header nav a[aria-current="page"] {
  /* Current page marked by weight + underline, never color alone. */
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Main content. --- */
main {
  padding-top: 24px;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.35rem;
  margin: 32px 0 8px;
}

h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

/* Muted secondary text: lede paragraphs, effective dates, footnotes. */
.lede {
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
}

.effective-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -8px;
}

/* Thin section rules, per the trust-page family. */
main section {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

main section:last-of-type {
  border-bottom: none;
}

/* Statement call-out (digital-goods statement, trial terms). */
.statement {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
}

/* --- Pricing plan comparison table. --- */
.plans table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.plans caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 8px;
}

.plans th,
.plans td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.plans thead th {
  border-bottom: 2px solid var(--rule);
}

.plans tbody th {
  font-weight: 700;
}

/* Below ~40rem the table collapses to stacked per-tier cards using CSS
 * only (no JS on this site): each row becomes a card and each cell
 * labels itself from its data-label attribute. */
@media (max-width: 40rem) {
  .plans table,
  .plans tbody,
  .plans tr,
  .plans th,
  .plans td {
    display: block;
  }

  .plans thead {
    /* Visually hide the column header row; the per-cell data-labels
     * replace it. Kept in the DOM for screen readers. */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .plans tr {
    border: 1px solid var(--rule);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: var(--surface);
  }

  .plans th,
  .plans td {
    border-bottom: none;
    padding: 4px 0;
  }

  .plans td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
  }
}

/* --- Footer. --- */
.site-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.site-footer a {
  /* >= 24px target size for footer links too. */
  display: inline-block;
  padding: 4px 0;
  color: var(--accent);
}

/* No animation on this site; nothing to soften, but respect the user
 * setting for any UA-default smooth behavior. */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
