/* app.css: the whole interface's styling. No framework, no external files.
   Colours come from the brand guide. Light and dark themes follow the
   visitor's system setting. Everything is defined as variables first so
   the look can be adjusted in one place. */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0B1430;
  --night: #070B1D;
  --blue: #1A5CF0;
  --blue-bright: #3B8BFF;

  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #F0F3F9;
  --text: #0B1430;
  --muted: #5B6478;
  --border: #DFE4EE;
  --accent: var(--blue);
  --accent-text: #FFFFFF;
  --accent-soft: #E8EFFE;
  --ok: #0F7A4A;
  --ok-soft: #E3F5EC;
  --danger: #C2283A;
  --danger-soft: #FCE9EB;
  --warn-soft: #FFF6DB;
  --focus: 0 0 0 3px rgba(26, 92, 240, 0.35);
  --shadow: 0 1px 2px rgba(11, 20, 48, 0.06), 0 4px 16px rgba(11, 20, 48, 0.05);

  /* Chart series (validated for colour-blind separation and contrast). */
  --series-qr: #1A5CF0;
  --series-link: #EB6834;
  --grid: #E8ECF3;
  --axis-text: #6B7489;

  --radius: 12px;
  --radius-small: 8px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Poppins", var(--font-body);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070B1D;
    --surface: #0F1631;
    --surface-2: #151E3F;
    --text: #E9EDF7;
    --muted: #97A1BA;
    --border: #232D52;
    --accent: var(--blue-bright);
    --accent-text: #061026;
    --accent-soft: #14244F;
    --ok: #4CD394;
    --ok-soft: #10302A;
    --danger: #FF6B7D;
    --danger-soft: #3A1622;
    --warn-soft: #3A3014;
    --focus: 0 0 0 3px rgba(59, 139, 255, 0.45);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    --series-qr: #3B8BFF;
    --series-link: #D95926;
    --grid: #1E2848;
    --axis-text: #8A94AE;
  }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-body);
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 0.4em; }
h1 { font-size: 1.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
code { font-family: var(--font-mono); font-size: 0.9em; }
img { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.label { font-weight: 600; margin-bottom: 0.4em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-text); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---- Top bar ---- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; }
.logo { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a, .link-button {
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-small);
  font: inherit; font-size: 0.95rem; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .link-button:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-user { font-weight: 600; font-size: 0.95rem; padding: 0 8px; max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; }
form.inline { display: inline; margin: 0; }

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav-spacer { display: none; }
  .nav-user { padding: 8px 12px; }
  .link-button { text-align: left; width: 100%; }
}

/* ---- Layout ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 32px 20px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.back { display: inline-block; margin-bottom: 6px; font-size: 0.9rem; text-decoration: none; }
.stack > * + * { margin-top: 16px; }
form.stack > .card + .card, form.stack > section + section { margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; }
.grid-2 + .grid-2 { margin-top: 16px; }
@media (max-width: 760px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
  .container { padding-top: 24px; }
}

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card, .card + form, form + .card { margin-top: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 560px; }
.card-toolbar { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card.empty { text-align: center; padding: 48px 24px; }
.card.empty img { margin-bottom: 12px; }
.card.empty p { max-width: 440px; margin: 0 auto; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }

/* ---- Stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.stat-label { display: block; color: var(--muted); font-size: 0.85rem; }
.stat-value { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; margin-top: 2px; }

/* ---- Forms ---- */
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-small);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
input::placeholder { color: var(--muted); opacity: 0.8; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }
.has-error input, .has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.88rem; margin: 6px 0 0; }
.search { max-width: 340px; }
.actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-small); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger-soft) 70%, var(--danger)); color: #fff; }
.btn-block { width: 100%; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th { text-align: left; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 12px 16px; background: var(--surface-2); }
.table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-2); }
.row-link { font-weight: 600; text-decoration: none; color: var(--text); }
.row-link:hover { color: var(--accent); }

/* ---- Badges and alerts ---- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-off { background: var(--surface-2); color: var(--muted); }
.badge-blue { background: var(--accent-soft); color: var(--accent); }
.alert { padding: 12px 16px; border-radius: var(--radius-small); margin-bottom: 20px; font-size: 0.95rem; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.callout { background: var(--warn-soft); padding: 12px 16px; border-radius: var(--radius-small); font-size: 0.95rem; }

/* ---- Secret display (temporary passwords) ---- */
.secret { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-small); padding: 12px 16px; margin-bottom: 16px; }
.secret code { font-size: 1.1rem; flex: 1; word-break: break-all; user-select: all; }

