.first-recording {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.recording-steps {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
  counter-reset: recording-step;
}

.recording-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink-2);
  counter-increment: recording-step;
}

.recording-steps li::before {
  display: grid;
  flex: 0 0 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  content: counter(recording-step);
}

.recording-steps li.is-complete::before {
  background: var(--green-bg);
  color: var(--green);
  content: "✓";
}

.recording-steps li[aria-current="step"] {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 650;
}

.recording-steps li[aria-current="step"]::before {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface-2));
  color: var(--ink);
}

.first-recording-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.first-recording-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.first-recording-copy p {
  margin: 0;
  color: var(--ink-2);
}

.first-recording-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.first-recording-actions .btn {
  min-height: 42px;
  justify-content: center;
  white-space: normal;
  text-align: center;
}

.practice-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}

.practice-brand span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.recording-demo-mobile-nav {
  display: none;
}

html:root .practice-topbar + .layout .page-wrap {
  animation: none;
}

.recording-demo .btn.accent,
.demo-source-dialog .btn.accent {
  --demo-action: color-mix(in srgb, var(--accent) 64%, #171718);
  background: var(--demo-action);
  border-color: var(--demo-action);
  box-shadow: none;
  color: #fff;
}

.recording-demo .btn.accent:hover,
.demo-source-dialog .btn.accent:hover {
  background: var(--demo-action);
  border-color: var(--demo-action);
}

html[data-skin="handsome"] .recording-demo-sidebar .side-head {
  padding: 12px 10px 0;
}

.recording-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 18px;
}

.recording-demo-head h1 {
  margin: 0 0 4px;
}

.recording-demo-head p,
.recording-demo .empty p {
  margin: 0;
  color: var(--ink-2);
}

.recording-demo .btn {
  min-height: 44px;
  justify-content: center;
  white-space: normal;
  text-align: center;
}

.recording-demo-table .badge {
  white-space: normal;
  align-items: baseline;
}

.recording-demo-table .badge::before {
  flex: none;
}

.recording-demo-media {
  max-width: 680px;
  margin-bottom: 16px;
}

.recording-demo-media h2 {
  margin: 0;
}

.recording-demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.recording-demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 12px;
}

.recording-demo-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.demo-header-actions,
.demo-source-heading,
.demo-source-actions,
.demo-tour-heading,
.demo-tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-header-actions,
.demo-tour-actions {
  flex-wrap: wrap;
}

.demo-header-actions [hidden] {
  display: none;
}

.demo-tour-anchor {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 100%;
}

.demo-tour-spotlight {
  position: fixed;
  inset: auto;
  z-index: 215;
  margin: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
  visibility: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 0 0 200vmax rgb(0 0 0 / .28);
  pointer-events: none;
}

.demo-tour-spotlight[data-spotlight-visible] {
  visibility: visible;
}

.demo-source-dialog .demo-tour-spotlight {
  box-shadow: 0 0 0 200vmax rgb(0 0 0 / .17);
}

.demo-tour-spotlight::backdrop {
  pointer-events: none;
}

.demo-tour-tip {
  position: fixed;
  inset: auto;
  z-index: 220;
  width: 320px;
  margin: 0;
  padding: 11px;
  overflow: visible;
  visibility: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, var(--line));
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.demo-tour-tip[data-placement] {
  visibility: visible;
}

.demo-tour-tip[data-constrained] {
  overflow: auto;
  overscroll-behavior: contain;
}

.demo-tour-tip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(var(--tour-arrow, 50%) - 5px);
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-top: inherit;
  border-inline-start: inherit;
  background: var(--surface);
}

.demo-tour-tip[data-placement="above"]::before {
  top: auto;
  bottom: -6px;
  transform: rotate(225deg);
}

.demo-tour-tip[data-placement="left"]::before,
.demo-tour-tip[data-placement="right"]::before {
  top: calc(var(--tour-arrow) - 5px);
}

.demo-tour-tip[data-placement="left"]::before {
  right: -6px;
  left: auto;
  transform: rotate(135deg);
}

.demo-tour-tip[data-placement="right"]::before {
  left: -6px;
  transform: rotate(-45deg);
}

.demo-tour-tip:is([data-placement="docked"], [data-constrained])::before {
  display: none;
}

[data-tour-highlight] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.demo-tour-heading,
.demo-source-heading {
  justify-content: space-between;
}

.demo-tour-heading span,
.demo-tour-tip p {
  color: var(--ink-2);
}

.demo-tour-tip p {
  margin: 4px 0 8px;
}

.demo-tour-tip .btn,
.demo-source-dialog .btn,
.demo-source-heading .icon-btn {
  min-height: 44px;
}

.demo-tour-tip .btn {
  padding-inline: 9px;
  white-space: normal;
}

.demo-tour-tip .btn:disabled {
  opacity: .45;
  cursor: default;
}

.demo-tour-exit {
  margin-inline-start: auto;
}

