/* Luxwork — from UberVisor.
 *
 * One design system, two themes. This is the UberVisor design system's token
 * shape (--ground/--panel/--line/--text-*) carried over from marketing-site/,
 * skinned as the LUXWORK theme rather than a second design system.
 *
 * Palette source: docs/design/luxwork-site-structure.md, cross-checked against
 * the colours actually used in apps/lux (#0d1512 ground, #179c6b, amber).
 *
 * ⚠ NEVER RED (standing ruling). Cautions are amber, and colour is never the
 *   only signal — every amber note also carries a word.
 * ⚠ No web fonts, no analytics, no third-party requests of any kind. The
 *   privacy claim on this site has to be true of the site as well as the app.
 */

:root {
  --ground: #0d1512;
  --ground-2: #101a16;
  --panel: #141d1a;
  --panel-2: #182320;
  --line: #25322d;
  --line-soft: #1d2925;

  --green: #3fbf98;
  --green-deep: #179c6b;
  --green-dim: #8fc0ad;
  --amber: #e0a33e;

  --text: #eef4f1;
  --text-2: #b3c4bc;
  --text-3: #8b9d95;

  --radius: 10px;
  --radius-lg: 16px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --wrap: 900px;
  /* The figures break out wider than the prose — a survey document needs the
   * room to stay legible, and it is the thing the page is here to show. */
  --wrap-wide: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  /* A measurement brand reads as precise: figures line up everywhere. */
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green-dim); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--panel);
  color: var(--text);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: 20;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */

.site-nav {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(13, 21, 18, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
}

.site-nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--green-deep);
  box-shadow: 0 0 0 4px rgba(23, 156, 107, 0.16);
  align-self: center;
}
.brand .from {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.site-nav-links {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 14.5px;
}
.site-nav-links a { color: var(--text-2); text-decoration: none; }
.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] { color: var(--text); }
.site-nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ── Layout ─────────────────────────────────────────────────────────────── */

main { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 24px; }

/* ⚠ Vertical padding only — these classes are used alongside `.wrap`, whose
 *   24px side padding a `padding:` shorthand would silently wipe out. */
.hero { padding-top: 72px; padding-bottom: 12px; }
.hero h1 {
  /* Fluid, so the headline is the loudest thing on the page at every width
   * without a second breakpoint to keep in step. */
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
  max-width: 19ch;
}
.hero h1 .hl { color: var(--green); }
.hero .lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 26px;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--green-deep);
}

section.band {
  padding-top: 44px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line-soft);
}
section.band:first-of-type { border-top: 0; }

/* A band heading gets a short green rule above it, so the eye finds the start
 * of each section instead of meeting one undifferentiated column of text. */
.band h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  max-width: 24ch;
}
h3 { font-size: 17px; margin: 0 0 6px; }

p { margin: 0 0 16px; color: var(--text-2); }
p.tight { margin-bottom: 8px; }
li { color: var(--text-2); margin: 0 0 8px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }

.sub { color: var(--text-3); font-size: 14.5px; }

/* The four refusals. Each lead-in is a claim in its own right, so it gets its
 * own line and the sentence beneath explains it — the same shape the report
 * uses for a criterion, and far easier to scan than four running paragraphs. */
ul.reasons { list-style: none; padding: 0; margin: 22px 0 4px; }
ul.reasons li {
  margin: 0 0 4px;
  padding: 15px 0 16px;
  border-top: 1px solid var(--line-soft);
}
ul.reasons li:last-child { border-bottom: 1px solid var(--line-soft); }
ul.reasons li strong {
  display: block;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 26px 0 8px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
}
.card .step {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dim);
  margin: 0 0 10px;
}
.card p:last-child { margin-bottom: 0; }

