/* hydor.app: the website. Dark, like the app's own dark theme, with the water of its Ω. No framework. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-latin-wght-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-latin-ext-wght-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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-greek-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-greek-wght-normal.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-greek-ext-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-greek-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/jetbrains-mono-latin-wght-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;
}

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;
  --bg: #000;
  --panel: #0b0e13;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);
  --fg: #e9edf5;
  --fg-2: #bcc4d3;
  --fg-3: #8f99ab;
  /* The sea in Hydor's marks: turquoise to Aegean blue. */
  --w1: #5eead4;
  --w2: #38bdf8;
  --w3: #60a5fa;
  --water: linear-gradient(100deg, var(--w1), var(--w2) 50%, var(--w3));
  --accent: #8aa8ff;
  --accent-fg: #0b1226;
  --amber: #f2b468;
  --ok: #6fd39a;
  --err: #f28b8b;
  --busy: #5cc8e8;
  --claude: #f0a07f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 64px;
}

/* Base */

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

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
}

code,
pre {
  font-variant-ligatures: none;
}

:focus-visible {
  outline: 2px solid var(--w2);
  outline-offset: 3px;
}

::selection {
  background: rgba(56, 189, 248, 0.35);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--fg);
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-top: clamp(104px, 13vw, 168px);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(44px, 6vw, 68px);
  text-align: center;
}

.section-head.left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w2);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
}

.section-head > p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--fg-2);
  text-wrap: pretty;
}

.section-head.left > p:not(.eyebrow) {
  margin-left: 0;
}

.section-head a {
  color: var(--w2);
}

/* A phrase of a heading that stays on one line. */
.nb {
  white-space: nowrap;
}

.water-text {
  background: linear-gradient(100deg, var(--w1) 0%, var(--w2) 30%, var(--w3) 60%, var(--w1) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tide 10s linear infinite;
}

@keyframes tide {
  to {
    background-position: -200% 0;
  }
}

/* Buttons */

.btn {
  --h: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn:active {
  transform: scale(0.97);
}

.btn .ic {
  width: 18px;
  height: 18px;
}

.btn-sm {
  --h: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-lg {
  --h: 54px;
  padding: 0 26px;
  font-size: 16px;
}

.btn-primary {
  overflow: hidden;
  color: #04121b;
  background: var(--water);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.25), 0 10px 32px -10px rgba(56, 189, 248, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.45), 0 16px 44px -10px rgba(56, 189, 248, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.btn-note {
  color: var(--fg-3);
  font-weight: 500;
}

.play-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--fg);
  color: #000;
  transition: transform 0.3s var(--ease);
}

.play-dot .ic {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.btn:hover .play-dot {
  transform: scale(1.08);
}

/* Header: the wordmark comes in once the big one at the top has gone by */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.66);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}

.nav.menu-open {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: var(--line);
}

.nav-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(100% - 40px, 1240px);
  height: var(--nav-h);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  padding: 8px 0;
  color: var(--fg);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.nav.show-brand .brand,
.nav.menu-open .brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.brand .wordmark {
  width: 100px;
}

.wordmark {
  display: block;
  height: auto;
  overflow: visible;
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a,
.nav-gh {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover,
.nav-gh:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.nav-end {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-gh .ic {
  width: 18px;
  height: 18px;
}

.nav-menu {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--fg);
  cursor: pointer;
}

.nav-menu .ic {
  width: 22px;
  height: 22px;
}

.nav-sheet {
  display: grid;
  gap: 2px;
  padding: 8px 16px 20px;
  border-top: 1px solid var(--line);
}

.nav-sheet[hidden] {
  display: none;
}

.nav-sheet a {
  padding: 12px 8px;
  border-radius: 10px;
  color: var(--fg-2);
  text-decoration: none;
  font-size: 16px;
}

.nav-sheet a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

/* The water's wordmark: water rises in the Ω, then ebbs and swells */

.wm-fill {
  transform: translateY(112px);
}

.hero-mark .wm-fill {
  animation: wm-fill 2s var(--ease) 0.3s forwards;
}

.wordmark.in .wm-fill {
  animation: wm-fill 1.8s var(--ease) 0.2s forwards;
}

.wm-ebb {
  animation: wm-ebb 3.2s ease-in-out 2.3s infinite;
}

.wm-bob {
  animation: wm-bob 2.6s ease-in-out infinite;
}

.wm-swell {
  animation: wm-swell 1.5s linear infinite;
}

@keyframes wm-fill {
  to {
    transform: translateY(8px);
  }
}

@keyframes wm-ebb {
  50% {
    transform: translateY(12px);
  }
}

@keyframes wm-bob {
  50% {
    transform: translateY(4px);
  }
}

@keyframes wm-swell {
  to {
    transform: translateX(-36px);
  }
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 72px));
  padding-bottom: clamp(24px, 4vw, 48px);
}

.water {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  width: 100%;
  height: min(100%, 1150px);
  opacity: 0;
  transition: opacity 1.6s ease;
  -webkit-mask-image: linear-gradient(#000 0%, #000 40%, transparent 90%);
  mask-image: linear-gradient(#000 0%, #000 40%, transparent 90%);
}

.water.on {
  opacity: 1;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 600px;
  width: min(1500px, 150vw);
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.18), rgba(94, 234, 212, 0.06) 50%, transparent 78%);
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-mark {
  width: min(320px, 70vw);
  color: var(--fg);
}

.tagline {
  margin: 22px 0 0;
  font-size: 15.5px;
  color: var(--fg-3);
}

.tagline span {
  color: var(--fg-2);
  font-style: italic;
}

.hero h1 {
  margin-top: clamp(36px, 5vh, 52px);
  font-size: clamp(2.8rem, 7.2vw, 5.6rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.048em;
}

.lede {
  max-width: 680px;
  margin: 26px auto 0;
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.fine {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--fg-3);
}

.fine a {
  color: var(--fg-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}

.fine a:hover {
  color: var(--fg);
  text-decoration-color: var(--w2);
}

.stage {
  position: relative;
  width: min(100% - 40px, 1120px);
  margin: clamp(52px, 7vw, 84px) auto 0;
  perspective: 1800px;
}

.js .stage {
  animation: rise 1.3s var(--ease) 0.4s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
}

.stage-tilt {
  transform-origin: 50% 0;
  transform: rotateX(var(--rx, 12deg)) scale(var(--s, 0.96));
  transition: transform 0.15s linear;
}

/* A window of the app: every screenshot sits in one */

.window {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #0b0d11;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 120px -40px rgba(56, 189, 248, 0.3), 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #111419;
}

.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-bar i:nth-child(1) {
  background: #ec6a5f;
}

.window-bar i:nth-child(2) {
  background: #e0b54b;
}

.window-bar i:nth-child(3) {
  background: #5fc454;
}

.window-bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-3);
}

.window img {
  display: block;
  width: 100%;
  height: auto;
}

/* The agents and models it works with */

.agents {
  overflow: clip;
  padding-top: clamp(80px, 9vw, 112px);
}

.agents-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 14px;
  color: var(--fg-3);
}

.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 6px;
  list-style: none;
}

