:root {
  --bg: #f5f5f7;
  --bg-alt: #eef3ff;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --blue-strong: #0066cc;
  --green: #14805e;
  --orange: #c7790b;
  --red: #d64c45;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius-2xl: 32px;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.apple-page {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #ffffff 0%, #ffffff 18%, #edf3ff 46%, #f5f5f7 100%);
}

a {
  color: var(--blue);
  text-decoration: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.page {
  padding: 32px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.hero.hero-single {
  grid-template-columns: 1fr;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

.headline {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  margin: 14px 0 0;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  padding: 26px;
}

.panel.tight {
  padding: 20px;
}

.panel.prose {
  max-width: 900px;
}

.panel-stack {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.metric {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.metric strong {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.metric .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.button-row,
.toolbar,
.inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.button,
button.button {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.24);
}

.button:hover,
button.button:hover {
  background: var(--blue-strong);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  background: #ffffff;
  color: var(--text);
}

.button.ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(0, 113, 227, 0.2);
  box-shadow: none;
}

.button.ghost:hover {
  background: rgba(0, 113, 227, 0.08);
}

.button.danger {
  background: var(--red);
  box-shadow: 0 10px 24px rgba(214, 76, 69, 0.22);
}

.button.small,
button.button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.status {
  font-size: 14px;
  font-weight: 600;
}

.status.good {
  color: var(--green);
}

.status.warn {
  color: var(--orange);
}

.status.bad {
  color: var(--red);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.badge.strong {
  color: var(--text);
}

.list,
.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.list li,
.steps li {
  margin-bottom: 8px;
}

.input,
input[type="text"],
input[type="search"],
textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.code,
code,
.mono {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

code,
.pill-code {
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  word-break: break-all;
}

.note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-head h2,
.panel h2,
.panel h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

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

.table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.55);
}

.table td.mono a {
  word-break: break-all;
}

.table .compact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table .compact-actions .button {
  white-space: nowrap;
}

.pre {
  white-space: pre-wrap;
  overflow: auto;
  min-height: 120px;
  max-height: 260px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--text);
}

.footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.download-card,
.soft-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.download-card h3,
.soft-card h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.download-card p,
.soft-card p,
.panel p {
  color: var(--muted);
  line-height: 1.6;
}

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

.shot {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.shot img,
.shot video {
  width: 100%;
  display: block;
  height: auto;
  background: #e5e7eb;
}

.shot figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.callout {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

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

.hero-links {
  margin-top: 18px;
}

.inline-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.center-card {
  max-width: 760px;
  margin: 0 auto;
}

.prose h1,
.prose h2,
.prose h3 {
  letter-spacing: -0.04em;
  color: var(--text);
}

.prose h1 {
  font-size: 42px;
  margin: 0 0 12px;
}

.prose h2 {
  font-size: 24px;
  margin: 28px 0 10px;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.hide-desktop {
  display: none;
}

@media (max-width: 980px) {
  .hero,
  .grid.two,
  .download-grid,
  .grid.three {
    grid-template-columns: 1fr;
  }

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

  .topbar .shell {
    padding: 12px 0;
  }

  .panel {
    padding: 22px;
  }

  .headline {
    font-size: clamp(34px, 10vw, 52px);
  }

  .metric strong {
    font-size: 26px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 620px;
  }
}

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

  .shell {
    width: min(calc(100vw - 24px), 1180px);
  }

  .page {
    padding: 22px 0 56px;
  }

  .nav-links {
    display: none;
  }

  .panel {
    padding: 18px;
    border-radius: 24px;
  }

  .section-head h2,
  .panel h2,
  .panel h3 {
    font-size: 24px;
  }

  .download-card h3,
  .soft-card h3,
  .prose h1 {
    font-size: 30px;
  }

  .button,
  button.button {
    width: 100%;
  }

  .button.small {
    width: auto;
  }

  .hide-desktop {
    display: block;
  }
}

/* Shared public-site system. Keep the landing, guides, and downloads aligned. */
:root {
  --bg: #f4f7fb;
  --bg-alt: #eef4fc;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: #dfe7f1;
  --line-strong: #ccd8e8;
  --text: #101827;
  --muted: #566273;
  --blue: #1764cf;
  --blue-strong: #0f4faf;
  --shadow: 0 4px 8px rgba(34, 62, 105, 0.08);
  --radius-2xl: 8px;
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 8px;
}

body.apple-page {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fc 68%, #f7f9fc 100%);
}

.shell {
  width: min(1560px, calc(100vw - 56px));
}

.topbar {
  background: rgba(248, 251, 255, 0.9);
  border-bottom-color: rgba(223, 231, 241, 0.92);
}

.topbar .shell {
  padding: 20px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.nav-links {
  gap: 24px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 650;
}

.page {
  padding-top: 30px;
}

.headline,
.title,
.section-head h2,
.panel h2,
.panel h3,
.download-card h3,
.soft-card h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

.headline {
  font-size: clamp(48px, 6.4vw, 86px);
  line-height: 0.98;
}

.lead,
.download-card p,
.soft-card p,
.panel p {
  color: var(--muted);
  text-wrap: pretty;
}

.panel,
.download-card,
.soft-card,
.metric,
.callout,
.note,
.table-wrap,
.pre,
.shot,
.clients-hero,
.client-card,
.platform-card,
.status-tile,
.notice-band,
.flow-step,
.support-card,
.app-card,
.signal-tile,
.android-card {
  border-radius: 8px !important;
}

.panel,
.download-card,
.soft-card,
.metric,
.client-card,
.platform-card,
.status-tile,
.notice-band,
.flow-step,
.support-card,
.app-card,
.signal-tile,
.android-card {
  border-color: var(--line);
  background: var(--surface);
}

.download-card,
.soft-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.download-card > :last-child:is(.button-row, .inline-actions, .toolbar),
.soft-card > :last-child:is(.button-row, .inline-actions, .toolbar) {
  margin-top: auto;
}

.button,
button.button {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 760;
  box-shadow: none;
  transition:
    background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button:hover,
button.button:hover {
  transform: translateY(-1px);
}

.button:active,
button.button:active {
  transform: translateY(0);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(34, 119, 242, 0.38);
  outline-offset: 3px;
}

@media (min-width: 941px) and (max-width: 1600px) {
  .shell {
    width: min(1560px, calc(100vw - clamp(112px, 9vw, 156px)));
  }
}

@media (max-width: 940px) {
  .shell {
    width: min(680px, calc(100vw - 28px));
  }

  .topbar .shell {
    padding: 16px 0 12px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .headline {
    font-size: clamp(38px, 10.5vw, 58px);
  }
}

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

  .button,
  button.button {
    transition: none;
  }
}
