/* ============================================================
   Owned AI, corporate one-pager
   Built on tokens.css (linked separately, loaded before this file).
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--oa-font-text);
  color: var(--oa-text);
  background: var(--oa-paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p { margin: 0; }

a {
  color: var(--oa-accent);
  text-decoration: none;
  transition: color var(--oa-dur) var(--oa-ease);
}
a:hover { color: var(--oa-accent-700); }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--oa-focus);
  border-radius: var(--oa-r-sm);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--oa-surface);
  color: var(--oa-text);
  border: 1px solid var(--oa-border);
  border-radius: var(--oa-r-md);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: top var(--oa-dur) var(--oa-ease);
}
.skip-link:focus { top: 12px; }

/* ---------- shared section rhythm ---------- */
.masthead,
.framework__inner,
.products,
.trust__inner,
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oa-accent);
  margin: 0 0 16px;
}

.h1 {
  font-family: var(--oa-font-display);
  font-weight: 400;
  font-size: clamp(33px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--oa-text);
  max-width: 17ch;
}

.h2 {
  font-family: var(--oa-font-display);
  font-weight: 400;
  font-size: clamp(27px, 3.8vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--oa-text);
  max-width: 20ch;
}
.h2--products { max-width: 22ch; }

.pull-line {
  font-family: var(--oa-font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 27px);
  color: var(--oa-accent);
  margin: 22px 0 0;
}

.lead {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.66;
  color: var(--oa-text-2);
  margin: 26px 0 0;
}
.lead--products {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.65;
  margin: 18px 0 0;
}

/* ---------- brand wordmark (recreated in HTML/CSS, not the SVG file,
   so it always renders in the loaded webfonts) ---------- */
.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 21px;
  line-height: 1;
}
.brand__word {
  position: relative;
  font-family: var(--oa-font-display);
  font-weight: 600;
  color: var(--oa-text);
  letter-spacing: -0.01em;
  padding-bottom: 2px;
}
.brand__line {
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: var(--oa-text);
}
.brand__dot {
  position: absolute;
  right: -8px; bottom: -5.5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--oa-accent);
}
.brand__ai {
  font-family: var(--oa-font-text);
  font-weight: 700;
  font-size: 0.52em;
  letter-spacing: 0.13em;
  color: var(--oa-accent);
  margin-left: 14px;
}
.brand--dark { font-size: 28px; }
.brand__word--dark { color: var(--oa-on-dark); padding-bottom: 3px; }
.brand__line--dark { background: var(--oa-on-dark); bottom: -4px; }
.brand__dot--dark {
  background: var(--oa-accent-on-dark);
  right: -10px; bottom: -6.5px;
  width: 6px; height: 6px;
}
.brand__ai--dark { color: var(--oa-accent-on-dark); margin-left: 17px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 248, .90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--oa-border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.nav__links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
  flex-wrap: wrap;
}
.nav__links a { color: var(--oa-text); }
.nav__links a:hover { color: var(--oa-accent); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--oa-accent) !important;
  border: 1px solid var(--oa-accent);
  border-radius: var(--oa-r-md);
  padding: 7px 15px;
  font-weight: 600;
  transition: transform var(--oa-dur) var(--oa-ease), box-shadow var(--oa-dur) var(--oa-ease), color var(--oa-dur) var(--oa-ease), border-color var(--oa-dur) var(--oa-ease);
}
.btn-outline:hover {
  color: var(--oa-accent-700) !important;
  border-color: var(--oa-accent-700);
  transform: translateY(-1px);
  box-shadow: var(--oa-shadow-md);
}
.btn-outline:active { transform: translateY(0); box-shadow: var(--oa-shadow-sm); }

/* ---------- masthead ---------- */
.masthead {
  padding-top: clamp(52px, 9vw, 116px);
  padding-bottom: 8px;
}

/* ---------- framework ---------- */
.framework {
  background: var(--oa-surface);
  border-top: 1px solid var(--oa-border);
  border-bottom: 1px solid var(--oa-border);
  margin-top: clamp(48px, 8vw, 96px);
}
.framework__inner {
  padding-top: clamp(54px, 8vw, 100px);
  padding-bottom: clamp(54px, 8vw, 100px);
}

.step-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
  font-family: var(--oa-font-serif);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--oa-text);
}
.step-flow__arrow { color: var(--oa-accent-300); flex: none; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.step-card {
  background: var(--oa-paper);
  border: 1px solid var(--oa-border);
  border-radius: var(--oa-r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--oa-dur) var(--oa-ease);
}
.step-card:hover { box-shadow: var(--oa-shadow-md); }

.step-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.step-card__head svg { color: var(--oa-text-2); flex: none; }
.step-card__num {
  font-family: var(--oa-font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--oa-accent);
}
.step-card__title {
  font-family: var(--oa-font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--oa-text);
}
.step-card__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--oa-text-2);
  margin: 0 0 20px;
}