.marquee-set li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
}

.marquee-set i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Why: three ideas */

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

.pillar,
.y-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.pillar-icon,
.y-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 13px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--w2);
}

.pillar-icon .ic,
.y-icon .ic {
  width: 22px;
  height: 22px;
}

.pillar h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.pillar p,
.y-card p {
  margin: 10px 0 0;
  font-size: 15.5px;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* The scripted demo */

.demo {
  max-width: 900px;
  margin: 0 auto;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.demo-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--fg-3);
  font: inherit;
  font-size: 14.5px;
  font-weight: 550;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.demo-tab:hover {
  color: var(--fg);
}

.demo-tab[aria-selected='true'] {
  color: var(--fg);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}

.demo-tab-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--water);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}

.demo-tab[aria-selected='true'] .demo-tab-bar {
  transform: scaleX(var(--p, 0));
}

.demo-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: #0b0d11;
  box-shadow: 0 60px 140px -50px rgba(56, 189, 248, 0.3), 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.demo-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.spark {
  width: 16px;
  height: 16px;
  flex: none;
  background: var(--claude);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M18.7 5.3 5.3 18.7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.3 5.3l13.4 13.4M18.7 5.3 5.3 18.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.demo-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  color: var(--fg-3);
}

.demo-path {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg-2);
  font-size: 12.5px;
  font-weight: 550;
}

.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status[data-state='working'] {
  color: var(--busy);
  background: rgba(92, 200, 232, 0.1);
}

.status[data-state='working']::before {
  animation: pulse 1.3s ease-in-out infinite;
}

.status[data-state='needs'] {
  color: var(--amber);
  background: rgba(242, 180, 104, 0.12);
}

.status[data-state='ready'] {
  color: var(--ok);
  background: rgba(111, 211, 154, 0.1);
}

.demo-body {
  position: relative;
  height: 480px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 0, #000 36px);
  mask-image: linear-gradient(transparent 0, #000 36px);
}

.demo-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 22px;
  transition: transform 0.7s var(--ease);
}

