/* Masaya — landing oscura y técnica.
   Concepto: el teléfono es la única fuente de luz; alrededor, anotaciones de plano técnico en mono.
   Colores sacados del icono de la app y de la ventana de duplicación. */

/* Fuentes autoalojadas (sin peticiones a terceros), del paquete npm @fontsource 5.3.0, subconjunto latin.
   Instrument Sans: Copyright 2022 The Instrument Sans Project Authors.
   Geist Mono: Copyright 2024 The Geist Project Authors.
   Ambas bajo la SIL Open Font License 1.1 (https://openfontlicense.org). */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --d-bg: #18181b; /* logo-tile: la baldosa del icono */
  --d-bg-2: #1e1e1e; /* mirror-bar: barras de la ventana de duplicación */
  --d-bg-3: #2c2c2e; /* content (oscuro): tarjetas y teclas */
  --d-line: #333333; /* mirror-line */
  --d-ink: #f4f4f5; /* logo-phone: la mitad sólida del teléfono (16:1) */
  --d-ink-2: #aeaeb2; /* secondary text (8.3:1) */
  --d-ink-3: #8e8e93; /* tone-gray (5.4:1) */
  --d-blue: #0a84ff; /* logo-blue: el reflejo, siempre como trazo o luz */
  --d-blue-ink: #409cff; /* azul para texto sobre el fondo (6.3:1) */
  --d-green: #30d158; /* success (oscuro): estado conectado */
  --d-display: 'Instrument Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --d-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --d-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--d-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  font-family: var(--d-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--d-ink);
  background: var(--d-bg);
  -webkit-font-smoothing: antialiased;
}
:where(h1, h2, h3, h4, p, ul, ol, figure, pre) {
  margin: 0;
}
:where(a) {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
}
:focus-visible {
  outline: 2px solid var(--d-blue-ink);
  outline-offset: 2px;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}
[id] {
  scroll-margin-top: 16px;
}
.d-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.d-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 32px;
}
.d-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--d-ink);
  color: var(--d-bg);
  font-weight: 600;
  transform: translateY(-200%);
}
.d-skip:focus {
  transform: none;
}

/* ---------- nav ---------- */
.d-nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--d-line);
}
.d-nav__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.d-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.d-brand img {
  width: 28px;
  height: 28px;
}
.d-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  color: var(--d-ink-2);
}
.d-links a:hover,
.d-menu__panel nav a:hover {
  color: var(--d-ink);
}
.d-lang {
  display: flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--d-bg-2);
  box-shadow: inset 0 0 0 1px var(--d-line);
}
.no-js .d-lang {
  display: none;
}
.d-lang a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--d-ink-3);
  font: 500 13px var(--d-sans);
}
.d-lang a:hover {
  color: var(--d-ink);
}
.d-lang a[aria-current='true'] {
  background: var(--d-bg-3);
  color: var(--d-ink);
}

/* phone menu: native <details>, so it opens without JavaScript */
.d-menu {
  display: none;
  margin-left: auto;
}
.d-menu__btn {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--d-bg-2);
  box-shadow: inset 0 0 0 1px var(--d-line);
  color: var(--d-ink);
  list-style: none;
  cursor: pointer;
}
.d-menu__btn::-webkit-details-marker {
  display: none;
}
.d-menu[open] .d-menu__btn {
  background: var(--d-bg-3);
}
.d-menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px 32px 20px;
  border-bottom: 1px solid var(--d-line);
  background: var(--d-bg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.d-menu__panel nav {
  display: flex;
  flex-direction: column;
}
.d-menu__panel nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--d-line);
  font-size: 16px;
  color: var(--d-ink-2);
}
.d-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

/* ---------- buttons ---------- */
.d-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.d-btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 9px;
}
.d-btn--main {
  background: var(--d-ink);
  color: var(--d-bg);
}
.d-btn--main:hover {
  background: #ffffff;
}
.d-btn--line {
  color: var(--d-ink);
  box-shadow: inset 0 0 0 1px var(--d-line);
  background: var(--d-bg-2);
}
.d-btn--line:hover {
  box-shadow: inset 0 0 0 1px #3a444e;
}

