/* krinai.com: the brand's tokens (web/src/styles/tokens.css, ink, paper and ice; Martian Mono,
   one face), following the system's light or dark. */

@font-face {
  font-family: "Martian Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url(/fonts/martian-mono-latin-ext-standard-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: "Martian Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url(/fonts/martian-mono-latin-standard-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;
}

:root {
  color-scheme: light;
  --font: "Martian Mono Variable", "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --page: #f5f6f8;
  --surface: #ffffff;
  --ink: #0c0e12;
  --ink-2: #2e343d;
  --ink-3: #5b6472;
  --ink-4: #8b93a0;
  --surface-2: #f8f9fa;
  --line: #e1e4e9;
  --line-2: #d5d9df;
  --accent: #0077a8;
  --accent-ink: #0077a8;
  --accent-on: #ffffff;
  --accent-wash: #eaf4f8;
  --accent-ring: #cfe5ef;
  --shadow: 0 1px 2px rgba(12, 14, 18, 0.06), 0 12px 40px rgba(12, 14, 18, 0.1);
  --shadow-3: 0 12px 40px rgba(12, 14, 18, 0.16), 0 2px 6px rgba(12, 14, 18, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0c0e12;
    --surface: #111419;
    --ink: #e6e8eb;
    --ink-2: #c3c8cf;
    --ink-3: #9aa3af;
    --ink-4: #6b7380;
    --surface-2: #14171d;
    --line: #20252c;
    --line-2: #2a2f38;
    --accent: #8ee3ff;
    --accent-ink: #8ee3ff;
    --accent-on: #0c0e12;
    --accent-wash: #15252d;
    --accent-ring: #1f3c49;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-3: 0 12px 40px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-stretch: 87.5%;
  font-size: 15px;
  line-height: 1.6;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2 {
  font-stretch: 100%;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ------------------------------------------------------------------ top bar, buttons */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.lockup .mark {
  width: 26px;
  height: 26px;
}
.lockup .word {
  width: 82px;
  height: 19px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.link {
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.link:hover {
  color: var(--accent);
}

.button {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  filter: brightness(1.08);
}
.button.large {
  padding: 13px 24px;
  font-size: 16px;
}
.button.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button.quiet:hover {
  border-color: var(--accent);
  filter: none;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero {
  max-width: 820px;
  margin: 72px auto 0;
  text-align: center;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.08;
  font-weight: 700;
}
.lede {
  margin: 24px auto 0;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 17px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.fine {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}

/* the landing page only: what the product is leads, the brand's line sits quietly above it */
.landing {
  max-width: 900px;
  margin-top: 52px;
}
.brandline {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 500;
}
.landing h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.12;
  text-wrap: balance;
}
.landing .lede {
  margin-top: 18px;
  max-width: 68ch;
  color: var(--ink-3);
  font-size: 16px;
  text-wrap: balance;
}
.landing .actions {
  margin-top: 28px;
}

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-shot {
  margin-top: 44px;
}

/* ------------------------------------------------------------------ the company search */

/* under the landing page's hero, and atop the list of companies (public/search.js): drawn as the
   app's own (web/src/views/home.css, .landing-search), a box with the brand's ring and the
   companies found dropping over the page below it */
.find {
  max-width: 760px;
  margin: 56px auto 0;
  text-align: center;
}
.find h2 {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.search {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 14px 0 18px;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-3);
  box-shadow: 0 0 0 4px var(--accent-wash);
  cursor: text;
  transition: box-shadow 0.12s ease-out;
}
.search-box:focus-within {
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.search-box svg {
  flex: none;
}
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-stretch: 100%;
  outline: none;
  caret-color: var(--accent);
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder {
  color: var(--ink-4);
}
/* the box's own "esc" clears it, as the app's does */
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-clear {
  flex: none;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-3);
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}
.search-clear:hover {
  color: var(--ink);
}
.search-clear[hidden],
.search-drop[hidden] {
  display: none;
}

.search-drop {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  animation: search-drop 0.12s ease-out;
}
@keyframes search-drop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.search-results {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}
.search-results:empty {
  display: none;
}
.search-results a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 20px;
  color: var(--ink);
  text-decoration: none;
}
.search-results [aria-selected="true"] a {
  background: var(--accent-wash);
}
.search-name {
  overflow: hidden;
  font-size: 13px;
  font-stretch: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.search-tkr {
  flex: none;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.04em;
}
.search-drop .hl {
  color: var(--accent-ink);
  font-weight: 700;
}
.search-empty {
  padding: 22px 20px;
  color: var(--ink-3);
  font-size: 13px;
}
.search-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 9px 20px;
  border-top: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 11px;
}
.search-note {
  margin-left: auto;
}
@media (prefers-reduced-motion: reduce) {
  .search-box {
    transition: none;
  }
  .search-drop {
    animation: none;
  }
}

/* every company, quietly: for a visitor who'd rather look around, and for search engines */
.browse {
  margin: 22px auto 0;
  color: var(--ink-4);
  font-size: 12px;
  line-height: 2;
}
.browse p {
  margin: 0;
  text-wrap: balance;
}
.browse a {
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
}
.browse a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.browse .all {
  color: var(--ink-2);
}
@media (max-width: 640px) {
  /* no keys on a phone: the foot says only where a company opens */
  .search-key {
    display: none;
  }
  /* the top bar's "Companies" waits for a wider screen (the bar holds the brand and the two
     sign-in links at a phone's width); the search under the hero and the foot reach them */
  .top nav a[href="/companies"] {
    display: none;
  }
}

/* ------------------------------------------------------------------ facts, features */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 72px 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.facts strong {
  font-size: 24px;
  font-weight: 600;
  font-stretch: 100%;
  line-height: 1.1;
}
.facts span {
  color: var(--ink-3);
  font-size: 13px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 72px;
}
.features article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.features h2 {
  font-size: 19px;
}
.features p {
  margin: 10px 0 0;
  color: var(--ink-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: center;
  margin-top: 96px;
}
.split h2 {
  font-size: 28px;
  line-height: 1.2;
}
.split p {
  margin: 16px 0 0;
  color: var(--ink-2);
}

.closing {
  margin: 112px 0 96px;
  padding: 56px 24px;
  border-radius: 8px;
  background: var(--accent-wash);
  text-align: center;
}
.closing h2 {
  margin-bottom: 26px;
  font-size: clamp(24px, 3.4vw, 34px);
}

/* ------------------------------------------------------------------ terms, privacy */

.lockup .name {
  font-size: 18px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.01em;
}
.legal {
  max-width: calc(72ch + 48px);
  margin: 40px auto 96px;
}
.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
}
.legal h2 {
  margin-top: 36px;
  font-size: 18px;
}
.legal p,
.legal li {
  color: var(--ink-2);
}
.legal p {
  margin: 12px 0 0;
}
.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
}
.legal li + li {
  margin-top: 8px;
}
.legal strong {
  color: var(--ink);
}
.legal a {
  color: var(--accent);
}
.legal .updated {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 13px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}
footer span {
  margin-right: auto;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------------ narrow windows */

@media (max-width: 860px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split {
    gap: 28px;
  }
}
@media (max-width: 520px) {
  .top,
  main,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .top nav {
    gap: 12px;
  }
  .hero {
    margin-top: 40px;
  }
  .brandline {
    font-size: 13px;
  }
  .features article {
    padding: 22px;
  }
}