.d-item {
  animation: item-in 0.55s var(--ease) both;
}

@keyframes item-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.d-user {
  align-self: flex-end;
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px;
  background: #1d2129;
  font-size: 15px;
  line-height: 1.5;
}

.d-say {
  font-size: 15px;
  line-height: 1.65;
}

.d-say b {
  font-weight: 650;
}

.d-say code,
.d-tool code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1a1e26;
  font-family: var(--mono);
  font-size: 0.86em;
}

.w {
  opacity: 0;
  transition: opacity 0.35s;
}

.w.on {
  opacity: 1;
}

.d-tool,
.d-app {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0f1217;
  color: var(--fg-3);
  font-size: 14px;
}

.d-tool .ic,
.d-app .ic {
  width: 17px;
  height: 17px;
}

.t-name {
  min-width: 0;
  overflow: hidden;
  color: var(--fg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t-name.q {
  color: var(--fg-2);
}

.t-meta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.d-tool.ok .t-meta {
  color: var(--ok);
}

.d-app {
  border-color: rgba(138, 168, 255, 0.32);
  background: rgba(138, 168, 255, 0.06);
}

.d-app .ic {
  color: var(--accent);
}

.d-app-args {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spin {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(92, 200, 232, 0.22);
  border-top-color: var(--busy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.d-diff,
.d-trip,
.d-table {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0f1217;
}

.d-diff-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 14px;
}

.d-diff-head .ic {
  width: 17px;
  height: 17px;
}

.d-diff-head b {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
}

.d-diff-head .add {
  color: var(--ok);
}

.d-diff-head .del {
  color: var(--err);
}

.d-diff pre {
  margin: 0;
  padding: 8px 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  scrollbar-width: none;
}

.d-diff .l {
  display: block;
  padding: 0 14px;
  color: var(--fg-3);
  white-space: pre;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.d-diff .l::before {
  content: '  ';
}

.d-diff .l.a {
  background: rgba(111, 211, 154, 0.1);
  color: #c9f2d8;
}

.d-diff .l.a::before {
  content: '+ ';
  color: var(--ok);
}

.d-diff .l.d {
  background: rgba(242, 139, 139, 0.1);
  color: #f6caca;
}

.d-diff .l.d::before {
  content: '- ';
  color: var(--err);
}

.d-diff .l.pre,
.d-table tr.pre {
  opacity: 0;
  transform: translateX(-6px);
}

.d-approve {
  overflow: hidden;
  border: 1px solid rgba(242, 180, 104, 0.55);
  border-radius: 14px;
  background: linear-gradient(rgba(242, 180, 104, 0.07), rgba(242, 180, 104, 0.02));
  box-shadow: 0 0 0 4px rgba(242, 180, 104, 0.06);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}

.d-approve.gone {
  opacity: 0;
  transform: scale(0.98);
}

.d-approve-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(242, 180, 104, 0.18);
  background: rgba(242, 180, 104, 0.06);
  font-size: 14.5px;
  font-weight: 600;
}

.d-approve-head .ic {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.d-approve-head span {
  margin-left: auto;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.d-approve pre {
  margin: 12px 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0d11;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.d-approve pre .c {
  color: var(--fg-3);
}

.d-approve pre .k {
  color: var(--amber);
}

.d-approve pre .v {
  color: #9ecbff;
}

.d-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.d-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s;
}

.d-btn.allow {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-fg);
}

.d-btn.allow.press {
  transform: scale(0.94);
  box-shadow: 0 0 0 6px rgba(138, 168, 255, 0.25);
}

.d-btn.deny {
  border-color: transparent;
  color: var(--fg-2);
}

.demo-cursor {
  position: absolute;
  z-index: 5;
  left: 70%;
  top: 90%;
  width: 22px;
  height: 22px;
  opacity: 0;
  pointer-events: none;
  transition: left 0.9s var(--ease), top 0.9s var(--ease), opacity 0.3s, transform 0.15s;
}

.demo-cursor.instant {
  transition: none;
}

.demo-cursor.show {
  opacity: 1;
}

.demo-cursor.click {
  transform: scale(0.85);
}

.demo-cursor svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  stroke: #0b0d11;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.d-file {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 470px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #0f1217;
}

.d-file-ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(111, 211, 154, 0.12);
  color: var(--ok);
}

.d-file-ic .ic {
  width: 22px;
  height: 22px;
}

.d-file b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.d-file span {
  font-size: 12.5px;
  color: var(--fg-3);
}

.d-file p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-2);
}

.d-file .open {
  flex: none;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.d-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.d-table th,
.d-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.d-table th {
  background: #12161d;
  color: var(--fg-2);
  font-weight: 600;
}

.d-table td {
  color: var(--fg-2);
}

.d-table td:first-child {
  color: var(--fg);
  font-weight: 550;
}

.d-table tr:last-child td {
  border-bottom: 0;
}

.d-table tr.win td {
  background: rgba(56, 189, 248, 0.07);
}

.d-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-3);
}

