@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  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;
}

/* OpenBot website */

:root {
  --blue: #0171c5;
  --blue-deep: #01467a;
  --blue-wash: #e8f2fb;
  --ink: #10273a;
  --ink-soft: #4a5f72;
  --line: #d6e2ed;
  --paper: #ffffff;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Noto Sans SC", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --wide: 106;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid #7cc0f2;
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-variation-settings: "wdth" var(--wide);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--paper);
  padding: 8px 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  font-variation-settings: "wdth" var(--wide);
}

.brand img {
  width: 34px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Links to other pages (docs, GitHub) are outlined; the others jump within this page. */
.nav .nav-out {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blue-deep);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px 4px;
    border-radius: 0;
  }
  .nav .nav-out {
    border: 0;
    margin: 0;
  }
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-white {
  background: #fff;
  color: var(--blue);
}
.btn-white:hover {
  background: var(--blue-wash);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover {
  background: var(--blue-deep);
}

.btn-line {
  border-color: var(--line);
  color: var(--ink);
}
.btn-line:hover {
  border-color: var(--blue);
}

/* Hero: the interactive robot fills the blue, the text sits on the left. */

.hero {
  position: relative;
  background: radial-gradient(120% 90% at 75% 55%, #1a86d6 0%, var(--blue) 45%, #015ea4 100%);
  color: #fff;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
}

.hero canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

.hero canvas:active {
  cursor: grabbing;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(1, 113, 197, 0.92) 0%, rgba(1, 113, 197, 0.7) 32%, rgba(1, 113, 197, 0) 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  padding-top: 56px;
  padding-bottom: 120px;
}

.hero-copy .actions {
  pointer-events: auto;
}

.hero h1 {
  max-width: 9.5em;
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero .lede {
  margin-top: 20px;
  max-width: 22em;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
}

.stage-ui {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.stage-ui > * {
  pointer-events: auto;
}

.hero.ready .stage-ui {
  opacity: 1;
}

/* Viewpoint and zoom, a small toolbar at the top right of the 3D scene */
.view-controls {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.6s;
}

.hero.ready .view-controls {
  opacity: 1;
}

.view-group {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(1, 70, 122, 0.2);
}

.view-group button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--blue);
  cursor: pointer;
}

.view-group button:hover {
  background: var(--blue-wash);
}

.view-group button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

@media (max-width: 860px) {
  .view-controls {
    top: auto;
    bottom: 390px;
  }
}

/* The controls sit on the edge between the 3D scene and the page, like the cards below. */
.dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  transform: translateY(50%);
  padding: 10px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(1, 70, 122, 0.16), 0 0 0 1px var(--line);
}

.dock-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dock-robots {
  padding-right: 18px;
  border-right: 1.5px solid var(--line);
}

.dock button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.dock .dock-robots button {
  padding-left: 5px;
}

/* Product photo in a white circle, so it reads the same on blue and on white. */
.dock button img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--line);
}

.dock button[aria-pressed="true"] img {
  box-shadow: none;
}

.dock button:hover {
  background: var(--blue-wash);
  color: var(--ink);
}

.dock button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

.modes {
  padding-right: 18px;
  border-right: 1.5px solid var(--line);
}

.dock .dock-lights[aria-pressed="true"] {
  background: none;
  color: var(--blue);
}

.dock .dock-lights[aria-pressed="true"]:hover {
  background: var(--blue-wash);
}

.stage-hint {
  flex: 1 1 14em;
  margin: 0;
  padding: 0 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pad {
  display: none;
  grid-template-columns: repeat(3, 48px);
  grid-template-rows: repeat(2, 48px);
  gap: 6px;
  width: max-content;
  margin: 0 0 12px auto;
}

.pad button {
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--blue);
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(1, 70, 122, 0.2);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.pad [data-drive="up"] {
  grid-column: 2;
}
.pad [data-drive="left"] {
  grid-column: 1;
  grid-row: 2;
}
.pad [data-drive="down"] {
  grid-column: 2;
  grid-row: 2;
}
.pad [data-drive="right"] {
  grid-column: 3;
  grid-row: 2;
}

/* The pad shows on touch screens in drive mode. */
@media (hover: none) {
  .hero[data-mode="drive"] .pad {
    display: grid;
  }
}

.stage-fallback {
  display: none;
}

/* Without WebGL or the 3D script, show a photo instead. */
.hero:not(.ready) canvas {
  display: none;
}



@media (max-width: 860px) {
  .hero {
    display: block;
    min-height: 0;
    padding-bottom: 440px;
  }
  .hero canvas {
    top: auto;
    bottom: 0;
    height: 460px;
  }
  .hero-copy {
    padding-top: 40px;
    padding-bottom: 8px;
  }
  .dock {
    gap: 8px;
  }
  .modes {
    padding-right: 0;
    border-right: 0;
  }
  .dock-robots {
    flex-wrap: nowrap;
    padding-right: 0;
    border-right: 0;
    width: 100%;
  }
  .dock-robots button {
    flex: 1 1 0;
    min-width: 0;
  }
  .modes button {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  .stage-hint {
    flex-basis: 100%;
  }
}

/* Three ways in */

.paths {
  margin-top: -1px;
  padding: 88px 0 72px;
}

.paths .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path {
  position: relative;
  display: grid;
  grid-template-rows: 200px auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-wash);
  color: var(--ink);
  text-decoration: none;
}

.path img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s ease;
}

