/* Bead Score — site styles.
   Colour and type tokens mirror the app's design system exactly
   (WeldAI/WeldAI/DesignSystem/Theme.swift). If the app theme changes,
   change it here too — the scorecard on the landing page is supposed to
   look like the thing people will actually see on their phone. */

:root {
  --bg: #0b0d0e;
  --surface: #15181a;
  --raised: #1d2124;
  --hairline: #2a2f33;

  --accent: #ff8a1e;

  --text: #f2f1ee;
  --text-2: #9aa1a6;
  --text-3: #6b7378;

  --band-needs-work: #e0524a;
  --band-acceptable: #e0a93a;
  --band-strong: #4caf7d;

  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --measure: 68ch;
  --page: 1080px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffa64d; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0b0d0e;
  padding: 10px 16px;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

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

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 14, 0.92);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark .spark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 138, 30, 0.7);
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 15px;
}
.site-nav a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- sections ---------- */

section { padding: 72px 0; border-top: 1px solid var(--hairline); }
section:first-of-type { border-top: 0; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 600; }

p { margin: 0 0 16px; max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--text-2); }

.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* ---------- hero ---------- */

.hero { padding-top: 64px; padding-bottom: 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

/* minmax(0, …) not 1fr: a grid track defaults to min-content, and the
   scorecard's mono rows are wide enough to push the whole page sideways. */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 24px;
}
.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--band-acceptable);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 28px 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #14100a; }
.btn-primary:hover { background: #ffa04a; color: #14100a; }

.btn-ghost { border-color: var(--hairline); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text-3); color: var(--text); }

/* ---------- the scorecard illustration ---------- */

.card-frame { display: flex; flex-direction: column; gap: 10px; }

.scorecard {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.bead-slot {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(160deg, #1d2124, #101314);
  border: 1px dashed var(--hairline);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.bead-slot .slot-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  padding: 0 16px;
}

.score-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}
.score-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
}
.score-of { font-family: var(--font-mono); font-size: 16px; color: var(--text-3); }

.band {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.band-acceptable { color: var(--band-acceptable); border: 1px solid rgba(224, 169, 58, 0.45); }

.verdict-line { font-size: 14px; color: var(--text-2); margin: 10px 0 16px; max-width: none; }

.finding {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
}
.finding-num {
  font-family: var(--font-mono);
  font-size: 12px;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.finding-body { min-width: 0; }
.finding-name { font-size: 15px; font-weight: 600; }
.finding-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.fix-box {
  margin-top: 16px;
  background: var(--raised);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}
.fix-box .fix-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 6px;
}
.fix-box p { margin: 0; font-size: 15px; }

.card-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  max-width: none;
}

.card-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-align: center;
  text-transform: uppercase;
}

/* ---------- honest-limits band ---------- */

.limits {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 44px 0;
}
.limits h2 { font-size: clamp(22px, 3vw, 28px); }
.limits .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.limits .col p { margin: 0; font-size: 15px; color: var(--text-2); }
.limits .col h3 { font-size: 16px; margin-bottom: 8px; }
.limits .col h3 .mark { color: var(--band-needs-work); margin-right: 8px; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 22px;
}
.step .n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-2); margin: 0; }

/* ---------- feature list ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.feature {
  border-top: 2px solid var(--hairline);
  padding-top: 18px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--text-2); margin: 0; }

.tick-list { list-style: none; padding: 0; margin: 24px 0 0; max-width: var(--measure); }
.tick-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 16px;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.tick-list strong { color: var(--text); font-weight: 600; }

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: rgba(255, 138, 30, 0.55); }
.plan .plan-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.plan .plan-price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  margin: 10px 0 2px;
}
.plan .plan-cadence { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.plan p { font-size: 15px; color: var(--text-2); margin: 16px 0 0; }
.plan .badge {
  align-self: flex-start;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(255, 138, 30, 0.45);
  border-radius: 999px;
  padding: 5px 10px;
}

/* ---------- scope table ---------- */

.table-scroll { overflow-x: auto; margin-top: 28px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
td.mono { font-family: var(--font-mono); font-size: 14px; }

/* ---------- FAQ ---------- */

.faq { max-width: var(--measure); margin-top: 28px; }

details {
  border-bottom: 1px solid var(--hairline);
  padding: 6px 0;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
details[open] summary::after { content: "\2212"; }
details p:last-child { margin-bottom: 18px; }
details p { color: var(--text-2); font-size: 16px; }

/* ---------- callout ---------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 28px 0;
  max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--band-needs-work); }

/* ---------- doc pages ---------- */

.doc { padding: 56px 0 72px; }
/* Prose pages run to a narrower measure; the header and footer follow it so
   the wordmark lines up with the H1 instead of floating out to the left. */
.doc-page .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.doc h2 {
  font-size: 24px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.doc h3 { margin-top: 28px; }
.doc ul, .doc ol { max-width: var(--measure); color: var(--text-2); padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.doc li strong, .doc p strong { color: var(--text); }
.doc .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 32px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 24px;
  margin: 28px 0;
}
.contact-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.contact-card .email { font-size: 20px; font-weight: 600; word-break: break-word; }
.contact-card p { margin: 12px 0 0; font-size: 15px; color: var(--text-2); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 56px;
  color: var(--text-3);
  font-size: 14px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.site-footer p { max-width: var(--measure); margin-bottom: 12px; }
.site-footer .legal { color: var(--text-3); }