.d-src {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 7px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg-2);
}

.d-src i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--c);
  opacity: 0.85;
}

.d-src b {
  font-weight: 600;
  color: var(--fg-3);
}

.d-trip-tabs {
  display: flex;
  gap: 18px;
  padding: 10px 14px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
  white-space: nowrap;
}

.d-trip-tabs span {
  padding-bottom: 9px;
}

.d-trip-tabs .on {
  color: var(--fg);
  box-shadow: inset 0 -2px 0 var(--fg);
}

.d-trip-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.d-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #0c1520;
}

.d-map .route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.8s var(--ease) 0.3s;
}

.d-trip.draw .route {
  stroke-dashoffset: 0;
}

.d-map .pin {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.4s, transform 0.5s var(--ease);
}

.d-trip.draw .pin {
  opacity: 1;
  transform: none;
}

.d-trip.draw .pin:nth-of-type(2) {
  transition-delay: 0.7s;
}

.d-trip.draw .pin:nth-of-type(3) {
  transition-delay: 1.3s;
}

.d-trip.draw .pin:nth-of-type(4) {
  transition-delay: 1.8s;
}

.d-days {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-days li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #12161d;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--fg-3);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}

.d-trip.draw .d-days li {
  opacity: 1;
  transform: none;
}

.d-trip.draw .d-days li:nth-child(2) {
  transition-delay: 0.25s;
}

.d-trip.draw .d-days li:nth-child(3) {
  transition-delay: 0.5s;
}

.d-trip.draw .d-days li:nth-child(4) {
  transition-delay: 0.75s;
}

.d-days b {
  display: block;
  color: var(--fg);
  font-weight: 600;
}

.d-days i {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(138, 168, 255, 0.14);
  color: var(--accent);
  font-style: normal;
  font-weight: 650;
}

.demo-input {
  margin: 0 16px 16px;
  padding: 14px 14px 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #0f1217;
}

.demo-typed {
  min-height: 24px;
  font-size: 15px;
  color: var(--fg);
}

.demo-typed .ph {
  color: var(--fg-3);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: var(--w2);
  animation: blink 1s steps(1) infinite;
}

.demo-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.demo-chip {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-2);
  font-size: 13px;
}

.demo-send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  transition: transform 0.15s;
}

.demo-send .ic {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
}

.demo-send.press {
  transform: scale(0.88);
}

.demo-caption {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--fg-3);
}

/* Features: a row each, the picture beside its words */

.rows {
  display: grid;
  gap: clamp(72px, 10vw, 128px);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.row.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.row.flip .row-copy {
  order: 2;
}

.row-copy h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  letter-spacing: -0.035em;
}

.row-copy > p {
  margin: 16px 0 0;
  font-size: 1.06rem;
  color: var(--fg-2);
  text-wrap: pretty;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  color: var(--fg-2);
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checks .ic {
  margin-top: 3px;
  color: var(--w1);
}

.row-shot {
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}

.row:hover .row-shot {
  transform: translateY(-4px);
}

/* Memory, found by what it means */

.mem {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(56, 189, 248, 0.08), transparent 60%), #0b0d11;
}

.mem-q {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #11151b;
  font-size: 15px;
}

.mem-q .ic {
  color: var(--fg-3);
}

.mem-q .caret {
  margin-left: -8px;
}

.mem-notes {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.mem-notes li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--fg-2);
  font-size: 14.5px;
  transition: border-color 0.4s, background-color 0.4s, color 0.4s, transform 0.5s var(--ease);
}

.mem-notes li.hit {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(94, 234, 212, 0.07);
  color: var(--fg);
  transform: translateX(5px);
}

.tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(138, 168, 255, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.mem-foot {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--fg-3);
}

/* Mobile */

.phone-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.phone-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

.ticks {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 16px;
}

.ticks .ic {
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--w2);
}

.ticks b {
  display: block;
  font-weight: 600;
}

.ticks span {
  font-size: 15px;
  color: var(--fg-2);
}

