:root {
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --surface-3: #e7edf7;
  --text: #0b1220;
  --muted: #5f6b85;
  --border: #d8e0ed;
  --primary: #0f62fe;
  --primary-600: #0b4bcc;
  --primary-soft: color-mix(in srgb, #0f62fe, transparent 80%);
  --success: #17b26a;
  --warning: #d97706;
  --danger: #dc2626;
  --gradient-start: #0f62fe;
  --gradient-end: #7c3aed;
  --shadow: 0 18px 50px -28px rgba(15, 23, 42, 0.45), 0 10px 20px -22px rgba(15, 23, 42, 0.3);
  --shadow-soft: 0 12px 30px -24px rgba(15, 23, 42, 0.24);
}
/* Dark theme */
[data-theme="dark"] {
  --surface: #0d1526;
  --surface-2: #111b30;
  --surface-3: #0f172a;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --border: #1f2937;
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --primary-soft: color-mix(in srgb, #3b82f6, transparent 80%);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient-start: #3b82f6;
  --gradient-end: #8b5cf6;
  --shadow: 0 16px 50px -32px rgba(0,0,0,.65), 0 8px 26px -24px rgba(0,0,0,.5);
  --shadow-soft: 0 12px 32px -26px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 10% 0%, color-mix(in srgb, var(--gradient-start), transparent 80%), transparent),
    radial-gradient(900px 420px at 90% -10%, color-mix(in srgb, var(--gradient-end), transparent 82%), transparent),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  /* Safe-area on iOS (notch) */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.container { max-width: 1200px; margin: 0 auto; padding: 1.25rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(200%) blur(12px); }
.site-header .bar {
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 40%);
  background: color-mix(in srgb, var(--surface), transparent 6%);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  box-shadow: 0 12px 28px -26px rgba(15,23,42,.45);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .01em; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; display: inline-block; object-fit: cover; }
.nav { display: flex; gap: 1rem; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: .45rem .75rem; border-radius: .65rem; opacity:.9; transition: all .18s ease; border:1px solid transparent; font-weight: 600; letter-spacing: .01em; }
.nav a.active, .nav a:hover { color: var(--primary-600); background: color-mix(in srgb, var(--surface-3), transparent 10%); border-color: color-mix(in srgb, var(--primary-soft), transparent 30%); opacity:1; box-shadow: 0 10px 18px -18px rgba(15, 98, 254, .8); }
.hamburger { display:none; background: transparent; border: 1px solid var(--border); border-radius:.5rem; padding:.4rem .5rem; color: var(--muted); }
.hamburger:hover { filter: brightness(0.98); }
.spacer { flex: 1; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; background: var(--surface); }

/* Layout */
.hero {
  background: linear-gradient(120deg, color-mix(in srgb, var(--gradient-start), transparent 10%), color-mix(in srgb, var(--gradient-end), transparent 12%)), radial-gradient(900px 240px at 15% 0%, color-mix(in srgb, var(--gradient-start), transparent 70%), transparent);
  padding: 1.5rem 0 1.9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 30%);
}
.page-title { margin: 1rem 0 1.1rem; font-size: 1.8rem; letter-spacing: -.01em; font-weight: 800; }

