@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/roboto-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/roboto-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --shelf: #f6f8fc;
  --ink: #1f1f1f;
  --secondary: #444746;
  --edge: #c4c7c5;
  --hover: rgba(68, 71, 70, 0.08);
  --font-ui: Roboto, Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;
  --snap: 120ms;
  --standard: 240ms;
  --shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px rgba(60, 64, 67, 0.15);
  --compose: var(--paper);
  --well: var(--shelf);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #303134;
  --shelf: #3c4043;
  --ink: #e3e3e3;
  --secondary: #c4c7c5;
  --edge: #8e918f;
  --hover: rgba(196, 199, 197, 0.08);
  --shadow: none;
  --compose: var(--shelf);
  --well: var(--paper);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --paper: #303134;
    --shelf: #3c4043;
    --ink: #e3e3e3;
    --secondary: #c4c7c5;
    --edge: #8e918f;
    --hover: rgba(196, 199, 197, 0.08);
    --shadow: none;
    --compose: var(--shelf);
    --well: var(--paper);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/20px var(--font-ui);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.top-bar,
.foot-bar {
  border-bottom: 1px solid var(--edge);
}

.foot-bar {
  border-bottom: 0;
  border-top: 1px solid var(--edge);
}

.top,
.foot,
main,
.col {
  max-width: 640px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.top,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.brand img {
  display: block;
}

.top nav,
.foot nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  transition: background var(--snap) ease, color var(--snap) ease;
}

.theme:hover {
  background: var(--hover);
  color: var(--ink);
}

.theme .sun {
  display: none;
}

html[data-theme="dark"] .theme .moon {
  display: none;
}

html[data-theme="dark"] .theme .sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme .moon {
    display: none;
  }

  html:not([data-theme]) .theme .sun {
    display: block;
  }
}

.top nav a,
.foot nav a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--snap) ease;
}

.top nav a:hover,
.foot nav a:hover {
  color: var(--ink);
}

.foot {
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 32px;
}

.foot p {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

main {
  padding-top: 32px;
  padding-bottom: 32px;
}

main h1 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 40px;
  font-weight: 500;
}

main h2 {
  margin: 32px 0 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

main p,
main ul,
main ol {
  margin: 0 0 16px;
}

main li {
  margin: 0 0 8px;
}

main li:last-child {
  margin-bottom: 0;
}

main a {
  color: var(--ink);
}

main .lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 24px;
  color: var(--secondary);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--snap) ease;
}

.cta:hover {
  background: var(--secondary);
  color: var(--paper);
}

main .note {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

.assurances {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.assurances li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.assurances strong {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.assurances span {
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

@media (min-width: 640px) {
  .assurances {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .assurances li + li {
    padding-left: 16px;
    border-left: 1px solid var(--edge);
  }
}

.wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.wide h2,
.steps h3 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.wide > h2 {
  margin-bottom: 16px;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 96px;
  margin-bottom: 8px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--shelf);
  transition: border-color var(--snap) ease;
}

.steps li.is-on .step-visual {
  border-color: var(--ink);
}

.step-visual kbd {
  position: relative;
  background: var(--paper);
  transition: background var(--snap) ease, color var(--snap) ease;
}

.step-visual kbd::after,
.step-mic::after,
.step-send::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--ink);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--snap) ease;
}

.steps li.is-alt .step-visual kbd:first-of-type::after,
.steps li.is-z .step-visual kbd:last-of-type::after,
.steps li.is-pressed .step-mic::after,
.steps li.is-down .step-send::after {
  opacity: 1;
}

.steps li.is-alt .step-visual kbd:first-of-type,
.steps li.is-z .step-visual kbd:last-of-type {
  background: var(--ink);
  color: var(--paper);
}

.step-mic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--secondary);
  transition: color var(--snap) ease;
}

.step-mic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--secondary);
  opacity: 0;
  transition: opacity var(--standard) ease;
}

.steps li.is-pressed .step-mic {
  color: var(--ink);
}

.steps li.is-pressed .step-mic::before {
  opacity: 0.08;
}

