:root, [data-theme="light"] {
  color-scheme: light;
  --ink: #15202b;
  --ink-2: #3d4a57;
  --muted: #4a5360;
  --paper: #f4f0e8;
  --card: #fffdf8;
  --line: #e4ddd0;
  --rust: #b44d10;
  --rust-2: #933f0c;
  --pine: #1f6b45;
  --warn: #9a4b08;
  --danger: #b42318;
  --info: #1d4e89;
  --sidebar: #101820;
  --sidebar-2: #1b2733;
  --chip: #efe8dc;
  --focus: #1d4e89;
  --shadow: 0 10px 30px rgba(16, 24, 32, 0.06);
  --control-bg: #ffffff;
  --control-hover: #f7f3ea;
  --on-accent: #ffffff;
  --row-hover: #faf6ef;
  --section-bg: #efe6d8;
  --progress-track: #e9e2d6;
  --nav-fg: #c5ced6;
  --nav-muted: #8b97a4;
  --nav-active: #ffffff;
  --placeholder: #8b93a0;
  --flash-ok-bg: #e8f6ee;
  --flash-ok-fg: #1f5c38;
  --flash-err-bg: #fdecea;
  --flash-err-fg: #8a1f16;
  --chip-ok-bg: #e4f4ea;
  --chip-warn-bg: #fdf0d8;
  --chip-info-bg: #e4eef8;
  --chip-err-bg: #fde8e6;
  --login-from: #101820;
  --login-to: #243140;
  --radius: 14px;
  --control-h: 44px;
  --space: 8px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8edf2;
  --ink-2: #c5ced6;
  --muted: #9aa3ad;
  --paper: #0f1419;
  --card: #1a222b;
  --line: #2c3640;
  --rust: #e07a3a;
  --rust-2: #f09456;
  --pine: #5dba84;
  --warn: #e0a04a;
  --danger: #f07167;
  --info: #7eb0e0;
  --sidebar: #0b0f14;
  --sidebar-2: #121820;
  --chip: #24303a;
  --focus: #7eb0e0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --control-bg: #121820;
  --control-hover: #222c36;
  --on-accent: #1a120c;
  --row-hover: #222c36;
  --section-bg: #24303a;
  --progress-track: #2c3640;
  --nav-fg: #c5ced6;
  --nav-muted: #8b97a4;
  --nav-active: #ffffff;
  --placeholder: #7d8894;
  --flash-ok-bg: #1c3a2a;
  --flash-ok-fg: #b6e4c8;
  --flash-err-bg: #3a1c1c;
  --flash-err-fg: #f5c2be;
  --chip-ok-bg: #1c3a2a;
  --chip-warn-bg: #3a2c14;
  --chip-info-bg: #1a2e44;
  --chip-err-bg: #3a1c1c;
  --login-from: #0b0f14;
  --login-to: #1a222b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  font-size: 16px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip-link:focus { top: 8px; }
.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: var(--sidebar);
}
.sidebar {
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: var(--nav-fg);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; color: var(--nav-active); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--nav-active); }
.mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--rust); color: var(--on-accent); display: grid; place-items: center;
  font-weight: 800; letter-spacing: -0.04em; flex: 0 0 auto;
}
.brand small { display: block; color: var(--nav-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.org-switch { margin-bottom: 16px; }
.org-switch label {
  color: var(--nav-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px;
}
.org-switch select {
  background: var(--sidebar-2); color: var(--nav-active); border-color: #334155;
}
.nav { flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--nav-fg); padding: 10px 12px; border-radius: 10px; margin-bottom: 4px;
  min-height: var(--control-h);
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,.06); color: var(--nav-active); text-decoration: none; }
.nav .sec { margin: 18px 10px 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--nav-muted); }
.side-user { margin-top: auto; padding: 12px; background: rgba(255,255,255,.04); border-radius: 12px; }
.side-user b { color: var(--nav-active); display: block; }
.side-user span { color: var(--nav-muted); font-size: 12px; }
.side-user-actions { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.theme-toggle {
  appearance: none; border: 1px solid #334155; background: transparent;
  color: var(--nav-fg); border-radius: 10px; min-height: 40px; padding: 8px 12px;
  cursor: pointer; font: inherit; font-weight: 700; width: 100%;
}
.theme-toggle:hover { color: var(--nav-active); }
.login-card .theme-toggle { width: auto; color: var(--ink); border-color: var(--line); position: absolute; top: 16px; right: 16px; }
.danger-zone { margin-top: 16px; }
.danger-zone h3 { margin-top: 0; color: var(--danger); }
.side-user a { color: #e8c4a8; min-height: 32px; display: inline-flex; align-items: center; }
.content {
  padding: 28px 32px 48px; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--paper);
}
.top {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  margin-bottom: 24px;
}
h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.03em; line-height: 1.2; }
h3 { font-size: 16px; }
.lead { margin: 0; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  appearance: none; border: 0; background: var(--rust); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; min-height: var(--control-h); text-decoration: none;
}
.btn:hover { background: var(--rust-2); text-decoration: none; color: var(--on-accent); }
.btn.secondary { background: var(--control-bg); color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--control-hover); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--control-bg); color: var(--ink); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 8px 12px; font-size: 13px; font-weight: 600; min-height: 40px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.form-card { max-width: 880px; }
.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: 1.2fr .8fr; }
.stat b { display: block; font-size: 28px; letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:hover { background: var(--row-hover); }
.chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: var(--chip); color: var(--ink-2); font-size: 12px; font-weight: 700;
  margin: 2px 2px 2px 0;
}
.chip.ok { background: var(--chip-ok-bg); color: var(--pine); }
.chip.warn { background: var(--chip-warn-bg); color: var(--warn); }
.chip.info { background: var(--chip-info-bg); color: var(--info); }
.chip.err { background: var(--chip-err-bg); color: var(--danger); }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.flash.ok { background: var(--flash-ok-bg); color: var(--flash-ok-fg); }
.flash.err { background: var(--flash-err-bg); color: var(--flash-err-fg); }
label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 400; }
input:not([type]),
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; min-height: var(--control-h); padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--control-bg); font: inherit; color: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid > p, form.card > p, .filters > p { margin: 0; min-width: 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; align-items: center; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; margin-top: 4px; }
.check {
  display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: var(--control-h);
  margin: 0;
}
.check input { width: 18px; height: 18px; accent-color: var(--rust); }
.perm-grid {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
}
.perm-grid legend { font-weight: 800; padding: 0 6px; }
.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: 0;
  padding: 16px 32px;
  border-top: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 5;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a, .site-footer a { color: var(--ink-2); }