/* Cards & grids */
.grid { display: grid; gap: 1rem; }
@media (min-width: 900px){ .grid.cols-2 { grid-template-columns: 1.2fr .8fr; } }
.card { background: linear-gradient(180deg, color-mix(in srgb, var(--surface), transparent 2%), color-mix(in srgb, var(--surface-2), transparent 8%)); border: 1px solid color-mix(in srgb, var(--border), transparent 40%); border-radius: .9rem; box-shadow: var(--shadow-soft); }
.card .card-body { padding: 1.1rem 1.15rem; }
.card .card-title { margin: 0 0 .5rem; font-size: 1.12rem; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Media + tables responsive */
img, video, canvas { max-width: 100%; height: auto; }
.table-scroll { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nowrap { white-space: nowrap; }
/* Devices table sizing */
.table-devices { min-width: 980px; table-layout: fixed; }
.table-devices th:nth-child(1), .table-devices td:nth-child(1) { width: 64px; }
.table-devices th:nth-child(2), .table-devices td:nth-child(2) { width: 180px; }
.table-devices th:nth-child(3), .table-devices td:nth-child(3) { width: 380px; }
.table-devices th:nth-child(4), .table-devices td:nth-child(4) { width: 180px; }
.table-devices th:nth-child(5), .table-devices td:nth-child(5) { width: 120px; }
.table-devices th:nth-child(6), .table-devices td:nth-child(6) { width: 220px; }

/* Horizontal scroll progress (mobile) */
.scroll-progress { display:none; height:4px; background: var(--surface-3); border:1px solid var(--border); border-radius: 999px; overflow:hidden; margin-top:.5rem; }
.scroll-progress .bar { height:100%; width:0%; background: var(--primary); transition: width .1s linear; }
@media (max-width: 900px){
  .scroll-progress { display:block; }
}
td, th { word-break: break-word; }

/* Mobile tweaks */
@media (max-width: 900px){
  .grid.cols-2 { grid-template-columns: 1fr; }
  .hamburger { display:inline-flex; }
  .nav { display:none; position: absolute; right: 1rem; left: 1rem; top: 56px; flex-direction: column; padding:.5rem; gap:.25rem; background: color-mix(in srgb, var(--surface), transparent 5%); border:1px solid var(--border); border-radius:.6rem; box-shadow: var(--shadow); }
  body.nav-open .nav { display:flex; }
  .row { flex-wrap: wrap; }
  .btn { /* keep layout stable on tap */ min-height: 40px; }
  input, textarea, select { font-size: 16px; } /* prevent iOS zoom */
  h1.page-title { font-size: 1.35rem; }
  .card .card-title { font-size: 1rem; }
}

/* Tablet */
@media (max-width: 768px){
  .container { padding: .75rem; }
  .card .card-body { padding: .85rem; }
  .hero { padding: .8rem 0; }
}

/* Small phones */
@media (max-width: 480px){
  .container { padding: .6rem; }
  .page-title { margin: .6rem 0 .8rem; font-size: 1.2rem; }
  .btn { min-height: 44px; padding: .6rem .85rem; }
}

html { -webkit-text-size-adjust: 100%; }

/* Forms */
label { display: block; margin: .6rem 0 .25rem; font-weight: 600; color: var(--text); }
.input, textarea, select { width: 100%; padding: .60rem .7rem; border: 1px solid color-mix(in srgb, var(--border), transparent 20%); border-radius: .6rem; background: color-mix(in srgb, var(--surface), transparent 4%); color: var(--text); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.input:focus, textarea:focus, select:focus { outline: none; border-color: color-mix(in srgb, var(--primary), transparent 50%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-soft), transparent 15%); background: var(--surface); }
textarea { resize: vertical; }
.row { display: flex; align-items: center; gap: .75rem; }
.password-field {
  position: relative;
}
.password-field .input {
  padding-right: 3rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: .6rem;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: .85rem;
  cursor: pointer;
  padding: .25rem;
}
.password-toggle:hover {
  color: var(--text);
}

/* Buttons */
.btn { appearance: none; border: 1px solid transparent; background: var(--surface-3); color: var(--text); padding: .6rem 1rem; border-radius: .7rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; letter-spacing: .01em; box-shadow: 0 8px 22px -18px rgba(15, 23, 42, .55); transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(0.99); transform: translateY(-1px); box-shadow: 0 14px 30px -20px rgba(15, 23, 42, .6); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary), #0ea5e9 20%)); border-color: var(--primary-600); color: #fff; }
.btn-secondary { background: color-mix(in srgb, var(--surface-3), transparent 8%); border-color: color-mix(in srgb, var(--border), transparent 20%); }
.btn-danger { background: var(--danger); border-color: #b91c1c; color: #fff; }

.ellipsis {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.link-clip {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.table .ellipsis,
.table .link-clip,
.table-devices .ellipsis {
  max-width: 240px;
}
@media (max-width: 720px) {
  .table .ellipsis,
  .table .link-clip,
  .table-devices .ellipsis {
    max-width: 160px;
  }
}

@media (max-width: 540px) {
  .btn[data-icon] {
    font-size: 0;
    min-width: 44px;
    min-height: 42px;
    justify-content: center;
    padding: .55rem .7rem;
  }
  .btn[data-icon]::before {
    content: attr(data-icon);
    font-size: 1.15rem;
    line-height: 1;
  }
}

/* Alerts */
.alert { padding: .75rem .9rem; border-radius: .6rem; border: 1px solid; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-3); font-weight: 600; }

/* Helpers */
.copy-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.right { text-align: right; }
.space-y > * + * { margin-top: .6rem; }

/* Admin dashboard */
.stats-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-block {
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: var(--surface-2);
  padding: .75rem .9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
[data-theme="dark"] .stat-block {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.stat-label {
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stat-value {
  display: block;
  margin-top: .35rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-600);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-card {
  border: 1px solid var(--border);
  border-radius: .65rem;
  overflow: hidden;
  background: var(--surface);
}
.list-card li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--border);
}
.list-card li:last-child {
  border-bottom: none;
}
.list-main {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.list-meta {
  font-size: .85rem;
  color: var(--muted);
}
.list-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-600);
}
.list-plain li {
  padding: .35rem 0;
}
.list-plain li + li {
  border-top: 1px solid var(--border);
  padding-top: .5rem;
  margin-top: .5rem;
}

.table.small {
  font-size: .85rem;
}
.table.small th,
.table.small td {
  padding: .5rem;
}

.delta {
  font-weight: 600;
}
.delta-positive {
  color: var(--success);
}
.delta-negative {
  color: var(--danger);
}
.delta-zero {
  color: var(--muted);
}

@media (max-width: 600px) {
  .stat-value {
    font-size: 1.2rem;
  }
}

/* Admin layout */
.admin-intro {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  margin-bottom: 1.5rem;
}
@media (max-width: 960px) {
  .admin-intro {
    grid-template-columns: 1fr;
  }
}
.card.highlight {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gradient-start), transparent 70%), color-mix(in srgb, var(--gradient-end), transparent 75%));
  border: 1px solid color-mix(in srgb, var(--primary), transparent 55%);
  box-shadow: 0 18px 38px -24px rgba(15, 98, 254, .35);
}
[data-theme="dark"] .card.highlight {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gradient-start), transparent 60%), color-mix(in srgb, var(--gradient-end), transparent 65%));
}
.admin-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 640px) {
  .admin-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.admin-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--primary-600);
  border: 2px solid color-mix(in srgb, var(--primary), transparent 65%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
[data-theme="dark"] .admin-avatar {
  border-color: color-mix(in srgb, var(--primary), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.admin-profile-info {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.admin-profile-name {
  margin: 0;
  font-size: 1.5rem;
}
.admin-profile-mail {
  font-size: .9rem;
  color: var(--muted);
}
.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-primary {
  background: var(--primary);
  border-color: var(--primary-600);
  color: #fff;
}
.badge-neutral {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}
.badge-soft {
  background: color-mix(in srgb, var(--surface-3), transparent 30%);
  border-color: color-mix(in srgb, var(--border), transparent 50%);
  color: var(--muted);
}
.badge-tag {
  background: color-mix(in srgb, var(--primary), transparent 85%);
  border-color: color-mix(in srgb, var(--primary), transparent 70%);
  color: var(--primary-600);
}
.badge-secondary {
  background: color-mix(in srgb, var(--surface-3), transparent 10%);
  border-color: color-mix(in srgb, var(--border), transparent 30%);
  color: var(--muted);
}
.admin-summary {
  text-align: right;
}
@media (max-width: 640px) {
  .admin-summary {
    text-align: center;
  }
}
.summary-title {
  text-transform: uppercase;
  letter-spacing: .08em;
}
.summary-value {
  font-size: 1.7rem;
  font-weight: 600;
  margin: .25rem 0;
}
.summary-foot {
  font-size: .75rem;
}
.text-positive { color: var(--success); }
.text-negative { color: var(--danger); }

.card.insight {
  border: 1px solid color-mix(in srgb, var(--border), transparent 20%);
}
.insight-body {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}
.insight-value {
  font-size: 1.6rem;
  font-weight: 600;
}
.progress {
  position: relative;
  height: 6px;
  background: color-mix(in srgb, var(--surface-3), transparent 30%);
  border-radius: 999px;
  overflow: hidden;
  margin-top: .4rem;
}
.progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width .3s ease;
}
.progress-success { background: var(--success); }
.progress-warning { background: var(--warning); }

.muted.tiny { font-size: .75rem; }

.admin-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
@media (max-width: 1100px) {
  .admin-columns {
    grid-template-columns: 1fr;
  }
}
.admin-main .card,
.admin-side .card {
  border-radius: .85rem;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.card-head .card-title {
  margin: 0;
}
.link-muted {
  color: var(--muted);
  font-size: .85rem;
  text-decoration: none;
}
.link-muted:hover {
  color: var(--text);
}
.quick-actions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}
.quick-actions .btn {
  width: 100%;
  justify-content: center;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
}
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: .45rem;
}
.dot-notification { background: var(--primary); }
.dot-transaction { background: var(--success); }
.timeline-content {
  background: color-mix(in srgb, var(--surface-3), transparent 55%);
  border: 1px solid color-mix(in srgb, var(--border), transparent 40%);
  border-radius: .6rem;
  padding: .6rem .75rem;
}
.timeline-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .95rem;
}
.timeline-meta {
  margin-top: .25rem;
  line-height: 1.4;
}

.list-value {
  font-size: 1.15rem;
}

@media (max-width: 640px) {
  .admin-columns {
    gap: 1.25rem;
  }
  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-summary {
    text-align: left;
  }
}

.tiny { font-size: .75rem; }


/* Admin device management */
.admin-device-form .form-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.admin-device-form .form-grid .full {
  grid-column: 1 / -1;
}
.admin-device-form .form-options {
  display: flex;
  align-items: center;
  gap: .75rem;
}
@media (max-width: 640px) {
  .admin-device-form .form-options {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
.admin-device-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: .65rem;
  padding: .75rem;
}
.admin-device-toolbar .toolbar-group {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.admin-device-toolbar label {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}
.admin-device-toolbar select {
  min-width: 200px;
}
@media (max-width: 640px) {
  .admin-device-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-device-toolbar .toolbar-group {
    width: 100%;
    justify-content: space-between;
  }
}
.admin-device-table th:first-child,
.admin-device-table td:first-child {
  width: 36px;
  text-align: center;
}
.admin-device-table td {
  vertical-align: top;
}
@media (max-width: 720px) {
  .admin-intro { gap: .75rem; }
  .admin-device-form .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .admin-device-form .form-grid .full {
    grid-column: 1 / -1;
  }
  .card .card-body {
    padding: .9rem;
  }
  .admin-device-toolbar {
    gap: .6rem;
  }
  .admin-device-toolbar .toolbar-group {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }
  .admin-device-toolbar select {
    min-width: 0;
    width: 100%;
  }
  .admin-device-toolbar .toolbar-group.muted {
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-device-form .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-device-form .form-grid input,
  .admin-device-form .form-grid textarea,
  .admin-device-form .form-grid select {
    width: 100%;
  }
  .admin-device-form .row {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }
  .admin-device-table,
  .admin-device-table thead,
  .admin-device-table tbody,
  .admin-device-table th,
  .admin-device-table td,
  .admin-device-table tr {
    display: block;
  }
  .admin-device-table thead {
    display: none;
  }
  .admin-device-table tr {
    border: 1px solid var(--border);
    border-radius: .7rem;
    padding: .75rem;
    margin-bottom: .75rem;
    background: var(--surface);
  }
  .admin-device-table td {
    padding: .4rem 0;
    border: none;
  }
  .admin-device-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: .1rem;
  }
  .admin-device-table td.select-cell {
    display: flex;
    align-items: center;
    margin-bottom: .35rem;
  }
  .admin-device-table td.select-cell::before {
    content: '';
    display: none;
  }
  .admin-device-toolbar {
    padding: .65rem;
  }
  .admin-device-toolbar .toolbar-group {
    width: 100%;
  }
  .admin-device-toolbar .toolbar-group select {
    width: 100%;
  }
  .admin-device-form button.btn {
    width: 100%;
  }
  .card-head,
  .card-head .card-title {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .admin-profile-name {
    font-size: 1.25rem;
  }
  .summary-value {
    font-size: 1.4rem;
  }
  .admin-device-toolbar {
    padding: .55rem;
  }
  .card .card-body {
    padding: .75rem;
  }
  .card-title {
    font-size: 1rem;
  }
}

.landing-hero {
  margin: 2.5rem 0;
}
.landing-grid {
  gap: 1.5rem;
  align-items: stretch;
}
.landing-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--primary-600);
  font-weight: 600;
  font-size: .85rem;
  width: max-content;
}
.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.25rem;
}
.landing-note {
  margin-top: .5rem;
  color: var(--muted);
}
.landing-card {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
}
.landing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.landing-list li {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  color: var(--muted);
}
.landing-list .list-title {
  font-weight: 600;
  color: var(--text);
}
.landing-section {
  margin-bottom: 2.5rem;
}
.landing-heading {
  margin: 0 0 1.2rem;
  font-size: 1.4rem;
}
.landing-features {
  gap: 1.5rem;
}
.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.landing-steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow);
}
.landing-steps h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}
.landing-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.landing-support {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.landing-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

@media (max-width: 900px) {
  .landing-hero {
    margin: 1.8rem 0;
  }
  .landing-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .landing-intro h2 {
    font-size: 1.3rem;
  }
  .landing-support {
    align-items: flex-start;
  }
}