.step-mic .mic-icon,
.step-mic .step-meter {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity var(--standard) ease;
}

.step-mic .step-meter {
  opacity: 0;
}

.steps li.is-live .step-mic .mic-icon {
  opacity: 0;
}

.steps li.is-live .step-mic .step-meter {
  opacity: 1;
}

.steps p,
.feature p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 20px;
}

.step-meter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 16px;
}

.step-meter span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 999px;
}

.step-meter span:nth-child(1) { background: #ea4335; }
.step-meter span:nth-child(2) { background: #fbbc04; }
.step-meter span:nth-child(3) { background: #34a853; }
.step-meter span:nth-child(4) { background: #4285f4; }

.step-send {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  transition: background var(--snap) ease, color var(--snap) ease, border-color var(--snap) ease;
}

.steps li.is-down .step-send {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.features {
  padding-bottom: 32px;
}

.feature {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}

.feature h2 {
  margin-bottom: 8px;
}

.feature img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: #ffffff;
}

.tip {
  margin-top: 8px;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .feature {
    grid-template-columns: 1fr 1fr;
  }

  .feature.flip img {
    order: 2;
  }
}

.stage {
  margin: 32px 0 0;
}

.compose {
  background: var(--compose);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.compose-title {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-bottom: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--well);
}

.field-label {
  font-weight: 400;
  color: var(--secondary);
}

.field-bar {
  display: block;
  width: 96px;
  height: 8px;
  border-radius: 8px;
  background: var(--edge);
}

.draft {
  margin: 16px 0;
  min-height: 96px;
  font-size: 14px;
  line-height: 20px;
}

.live {
  margin: 0;
  white-space: pre-wrap;
}

.cmd {
  color: var(--secondary);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--edge);
}

a.mic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--secondary);
  text-decoration: none;
}

a.mic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--secondary);
  opacity: 0;
  transition: opacity var(--standard) ease;
}

a.mic:hover::before,
a.mic.is-listening::before {
  opacity: 0.08;
}

.mic-icon,
.bars {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity var(--standard) ease;
}

.mic-icon {
  z-index: 1;
  opacity: 1;
}

.bars {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 20px;
  height: 16px;
  opacity: 0;
  pointer-events: none;
}

.bars span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  flex-shrink: 0;
}

.bars span:nth-child(1) { background: #ea4335; }
.bars span:nth-child(2) { background: #fbbc04; }
.bars span:nth-child(3) { background: #34a853; }
.bars span:nth-child(4) { background: #4285f4; }

a.mic.is-listening .mic-icon {
  opacity: 0;
}

a.mic.is-listening .bars {
  opacity: 1;
}

.chip,
.chips li {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--shelf);
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
}

.compose a.chip {
  background: var(--well);
}

a.chip {
  text-decoration: none;
  transition: border-color var(--snap) ease;
}

a.chip:hover {
  border-color: var(--secondary);
}

a.send {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--snap) ease;
}

a.send:hover {
  background: var(--hover);
}

.stage figcaption {
  margin-top: 8px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
}

.rows {
  margin: 0;
}

.rows div {
  padding: 16px 0;
  border-top: 1px solid var(--edge);
}

.rows dt {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.rows dd {
  margin: 4px 0 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 20px;
}

.band {
  background: var(--shelf);
  padding-top: 32px;
  padding-bottom: 32px;
}

.band h2 {
  margin-top: 0;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 24px;
  padding: 0 8px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--shelf);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.keys {
  color: var(--secondary);
}

main .closer {
  margin-top: 32px;
}

.meta {
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

code {
  font-family: var(--font-mono);
  font-size: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--standard) ease, transform var(--standard) ease;
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .top nav a,
  .foot nav a,
  .mic::before,
  .mic-icon,
  .bars,
  a.chip,
  a.send {
    transition: none;
  }
}

@media (max-width: 400px) {
  .top,
  .foot,
  main,
  .col,
  .wide {
    padding-left: 16px;
    padding-right: 16px;
  }

  main h1 {
    font-size: 32px;
  }
}