.phone-demo {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.phone {
  position: relative;
  margin: 0;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #333a45, #0e1116 38%, #1d222b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 90px -20px rgba(0, 0, 0, 0.95), 0 0 70px -12px rgba(56, 189, 248, 0.3);
}

.phone-big {
  width: min(330px, 78vw);
}

.phone-screen {
  position: relative;
  aspect-ratio: 780 / 1720;
  overflow: hidden;
  border-radius: 38px;
  background: radial-gradient(130% 75% at 50% 0%, #114560 0%, #08202f 42%, #03080d 100%);
}

.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 34px;
  background: #000;
  opacity: 0;
  transition: opacity 0.4s;
}

.phone-big.open .phone-screen::before {
  opacity: 1;
}

.lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 66px 12px 0;
  transition: transform 0.7s var(--ease), opacity 0.5s;
}

.phone-big.open .lock {
  opacity: 0;
  transform: translateY(-8%) scale(0.96);
}

.lock-date {
  font-size: 15px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.85);
}

.lock-time {
  margin-top: 2px;
  font-size: 78px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.notes {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 26px;
}

.note {
  display: grid;
  grid-template-rows: 0fr;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transition: grid-template-rows 0.5s var(--ease), margin 0.5s var(--ease), opacity 0.45s, transform 0.55s var(--ease);
}

.note.show {
  grid-template-rows: 1fr;
  margin-bottom: 8px;
  opacity: 1;
  transform: none;
}

.note-in {
  min-height: 0;
  overflow: hidden;
}

.note-card {
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(36, 44, 56, 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg);
}

.note-card.tap {
  animation: tap 0.35s var(--ease);
}

@keyframes tap {
  50% {
    transform: scale(0.97);
    background: rgba(56, 66, 82, 0.85);
  }
}

.note-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
  font-size: 12px;
  color: var(--fg-3);
}

.note-top span {
  margin-left: auto;
}

.note-icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 5px;
  background: #0b1a2c;
  fill: none;
  stroke: var(--w2);
}

.note-card b {
  font-weight: 600;
}

.note-card p {
  margin: 1px 0 0;
  color: var(--fg-2);
}

.note-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.note-btns span {
  flex: 1;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.15s, background-color 0.2s;
}

.note-btns .press {
  transform: scale(0.94);
  background: rgba(138, 168, 255, 0.4);
}

.note-done {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--ok);
  font-size: 13px;
  font-weight: 600;
}

.note.done .note-btns {
  display: none;
}

.note.done .note-done {
  display: flex;
}

.phone-app {
  position: absolute;
  inset: 34px 0 0;
  width: 100%;
  height: calc(100% - 34px);
  object-fit: cover;
  object-position: top;
  transform: translateY(102%);
  transition: transform 0.8s var(--ease);
}

.phone-big.open .phone-app {
  transform: none;
}

.phone-island {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 50%;
  width: 32%;
  height: 26px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}

.phone-glow {
  position: absolute;
  inset: 8% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.22), transparent 72%);
  animation: breathe 7s ease-in-out infinite;
}

/* The rest of the workspace */

.tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
  gap: 1px;
}

.tools li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px;
  background: #050709;
  transition: background-color 0.3s;
}

.tools li:hover {
  background: #0a0d12;
}

.tools .ic {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  color: var(--w2);
}

.tools b {
  font-size: 15.5px;
  font-weight: 600;
}

.tools span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3);
}

/* Yours */

.yours {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.y-card h3 {
  font-size: 1.16rem;
  letter-spacing: -0.015em;
}

/* Questions */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

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

.faq summary .ic {
  color: var(--fg-3);
  transition: transform 0.35s var(--ease);
}

.faq details[open] summary .ic {
  transform: rotate(180deg);
}

.faq details::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.4s var(--ease), content-visibility 0.4s allow-discrete;
}

.faq details[open]::details-content {
  height: auto;
}

.faq-a p {
  max-width: 660px;
  margin: 0;
  padding: 0 4px 24px;
  color: var(--fg-2);
}

.faq-a a {
  color: var(--w2);
}

/* Download, over the sea */

.download {
  isolation: isolate;
  overflow: clip;
  padding-bottom: clamp(190px, 20vw, 250px);
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(70% 55% at 50% 100%, rgba(56, 189, 248, 0.18), transparent 70%);
}

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

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  scroll-margin-top: 110px;
}

.dl-card h3 {
  font-size: 1.45rem;
}

.dl-card > p {
  margin: 10px 0 0;
  font-size: 15.5px;
  color: var(--fg-2);
}