/* ---------- hero ---------- */
.d-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 88px;
}
.d-hero > * {
  position: relative;
}
.d-title {
  margin-top: 0;
}
.d-h1 {
  font-family: var(--d-display);
  font-size: clamp(44px, 7vw, 100px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.d-reflbox {
  height: 0.5em;
  overflow: hidden;
  font-size: clamp(44px, 7vw, 100px);
}
.d-h1--refl {
  margin-top: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--d-blue);
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 62%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 62%);
  user-select: none;
}
.d-lead {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: 19px;
  color: var(--d-ink-2);
  text-wrap: balance;
}
.d-dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}
.d-mdl {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}
.d-mdl .d-btn {
  justify-content: center;
}
.d-hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--d-ink-3);
}
.d-hero-note a,
.d-step a,
.d-req a,
.d-os-card a {
  color: var(--d-blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* stage: the phone as light source + technical callouts */
.d-stage {
  --win-scale: 0.9;
  position: relative;
  height: 820px;
  margin-top: 72px;
}
.d-light {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(10, 132, 255, 0.38),
    rgba(10, 132, 255, 0.12) 55%,
    transparent
  );
  pointer-events: none;
}
.d-win {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
}
.d-win .xx-win {
  position: relative;
  width: 440px;
  height: 840px;
  transform: scale(var(--win-scale));
  transform-origin: top center;
}
.d-calls {
  margin: 0;
  padding: 0;
  list-style: none;
}
.d-call {
  position: absolute;
  right: calc(50% + 216px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--d-ink-2);
  text-align: left;
}
.d-call--r {
  right: auto;
  left: calc(50% + 216px);
  flex-direction: row-reverse;
  text-align: right;
}
.d-call b {
  display: block;
  color: var(--d-ink);
  font-weight: 500;
}
.d-call i {
  display: block;
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--d-ink-3));
}
.d-call--r i {
  background: linear-gradient(90deg, var(--d-ink-3), transparent);
}
.d-call i::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--d-blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.2);
}
.d-call--r i::before {
  margin-left: 0;
}
.d-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  z-index: 4;
  background: linear-gradient(rgba(24, 24, 27, 0), var(--d-bg));
}
.d-chips {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 5;
  margin: -40px 0 0;
  padding: 0 20px;
  list-style: none;
}
.d-chip {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--d-bg-2);
  box-shadow: inset 0 0 0 1px var(--d-line);
  font-size: 13px;
  color: var(--d-ink-2);
}

/* ---------- perks strip ---------- */
.d-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--d-line);
}
.d-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-left: 1px solid var(--d-line);
}
.d-perk:first-child {
  border-left: 0;
}
.d-perk b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.d-perk span {
  display: block;
  font-size: 14px;
  color: var(--d-ink-2);
}

/* ---------- sections ---------- */
.d-sec {
  padding-block: 120px;
}
.d-sec--tight {
  padding-top: 0;
}
.d-h2 {
  font-family: var(--d-display);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 15em;
}
.d-sub {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 18px;
  color: var(--d-ink-2);
}

main:focus {
  outline: none;
}
.d-h3 {
  margin-top: 56px;
  font-family: var(--d-display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
:where(.d-step, .d-req, .d-spec) :is(code, kbd) {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--d-bg-3);
  font-family: var(--d-mono);
  font-size: 0.88em;
  color: var(--d-ink);
  overflow-wrap: anywhere;
}

/* feature highlights */
.d-hl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin-top: 48px;
}
.d-hl__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--d-line);
  background: var(--d-bg-2);
}
.d-hl__ui {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(closest-side, rgba(10, 132, 255, 0.14), transparent), var(--d-bg-2);
  border-bottom: 1px solid var(--d-line);
  overflow: hidden;
}
.d-hl__txt {
  padding: 22px 22px 24px;
}
.d-hl__txt h3 {
  font-family: var(--d-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.d-hl__txt p {
  margin-top: 6px;
  font-size: 16px;
  color: var(--d-ink-2);
}
.d-hl__shot--devices {
  max-width: 340px;
}
.d-hl__shot--wifi {
  width: auto;
  max-height: 180px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--d-line);
}
.d-hl__capture {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.d-hl__shot--toolbar {
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--mirror-line);
}
.d-hl__keys {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--d-ink-2);
}
.d-hl__keys > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* features as a spec list */
.d-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  column-gap: 64px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--d-line);
}
.d-spec {
  padding: 22px 0;
  border-bottom: 1px solid var(--d-line);
}
.d-spec h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.d-spec p {
  margin-top: 3px;
  font-size: 16px;
  color: var(--d-ink-2);
}