.footer-copy { margin: 0; }
body:has(#cookie-bar:not([hidden])) .site-footer {
  padding-bottom: 96px;
}
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px;
}
.cookie-bar p { margin: 0; flex: 1; min-width: 200px; }
.legal-doc { max-width: 760px; }
.legal-doc h2 { margin-top: 24px; font-size: 18px; }
.legal-doc ul { padding-left: 20px; }
body:has(.login-wrap) {
  background: var(--login-from);
}
body:has(.login-wrap) .site-footer {
  border-top-color: #334155;
  background: var(--login-to);
  padding: 16px 24px 24px;
  color: var(--nav-muted);
}
body:has(.login-wrap) .site-footer a { color: var(--nav-fg); }
.login-wrap {
  flex: 1 1 auto;
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1000px 400px at 10% -10%, rgba(180,77,16,.18), transparent),
    linear-gradient(160deg, var(--login-from), var(--login-to));
}
.login-card { width: min(420px, 100%); background: var(--card); padding: 28px; border-radius: 20px; position: relative; }
.login-card h1 { font-size: 26px; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photos img, .thumb {
  width: 140px; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line);
}
.section-head {
  background: var(--section-bg); padding: 10px 12px; border-radius: 10px; font-weight: 800;
  margin: 18px 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.field { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.field-card {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: flex-start;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  margin-bottom: 8px;
}
.field-edit { grid-column: 1 / -1; }
.field-edit summary { cursor: pointer; font-weight: 700; color: var(--rust); }
.edit-field { margin-top: 10px; display: grid; gap: 10px; }
.builder { display: grid; grid-template-columns: 1.35fr .85fr; gap: 16px; align-items: start; }
.builder-aside { position: sticky; top: 16px; }
.progress {
  height: 8px; background: var(--progress-track); border-radius: 99px; overflow: hidden;
}
.progress > span { display: block; height: 100%; background: var(--rust); }
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filters input, .filters select { width: 100%; min-width: 0; max-width: none; }
.filters .filter-actions {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: var(--control-h);
}
.filters .btn { width: auto; }
a.chip { text-decoration: none; cursor: pointer; }
a.chip:hover { filter: brightness(0.97); text-decoration: none; }
.filter-meta { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); margin-bottom: 6px; }
.empty p { margin: 0 0 16px; }
.empty .btn { margin-top: 4px; }
.req { color: var(--danger); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
code { font-family: var(--mono); font-size: 12px; background: var(--chip); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 1024px) {
  .builder { grid-template-columns: 1fr; }
  .builder-aside { position: static; }
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.topbar {
  display: none; align-items: center; gap: 12px;
  padding: 8px 12px; background: var(--sidebar); color: var(--nav-active);
  position: sticky; top: 0; z-index: 40;
}
.brand-mini { color: var(--nav-active); font-weight: 800; text-decoration: none; }
.nav-toggle {
  width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; display: grid; gap: 5px; place-content: center; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--nav-active); }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(16,24,32,.45); z-index: 25;
}
tr[data-href] { cursor: pointer; }
tr[data-href]:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.is-invalid { border-color: var(--danger) !important; }
.field-error { display: block; color: var(--danger); font-size: 13px; margin-top: 6px; font-weight: 600; }
.fill-form { padding-bottom: 96px; }
.fill-bar {
  position: sticky; bottom: 0; z-index: 15;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 0 0;
  padding: 12px 16px; box-shadow: 0 -8px 24px rgba(16,24,32,.08);
}
.fill-bar .progress { width: min(220px, 100%); margin-top: 6px; }
.save-status { font-size: 13px; color: var(--muted); min-height: 1.2em; margin-top: 4px; }
.save-status[data-kind="ok"] { color: var(--pine); }
.save-status[data-kind="err"] { color: var(--danger); }
.comment-toggle {
  appearance: none; border: 0; background: none; color: var(--rust);
  font: inherit; font-weight: 700; cursor: pointer; padding: 8px 0; min-height: 40px;
}
.comment-box { margin-top: 4px; }
.upload-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.upload-zone {
  flex: 1; min-height: 44px; border: 1px dashed var(--line); border-radius: 10px;
  padding: 10px 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 0;
}
.upload-zone input { width: auto; min-height: auto; }
.thumb-wrap { margin: 0; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skeleton {
  background: var(--line);
  background: linear-gradient(90deg, var(--line) 25%, var(--section-bg) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pagination {
  margin-top: 24px;
  display: flex; gap: 8px; align-items: center; justify-content: center;
}
.pagination .btn { min-width: 44px; padding: 0 12px; }
.pagination .current { font-weight: 800; color: var(--ink); }
.chip-input {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 6px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--control-bg);
}
.chip-input .chip { margin: 0; cursor: default; }
.chip-input .chip button {
  appearance: none; border: 0; background: none; color: inherit; padding: 0 4px; cursor: pointer;
  font-weight: 800; font-size: 14px;
}
.chip-input input { border: 0; padding: 4px 6px; min-height: 32px; flex: 1; min-width: 80px; }
.chip-input input:focus { outline: none; }
@media (max-width: 980px) {
  .topbar { display: flex; }
  .layout { grid-template-columns: 1fr; background: var(--paper); }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(280px, 88vw);
    height: 100%; max-height: none; align-self: auto;
    transform: translateX(-105%); transition: transform .2s ease; z-index: 30;
  }
  body.nav-open .sidebar { transform: none; }
  .grid.two, .form-grid, .perm-grid { grid-template-columns: 1fr; }
  .content { padding: 20px 16px 40px; }
  .site-footer { padding: 16px; }
  .nav { display: flex; flex-direction: column; }
  .fill-bar { flex-direction: column; align-items: stretch; }
  .fill-bar .toolbar { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Public landing / legal */
.public-page .lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.lp-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  min-width: 0;
}
.lp-brand:hover { text-decoration: none; color: var(--ink); }
.lp-brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.lp-header .theme-toggle {
  width: auto;
  color: var(--ink);
  border-color: var(--line);
}
.lp-main { flex: 1 1 auto; }
.lp-hero {
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(180, 77, 16, .28), transparent 55%),
    linear-gradient(165deg, var(--login-from), var(--login-to));
  color: #e8edf2;
  padding: 64px 28px 72px;
}
.lp-hero-inner,
.lp-section,
.lp-download {
  width: min(1100px, 100%);
  margin: 0 auto;
}
.lp-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.lp-hero-copy { min-width: 0; flex: 1 1 auto; }
.lp-qr {
  margin: 0;
  flex: 0 0 auto;
  background: #fff;
  color: #15202b;
  border-radius: 16px;
  padding: 14px 14px 12px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.lp-qr a {
  display: grid;
  place-items: center;
}
.lp-qr img {
  width: 168px;
  height: 168px;
  display: block;
  image-rendering: pixelated;
}
.lp-qr figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #3d4a57;
  line-height: 1.35;
}
.lp-download-inner .lp-qr {
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.lp-kicker {
  margin: 0 0 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #e07a3a;
}
.lp-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 16ch;
  color: #fff;
  margin-bottom: 16px;
}
.lp-hero-lead { max-width: 46em; color: #c5ced6; font-size: 18px; }
.lp-hero .muted { color: #9aa3ad; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.lp-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.lp-plat {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.lp-hero .lp-plat.is-ready {
  background: rgba(93, 186, 132, .16);
  color: #8fd4ab;
  border: 1px solid rgba(93, 186, 132, .4);
}
.lp-hero .lp-plat.is-soon {
  background: rgba(255, 255, 255, .06);
  color: #c5ced6;
  border: 1px solid #5a6a78;
}
.lp-download .lp-platforms { margin: 4px 0 0; }
.lp-download .lp-plat.is-ready {
  background: var(--chip-ok-bg);
  color: var(--flash-ok-fg);
  border: 1px solid transparent;
}
.lp-download .lp-plat.is-soon {
  background: var(--chip);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.lp-ios-note {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 15px;
}
.lp-hero .btn.secondary {
  background: transparent;
  color: #fff;
  border-color: #5a6a78;
}
.lp-hero .btn.secondary:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lp-section { padding: 56px 28px 8px; }
.lp-section h2 { font-size: 28px; letter-spacing: -0.03em; margin: 0 0 8px; }
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.lp-grid .card h3 { margin-top: 0; }
.lp-grid .card p { margin-bottom: 0; color: var(--ink-2); }
.lp-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.lp-steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.lp-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--rust);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.lp-steps b { font-size: 16px; }
.lp-steps span { color: var(--ink-2); }
.lp-download { padding: 48px 28px 64px; }
.lp-download-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.lp-download-inner h2 { margin: 0 0 8px; }
.lp-download-inner .btn { margin-top: 16px; }
.lp-legal {
  padding: 28px 20px 48px;
  width: min(800px, 100%);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .lp-grid, .lp-grid-3, .lp-steps { grid-template-columns: 1fr; }
  .lp-hero-inner,
  .lp-download-inner { flex-direction: column; align-items: stretch; }
  .lp-qr { align-self: flex-start; }
  .public-page .lp-header { padding: 12px 16px; }
  .lp-hero { padding: 40px 16px 48px; }
  .lp-section { padding: 40px 16px 8px; }
  .lp-download { padding: 32px 16px 48px; }
  .lp-brand small { display: none; }
}
@media (max-width: 640px) {
  .lp-header .theme-toggle { display: none; }
  .lp-header .btn { padding: 8px 12px; }
}