.evidence-panel {
  margin-top: auto;
  background: var(--oa-surface);
  border: 1px solid var(--oa-border);
  border-radius: var(--oa-r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.evidence-panel--assumptions { gap: 10px; }
.evidence-panel--signature { padding: 16px 14px 13px; }

.evidence-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--oa-text);
}
.evidence-check { color: var(--oa-success); flex: none; }
.evidence-row--assumption {
  align-items: flex-start;
  line-height: 1.4;
}
.evidence-dot {
  flex: none;
  margin-top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sb-amber);
}

.signature-line {
  height: 1.5px;
  background: var(--oa-text);
  position: relative;
  margin-bottom: 8px;
}
.signature-dot {
  position: absolute;
  right: -3px;
  top: -2.5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oa-accent);
}
.signature-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.signature-name {
  font-family: var(--oa-font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--oa-text);
}
.signature-label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oa-text-2);
}

/* ---------- products ---------- */
.products {
  padding-top: clamp(54px, 8vw, 100px);
  padding-bottom: clamp(54px, 8vw, 100px);
}

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

.product-card {
  background: var(--oa-surface);
  border: 1px solid var(--oa-border);
  border-radius: 14px;
  padding: 6px 6px 0;
  box-shadow: var(--oa-shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--oa-dur) var(--oa-ease);
}
.product-card:hover { box-shadow: var(--oa-shadow-md); }
.product-card--dashed {
  border-style: dashed;
  box-shadow: none;
}

.product-card__inner {
  border-radius: 10px;
  padding: 24px 24px 22px;
  position: relative;
}
.product-card__inner--streambuild { background: var(--sb-panel); }
.product-card__inner--civicbuild { background: var(--oa-surface-2); }

.product-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.product-logo__tile {
  width: 30px;
  height: 30px;
  border-radius: var(--oa-r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--oa-font-text);
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.product-logo__tile--streambuild {
  background: linear-gradient(135deg, var(--sb-blue), var(--sb-teal));
}
.product-logo__tile--civicbuild { background: var(--cb-muted); }

.product-logo__word {
  font-family: var(--oa-font-text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.product-logo__word--light { color: #fff; }
.product-logo__word--muted { color: var(--oa-text-2); }

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(35, 122, 74, .18);
  border: 1px solid rgba(79, 190, 133, .4);
  color: #7EE0A6;
  border-radius: var(--oa-r-pill);
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
}
.pill-live__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--oa-success-on-dark);
}
.pill-coming {
  background: var(--oa-surface);
  border: 1px solid var(--oa-border);
  color: var(--oa-text-2);
  border-radius: var(--oa-r-pill);
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
}

.product-copy {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 16px 0 0;
}
.product-copy--light { color: #C6D0E8; }
.product-copy--muted { color: var(--oa-text-2); }

.swatches {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}
.swatch {
  width: 26px;
  height: 5px;
  border-radius: 3px;
}
.swatch--blue { background: var(--sb-blue); }
.swatch--teal { background: var(--sb-teal); }
.swatch--amber { background: var(--sb-amber); }
.swatch--civic { background: var(--cb-muted); }
.swatch--civic-1 { opacity: .6; }
.swatch--civic-2 { opacity: .35; }
.swatch--civic-3 { opacity: .2; }

.product-card__footer {
  padding: 16px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.owned-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--oa-text-2);
}
.owned-chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--oa-accent);
}
.owned-chip--muted .owned-chip__dot { opacity: .5; }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--oa-accent);
  font-weight: 600;
  font-size: 14px;
}
.dev-label {
  font-size: 14px;
  color: var(--oa-text-2);
  font-weight: 600;
}

/* ---------- trust strip ---------- */
.trust {
  background: var(--oa-surface-2);
  border-top: 1px solid var(--oa-border);
  border-bottom: 1px solid var(--oa-border);
}
.trust__inner {
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(44px, 6vw, 72px);
}
.trust__inner .eyebrow { margin-bottom: 26px; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--oa-accent);
}
.trust-item p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--oa-text);
}

/* ---------- footer ---------- */
.footer {
  background: var(--oa-ink-800);
  color: var(--oa-on-dark);
}
.footer__inner {
  padding-top: clamp(52px, 7vw, 84px);
  padding-bottom: 40px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__brand { max-width: 34ch; }
.footer__pull {
  font-family: var(--oa-font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--oa-accent-on-dark);
  margin: 20px 0 0;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oa-on-dark-2);
  margin: 0;
}
.footer__email {
  color: var(--oa-on-dark);
  font-size: 20px;
  font-family: var(--oa-font-serif);
}
.footer__email:hover { color: var(--oa-accent-on-dark); }
.footer__links {
  display: flex;
  gap: 22px;
  margin-top: 6px;
  font-size: 14px;
  flex-wrap: wrap;
}
.footer__links a { color: var(--oa-on-dark-2); }
.footer__links a:hover { color: var(--oa-on-dark); }

.footer__divider {
  height: 1px;
  background: var(--oa-ink-700);
  margin: 44px 0 22px;
  position: relative;
}
.footer__divider-dot {
  position: absolute;
  left: 0; top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--oa-accent-on-dark);
}
.footer__legal {
  font-size: 12.5px;
  color: var(--oa-on-dark-2);
  margin: 0;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; }
}