/* ---- Sign-in pages ---- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
  radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, #22C6F5 12%, transparent), transparent 60%),
  var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 32px; }
.auth-logo .logo { height: 34px; margin-bottom: 28px; }
.auth-card h1 { font-size: 1.5rem; }
.auth-foot { font-size: 0.85rem; text-align: center; margin: 24px 0 0; }

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

/* ---- Slice 2: links, QR codes, groups ---- */
.small { font-size: 0.85rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.form-narrow { max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.split > form > .card + .card, .split > aside > .card + .card { margin-top: 20px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
textarea { resize: vertical; min-height: 4.5em; }
textarea.code { font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 4px; }
input[type="color"] { width: 100%; height: 44px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface); cursor: pointer; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.9rem; }
.chip:hover { background: var(--surface-2); }
.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.chip-count { font-size: 0.78rem; opacity: 0.75; }

.link-list, .group-list, .history { list-style: none; margin: 0; padding: 0; }
.link-row, .group-list li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--border); }
.link-row:first-child, .group-list li:first-child { border-top: 0; }
.link-row:hover, .group-list li:hover { background: var(--surface-2); }
.link-qr { display: block; width: 56px; height: 56px; border-radius: 6px; border: 1px solid var(--border); background: #fff; }
.link-main { flex: 1; min-width: 0; }
.link-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-urls { display: flex; gap: 8px; align-items: baseline; font-size: 0.88rem; margin-top: 2px; min-width: 0; }
.short-url { font-family: var(--font-mono); color: var(--accent); white-space: nowrap; }
.arrow { color: var(--muted); }
.target { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.link-comment { margin: 4px 0 0; font-size: 0.88rem; color: var(--muted); white-space: pre-line; }
.link-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
@media (max-width: 640px) {
  .link-row { flex-wrap: wrap; }
  .link-urls { flex-direction: column; gap: 0; }
  .link-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

.qr-card .qr-preview { display: block; width: 100%; max-width: 240px; height: auto; margin: 4px auto 20px; border-radius: var(--radius-small); border: 1px solid var(--border); }
.qr-card .label { margin-top: 16px; }
.download-list { display: flex; flex-direction: column; gap: 8px; }
.download-list .btn { justify-content: flex-start; }
.history li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.history li:first-child { border-top: 0; padding-top: 0; }
.history .target { color: var(--text); }

/* ---- Slice 3: dashboards and charts ---- */
.stat-note { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.stat-value small { font-size: 0.9rem; font-weight: 600; }
.stat progress { display: block; width: 100%; height: 6px; margin-top: 10px; appearance: none; border: 0; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.stat progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 3px; }
.stat progress::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
.stat progress::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
.split > .stack > .card + .card, .split > aside.stack > .card + .card { margin-top: 20px; }
.stats-card { margin-bottom: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 24px 8px; }
.card-head h2 { margin: 0; }
.table.compact td, .table.compact th { padding: 8px 12px; font-size: 0.88rem; }

.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--axis-text); font-size: 11px; font-family: var(--font-body); }
.chart .empty-note { fill: var(--muted); font-size: 14px; font-family: var(--font-body); }
.chart .hit { fill: transparent; }
.chart .day:hover .hit { fill: var(--surface-2); }
.s-qr { fill: var(--series-qr); background: var(--series-qr); }
.s-link { fill: var(--series-link); background: var(--series-link); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 0 0 12px; font-size: 0.88rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend strong { color: var(--text); }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-table { margin-top: 12px; font-size: 0.9rem; }
.chart-table summary { cursor: pointer; color: var(--accent); }
.chart-table .table-wrap { max-height: 280px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: var(--radius-small); }

.share-list { list-style: none; margin: 0; padding: 0; }
.share-list li { display: grid; grid-template-columns: 6.5em 1fr auto; align-items: center; gap: 12px; padding: 6px 0; font-size: 0.9rem; }
.share { width: 100%; height: 8px; display: block; }
.share-track { fill: var(--surface-2); }
.share-value { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

.quick-actions { display: flex; flex-direction: column; gap: 8px; }
.quick-actions .btn { justify-content: flex-start; }
.rank-list { margin: 0; padding: 0 0 0 1.2em; }
ul.rank-list { list-style: none; padding: 0; }
.rank-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--border); }
.rank-list li:first-child { border-top: 0; }
.rank-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font-weight: 600; }
ol.rank-list li { display: list-item; }
ol.rank-list li .small { float: right; }
.health { list-style: none; margin: 0; padding: 0; }
.health li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.92rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-ok { background: var(--ok); }
.dot-warn { background: #D99A00; }
.dot-bad { background: var(--danger); }
.dot-neutral { background: var(--border); }
.head-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.export-options .card { display: flex; flex-direction: column; align-items: flex-start; }
.export-options .card .btn-primary { margin-top: auto; }
.export-options .download-list { width: 100%; }
.export-options + .hint { margin-top: 16px; }

/* ---- Public home page (landing.html) ----
   One idea carries the page: a printed card whose QR code stays put while
   its destination changes. Everything else is quiet around it. */
:root {
  --paper: #FFFFFF;        /* the printed card is paper in both themes */
  --paper-ink: #0B1430;
  --paper-muted: #5B6478;
  --brand-grad: linear-gradient(135deg, #1248E0, #0E93D0);
  --hero-wash: radial-gradient(900px 480px at 85% 10%, color-mix(in srgb, #0E93D0 16%, transparent), transparent 65%),
               radial-gradient(700px 420px at 0% 0%, color-mix(in srgb, #1248E0 10%, transparent), transparent 60%);
}
.lp { min-height: 100vh; display: flex; flex-direction: column; }
.lp main { flex: 1; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.lp-bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.lp-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.lp-brand .logo { height: 28px; }

.lp-hero { background: var(--hero-wash), var(--bg); padding-block: 64px 72px; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 18px; text-wrap: balance; }
.lp-sub { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.lp-card { margin: 0; display: grid; justify-items: center; gap: 16px; }
.lp-card-paper {
  width: min(300px, 100%); background: var(--paper); color: var(--paper-ink);
  border-radius: 6px; padding: 26px 26px 20px; text-align: center;
  box-shadow: 0 2px 4px rgba(11, 20, 48, 0.08), 0 24px 48px -12px rgba(11, 20, 48, 0.35);
  transform: rotate(-2deg);
}
.lp-card-kicker { margin: 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-muted); }
.lp-card-title { margin: 4px 0 14px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.lp-card-qr svg { display: block; width: 100%; height: auto; }
.lp-card-url { margin: 12px 0 0; font-family: var(--font-mono); font-size: 0.85rem; color: var(--paper-ink); }
.lp-dest { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 0.9rem; max-width: 100%; }
.lp-dest-label { color: var(--muted); white-space: nowrap; }
.lp-dest-swap { display: grid; font-family: var(--font-mono); font-size: 0.85rem; min-width: 0; }
.lp-dest-old, .lp-dest-new { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-dest-old { color: var(--muted); animation: lp-old 7s ease-in-out infinite; }
.lp-dest-new { color: var(--accent); font-weight: 600; animation: lp-new 7s ease-in-out infinite; }
.lp-card figcaption { color: var(--muted); font-size: 0.9rem; text-align: center; }
@keyframes lp-old {
  0%, 30% { opacity: 1; transform: none; text-decoration: none; }
  38% { opacity: 1; text-decoration: line-through; }
  48%, 92% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: none; }
}
@keyframes lp-new {
  0%, 44% { opacity: 0; transform: translateY(8px); }
  54%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-dest-old { display: none; }
  .lp-dest-old, .lp-dest-new { animation: none; opacity: 1; transform: none; }
}

.lp-section { padding-block: 64px; }
.lp-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; margin-bottom: 28px; text-wrap: balance; }
.lp-section h3 { font-size: 1.1rem; margin: 0 0 6px; }
.lp-section p { margin: 0; color: var(--muted); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.lp-step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-grad); color: #FFFFFF; font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.lp-promises { background: var(--surface-2); }
.lp-promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-promise-grid article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin: 0; }
.lp-features div { border-top: 2px solid var(--border); padding-top: 14px; }
.lp-features dt { font-family: var(--font-head); font-weight: 600; margin-bottom: 4px; }
.lp-features dd { margin: 0; color: var(--muted); }
.lp-uses { margin-top: 36px !important; font-size: 1.05rem; color: var(--text) !important; max-width: 42em; }
.lp-invite { padding-top: 16px; }
.lp-invite-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-radius: 16px; padding-block: 36px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.lp-invite-box > div { display: grid; gap: 10px; max-width: 40em; min-width: 0; }
.lp-invite-box h2 { margin: 6px 0 0; }
.lp-email { font-weight: 600; word-break: break-all; }
.lp-foot { border-top: 1px solid var(--border); padding-block: 24px; color: var(--muted); font-size: 0.9rem; }
.lp-foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-foot a { color: var(--muted); }

@media (max-width: 900px) {
  .lp-hero { padding-block: 40px 56px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-steps, .lp-promise-grid { grid-template-columns: 1fr; gap: 20px; }
  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lp-features { grid-template-columns: 1fr; }
  .lp-section { padding-block: 48px; }
  .lp-invite-box { padding-block: 28px; }
}

/* ---- Emailed links (forgot password, invitations) ---- */
.auth-link { text-align: center; margin: 16px 0 0; font-size: 0.92rem; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface-2); cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }

/* Two-factor login */
.totp-qr { width: 220px; max-width: 100%; margin: 8px 0 16px; padding: 8px; background: #fff; border-radius: var(--radius-small); border: 1px solid var(--border); }
.totp-qr svg { display: block; width: 100%; height: auto; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.25rem; letter-spacing: 0.12em; }
.recovery-codes { columns: 2; column-gap: 32px; padding-left: 1.6em; margin: 16px 0; font-size: 1.05rem; line-height: 2; }
.recovery-codes code { user-select: all; }
@media (max-width: 420px) { .recovery-codes { columns: 1; } }
@media print {
  .topbar, .site-footer, .actions, .callout, .page-head { display: none !important; }
  .card { border: none; box-shadow: none; }
}
#totp-secret { word-break: normal; }
