:root {
  color-scheme: light;
  --brand-bg: #F7F9FC;
  --brand-surface: #ffffff;
  --brand-surface-muted: #EEF3F8;
  --brand-text: #0B1220;
  --brand-text-muted: #5C6B80;
  --brand-primary: #3DDC84;
  --brand-on-primary: #083322;
  --brand-connected: #0A6B3C;
  --brand-connecting: #1D4E89;
  --brand-disconnected: #5C6B80;
  --brand-warning: #B45309;
  --brand-danger: #9F1239;
  --brand-outline: #E4E9F0;
  --bg: var(--brand-bg);
  --bg-accent: #E7F8EF;
  --ink: var(--brand-text);
  --muted: var(--brand-text-muted);
  --line: var(--brand-outline);
  --paper: var(--brand-surface);
  --ember: var(--brand-primary);
  --ember-dark: var(--brand-connected);
  --on-primary: var(--brand-on-primary);
  --ok: #0A6B3C;
  --ok-bg: #E7F8EF;
  --err: #9f1239;
  --err-bg: #fde8ea;
  --info: #3d4f66;
  --info-bg: #eef2f6;
  --rail: #ffffff;
  --rail-text: #0B1220;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
  --radius: 16px;
  font-family: "Noto Sans SC", "PingFang SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

code,
.mono,
pre {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

h1 {
  font-size: 1.85rem;
}

button,
input {
  font: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--ember-dark);
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.rail {
  background: var(--rail);
  color: var(--rail-text);
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid var(--line);
}

.rail .brand-mark {
  color: var(--ember-dark);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
}

.nav-ico {
  width: 18px;
  height: 18px;
  flex: none;
}

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

.nav a.active,
.nav a:hover {
  background: var(--bg-accent);
  color: var(--ink);
  opacity: 1;
}

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.site-footer {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.rail-foot .site-footer,
.auth-panel .site-footer {
  margin-top: 0.4rem;
  color: inherit;
}

.main {
  min-width: 0;
}

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
}

.mobile-nav {
  display: none;
  gap: 0.2rem;
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow-x: auto;
}

.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.9rem;
}

.mobile-nav a.active {
  background: var(--bg-accent);
  color: var(--ink);
}

.content {
  padding: 2rem 2.2rem 3rem;
  max-width: 1080px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

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

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.lede {
  margin: 0;
  max-width: 46rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.card.is-selected {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.35);
}

.hero {
  background: var(--paper);
}

.hero-metric {
  font-family: ui-sans-serif, "PingFang SC", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0.2rem 0 0.4rem;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.meter {
  height: 8px;
  background: rgba(28, 20, 16, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.8rem;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--ember);
}

.btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
}

.btn:hover:not(:disabled) {
  border-color: var(--ink);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--on-primary);
}

.btn-primary:hover:not(:disabled) {
  background: #32d178;
  border-color: #32d178;
  color: var(--on-primary);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: inherit;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.28rem 0.7rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: var(--err-bg);
  color: var(--err);
  border-color: transparent;
}

.inline-form {
  display: inline;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 420px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.label-row a {
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.dev-only {
  border: 1px dashed var(--ember);
  background: #fff4e0;
  color: #7c4a12;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dev-only p {
  margin: 0;
}

.dev-only-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.form input:focus {
  outline: 2px solid color-mix(in srgb, var(--ember) 45%, white);
  border-color: var(--ember);
}

.alert {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
}

.alert-error {
  background: var(--err-bg);
  color: var(--err);
}

.alert-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.alert-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-accent);
}

.badge-pending {
  background: #f6e2b8;
  color: #7c4a12;
}

.badge-paid {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge-failed {
  background: var(--err-bg);
  color: var(--err);
}

.badge-cancelled,
.badge-unknown {
  background: #eee7dc;
  color: var(--muted);
}

.badge-refunded {
  background: var(--info-bg);
  color: var(--info);
}

.pill {
  font-size: 0.68rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  opacity: 0.85;
  margin-left: 0.35rem;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.pkg-bytes {
  font-family: ui-sans-serif, sans-serif;
  font-size: 1.8rem;
}

.pkg-price {
  font-weight: 700;
  margin: 0.6rem 0;
}

.table-wrap {
  overflow: auto;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.actions {
  white-space: nowrap;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.plain-row:last-child {
  border-bottom: 0;
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.empty {
  padding: 1.2rem 0;
}

.tiny {
  font-size: 0.8rem;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--ember);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-panel {
  padding: 3.2rem 3rem;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  border-right: 1px solid var(--line);
}

.auth-panel .brand-mark {
  color: var(--ember-dark);
}

.auth-panel h1 {
  font-family: ui-sans-serif, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 8em;
  line-height: 1.15;
  word-break: keep-all;
}

.auth-panel p,
.auth-points {
  max-width: 36rem;
  opacity: 0.86;
}

.auth-points {
  padding-left: 1.1rem;
}

.auth-form {
  display: grid;
  place-items: center;
  padding: 2rem 1.2rem;
  background: var(--paper);
}

.stub pre {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 12px;
  overflow: auto;
  font-size: 0.82rem;
}

.stub h3 {
  margin-top: 1.2rem;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .rail {
    display: none;
  }
  .topbar {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
  .content {
    padding: 1.2rem 1rem 2.4rem;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-panel {
    padding: 1.6rem 1.2rem 1.2rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .auth-panel h1 {
    max-width: none;
    font-size: 1.8rem;
  }
}

/* Keyboard and small-screen access remain available without scripts or remote fonts. */
:focus-visible { outline: 3px solid #0B1220; outline-offset: 3px; }
.hero-metric { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }

.market {
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1.5rem;
  background: rgba(247, 249, 252, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  padding: 0.4rem 0;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 #3DDC84;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.site-actions form {
  margin: 0;
}

.market-hero,
.band {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 0;
}

.market-hero {
  padding-top: 4.25rem;
}

.market h1,
.market h2 {
  text-wrap: balance;
}

.market h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 12em;
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--ember-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.step-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.step-row li p,
.prep-list {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.step-no {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ember-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1080px;
  margin: 2.75rem auto 0;
  padding: 0 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-strip div {
  padding: 1.2rem 1.1rem 1.2rem 0;
  border-right: 1px solid var(--line);
}

.fact-strip div:last-child {
  border-right: 0;
  padding-right: 0;
}

.fact-strip strong {
  display: block;
  margin-bottom: 0.3rem;
}

.fact-strip p,
.split-list p,
.two-col li,
.plan-card li,
.platform-list p,
.faq p {
  color: var(--muted);
}

.fact-strip p,
.split-list p,
.platform-list p,
.faq p {
  margin: 0;
}

.split-list,
.two-col,
.plan-grid {
  display: grid;
  gap: 1.5rem 1.75rem;
  margin-top: 1.25rem;
}

.split-list,
.plan-grid {
  grid-template-columns: repeat(3, 1fr);
}

.split-list {
  grid-template-columns: 1fr 1fr;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.two-col ul,
.plan-card ul,
.prep-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.plan-card.is-featured {
  border-color: #3DDC84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.28);
}

.plan-price {
  margin: 0.2rem 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.plan-price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.addon-line {
  margin: 1.1rem 0 0;
  color: var(--muted);
  max-width: 46rem;
}

.plan-card-addon {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem 2rem;
  align-items: start;
}

.platform-list,
.prep-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.platform-list {
  border-top: 1px solid var(--line);
}

.platform-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.platform-list h2 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.status-pill {
  flex: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 650;
}

.prep-list {
  list-style: decimal;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 42rem;
  color: var(--ink);
}

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

.faq summary {
  cursor: pointer;
  font-weight: 700;
  text-wrap: balance;
}

.faq details p + p {
  margin-top: 0.55rem;
}

.band-end {
  padding-bottom: 4rem;
}

.market-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.market-footer-brand strong {
  color: var(--ink);
}

.market-footer-brand p,
.market-footer-note {
  margin: 0.4rem 0 0;
}

.market-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-content: start;
}

.market-footer-note {
  grid-column: 1 / -1;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .site-actions {
    margin-left: 0;
  }
  .step-row,
  .fact-strip,
  .split-list,
  .two-col,
  .plan-grid,
  .plan-card-addon,
  .market-footer {
    grid-template-columns: 1fr;
  }
  .fact-strip {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .fact-strip div {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .fact-strip div:last-child {
    border-bottom: 0;
  }
  .market-hero,
  .band {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .market h1 {
    font-size: 1.85rem;
  }
}

.hero-head { margin-bottom: 0.85rem; }

.account-id {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sub-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0.15rem 0 0.2rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  background: var(--bg-accent);
  color: var(--ember-dark);
  border: 1px solid color-mix(in srgb, var(--ember) 55%, var(--line));
}

.sub-status.is-inactive {
  background: #fff4e0;
  color: var(--brand-warning);
  border-color: color-mix(in srgb, var(--brand-warning) 35%, var(--line));
}

.metric-kicker { margin: 0.35rem 0 0; }

.metric-split {
  margin: 0 0 0.35rem;
  font-variant-numeric: tabular-nums;
}

.meter.is-mid span { background: var(--brand-warning); }
.meter.is-high span { background: var(--brand-danger); }

.pkg-plan {
  background: linear-gradient(180deg, #f3fbf6, var(--paper) 42%);
}

.endpoint {
  display: inline-block;
  width: fit-content;
  margin: 0.2rem 0;
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  background: var(--brand-surface-muted);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

/* Homepage: Proton-like centered conversion hero. Scoped so other marketing pages keep their quieter hero. */
.market-home {
  background: #fff;
}

.market-home .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: transparent;
  backdrop-filter: blur(14px);
}

.home-hero {
  min-height: calc(100svh - 4.25rem);
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-hero-copy {
  width: min(100%, 46rem);
}

.home-hero h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(2.7rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 760;
}

.home-hero .lede {
  margin: 0.9rem auto 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

.metric-orbits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.15rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.metric-orbits li {
  width: 6.7rem;
  height: 6.7rem;
  border: 1.5px solid #D5DEE8;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.6rem;
}

.metric-orbits strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.metric-orbits span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.home-hero-actions {
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
  gap: 0.75rem 1.15rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0.85rem 1.7rem;
  font-size: 1.05rem;
}

.hero-text-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.45rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero-text-link::after {
  content: "→";
  margin-left: 0.35rem;
  font-weight: 600;
}

.hero-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero-reassure {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.device-stage {
  position: relative;
  width: min(100%, 28rem);
  margin-top: auto;
  padding-top: 1.35rem;
  display: flex;
  justify-content: center;
  z-index: 0;
}

.device-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 34rem;
  height: 16rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(61, 220, 132, 0.22), rgba(61, 220, 132, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(100%, 18.25rem);
  aspect-ratio: 292 / 598;
  background: #0B1220;
  border-radius: 2.35rem;
  padding: 0.7rem;
  box-shadow:
    0 28px 50px rgba(11, 18, 32, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.35) inset;
}

.phone-screen {
  height: 100%;
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, #F3FBF6 0%, #ffffff 38%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 1rem 1rem;
  text-align: center;
  overflow: hidden;
}

.phone-bar {
  width: 5.2rem;
  height: 0.38rem;
  border-radius: 99px;
  background: #0B1220;
  opacity: 0.88;
  margin-bottom: 1.15rem;
}

.phone-app {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.phone-state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
  color: var(--brand-connected);
  font-weight: 700;
  font-size: 0.95rem;
}

.phone-state i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.28);
}

.connect-orb {
  width: 7.1rem;
  height: 7.1rem;
  margin-top: 1.35rem;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(61, 220, 132, 0.35);
}

.connect-caption {
  margin: 0.85rem 0 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.phone-facts {
  width: 100%;
  margin: 1.15rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.phone-facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  text-align: left;
}

.phone-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.phone-facts dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.phone-note {
  margin: auto 0 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: 16rem;
}

.capability-strip {
  background: var(--brand-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-strip ul {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.45rem 1.5rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.capability-strip li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-width: 0;
  padding: 0.35rem 1.15rem 0.35rem 0;
}

.capability-strip li + li {
  padding-left: 1.15rem;
  border-left: 1px solid var(--line);
}

.capability-strip svg {
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
  color: var(--brand-connected);
  margin-top: 0.1rem;
}

.capability-strip strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
}

.capability-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.market-home .band h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  max-width: 16em;
}

.market-home .band {
  padding-top: 3.6rem;
}

@media (max-width: 860px) {
  .home-hero {
    min-height: 0;
    padding: 2.4rem 1rem 2.5rem;
  }
  .home-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
  }
  .metric-orbits li {
    width: 6.35rem;
    height: 6.35rem;
  }
  .metric-orbits strong {
    font-size: 1.02rem;
  }
  .device-stage {
    margin-top: 0.5rem;
    padding-top: 1.75rem;
  }
  .device-stage::before {
    width: 18rem;
    height: 10rem;
  }
  .capability-strip ul {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 0.15rem;
  }
  .capability-strip li,
  .capability-strip li + li {
    border-left: 0;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .capability-strip li:last-child {
    border-bottom: 0;
  }
}

/* Gift card redemption */
.gift-form { max-width: 34rem; }
.gift-form input[name="code"] { letter-spacing: .04em; text-transform: uppercase; }
.gift-result { border-color: color-mix(in srgb, #16a34a 35%, transparent); background: color-mix(in srgb, #16a34a 5%, white); }
.gift-result h2 { color: #15803d; }
.gift-added { list-style: none; margin: .5rem 0 1rem; padding: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.gift-added li { display: flex; flex-direction: column; gap: .15rem; }
.gift-added strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.gift-after { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; margin: 0; }
.gift-after div { display: flex; flex-direction: column; gap: .15rem; }
.gift-after dt { color: var(--muted, #6b7280); font-size: .85rem; }
.gift-after dd { margin: 0; font-weight: 600; }
.gift-history td { white-space: nowrap; }