/* setup: steps + terminal */
.d-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}
.d-split > * {
  min-width: 0;
}
.d-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}
.d-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
}
.d-step__n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--d-bg-3);
  box-shadow: inset 0 0 0 1px var(--d-line);
  font-family: var(--d-mono);
  font-size: 14px;
  color: var(--d-ink);
}
.d-step h3 {
  font-size: 17px;
  font-weight: 600;
}
.d-step p {
  margin-top: 3px;
  font-size: 16px;
  color: var(--d-ink-2);
}
.d-term {
  overflow: hidden;
  border-radius: 14px;
  background: var(--d-bg-2);
  box-shadow:
    inset 0 0 0 1px var(--d-line),
    0 30px 80px rgba(0, 0, 0, 0.5);
  font-family: var(--d-mono);
  font-size: 14px;
  line-height: 1.75;
}
.d-term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--d-line);
  color: var(--d-ink-3);
  font-size: 12px;
}
.d-term__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--d-line);
}
.d-term__bar span {
  margin-left: 8px;
}
.d-term__body {
  padding: 20px 22px 24px;
  color: var(--d-ink-2);
  font: inherit;
  white-space: pre;
  overflow-x: auto;
}
.d-term .p {
  color: var(--d-ink-3);
}
.d-term .c {
  color: var(--d-ink);
}
.d-term .ok {
  color: var(--d-green);
}
.d-term .b {
  color: var(--d-blue-ink);
}

/* requirements */
.d-req {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.d-req li {
  padding: 20px;
  border-radius: 14px;
  background: var(--d-bg-2);
  box-shadow: inset 0 0 0 1px var(--d-line);
}
.d-req b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.d-req span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: var(--d-ink-2);
}

/* first launch, per OS */
.d-sec .d-sub + .d-install {
  margin-top: 48px;
}
.d-install {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.d-os-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--d-bg-2);
  box-shadow: inset 0 0 0 1px var(--d-line);
}
.d-os-card h3 {
  font-size: 17px;
  font-weight: 600;
}
.d-os-card ol {
  margin-top: 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  color: var(--d-ink-2);
}
.d-os-card p {
  margin-top: 12px;
  max-width: 60ch;
  font-size: 16px;
  color: var(--d-ink-2);
}
.d-os-card ol b {
  color: var(--d-ink);
  font-weight: 500;
}
.d-sys {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--d-bg-3);
  font-size: 13px;
  color: var(--d-ink-2);
}
.d-sys b {
  color: var(--d-ink);
  font-size: 14px;
  font-weight: 600;
}
.d-sys__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.d-sys__btns span {
  padding: 5px 12px;
  border-radius: 7px;
  background: #3a3a3c;
  color: var(--d-ink);
  font-size: 13px;
}
/* a shade darker than logo-blue so white text keeps 4.5:1 */
.d-sys__btns span.on {
  background: #0a6fe0;
  color: #ffffff;
}

/* keyboard */
.d-keys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.d-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: var(--d-bg-2);
  box-shadow: inset 0 0 0 1px var(--d-line);
}
.d-key > span {
  font-size: 16px;
  color: var(--d-ink-2);
}
.d-caps {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
  font: inherit;
}
.d-cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--d-bg-3);
  box-shadow:
    inset 0 -2px 0 #0b0e11,
    inset 0 0 0 1px #2c343c;
  font-family: var(--d-sans);
  font-size: 15px;
  color: var(--d-ink);
  white-space: nowrap;
}
.d-os {
  margin-top: 16px;
  max-width: 65ch;
  font-size: 15px;
  color: var(--d-ink-2);
}

/* comparison */
.d-table-wrap {
  overflow-x: auto;
  margin-top: 40px;
}
.d-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.d-table th,
.d-table td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid var(--d-line);
}
.d-table thead th {
  font-size: 14px;
  font-weight: 500;
  color: var(--d-ink-3);
}
.d-table thead th.us {
  color: var(--d-blue-ink);
}
.d-table tbody th {
  font-weight: 500;
  color: var(--d-ink);
}
.d-table td {
  color: var(--d-ink-2);
}
.d-table td.us {
  color: var(--d-ink);
  background: rgba(10, 132, 255, 0.07);
}

/* faq */
.d-faq {
  margin-top: 40px;
  border-top: 1px solid var(--d-line);
}
.d-faq details {
  border-bottom: 1px solid var(--d-line);
}
.d-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
}
.d-faq summary::-webkit-details-marker {
  display: none;
}
.d-faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--d-ink-3);
}
.d-faq details[open] summary::after {
  content: '–';
}
.d-faq details p {
  padding: 0 4px 22px;
  max-width: 65ch;
  font-size: 16px;
  color: var(--d-ink-2);
}

/* ---------- footer ---------- */
.d-foot {
  border-top: 1px solid var(--d-line);
  font-size: 14px;
  color: var(--d-ink-2);
}
.d-foot .d-brand {
  color: var(--d-ink);
}
.d-foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-block: 28px;
}
.d-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}
.d-foot a:hover {
  color: var(--d-ink);
}
.d-foot__by {
  font-size: 13px;
  color: var(--d-ink-3);
}
.d-foot__by a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--d-ink-2);
}