.dl-mac {
  grid-row: span 2;
  border-color: rgba(56, 189, 248, 0.3);
  background: radial-gradient(120% 80% at 0% 0%, rgba(56, 189, 248, 0.15), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.dmg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 28px 0 0;
  padding: 28px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
}

.dmg figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--fg-2);
}

.dmg-app img {
  width: 76px;
  height: 76px;
  animation: drag 4.2s var(--ease) infinite;
}

.dmg-folder {
  display: grid;
  place-items: center;
  width: 84px;
  height: 70px;
  margin-bottom: 6px;
  border-radius: 10px 10px 12px 12px;
  background: linear-gradient(#6aa8f0, #3a78d0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
}

.dmg-folder .ic {
  width: 30px;
  height: 30px;
}

.dmg-arrow {
  width: 48px;
  height: 20px;
  color: var(--fg-3);
}

@keyframes drag {
  0%,
  15% {
    transform: none;
    opacity: 1;
  }
  55% {
    transform: translateX(200px) scale(0.7);
    opacity: 0.9;
  }
  62% {
    transform: translateX(200px) scale(0.5);
    opacity: 0;
  }
  63% {
    transform: none;
    opacity: 0;
  }
  80%,
  100% {
    transform: none;
    opacity: 1;
  }
}

.dl-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--fg-2);
}

.dl-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dl-list .ic {
  margin-top: 3px;
  color: var(--w1);
}

.dl-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.dl-fine {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--fg-3);
}

.code {
  margin-top: auto;
  padding-top: 22px;
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #0d1015;
  font-size: 12.5px;
  color: var(--fg-3);
}

.code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: 0 0 12px 12px;
  background: #06080b;
  color: #d5dbe6;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.7;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #12161d;
  color: var(--fg-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.copy:hover {
  color: var(--fg);
}

.copy.done {
  border-color: rgba(111, 211, 154, 0.4);
  color: var(--ok);
}

.copy .ic {
  width: 15px;
  height: 15px;
}

.dl-cloud {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
}

.dl-cloud .y-icon {
  margin: 0;
}

.dl-cloud-copy {
  flex: 1 1 300px;
}

.dl-cloud-copy p {
  margin: 4px 0 0;
  font-size: 15.5px;
  color: var(--fg-2);
}

.dl-cloud .dl-btns {
  margin: 0;
  padding: 0;
}

.dl-card.flash {
  animation: flash 1.8s var(--ease);
}

@keyframes flash {
  30% {
    box-shadow: 0 0 0 2px var(--w2), 0 0 70px -10px rgba(56, 189, 248, 0.6);
  }
}

.dl-version {
  margin: 30px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--fg-3);
}

.dl-version a {
  color: var(--fg-2);
  text-underline-offset: 3px;
}

.waves {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 170px;
}

.wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
}

.wave-1 {
  fill: rgba(56, 189, 248, 0.13);
  animation: drift 22s linear infinite;
}

.wave-2 {
  height: 76%;
  fill: rgba(94, 234, 212, 0.12);
  animation: drift 15s linear infinite reverse;
}

.wave-3 {
  height: 52%;
  fill: #061520;
  animation: drift 11s linear infinite;
}

@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

/* Footer */

.footer {
  position: relative;
  margin-top: -1px;
  padding: 40px 0 34px;
  background: linear-gradient(#061520, #02070b 260px);
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-omega {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--w2);
}

.footer-brand p {
  max-width: 280px;
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--fg-3);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, auto));
  gap: 32px 64px;
}

.footer-cols h4 {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.footer-cols a {
  display: block;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--fg-2);
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--fg);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
}

.footer-base p {
  margin: 0;
}

