@import "tokens.css";

/*
 * Ondavi marketing site — all styles.
 *
 * Every rule lives here (no inline styles anywhere in the HTML): the production
 * CloudFront CSP is `style-src 'self'`, which blocks inline `style="…"` and
 * inline <style>. Layout and colour are transcribed from TC-194's accepted
 * boards (Ondavi design system). Colours are the board's literal values, which
 * match the design tokens (ground #f3f2f2, surface #f8f4f4, ink #201e1d,
 * cream #f3f0ee, signal #c6f135, danger #ae1800).
 */

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: #f3f2f2;
  color: #201e1d;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: #3f5d00;
}
a:hover {
  color: #201e1d;
}

/* Links on the dark top bar and footer. */
.si {
  color: #f3f0ee;
  text-decoration: none;
}
.si:hover {
  color: #c6f135;
}

:focus-visible {
  outline: 3px solid #c6f135;
  outline-offset: 2px;
}

/* Skip link for keyboard and screen-reader users. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: #c6f135;
  color: #201e1d;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Horizontal gutter; vertical padding comes from each section's own class. */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Small shared helpers. */
.grow { flex-grow: 1; }
.stack { display: flex; flex-direction: column; }

/* ---- Top bar ---- */
.site-header {
  background: #201e1d;
  color: #f3f0ee;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
  padding-block: 18px;
}
.brand {
  flex-grow: 1;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3f0ee;
  text-decoration: none;
}
.secnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 600;
}
.secnav a {
  color: #f3f0ee;
  text-decoration: none;
  padding: 12px 0;
}
.header-inner .si {
  font-size: 15px;
  font-weight: 700;
  padding: 12px 0;
}

/* ---- Hero ---- */
.hero-section {
  background: #201e1d;
  color: #f3f0ee;
}
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-block: 72px 96px;
}
.hero__col {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #201e1d;
  background: #c6f135;
  padding: 5px 10px;
}
.hero__title {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lede {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #d8d3cf;
  max-width: 560px;
}
.hero__cta {
  color: #c6f135;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 0;
}

/* ---- Sample card (delivery checks) ---- */
.samplecard {
  flex: 1 1 320px;
  min-width: 0;
  background: #f8f4f4;
  color: #201e1d;
  border: 2px solid #f3f0ee;
}
.samplecard__head {
  padding: 18px 20px;
  border-bottom: 1px solid #c4c0c0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #55514f;
}
.samplecard__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.samplecard__meta {
  font-size: 14px;
  color: #55514f;
}
.checks {
  display: flex;
  flex-direction: column;
}
.check {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #ece8e8;
  font-size: 15px;
}
.check--last {
  border-bottom: 0;
}
.check--fail {
  background: #fbefec;
  box-shadow: inset 3px 0 0 #ae1800;
}
.check__sub {
  font-size: 13px;
  color: #55514f;
}
.check__sub--fail {
  color: #7f1200;
}
.b700 { font-weight: 700; }
.chip {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
}
.chip--pass {
  border: 1px solid #8a8686;
}
.chip--fail {
  background: #ae1800;
  color: #f8f4f4;
}
.chip--needed {
  background: #201e1d;
  color: #f8f4f4;
}
.samplecard__foot {
  padding: 14px 20px;
  border-top: 1px solid #c4c0c0;
  font-size: 14px;
  color: #444141;
}

/* ---- Content sections (shared) ---- */
.sec {
  /* Narrow-screen hook; desktop layout/padding come from the specific class. */
}
.sec__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.muted {
  margin: 0;
  color: #444141;
}
.label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #55514f;
}