.demo-source-dialog {
  position: fixed;
  inset: 0;
  width: min(600px, calc(100% - 36px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.demo-source-dialog::backdrop {
  background: rgba(0, 0, 0, .55);
}

.demo-source-heading {
  margin-bottom: 12px;
}

.demo-source-heading .icon-btn {
  min-width: 44px;
}

.demo-source-heading h2,
.demo-source-dialog p.sub {
  margin: 0;
}

.demo-source-method {
  align-items: center;
  cursor: default;
  margin-bottom: 12px;
}

.demo-source-dialog .source-address-field {
  margin-bottom: 6px;
}

.demo-source-actions {
  justify-content: flex-end;
}

@media (max-width: 600px) {
  #source-modal.demo-source-dialog {
    inset: auto 0 10px;
    width: calc(100% - 20px);
    padding: 0;
  }
}

@media (max-width: 900px) {
  html[data-sidebar="rail"] .topbar.practice-topbar {
    margin-left: 0;
  }

  .recording-demo-sidebar {
    display: none;
  }

  .recording-demo-mobile-nav {
    display: block;
    flex: 1 0 100%;
  }

  .recording-demo-mobile-nav nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .recording-demo-mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 3px 4px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
  }

  .recording-demo-mobile-nav a svg {
    flex: none;
  }

  .recording-demo-mobile-nav a.active {
    background: var(--sidebar-active);
    color: var(--sidebar-active-ink);
    font-weight: 650;
  }

  html[data-skin="handsome"] .practice-topbar {
    height: calc(var(--header-h) + 50px);
    row-gap: 0;
    align-content: center;
  }

  html[data-skin="handsome"] .practice-topbar + .layout {
    padding-top: calc(var(--header-h) + 50px);
  }
}

@media (max-width: 560px) {
  .demo-header-actions:has(.demo-tour-anchor),
  .demo-header-actions .demo-tour-anchor,
  .demo-header-actions .demo-tour-anchor > .btn {
    width: 100%;
  }

  .demo-tour-tip .btn {
    width: auto;
  }

  .recording-demo-table {
    table-layout: fixed;
  }

  html:root .recording-demo-table :is(th, td) {
    padding: 8px;
    overflow-wrap: anywhere;
  }

  .recording-demo-table .badge {
    padding-inline: 5px;
  }
}

.lp {
  --lp-header-row: 44px;
  --lp-header-padding: 6px;
  --lp-header-height: calc(var(--lp-header-row) + 2 * var(--lp-header-padding));
}

.lp-top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-areas: "brand sections tools account";
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-rows: var(--lp-header-row);
  align-items: center;
  column-gap: clamp(4px, 1.2vw, 16px);
  padding-block: var(--lp-header-padding);
  background: var(--bg);
  box-shadow: inset 0 -1px var(--line);
}

.lp-top .lp-brand {
  grid-area: brand;
  min-width: 0;
  min-height: var(--lp-header-row);
  white-space: nowrap;
}

.lp-top-tools,
.lp-auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-top-tools {
  grid-area: tools;
  gap: 4px;
}

.lp-top-tools .icon-btn,
.lp-top .lp-lang button {
  min-width: 44px;
  min-height: var(--lp-header-row);
}

.lp-auth-links {
  grid-area: account;
}

.lp-top .lp-auth-links .btn {
  min-height: var(--lp-header-row);
  padding-block: 0;
  white-space: nowrap;
}

.lp-auth-links .btn,
.lp-plan .btn {
  justify-content: center;
}

.lp-auth {
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lp-auth-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 12px;
  margin-top: 4px;
}

.lp-auth-secondary a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-auth-secondary a:hover {
  color: var(--ink);
}

.lp-auth-secondary a:focus-visible {
  outline: 2px solid var(--accent);
  border-radius: 6px;
}

.lp-nav {
  grid-area: sections;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  justify-content: center;
}

.lp-nav a {
  display: grid;
  place-items: center;
  min-height: var(--lp-header-row);
  padding-inline: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.lp-nav a:hover,
.lp-nav a[aria-current="location"] {
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.lp-nav a[aria-current="location"] {
  box-shadow: inset 0 -3px var(--accent);
}

.lp-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.lp-section[id] {
  scroll-margin-top: calc(var(--lp-header-height) + 8px);
}

@media (max-width: 900px) {
  .lp {
    --lp-header-height: calc(2 * var(--lp-header-row) + 2 * var(--lp-header-padding));
  }

  .lp-top {
    grid-template-areas: "brand tools account" "sections sections sections";
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: repeat(2, var(--lp-header-row));
    column-gap: 6px;
  }

  .lp-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lp-top .lp-brand .brand-mark {
    display: none;
  }

  .lp-auth-links {
    gap: 4px;
  }

  .lp-top .lp-auth-links .btn {
    min-width: 44px;
    padding-inline: 8px;
  }
}

@media (max-width: 420px) {
  .lp-brand-domain {
    display: none;
  }

  .lp-top .lp-brand .brand-name,
  .lp-top .lp-auth-links .btn {
    font-size: 12px;
  }

  .lp-top .lp-auth-links .btn,
  .lp-top .lp-lang button {
    padding-inline: 5px;
  }
}

@media (max-width: 560px) {
  .recording-steps {
    grid-auto-flow: row;
    gap: 5px;
    margin-bottom: 14px;
  }

  .recording-steps li {
    min-height: 34px;
    padding: 4px 8px;
  }

  .first-recording-actions {
    width: 100%;
  }

  .first-recording-actions .btn {
    flex: 1 1 130px;
    min-height: 44px;
  }
}

@media (max-width: 440px) {
  .lp {
    padding-inline: 14px;
  }

  .lp-hero .lp-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .lp-hero .lp-cta .btn {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding-inline: 8px;
    white-space: normal;
  }

  .lp-hero .lp-cta .accent {
    grid-column: 1 / -1;
  }
}