/* ── Figures ────────────────────────────────────────────────────────────────
 *
 * ⚠ EVERY FIGURE ON THIS SITE IS A SPECIMEN, AND SAYS SO IN THE PICTURE'S OWN
 *   FRAME. `.shot-tag` is not decoration: a reader must never be able to take
 *   one of these images for a real client's survey, so the label sits ON the
 *   figure rather than in a caption further down the page, and it carries the
 *   word "Specimen" as well as the amber — colour is never the only signal.
 *
 * The images are PNGs of a document, so they carry their own white ground; the
 * frame's job is only to seat that paper on the dark page and stop it glaring.
 * ────────────────────────────────────────────────────────────────────────── */

.showcase { margin: 30px 0 8px; }

figure.shot {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 14px 6px;
}

figure.shot .shot-tag {
  /* ⚠ inline-BLOCK, not inline-flex. As a flex container the label became one
   * unbreakable item ~355px wide, which overflowed a 375px viewport and pushed
   * the whole page into a horizontal scroll (caught at 375px, 2026-09-09).
   * It has to be free to wrap onto a second line on a phone. */
  display: inline-block;
  max-width: 100%;
  margin: 2px 0 12px;
  padding: 5px 11px;
  border: 1px solid rgba(224, 163, 62, 0.42);
  border-radius: 999px;
  background: rgba(224, 163, 62, 0.09);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
figure.shot .shot-tag span { margin-right: 6px; }

figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  /* A hairline instead of a drop shadow: the paper meets the dark ground
   * cleanly and nothing has to be repainted on scroll. */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  background: #fff;
}

figure.shot figcaption {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.62;
  padding: 14px 6px 12px;
  max-width: 80ch;
}
figure.shot figcaption em { color: var(--text-2); font-style: italic; }

/* ── Notes. Amber = caution, and the word "Note"/"Caution" carries it too, so
 *    colour is never the only signal. ─────────────────────────────────────── */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-deep);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 20px;
}
.note.caution { border-left-color: var(--amber); }
.note .note-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 6px;
}
.note.caution .note-label { color: var(--amber); }
.note p:last-child { margin-bottom: 0; }

/* ── Contact block ──────────────────────────────────────────────────────── */

.contact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 0 0 26px;
}
.contact .label {
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 8px;
}
.contact .value {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
  word-break: break-word;
}
.contact .value a { text-decoration: none; }

/* ── Legal / long-form ──────────────────────────────────────────────────── */

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 30px;
  font-size: 13.5px;
  color: var(--text-2);
}
.legal-meta strong { color: var(--text); font-weight: 600; }

/* ⚠ max-width is reset here. The 24ch measure that keeps a marketing heading
 * punchy makes a numbered legal heading wrap after three words. */
.legal h2 { font-size: 21px; margin: 36px 0 10px; max-width: none; }
.legal h3 { font-size: 16px; margin: 22px 0 6px; color: var(--text); }
.legal p, .legal li { font-size: 15.5px; }

table.plain {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 15px;
}
table.plain th, table.plain td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
}
table.plain th { color: var(--text); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer.site-foot {
  border-top: 1px solid var(--line-soft);
  margin-top: 56px;
  padding: 30px 0 56px;
  color: var(--text-3);
  font-size: 14px;
}
footer.site-foot .foot-links {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px;
}
footer.site-foot p { color: var(--text-3); font-size: 13.5px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .hero { padding-top: 44px; padding-bottom: 8px; }
  .hero h1 { max-width: none; }
  .hero .lede { font-size: 17px; }
  h2 { max-width: none; }
  .site-nav-inner { padding: 12px 20px; gap: 12px; }
  .site-nav-links { margin-left: 0; width: 100%; gap: 16px; }
  .wrap, .wrap-wide { padding: 0 20px; }
  .contact .value { font-size: 18px; }

  /* A survey document at 375px is a picture of a document, not a readable one.
   * The frame gives back its padding so the paper is as wide as the phone
   * allows, and the caption carries the detail the pixels can no longer. */
  .showcase { margin: 22px 0 4px; }
  figure.shot { padding: 12px 10px 4px; border-radius: 12px; }
  figure.shot figcaption { padding: 12px 4px 10px; font-size: 13.5px; }
  figure.shot .shot-tag { font-size: 10.5px; letter-spacing: 0.05em; padding: 4px 9px; }
  ul.reasons li strong { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