/* How it works */
.how {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 88px 40px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.step {
  background: #f8f4f4;
  border: 1px solid #c4c0c0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.step__body {
  margin: 0;
  font-size: 16px;
  color: #444141;
}

/* Two-column split sections (producers, post teams) */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-block: 72px 40px;
}
.split--reverse {
  flex-wrap: wrap-reverse;
}
.split__col {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.bullet {
  flex: 0 0 10px;
  height: 10px;
  background: #201e1d;
  margin-top: 9px;
}

/* Ingest sample (dark) */
.ingest {
  flex: 1 1 320px;
  min-width: 0;
  background: #201e1d;
  color: #f3f0ee;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ingest__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ingest__name {
  font-size: 18px;
  font-weight: 700;
}
.ingest__sub {
  font-size: 18px;
  color: #bcb6b1;
}
.ingest__box {
  background: #1f1d1c;
  border: 1px solid #4a4643;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ingest__box--list {
  gap: 10px;
  font-size: 15px;
}
.ingest__title {
  font-size: 17px;
  font-weight: 700;
}
.ingest__meta {
  font-size: 14px;
  color: #bcb6b1;
}
.track {
  height: 8px;
  background: #2e2b29;
}
.track__fill {
  width: 61%;
  height: 8px;
  background: #c6f135;
}
.ingest__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #a09a95;
}
.ingest__row {
  display: flex;
  gap: 12px;
}
.up {
  color: #c6f135;
  font-weight: 700;
}
.dim {
  color: #d8d3cf;
}

/* Review inbox sample (light) */
.inbox {
  flex: 1 1 320px;
  min-width: 0;
  background: #f8f4f4;
  border: 1px solid #c4c0c0;
}
.inbox__head {
  padding: 16px 20px;
  border-bottom: 2px solid #201e1d;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.inbox__row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #ece8e8;
}
.inbox__row--sel {
  background: #eae9e9;
  box-shadow: inset 3px 0 0 #201e1d;
}
.inbox__row--strong {
  border-bottom: 1px solid #c4c0c0;
}
.inbox__name {
  font-size: 16px;
  font-weight: 700;
}
.inbox__sub {
  font-size: 13px;
  color: #55514f;
}
.inbox__actions {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-accept {
  padding: 9px 16px;
  background: #c6f135;
  border: 1.5px solid #201e1d;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}
.btn-secondary {
  padding: 9px 16px;
  background: #ffffff;
  border: 1px solid #8a8686;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

/* Plans */
.plans-sec {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-block: 72px 40px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}
.plan {
  background: #f8f4f4;
  border: 1px solid #c4c0c0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan--featured {
  border: 2px solid #201e1d;
}
.plan__name {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan__tagline {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.plan__lead {
  margin: 0;
  font-size: 14px;
  color: #55514f;
}
.plan__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
}
.plan__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bullet-sm {
  flex: 0 0 8px;
  height: 8px;
  background: #201e1d;
  margin-top: 9px;
}
.plans__note {
  margin: 0;
  font-size: 15px;
  color: #55514f;
  max-width: 760px;
}

/* Closing line */
.closing {
  padding-block: 48px 96px;
}
.closing__line {
  margin: 0;
  padding-top: 28px;
  border-top: 2px solid #201e1d;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 760px;
}

/* ---- Prose pages (Privacy, 404) ---- */
.prose-main {
  padding-block: 72px 96px;
  min-height: 420px;
}
.prose {
  max-width: 720px;
}
.prose__h1 {
  margin: 0 0 28px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.prose p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.6;
  color: #201e1d;
}
.prose__cta {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.badge404 {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #201e1d;
  border: 1.5px solid #201e1d;
  padding: 4px 10px;
  margin-bottom: 22px;
}

/* ---- Footer ---- */
.site-footer {
  background: #201e1d;
  color: #bcb6b1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 32px;
  padding-block: 36px;
  font-size: 14px;
}
.fbrand {
  flex-grow: 1;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3f0ee;
}
.footer-copy {
  padding: 12px 0;
}
.footer-inner .si {
  padding: 12px 0;
}
.footer-inner .si--signin {
  font-weight: 700;
}

/* ---- Narrow screens (~390px board) ---- */
@media (max-width: 640px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .secnav {
    display: none;
  }
  .hero {
    padding-top: 44px;
    padding-bottom: 56px;
    gap: 36px;
  }
  .how,
  .split,
  .plans-sec {
    padding-top: 52px;
    padding-bottom: 24px;
    gap: 32px;
  }
  .lede {
    font-size: 18px;
  }
  .fbrand {
    flex-basis: 100%;
  }
}

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