/* Saldera — marketing site. Hand-written, no framework, no build. */

*,
*::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;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

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

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  font-weight: 640;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 620;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 480px) {
  .wrap {
    padding-inline: 18px;
  }
}

.measure {
  max-width: 64ch;
}

section {
  padding-block: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand svg {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

.wordmark {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9375rem;
}

.site-nav a:not(.button) {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--text);
}

/*
 * Below ~620px the brand and three nav items cannot share a row, and wrapping
 * puts the navigation above the wordmark. Drop the section links — both targets
 * are a short scroll away on a one-page site — and keep the one action.
 */
@media (max-width: 620px) {
  .site-nav a:not(.button) {
    display: none;
  }
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition);
}

.button:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.button:active {
  background: var(--accent-active);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}

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

.hero {
  border-top: 0;
  padding-block: clamp(52px, 9vw, 104px) clamp(48px, 7vw, 80px);
}

.stage {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px 5px 11px;
  margin-bottom: 22px;
}

.stage .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
  flex: none;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-2);
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- prose blocks ---------- */

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack.tight {
  gap: 12px;
}

/* ---------- module grid ---------- */

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 26px;
}

.module {
  background: var(--surface);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.module .name {
  color: var(--text);
  font-weight: 560;
  font-size: 0.9375rem;
}

.module .note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
  flex: none;
}

.state.working {
  color: var(--success);
}

.state.building {
  color: var(--warning);
}

.state.planned {
  color: var(--text-dim);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

/* ---------- honest status ---------- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 26px;
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  margin-bottom: 14px;
}

.panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.panel li {
  font-size: 0.9375rem;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--text-dim);
}

.panel.works li::before {
  background: var(--success);
}

.panel.gaps li::before {
  background: var(--warning);
}

.updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 20px;
}

/* ---------- differences ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 26px 40px;
  margin-top: 30px;
}

.point h3 {
  margin-bottom: 7px;
}

.point p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- call to action ---------- */

.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  margin-top: 28px;
}

.cta-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.cta-cols h3 {
  margin-bottom: 8px;
}

.cta-cols p,
.cta-cols li {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cta-cols ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 34px 44px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/*
 * Small positional helpers. These exist as classes rather than style="…"
 * attributes because the site's Content-Security-Policy has no
 * style-src 'unsafe-inline' — an inline style attribute would be dropped.
 */
.pricing-note {
  margin-top: 30px;
}

.cta-action {
  margin-top: 26px;
}

.page-body {
  margin-top: 26px;
}

.footer-wordmark {
  font-size: 1rem;
}

.footer-entity {
  margin-top: 4px;
}

/* ---------- long-form legal document ---------- */

.legal {
  max-width: 68ch;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 44px;
  margin-bottom: 12px;
}

.legal h2:first-of-type {
  margin-top: 36px;
}

.legal h3 {
  margin-top: 26px;
  margin-bottom: 8px;
}

.legal p {
  margin-bottom: 14px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.legal li {
  line-height: 1.6;
}

.legal .summary {
  background: var(--sunken);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 8px;
}

.legal .summary p:last-child {
  margin-bottom: 0;
}

.effective {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 10px;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 0.875rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.legal thead th {
  background: var(--sunken);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.legal tbody tr:last-child td {
  border-bottom: 0;
}
