/* The public site (eknowlogy.ai): landing page and legal pages. Hand-written
   rather than Bootstrap, since these pages need a fraction of it. The tokens are
   the app's (src/scss/custom.scss) so the two read as one product; keep them in
   step. The fonts are the app's too: the build copies src/public/fonts into
   /fonts before uploading, so there is one copy in the repo. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0f172a;
  --vine: #10a37f;
  --vine-ink: #0b7a5f;
  --vine-wash: #ecfdf5;
  --slate: #475569;
  --line: #e2e8f0;
  --surface: #f6f8fa;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --page: 64rem;
  --measure: 40rem;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--vine-ink); text-underline-offset: .15em; }
a:hover { color: #085f4a; }

:focus-visible {
  outline: 2px solid var(--vine-ink);
  outline-offset: 2px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: .5rem; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header: the same bar as the app's, with the two ways in. */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 3.5rem;
}
.wordmark {
  margin-right: auto;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }

/* Buttons: the app's pill shape. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 1.5em;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--vine-ink); color: #fff; }
.btn-primary:hover { background: #085f4a; color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-outline { border-color: #cbd5e1; color: var(--ink); }
.btn-outline:hover { background: var(--surface); color: var(--ink); }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }

/* Hero: what it is, then the two ways in. */
.hero {
  padding: 5rem 0 3.5rem;
}
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--vine-ink);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero h1 {
  max-width: 18em;
  font-size: clamp(2rem, 5vw, 3rem);
}
.lede {
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
  color: var(--slate);
  font-size: 1.1875rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

section { scroll-margin-top: 1rem; }

.band {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}
.band-tint { background: var(--surface); }
.band h2 { font-size: 1.75rem; }
.band .intro {
  max-width: 36rem;
  margin: .75rem 0 2.5rem;
  color: var(--slate);
  font-size: 1.0625rem;
}

/* A worked example, set as the app sets an answer: your question in the
   bubble, the answer in serif. */
.example {
  margin: 0;
  max-width: var(--measure);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
}
.turn-user {
  width: fit-content;
  max-width: 85%;
  margin: 0 0 1.25rem auto;
  padding: .625rem 1rem;
  border-radius: 1.125rem;
  background: #e8edf3;
  line-height: 1.45;
}
.turn-answer {
  color: #1e293b;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.turn-answer p { margin: 0 0 1em; }
.agree {
  margin: .875rem 0 0;
  color: var(--slate);
  font-size: .8125rem;
}
.agree a { color: inherit; text-underline-offset: .15em; }
.example-note {
  max-width: var(--measure);
  margin: .75rem 0 0;
  color: var(--slate);
  font-size: .8125rem;
}

/* Three short points. */
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.points h3 { margin-bottom: .5rem; font-size: 1.125rem; letter-spacing: -.01em; }
.points p { margin: 0; color: var(--slate); }

.plan {
  max-width: 34rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}
.plan h3 { font-size: 1.25rem; }
.plan ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--slate);
}
.plan li { margin: .375rem 0; }
.plan li::marker { color: var(--vine-ink); }

.contact p { max-width: 36rem; color: var(--slate); font-size: 1.0625rem; }
.contact .email {
  display: inline-block;
  margin-top: .25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Legal pages: one reading column. */
.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}
.doc h1 { font-size: 2rem; }
.doc .updated { margin: .5rem 0 2rem; color: var(--slate); font-size: .9375rem; }
.doc h2 {
  margin: 2.25rem 0 .75rem;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}
.doc h3 { margin: 1.5rem 0 .5rem; font-size: 1.0625rem; letter-spacing: 0; }
.doc p, .doc li { line-height: 1.65; }
.doc p { margin: 0 0 1em; }
.doc ul { margin: 0 0 1em; padding-left: 1.4em; }
.doc li { margin: .25em 0; }
.doc li::marker { color: var(--slate); }
.doc .summary {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--vine);
  border-radius: 0 .5rem .5rem 0;
  background: var(--vine-wash);
}
.doc .summary p:last-child { margin-bottom: 0; }
.doc .caps { text-transform: uppercase; font-size: .9375rem; }
.doc table {
  width: 100%;
  margin: 0 0 1.25em;
  border-collapse: collapse;
  font-size: .9375rem;
}
.doc th, .doc td {
  padding: .5rem .75rem .5rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc th { border-bottom-color: #94a3b8; font-weight: 600; }

/* Draft markers: anything the owner still has to confirm. The deploy refuses to
   publish a page that still contains one (see scripts/deploy_site.sh). */
.confirm {
  padding: 0 .25em;
  border-radius: 3px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: .875rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}
.site-footer .copy { margin-right: auto; }
.site-footer a { color: var(--slate); }
.site-footer a:hover { color: var(--ink); }

.not-found {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 6rem 1rem;
}
.not-found h1 { font-size: 2rem; }
.not-found p { margin: 1rem 0 2rem; color: var(--slate); font-size: 1.0625rem; }

@media (max-width: 575.98px) {
  .hero { padding: 3rem 0 2.5rem; }
  .band { padding: 3rem 0; }
  .example { padding: 1rem; }
  .site-header .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