/* ---------- privacy page: a readable prose column ---------- */
.d-prose {
  max-width: 720px;
  padding-block: 88px 120px;
  font-size: 17px;
  color: var(--d-ink-2);
}
.d-prose h1 {
  font-family: var(--d-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--d-ink);
  text-wrap: balance;
}
.d-prose .d-stamp {
  margin-top: 16px;
  font-family: var(--d-mono);
  font-size: 13px;
  color: var(--d-ink-3);
}
.d-prose h2 {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--d-line);
  font-family: var(--d-display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--d-ink);
}
.d-prose p,
.d-prose ul {
  margin-top: 14px;
}
.d-prose ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.d-prose strong {
  color: var(--d-ink);
  font-weight: 600;
}
.d-prose a {
  color: var(--d-blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.d-prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--d-bg-3);
  font-family: var(--d-mono);
  font-size: 0.88em;
  color: var(--d-ink);
}

/* =========== App screenshots =========== */
/* Real captures of the app. The hero keeps a drawn window frame around its capture. */
.mm {
  --mirror-canvas: #000000;
  --mirror-bar: var(--d-bg-2);
  --mirror-line: var(--d-line);
  --mirror-muted: var(--d-ink-2);
  font-family: var(--d-sans);
  font-size: 13px;
  line-height: 18px;
  font-synthesis: none;
  user-select: none;
}
.d-shot {
  display: block;
  width: 100%;
  height: auto;
}
.xx-win {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--mirror-canvas);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 8px 18px rgba(0, 0, 0, 0.25);
}
.xx-win__body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.xx-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
}
.xx-bar--dark {
  background: var(--mirror-bar);
  border-bottom: 1px solid var(--mirror-line);
  color: var(--mirror-muted);
}
.xx-lights {
  position: absolute;
  left: 10px;
  display: flex;
  gap: 8px;
}
.xx-lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.xx-lights i:nth-child(1) {
  background: #ff5f57;
}
.xx-lights i:nth-child(2) {
  background: #febc2e;
}
.xx-lights i:nth-child(3) {
  background: #28c840;
}

/* =========== responsive =========== */

/* nav collapses into the menu before the links run out of room */
@media (max-width: 940px) {
  .d-links,
  .d-nav__in > .d-lang,
  .d-nav__dl {
    display: none;
  }
  .d-menu {
    display: block;
  }
}

/* no room for the callouts beside the window: show them as chips under it */
@media (max-width: 1040px) {
  .d-calls {
    display: none;
  }
  .d-chips {
    display: flex;
  }
  .d-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .d-perk:nth-child(odd) {
    border-left: 0;
  }
  .d-perk:nth-child(n + 3) {
    border-top: 1px solid var(--d-line);
  }
}

/* phone (the 390px mockup) */
@media (max-width: 640px) {
  .d-wrap {
    padding-inline: 20px;
  }
  .d-nav__in {
    gap: 16px;
  }
  .d-hero {
    padding-top: 56px;
  }
  .d-title {
    margin-top: 22px;
  }
  .d-reflbox {
    display: none;
  }
  .d-lead {
    margin-top: 18px;
    font-size: 17px;
  }
  .d-dl {
    display: none;
  }
  .d-mdl {
    display: flex;
  }
  .d-stage {
    --win-scale: 0.62;
    height: 560px;
    margin-top: 48px;
  }
  .d-light {
    width: 460px;
    height: 460px;
  }
  .d-perks {
    grid-template-columns: minmax(0, 1fr);
  }
  .d-perk,
  .d-perk:nth-child(odd) {
    padding: 18px 4px;
    border-left: 0;
    border-top: 1px solid var(--d-line);
  }
  .d-perk:first-child {
    border-top: 0;
  }
  .d-sec {
    padding-block: 80px;
  }
  .d-sec--tight {
    padding-top: 0;
  }
  .d-hl__ui {
    height: 200px;
  }
  .d-split {
    gap: 40px;
  }
  .d-table th,
  .d-table td {
    padding: 14px 8px;
    font-size: 15px;
    hyphens: auto;
  }
  .d-term__body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .d-foot nav {
    margin-left: 0;
  }
  .d-menu__panel {
    padding-inline: 20px;
  }
  .d-h3 {
    margin-top: 44px;
  }
  .d-prose {
    padding-block: 56px 80px;
  }
}

@media (max-width: 940px), (pointer: coarse) {
  .d-btn--sm {
    height: 44px;
  }
  .d-lang {
    padding: 0;
  }
  .d-lang a {
    height: 44px;
    min-width: 48px;
    justify-content: center;
  }
  .d-brand,
  .d-links a,
  .d-foot nav a,
  .d-foot__by a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .d-foot nav {
    gap: 4px 20px;
  }
}

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