.path img.cover {
  object-fit: cover;
  padding: 0;
}

.path:hover img {
  transform: scale(1.05);
}

.path-text {
  display: grid;
  gap: 4px;
  padding: 18px 22px 22px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.path-text strong {
  color: var(--ink);
  font-size: 1.3rem;
  font-variation-settings: "wdth" 108;
}

.path:hover strong {
  color: var(--blue);
}

@media (max-width: 760px) {
  .paths .wrap {
    grid-template-columns: 1fr;
  }
}

/* Docs tiles: the same tiles as on the docs home page */

.doc-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.doc-tile {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 4px;
  padding-bottom: 20px;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

.doc-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 12px;
  background: var(--blue-wash);
}

.doc-tile strong {
  padding: 0 20px;
  color: var(--ink);
  font-size: 1.15rem;
}

.doc-tile span {
  padding: 0 20px;
}

.doc-tile:hover {
  border-color: var(--blue);
}

.doc-tile:hover strong {
  color: var(--blue);
}

@media (max-width: 860px) {
  .doc-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .doc-tiles {
    grid-template-columns: 1fr;
  }
}

/* Docs links */

.doc-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.doc-links a {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.doc-links a strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.doc-links a:hover {
  border-color: var(--blue);
}

.doc-links a:hover strong {
  color: var(--blue);
}

@media (max-width: 760px) {
  .doc-links {
    grid-template-columns: 1fr;
  }
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-tint {
  background: var(--blue-wash);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
  color: var(--ink-soft);
  max-width: 36em;
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* How it works: body + phone + app */

.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}

.equation .op {
  align-self: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  font-variation-settings: "wdth" 125;
}

.part {
  border-top: 4px solid var(--blue);
  padding-top: 18px;
}

.part h3 {
  margin-bottom: 8px;
}

.part p {
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .equation {
    grid-template-columns: 1fr;
  }
  .equation .op {
    display: none;
  }
}

/* Robots for sale */

.robots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.robot {
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.robot img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #fff;
  padding: 16px;
}

.robot-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 24px 8px;
}

.robot-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.robot-body ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
}

.robot-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

.buy-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.buy-more .btn {
  padding: 10px 18px;
  font-size: 0.95rem;
  background: var(--paper);
  cursor: pointer;
  font-family: inherit;
}

/* Comparison of the two robots, in a dialog so it does not crowd the page. */
.compare {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(1, 40, 80, 0.3);
}

.compare::backdrop {
  background: rgba(16, 39, 58, 0.55);
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.compare-head h3 {
  font-size: 1.4rem;
}

.compare-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

.compare-lede {
  padding: 8px 24px 0;
  color: var(--ink-soft);
}

.compare-scroll {
  overflow-x: auto;
  padding: 8px 24px 0;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-size: 1.1rem;
  font-weight: 800;
  border-bottom: 0;
}

.compare thead img {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--line);
}

.compare tbody th {
  width: 34%;
  color: var(--ink-soft);
  font-weight: 600;
}

.compare tfoot td {
  border-bottom: 0;
  padding-top: 16px;
}

.compare tfoot .btn {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.compare-note {
  padding: 4px 24px 20px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.note {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .robots {
    grid-template-columns: 1fr;
  }
}

/* Bodies to build */

.bodies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.body-card {
  color: inherit;
  text-decoration: none;
}

.body-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
}

.body-card img.contain {
  object-fit: contain;
  padding: 12px;
  background: #f1f5f9;
}

.body-card h3 {
  margin-top: 14px;
  font-size: 1.15rem;
}

.body-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-top: 4px;
}

.body-card:hover h3 {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 860px) {
  .bodies {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .bodies {
    grid-template-columns: 1fr;
  }
}

/* Software */

.software {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* The apps get a full-width card: picture left, apps right. */
.software .tool-apps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 32px;
  align-content: start;
}

.software .tool-apps > img {
  grid-row: 1 / span 3;
  height: 100%;
  min-height: 280px;
}

.tool-apps h3 {
  margin-bottom: 12px;
}

.tool-apps .store-note {
  align-self: end;
  margin-top: 12px;
}

@media (max-width: 860px) {
  .software .tool-apps {
    grid-template-columns: 1fr;
  }
  .software .tool-apps > img {
    grid-row: auto;
    min-height: 0;
  }
}

.tool {
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool p {
  color: var(--ink-soft);
}

.tool .actions {
  margin-top: auto;
  padding-top: 8px;
}

.tool img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1.5px solid var(--line);
}

.tool .actions .btn {
  padding: 10px 16px;
  font-size: 0.95rem;
}

.tool-apps img {
  border: 0;
  object-position: center;
  background: var(--blue);
}

/* The Playground banner is a wide logo; show all of it on blue. */
.tool img.tool-banner {
  object-fit: contain;
  border: 0;
  background: var(--blue);
}

/* One row per app: icon, name, and a link per store (App Store links go next to Google Play). */
.apps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 4px 14px;
}

.apps li img {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  aspect-ratio: auto;
  box-shadow: 0 0 0 1.5px var(--line);
}

.apps strong {
  display: block;
  color: var(--ink);
}

.apps span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.apps .stores {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.store {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.store:hover {
  background: var(--blue);
}

.store-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .software {
    grid-template-columns: 1fr;
  }
  .tool-apps {
    grid-row: auto;
  }
}

/* Video */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

.video button {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: center / cover no-repeat;
}

.video button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%230171c5'/%3E%3C/svg%3E")
    center / 44px no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Research */

.papers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Cards share their rows, so titles, authors and buttons line up side by side. */
.paper {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  padding-bottom: 22px;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}

.paper > :not(.video) {
  margin-left: 24px;
  margin-right: 24px;
}

.paper .video {
  border-radius: 0;
}

.paper h3 {
  margin-top: 20px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.paper .venue {
  color: var(--blue);
  font-weight: 700;
  margin-top: 6px;
}

.paper .authors {
  color: var(--ink-soft);
  margin-top: 4px;
  font-size: 0.95rem;
}

.paper .actions {
  margin-top: 18px;
  align-self: end;
}

.paper .btn {
  padding: 9px 16px;
  font-size: 0.95rem;
}

.bibtex {
  margin-top: 14px;
}

.bibtex summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue);
}

.bibtex pre {
  margin: 10px 0 0;
  padding: 14px 16px;
  background: var(--blue-wash);
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .papers {
    grid-template-columns: 1fr;
  }
}

/* Community */

.community {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.community a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.community img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 8px;
}

.join {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

@media (max-width: 760px) {
  .community {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 40px;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .brand {
  margin-bottom: 12px;
}

.site-footer .fine {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
}

/* Text pages (privacy) */

.page-hero {
  background: var(--blue);
  color: #fff;
  padding: 56px 0 48px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
}

.page-hero p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.prose {
  max-width: 46rem;
  padding-top: 48px;
  padding-bottom: 80px;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 2.2em 0 0.6em;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.4em;
}

.prose p,
.prose ul {
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose dt {
  font-weight: 700;
}

.prose dd {
  margin: 0 0 0.9em;
  color: var(--ink-soft);
}

/* GitHub numbers and the latest release */

.release {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr auto;
  align-items: center;
  gap: 12px 28px;
  margin: 0 0 40px;
  padding: 20px 24px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.release h3 {
  font-size: 1.15rem;
}

.release time {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.release ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.release-link {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .release {
    grid-template-columns: 1fr;
  }
}



.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 40px;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--blue-wash);
}

.stats dt {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.stats dd {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  font-variation-settings: "wdth" 106;
  color: var(--blue);
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Language menu */

.lang-menu {
  position: relative;
  margin-left: 4px;
}

.lang-menu summary {
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary::after {
  content: " \25BE";
}

.lang-menu summary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 30, 60, 0.25);
  min-width: 150px;
}

.lang-menu ul a {
  display: block;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.lang-menu ul a:hover {
  background: var(--blue-wash);
}

.store-note a {
  display: block;
}

@media (max-width: 1120px) {
  .lang-menu {
    margin: 0;
  }
  .lang-menu summary {
    padding: 12px 4px;
  }
  .lang-menu ul {
    position: static;
    box-shadow: none;
    background: none;
    padding: 0 0 0 8px;
  }
  .lang-menu ul a {
    color: #fff;
  }
}

/* Korean breaks between words, not inside them. */
:lang(ko) body {
  word-break: keep-all;
}

/* FAQ */

.faq {
  padding-top: 32px;
  padding-bottom: 96px;
}

.faq details {
  max-width: 760px;
  border-bottom: 1.5px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--blue);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.faq details p:last-child {
  margin-bottom: 22px;
}