.footer-base a {
  color: var(--fg-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}

.footer-base a:hover {
  color: var(--fg);
  text-decoration-color: var(--w2);
}

/* The tour film */

.tour {
  width: min(1120px, 94vw);
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 120px rgba(0, 0, 0, 0.8);
}

.tour[open] {
  animation: pop 0.4s var(--ease);
}

.tour::backdrop {
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tour video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
}

.tour-close {
  position: absolute;
  top: -52px;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(20, 24, 30, 0.9);
  color: var(--fg);
  cursor: pointer;
}

.tour-close .ic {
  width: 20px;
  height: 20px;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

/* 404 */

.lost {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
}

.lost .wordmark {
  width: min(320px, 70vw);
  margin: 0 auto 36px;
  color: var(--fg);
}

.lost h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.lost p {
  margin: 16px 0 32px;
  color: var(--fg-2);
}

/* Shared motion */

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes breathe {
  50% {
    opacity: 0.75;
    transform: scale(1.07);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Smaller screens */

@media (max-width: 1080px) {
  .yours,
  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-in {
    display: flex;
  }

  .nav-links,
  .nav-gh-label {
    display: none;
  }

  .nav-end {
    margin-left: auto;
  }

  .nav-menu {
    display: grid;
  }

  .pillars {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .row,
  .row.flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .row.flip .row-copy {
    order: 0;
  }

  .phone-grid,
  .faq-wrap,
  .dl {
    grid-template-columns: 1fr;
  }

  .phone-demo {
    order: -1;
  }

  .phone-glow {
    inset: 6% 0;
  }

  .dl-mac {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 380px;
  }

  .tagline {
    max-width: 300px;
  }

  .window-bar {
    height: 24px;
    padding: 0 10px;
    gap: 5px;
  }

  .window-bar i {
    width: 7px;
    height: 7px;
  }

  .window-bar span {
    display: none;
  }

  .demo-body {
    height: 440px;
  }

  .demo-feed {
    padding: 22px 16px 18px;
  }

  .demo-head {
    padding: 16px 16px 12px;
  }

  .demo-tab {
    padding: 0 14px;
    font-size: 14px;
  }

  .d-trip-body {
    grid-template-columns: 1fr;
  }

  .mem {
    padding: 16px;
  }

  .dl-card {
    padding: 24px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nav-gh {
    display: none;
  }

  .yours,
  .tools {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .stage-tilt {
    transform: none;
  }
}

/* Search the docs: the header's button */

.nav-search,
.side-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg-3);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.nav-search:hover,
.side-search:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.24);
}

.nav-search .ic,
.side-search .ic {
  width: 16px;
  height: 16px;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #11151b;
  color: var(--fg-3);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* The search box */

.search {
  width: min(680px, 94vw);
  max-width: none;
  max-height: min(640px, 80vh);
  margin: 10vh auto auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #0b0e13;
  color: var(--fg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.search[open] {
  display: flex;
  flex-direction: column;
  animation: pop 0.3s var(--ease);
}

.search::backdrop {
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.search-box {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--line);
}

.search-box .ic {
  width: 19px;
  height: 19px;
  color: var(--fg-3);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 17px;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-close {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: transparent;
  color: var(--fg-3);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.search-results {
  flex: 1;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
}

.search-results:empty {
  display: none;
}

.search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--fg-2);
  text-decoration: none;
}

.search-results li[aria-selected='true'] a {
  background: rgba(56, 189, 248, 0.1);
}

.sr-where {
  display: block;
  font-size: 12px;
  color: var(--fg-3);
}

.search-results b {
  display: block;
  margin-top: 1px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
}

.sr-text {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-3);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search mark {
  padding: 0 1px;
  border-radius: 3px;
  background: rgba(94, 234, 212, 0.22);
  color: var(--fg);
}

.search-note {
  margin: 0;
  padding: 14px 18px 18px;
  font-size: 13.5px;
  color: var(--fg-3);
}

.search-note:empty {
  display: none;
}

/* The docs */

.docs-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  width: min(100% - 40px, 1320px);
  margin-inline: auto;
  padding-top: calc(var(--nav-h) + 20px);
}

.docs-side {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  align-self: start;
  height: calc(100vh - var(--nav-h) - 32px);
  padding: 4px 12px 40px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #262b36 transparent;
}

.side-search {
  width: 100%;
  border-radius: 10px;
}

.side-search kbd {
  margin-left: auto;
}

.side-group p {
  margin: 24px 0 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.side-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-group a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.side-group a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

.side-group a[aria-current='page'] {
  color: var(--fg);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: inset 2px 0 0 var(--w2);
}

.docs-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 48px;
  padding: 8px 0 120px;
}

.doc {
  min-width: 0;
  max-width: 780px;
}

.doc-crumbs {
  margin: 0;
  font-size: 13px;
  color: var(--fg-3);
}

.doc-crumbs a {
  color: var(--fg-2);
  text-decoration: none;
}

.doc-crumbs a:hover {
  color: var(--fg);
}

.doc-crumbs span {
  margin: 0 8px;
}

.doc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 22px;
}

.doc-head h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  letter-spacing: -0.035em;
}

.doc-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--w2);
}

.doc-body {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--fg-2);
}

.doc-body > :first-child {
  margin-top: 0;
}

.doc-body h2,
.doc-body h3,
.doc-body h4,
.doc-body h5 {
  position: relative;
  color: var(--fg);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.doc-body h2 {
  margin: 2.2em 0 0.6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  font-size: 1.55rem;
}

.doc-body h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.doc-body h4,
.doc-body h5 {
  margin: 1.5em 0 0.4em;
  font-size: 1.03rem;
  letter-spacing: -0.01em;
}

.anchor {
  margin-left: 10px;
  color: var(--fg-3);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.doc-body :is(h2, h3, h4, h5):hover .anchor,
.anchor:focus-visible {
  opacity: 1;
}

.doc-body p,
.doc-body ul,
.doc-body ol {
  margin: 0 0 1em;
}

.doc-body ul,
.doc-body ol {
  padding-left: 1.4em;
}

.doc-body li + li {
  margin-top: 0.4em;
}

.doc-body li > ul,
.doc-body li > ol {
  margin: 0.4em 0 0;
}

.doc-body a {
  color: var(--w2);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.35);
  text-underline-offset: 3px;
}

.doc-body a:hover {
  text-decoration-color: var(--w2);
}

.doc-body h2 a.anchor,
.doc-body h3 a.anchor,
.doc-body h4 a.anchor,
.doc-body h5 a.anchor {
  color: var(--fg-3);
  text-decoration: none;
}

.doc-body strong {
  color: var(--fg);
  font-weight: 600;
}

.doc-body :not(pre) > code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #12161d;
  color: #d5dbe6;
  font-family: var(--mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.doc-body .code {
  margin: 1.2em 0;
  padding-top: 0;
}

.doc-body pre {
  white-space: pre;
}

.in-app {
  color: var(--fg);
  font-weight: 550;
  border-bottom: 1px dotted rgba(56, 189, 248, 0.55);
  cursor: help;
}

.table-wrap {
  margin: 1.2em 0 1.4em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
}

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

.doc-body th {
  background: #0d1015;
  color: var(--fg);
  font-weight: 600;
}

.doc-body tr:last-child td {
  border-bottom: 0;
}

.doc-body blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--w2);
  border-radius: 0 10px 10px 0;
  background: rgba(56, 189, 248, 0.06);
}

.doc-body blockquote p:last-child {
  margin-bottom: 0;
}

.doc-body hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.doc-figure {
  margin: 1.6em 0 2em;
  text-align: center;
}

.doc-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(56, 189, 248, 0.18);
}

