@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #121212;
  --muted: #5f6368;
  --paper: #ffffff;
  --chrome: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--chrome);
  color: var(--ink);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.sheet {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  border: 0;
  background: var(--paper);
}

.sheet-nav {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 96px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  z-index: 2;
}

.sheet-logo {
  grid-column: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  justify-self: start;
  overflow: hidden;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 50%;
  background: #ffffff;
  text-decoration: none;
}

.sheet-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sheet-title {
  grid-column: 2;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-self: center;
  text-decoration: none;
}

.sheet-nav nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
}

.sheet-nav nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}

.sheet-center {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: inherit;
  place-items: center;
  /* generous bottom padding keeps the centered links clear of the footer art */
  padding: 132px 24px clamp(180px, 20vw, 240px);
  text-align: center;
}

.sheet-center h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.sheet-links {
  display: grid;
  gap: 26px;
  margin-top: 104px;
  font-size: 12px;
  font-weight: 700;
}

.sheet-links-tight {
  gap: 22px;
  margin-top: 62px;
}

.sheet-links span {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inactive-link {
  cursor: default;
}

.sheet-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.sheet-footer img {
  display: block;
  height: clamp(150px, 18vw, 230px);
  width: auto;
}

.topbar {
  position: static;
  z-index: 10;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  background: rgba(247, 247, 244, 0.94);
  padding: 0 28px;
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: #111315;
  color: white;
  font-size: 14px;
}

.topbar nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.algoat-sheet {
  background: #ffffff;
}

.algoat-hero {
  display: flex;
  min-height: min(660px, 100svh);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 146px 24px 76px;
  text-align: center;
}

.algoat-logo {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 999px;
  background: #050505;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.algoat-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.algoat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: rgba(8, 8, 8, 0.52);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.algoat-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12c78a;
}

.algoat-hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 950;
  line-height: 1;
}

.algoat-lead {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(8, 8, 8, 0.52);
  font-size: 18px;
  line-height: 1.45;
}

.algoat-links {
  display: grid;
  gap: 22px;
  margin-top: 56px;
  font-size: 12px;
  font-weight: 800;
}

.algoat-links span {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.algoat-access {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 96px));
  margin: 0 auto 110px;
  text-align: left;
}

.algoat-access p {
  margin: 0 0 10px;
  color: rgba(8, 8, 8, 0.46);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.algoat-access h2 {
  margin: 0 0 30px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.algoat-access table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.2;
}

.algoat-access th,
.algoat-access td {
  border-bottom: 1px solid rgba(18, 18, 18, 0.12);
  padding: 16px 0;
  vertical-align: top;
}

.algoat-access thead th {
  color: rgba(8, 8, 8, 0.42);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.algoat-access tbody th {
  width: 40%;
  font-weight: 800;
}

.algoat-access td {
  width: 30%;
  color: rgba(8, 8, 8, 0.62);
  font-weight: 650;
}

.algoat-demo-shell {
  background: #ffffff;
}

.algoat-demo-page {
  position: relative;
  z-index: 1;
  padding: 118px 0 0;
  background: #ffffff;
}

.algoat-demo-frame {
  position: relative;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
  background: #050505;
}

.algoat-demo-frame iframe {
  display: block;
  width: 100%;
  height: min(820px, calc(100svh - 146px));
  min-height: 620px;
  border: 0;
  background: #070708;
}

.demo-inline-popup {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: min(320px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(13, 13, 14, 0.94);
  color: white;
  padding: 14px;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.demo-inline-popup span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-inline-popup strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.demo-inline-popup a {
  display: inline-flex;
  margin-top: 10px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.algoat-footer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  background: #ffffff;
}

.algoat-footer img {
  display: block;
  height: clamp(150px, 18vw, 230px);
  width: auto;
}

@media (max-width: 720px) {
  .sheet {
    width: 100%;
    min-height: 100svh;
    margin: 0;
  }

  .sheet-nav {
    top: 30px;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    justify-items: stretch;
    padding: 0 20px;
  }

  .sheet-logo {
    grid-column: 1;
    width: 38px;
    height: 38px;
    justify-self: start;
  }

  .sheet-title {
    grid-column: 2;
    min-height: 38px;
    justify-self: center;
  }

  .sheet-nav nav {
    grid-column: 3;
    justify-self: end;
  }

  .sheet-center {
    padding: 140px 20px 120px;
  }

  .sheet-center h1 {
    font-size: 23px;
  }

  .sheet-links {
    margin-top: 82px;
  }

  .sheet-logo img {
    width: 100%;
    height: 100%;
  }

  .sheet-nav nav a {
    min-height: 38px;
  }

  .sheet-footer {
    width: calc(100% + 2px);
  }

  .algoat-hero {
    min-height: auto;
    padding: 124px 20px 78px;
  }

  .algoat-hero h1 {
    font-size: 54px;
  }

  .algoat-lead {
    font-size: 16px;
  }

  .algoat-links {
    margin-top: 42px;
  }

  .algoat-access {
    width: calc(100% - 40px);
    margin-bottom: 80px;
    overflow-x: auto;
  }

  .algoat-access table {
    min-width: 520px;
  }

  .algoat-demo-page {
    padding-top: 92px;
  }

  .algoat-demo-frame iframe {
    height: 720px;
    min-height: 560px;
  }

  .demo-inline-popup {
    top: 12px;
    right: 12px;
    width: min(300px, calc(100% - 24px));
  }
}