.doc-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-3);
}

/* Each topic's things to ask an agent, as the app offers them */
.doc-body #ask-an-agent ~ ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.doc-body #ask-an-agent ~ ul li {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  font-size: 15px;
}

.doc-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 64px;
}

.doc-pager a {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--fg);
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.doc-pager a:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.05);
}

.doc-pager span {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--fg-3);
}

.doc-pager .next {
  grid-column: 2;
  text-align: right;
}

.doc-edit {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--fg-3);
}

.doc-edit a {
  color: var(--fg-2);
  text-underline-offset: 3px;
}

.doc-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  font-size: 13.5px;
  scrollbar-width: none;
}

.doc-toc p {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.doc-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.doc-toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 1px solid transparent;
  color: var(--fg-3);
  line-height: 1.4;
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--fg);
  border-left-color: var(--fg-3);
}

/* The docs' first page */

.docs-home {
  padding: calc(var(--nav-h) + 56px) 0 140px;
}

.docs-hero {
  text-align: center;
}

.docs-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
}

.docs-hero > p:not(.eyebrow) {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--fg-2);
}

.big-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(640px, 100%);
  height: 58px;
  margin: 32px auto 0;
  padding: 0 14px 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-3);
  font: inherit;
  font-size: 16px;
  cursor: text;
  box-shadow: 0 20px 60px -30px rgba(56, 189, 248, 0.5);
  transition: border-color 0.2s;
}

.big-search:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.big-search .ic {
  width: 19px;
  height: 19px;
}

.big-search kbd {
  margin-left: auto;
}

.docs-group {
  margin-top: 64px;
}

.docs-group h2 {
  margin-bottom: 18px;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.docs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.docs-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 4px 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}

.docs-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.docs-card .doc-icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.docs-card b {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}

.docs-card span:last-child {
  grid-column: 2;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg-3);
}

@media (max-width: 1180px) {
  .docs-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-search span,
  .nav-search kbd {
    display: none;
  }

  .nav-search {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .docs-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .docs-side {
    position: static;
    height: auto;
    padding: 4px 0 0;
    overflow: visible;
  }

  .docs-side nav {
    display: none;
  }

  .side-search kbd,
  .big-search kbd {
    display: none;
  }

  .doc-body {
    font-size: 16px;
  }

  .doc-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-pager .next {
    grid-column: 1;
  }
}
