/* RemapGo — HUD / instrument-cluster design system (same identity as the desktop app).
   cyan = interactive / live · amber = DTC / attention · green = done · red = fault
   Dark by default; light follows the system (prefers-color-scheme) or the toggle (data-theme). */
:root {
  color-scheme: dark;
  --bg: #06080c; --rail: #080b11; --surface: #0b0f16; --surface2: #101620; --surface3: #162030;
  --line: #1a2431; --line2: #273649; --text: #e6edf5; --muted: #8592a4; --dim: #5a6779;
  --accent: #22d3ee; --accent-dim: #0ea5c4; --accent-soft: #0a2630; --on-accent: #021317;
  --amber: #f5b942; --amber-soft: #261e0c; --green: #34d399; --green-soft: #0a271e;
  --red: #f87171; --red-soft: #2b1214;
  --chart-done: #0891b2; --chart-dtc: #b7791f;
  --grid: #0c121a; --text2: #c3cedb; --prose: #cfd8e3; --dump-o: #3b4a5e;
  --ok-line: #1e4a3b; --err-text: #fecaca; --err-line: #5a2226; --warn-text: #fde3a7; --warn-line: #6b5220;
  --legal-text: #f3dca8; --glow: rgba(34,211,238,.07); --glow2: rgba(34,211,238,.10); --shadow: rgba(34,211,238,.35);
  --bubble-me: #0d2a33; --bubble-them: #111823; --hero-scrim: 75%;
  --display: "Barlow Semi Condensed", "Bahnschrift", "Segoe UI", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --r: 3px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0 0 .5em; letter-spacing: .01em; }
code, .mono { font-family: var(--mono); }
::selection { background: var(--accent-dim); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- type helpers ---------- */
.micro { font: 600 11px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; }
.readout { font: 600 32px/1.1 var(--display); }
.accent { color: var(--accent); } .amber { color: var(--amber); } .green { color: var(--green); } .red { color: var(--red); }

/* ---------- HUD panel: thin frame + corner brackets ---------- */
.hud { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.hud::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: var(--r);
  --c: var(--accent); --cb: color-mix(in srgb, var(--c) 40%, transparent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 12px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1.5px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 12px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1.5px 12px no-repeat,
    linear-gradient(var(--cb), var(--cb)) bottom left / 12px 1.5px no-repeat,
    linear-gradient(var(--cb), var(--cb)) bottom left / 1.5px 12px no-repeat,
    linear-gradient(var(--cb), var(--cb)) bottom right / 12px 1.5px no-repeat,
    linear-gradient(var(--cb), var(--cb)) bottom right / 1.5px 12px no-repeat;
}
.hud.amber::before { --c: var(--amber); } .hud.green::before { --c: var(--green); }
.hud.red::before { --c: var(--red); } .hud.quiet::before { --c: var(--line2); }
.hud.red { background: var(--red-soft); border-color: var(--err-line); }
/* the colour modifiers only tint the frame, never the panel's text */
.hud.amber, .hud.green, .hud.red, .hud.quiet { color: var(--text); }
.hud > .micro:first-child, .hud-title { display: block; margin-bottom: 14px; }
.tile { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 0; border-radius: var(--r); padding: 11px 20px; font: 600 14px/1 var(--display); letter-spacing: .04em;
  text-transform: uppercase; color: var(--on-accent); background: linear-gradient(135deg, #3be0f5, #0ea5e9);
  text-decoration: none !important; transition: box-shadow .15s, filter .15s; }
.btn:hover { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn:disabled, .btn.disabled { background: var(--surface3); color: var(--dim); box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: none; }
.btn-danger { background: transparent; color: var(--red); border: 1px solid #5a2226; }
.btn-danger:hover { background: var(--red-soft); box-shadow: none; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }

/* ---------- forms ---------- */
label { display: block; }
.field { margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 12px; font: 14px var(--body); }
input:hover, select:hover, textarea:hover { border-color: var(--line2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; vertical-align: -3px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 2px;
  background: var(--surface2); border: 1px solid var(--line); font: 600 11px/1.3 var(--display);
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pill.accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.pill.amber { color: var(--amber); border-color: var(--warn-line); background: var(--amber-soft); }
.pill.green { color: var(--green); border-color: var(--ok-line); background: var(--green-soft); }
.pill.red { color: var(--red); border-color: var(--err-line); background: var(--red-soft); }
.led { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.code-chip { font: 700 12px var(--mono); color: var(--amber); background: var(--amber-soft); border: 1px solid #6b5220;
  padding: 3px 8px; border-radius: 2px; }

/* ---------- alerts ---------- */
.alert { padding: 11px 14px; border-radius: var(--r); border: 1px solid; margin-bottom: 16px; font-size: 14px; }
.alert.ok { color: var(--green); background: var(--green-soft); border-color: var(--ok-line); }
.alert.err { color: var(--err-text); background: var(--red-soft); border-color: var(--err-line); }
.alert.warn { color: var(--warn-text); background: var(--amber-soft); border-color: var(--warn-line); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font: 600 11px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 9px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:hover td { background: var(--surface2); }
.t .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- layout: app shell ---------- */
.shell { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.rail { background: var(--rail); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px;
  padding: 18px 12px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; }
.rail .logo { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; color: var(--text) !important;
  font: 700 20px var(--display); letter-spacing: .04em; text-decoration: none; }
.rail .logo svg { width: 40px; height: 40px; flex: none; }
.rail .group { display: flex; flex-direction: column; gap: 2px; }
.rail .group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px 12px 6px;
  font: 600 10px var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; user-select: none; }
.rail .group > summary::-webkit-details-marker { display: none; }
.rail .group > summary::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim);
  transform: rotate(-45deg); transition: transform .15s; }
.rail .group[open] > summary::after { transform: rotate(45deg); }
.rail .group > summary:hover { color: var(--text); }
.rail a, .rail .linkbtn.item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; min-height: 38px;
  color: var(--muted); text-decoration: none; font: 600 12px var(--display); letter-spacing: .08em; text-transform: uppercase;
  position: relative; width: 100%; box-sizing: border-box; text-align: left; }
.rail a svg, .rail .linkbtn.item svg { width: 18px; height: 18px; flex: none; }
.rail a:hover, .rail .linkbtn.item:hover { color: var(--text); background: var(--surface2); }
.rail a.on { color: var(--accent); background: var(--accent-soft); }
.rail a.on svg { color: var(--accent); }
.rail .sep { height: 1px; background: var(--line2); margin: 10px 12px; }
.rail .bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.rail .bottom form { margin: 0; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 20px; margin: 0; text-transform: uppercase; letter-spacing: .03em; }
.topbar .sub { color: var(--muted); font-size: 14px; padding-left: 14px; border-left: 1px solid var(--line2);
  min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar h1 { white-space: nowrap; }
.topbar .right { flex: none; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.content { padding: 24px 28px 28px; width: 100%; flex: 1 0 auto; display: flex; flex-direction: column; }
/* fill the screen: a .grow block takes the remaining height; side columns keep a fixed width */
.grow { flex: 1 0 auto; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col > .grow { flex: 1 0 auto; }
.g-side { grid-template-columns: minmax(0, 1fr) 380px; }
.g-main { grid-template-columns: minmax(0, 2.3fr) minmax(340px, 1fr); }
.plans-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.quota { display: flex; align-items: center; gap: 10px; }
.meter { width: 90px; height: 4px; background: var(--accent-soft); border-radius: 2px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); }
.meter.full > i { background: var(--amber); }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.mt { margin-top: 14px; } .mt2 { margin-top: 24px; } .mb0 { margin-bottom: 0; }

/* KPI tiles */
.kpi .readout { margin: 8px 0 4px; }
.kpi .muted { font-size: 13px; }

/* drop zone */
.drop { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 150px; border: 1px dashed var(--line2);
  border-radius: var(--r); background: var(--surface2); cursor: pointer; padding: 20px; text-align: left; transition: border-color .15s; }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop input[type=file] { display: none; }
.hex { width: 46px; height: 46px; flex: none; }

/* selectable cards (solutions) */
.opt { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface2); cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 2px solid var(--accent, #4f8cff); outline-offset: 2px; }
.opt .ico { width: 40px; height: 40px; flex: none; border: 1px solid var(--line2); border-radius: var(--r); display: grid;
  place-items: center; color: var(--accent); background: var(--surface); }
.opt .name { font: 600 16px var(--display); }
.opt .ledring { margin-left: auto; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt:has(input:checked) .ledring { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }
.opt:has(input:checked)::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; background: var(--accent); }
.opt.dtc:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.opt.dtc:has(input:checked) .ledring { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 8px var(--amber); }
.opt.dtc:has(input:checked)::before { background: var(--amber); }
.dtc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dtc-grid .opt { padding: 10px 12px; }
.dtc-grid .name { font: 700 14px var(--mono); color: var(--amber); }

/* tabs (segmented) */
.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r); }
.seg a, .seg button { padding: 8px 16px; border-radius: 2px; color: var(--muted); font: 600 12px var(--display); letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; border: 1px solid transparent; background: none; cursor: pointer; }
.seg a:hover { color: var(--text); }
.seg a.on { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }

/* stepper */
.steps { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.steps .s { padding: 6px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface2);
  font: 600 11px var(--display); letter-spacing: .07em; color: var(--dim); }
.steps .s.done { color: var(--green); border-color: var(--green); background: var(--green-soft); }
.steps .s.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent); }
.steps .l { width: 22px; height: 1px; background: var(--line2); }

/* bars (dashboard) */
.bar { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.bar .track { display: flex; align-items: center; gap: 8px; }
.bar .fill { height: 10px; border-radius: 0 4px 4px 0; background: var(--chart-done); min-width: 2px; }
.bar.dtc .fill { background: var(--chart-dtc); }
.bar .v { font-family: var(--mono); font-size: 12px; }

/* AI / markdown output */
.prose h3, .prose h4, .prose h5 { font-size: 17px; margin: 18px 0 6px; color: var(--accent); }
.prose p { margin: 0 0 10px; color: var(--prose); } .prose ul, .prose ol { margin: 0 0 10px; padding-left: 20px; color: var(--prose); }
.prose code { background: var(--surface3); padding: 1px 5px; border-radius: 2px; font-size: 12.5px; }
.hexrow { font: 12px var(--mono); color: var(--muted); }
.hexrow b { color: var(--amber); font-weight: 600; }

/* ---------- public site ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 36px; padding: 0 4%; min-height: 88px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); font: 700 28px/1 var(--display); letter-spacing: .04em;
  text-decoration: none !important; }
.go { color: #f5b942; }                        /* RemapGO: the GO is always the brand amber, in both themes */
.brand-mark { display: flex; }                  /* the logo box itself, so it centres on the wordmark */
.brand-mark svg { display: block; }
.brand-word { display: block; padding-top: .08em; }   /* capitals sit low in the line box: lift them to the logo's centre */
.nav .signin svg { display: none; }
.nav .links { display: flex; gap: 34px; margin-left: 16px; }
.nav .links a { color: var(--text2); font: 600 16px var(--display); letter-spacing: .07em; text-transform: uppercase; padding: 12px 0; }
.nav .links a:hover { color: var(--text); text-decoration: none; }
.nav .cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav .cta .btn-sm { min-height: 46px; padding: 0 22px; font-size: 15px; display: inline-flex; align-items: center; }
footer.site .wrap { max-width: none; padding: 0 4%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section.block { padding: 80px 0; }
.eyebrow { font: 600 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero { padding: 72px 0 64px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.02; margin: 14px 0 18px; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.hero p.lead { font-size: 18px; color: var(--text2); max-width: 560px; }
.hero .row { margin-top: 26px; }
.trust { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.trust div b { display: block; font: 600 26px var(--display); }
.trust div span { color: var(--muted); font-size: 13px; }

.readout-panel { padding: 0; overflow: hidden; }
.readout-panel .head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dump { padding: 14px 16px; font: 12.5px/1.75 var(--mono); color: var(--dim); position: relative; overflow: hidden; }
.dump .o { color: var(--dump-o); margin-right: 12px; }
.dump .c { color: var(--amber); }
.dump .k { color: var(--accent); }
.dump::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; animation: scan 3.2s linear infinite; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(260px); } }
@media (prefers-reduced-motion: reduce) { .dump::after { animation: none; display: none; } }
.readout-panel .foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.readout-panel .foot div { padding: 12px 16px; border-right: 1px solid var(--line); }
.readout-panel .foot div:last-child { border-right: 0; }
.readout-panel .foot b { display: block; font: 600 15px var(--mono); margin-top: 3px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.feature .ico { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: var(--r);
  color: var(--accent); margin-bottom: 14px; background: var(--surface2); }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); margin: 0; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; counter-reset: st; }
.how .hud { counter-increment: st; }
.how .hud::after { content: "0" counter(st); position: absolute; top: 14px; right: 16px; font: 600 28px var(--display); color: var(--line2); }
.how h3 { font-size: 18px; margin-top: 4px; }
.how p { color: var(--muted); margin: 0; font-size: 14px; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 34px; align-items: stretch; }
.price { display: flex; flex-direction: column; }
.price.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.price .amount { font: 600 46px/1 var(--display); margin: 10px 0 4px; }
.price .amount small { font-size: 16px; color: var(--muted); font-weight: 500; }
.price .limit { display: flex; align-items: baseline; gap: 8px; margin: 14px 0; padding: 12px 14px; background: var(--surface2);
  border: 1px solid var(--line); border-radius: var(--r); }
.price .limit b { font: 600 30px var(--display); color: var(--accent); }
.price ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price li { padding: 7px 0 7px 22px; position: relative; color: var(--text2); border-bottom: 1px solid var(--line); font-size: 14px; }
.price li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 600 18px var(--display); list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; max-width: 820px; }
.legal-note { border: 1px solid var(--warn-line); background: var(--amber-soft); color: var(--legal-text); border-radius: var(--r); padding: 14px 16px; font-size: 14px; }
footer.site { border-top: 1px solid var(--line); padding: 34px 0; color: var(--dim); font-size: 13px; margin-top: 40px; }

/* auth */
.auth { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 16px; }
.auth .hud { width: 100%; max-width: 440px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side { grid-template-columns: minmax(0, 1fr) 320px; }
  .hero { grid-template-columns: 1fr; }
  .features, .how { grid-template-columns: repeat(2, 1fr); }
  .nav .links { display: none; }      /* the menu does not fit next to the buttons: same as on phones */
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 0 6px; gap: 4px; z-index: 6; }
  .rail .logo, .rail .sep { display: none; }
  .rail .group { display: contents; }
  .rail .group > summary { display: none; }
  .rail a, .rail .linkbtn.item { width: auto; white-space: nowrap; padding: 10px 10px; }
  .rail .bottom { margin-top: 0; padding: 0; border: 0; flex-direction: row; }
  .topbar { position: static; padding: 12px 16px; flex-wrap: wrap; }
  .topbar .sub { display: none; }
  .content { padding: 18px 16px 40px; }
  .g2, .g3, .g4, .g6, .g-side, .g-main, .plans-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .nav { padding: 12px 16px; gap: 12px; min-height: 68px; }
  .brand { font-size: 21px; }
  .nav .links { display: none; }
  .features, .how { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
  .readout-panel .foot { grid-template-columns: 1fr; }
  .readout-panel .foot div { border-right: 0; border-bottom: 1px solid var(--line); }
}

.pill:empty { display: none; }
.dtc-grid > p { grid-column: 1 / -1; margin: 0; }

/* ================= landing v2: image-led, futuristic ================= */
.btn-lg { padding: 15px 26px; font-size: 15px; }
.h2xl { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; margin-top: 10px; }
.h2xl em, .cta-band em { font-style: normal; color: var(--accent); text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); }

.hero2 { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; overflow: hidden;
  background: var(--bg) url(/static/img/hero.webp) right center / cover no-repeat; border-bottom: 1px solid var(--line); }
.hero2::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 30%, color-mix(in srgb, var(--bg) 45%, transparent) 58%, color-mix(in srgb, var(--bg) 5%, transparent) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.hero2::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--glow) 1px, transparent 1px), linear-gradient(90deg, var(--glow) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.hero2-in { position: relative; z-index: 1; width: 100%; padding-top: 48px; padding-bottom: 72px; }
.hero2 h1 { font-size: clamp(42px, 6vw, 84px); line-height: .98; margin: 16px 0 20px; text-transform: uppercase; max-width: 760px; }
.hero2 h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 55%, transparent); }
.hero2 .lead { font-size: 19px; color: var(--text2); max-width: 600px; }
.hero2 .row { margin-top: 30px; }
.hero2 .trust { margin-top: 44px; }
.hero2 .trust div { padding-left: 14px; border-left: 2px solid var(--accent); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 22px; height: 36px; border: 1.5px solid var(--line2); border-radius: 12px; z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent);
  animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(12px); opacity: 0 } 100% { opacity: 0 } }

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.ticker .track { display: flex; align-items: center; gap: 26px; width: max-content; padding: 14px 0; animation: tick 46s linear infinite;
  font: 600 13px var(--display); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.ticker .a { color: var(--accent); } .ticker .d { color: var(--amber); }
.ticker i { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--line2); }
@keyframes tick { to { transform: translateX(-50%); } }

.icards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.icard { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s; }
.icard::before { inset: 0; z-index: 2; }
.icard img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s ease;
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
.icard .body { padding: 6px 20px 22px; margin-top: -26px; position: relative; }
.icard h3 { font-size: 22px; margin: 6px 0 8px; }
.icard p { color: var(--muted); margin: 0; font-size: 14.5px; }
.icard:hover { border-color: var(--accent); box-shadow: 0 0 34px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.icard.amber:hover { border-color: var(--amber); box-shadow: 0 0 34px -12px color-mix(in srgb, var(--amber) 70%, transparent); }
.icard:hover img { transform: scale(1.06); }

.showcase { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 80% at 85% 50%, var(--glow), transparent 70%); }
.showcase-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts b { font: 600 28px var(--display); color: var(--accent); }
.facts span { color: var(--text2); }

.how2 { position: relative; }
.how2::before { content: ""; position: absolute; left: 4%; right: 4%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
.how2 .node { position: absolute; top: -5px; left: 22px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--accent);
  box-shadow: 0 0 12px var(--accent); }

.price.hl { animation: glow 3.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 1px var(--accent), 0 0 60px -8px color-mix(in srgb, var(--accent) 70%, transparent); } }

.cta-band { position: relative; margin-top: 20px; padding: 90px 0; overflow: hidden; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent), color-mix(in srgb, var(--bg) 55%, transparent)), url(/static/img/generator.webp) center / cover; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-in h2 { margin: 0; max-width: 720px; }

@media (prefers-reduced-motion: reduce) {
  .ticker .track, .scroll-cue span, .price.hl { animation: none; }
  .icard img { transition: none; }
}
@media (max-width: 1100px) {
  .icards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero2 { background-position: 70% center; min-height: auto; }
  .hero2::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) var(--hero-scrim), transparent), var(--bg) 92%); }
  .icards { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 90px 1fr; }
  .scroll-cue { display: none; }
}

/* desktop app band */
.appband { border-bottom: 1px solid var(--line); background: radial-gradient(55% 70% at 25% 50%, var(--glow2), transparent 70%); }
.appband-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.appshot { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2);
  box-shadow: 0 30px 80px -30px var(--shadow); }
.appshot img { display: block; width: 100%; height: auto; }
.appshot::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 60%, color-mix(in srgb, var(--bg) 55%, transparent)); }
@media (max-width: 1100px) { .appband-in { grid-template-columns: 1fr; } }


/* ======================================================= light theme ===== */
/* same tokens, light steps: follows the system unless the toggle forces one */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #eef2f7; --rail: #e5ebf2; --surface: #ffffff; --surface2: #f5f8fb; --surface3: #e8eef5;
    --line: #d4dce7; --line2: #bfcad8; --text: #0e1621; --muted: #556275; --dim: #7b8798;
    --accent: #0e7490; --accent-dim: #0891b2; --accent-soft: #dff4f9;
    --amber: #a15c07; --amber-soft: #fdf2dc; --green: #047857; --green-soft: #e1f5ec; --red: #b91c1c; --red-soft: #fde8e8;
    --grid: #e3e9f0; --text2: #334155; --prose: #273444; --dump-o: #94a3b8;
    --ok-line: #9fd8c0; --err-text: #991b1b; --err-line: #f3b4b4; --warn-text: #7c4a03; --warn-line: #ecc879;
    --legal-text: #6b4204; --glow: rgba(14,116,144,.07); --glow2: rgba(14,116,144,.08); --shadow: rgba(14,116,144,.25);
    --bubble-me: #e3f5fa; --bubble-them: #f3f6fa; --hero-scrim: 90%;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f7; --rail: #e5ebf2; --surface: #ffffff; --surface2: #f5f8fb; --surface3: #e8eef5;
  --line: #d4dce7; --line2: #bfcad8; --text: #0e1621; --muted: #556275; --dim: #7b8798;
  --accent: #0e7490; --accent-dim: #0891b2; --accent-soft: #dff4f9;
  --amber: #a15c07; --amber-soft: #fdf2dc; --green: #047857; --green-soft: #e1f5ec; --red: #b91c1c; --red-soft: #fde8e8;
  --grid: #e3e9f0; --text2: #334155; --prose: #273444; --dump-o: #94a3b8;
  --ok-line: #9fd8c0; --err-text: #991b1b; --err-line: #f3b4b4; --warn-text: #7c4a03; --warn-line: #ecc879;
  --legal-text: #6b4204; --glow: rgba(14,116,144,.07); --glow2: rgba(14,116,144,.08); --shadow: rgba(14,116,144,.25);
  --bubble-me: #e3f5fa; --bubble-them: #f3f6fa; --hero-scrim: 90%;
}

/* ============================================ language & theme controls ===== */
.ctl { position: relative; display: inline-flex; }
.ctl > summary, .ctl > button { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface);
  color: var(--muted); font: 600 12px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.ctl > summary::-webkit-details-marker { display: none; }
.ctl > summary:hover, .ctl > button:hover { color: var(--text); border-color: var(--accent-dim); }
.ctl .menu { position: absolute; right: 0; top: 36px; z-index: 30; min-width: 170px; background: var(--surface);
  border: 1px solid var(--line2); border-radius: var(--r); padding: 6px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.45); }
.ctl .menu a { display: flex; justify-content: space-between; padding: 7px 10px; color: var(--text); border-radius: 2px;
  font-size: 14px; }
.ctl .menu a:hover { background: var(--surface3); text-decoration: none; }
.ctl .menu a.on { color: var(--accent); }
.ctl .menu a small { color: var(--dim); font: 600 11px var(--mono); }
.theme-btn svg { width: 15px; height: 15px; }

/* public header on phones: everything on one line without sideways scroll (flag-only language, no theme
   button, compact buttons; the wordmark goes on the narrowest screens and the hexagon logo stays) */
@media (max-width: 560px) {
  .nav { gap: 8px; padding: 10px 12px; min-height: 60px; }
  .nav .brand { gap: 8px; font-size: 18px; }
  .nav .brand svg { width: 38px; height: 38px; }
  .nav .cta { gap: 6px; min-width: 0; }
  .nav .cta .ctl:has(.theme-btn) { display: none; }
  .nav .ctl > summary { font-size: 0; gap: 0; padding: 0 8px; }
  .nav .cta .btn-sm { min-height: 38px; padding: 0 11px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 420px) {
  .nav .signin { padding: 0 9px; }               /* "Sign in" becomes an icon so PATCHLAB fits beside the logo */
  .nav .signin svg { display: block; }
  .nav .signin span { display: none; }
}
@media (max-width: 380px) {
  .nav { padding: 10px 10px; gap: 6px; }
  .nav .brand { gap: 6px; font-size: 16px; letter-spacing: .04em; }
  .nav .brand svg { width: 34px; height: 34px; }
  .nav .cta { gap: 5px; }
  .nav .cta .btn-sm { padding: 0 9px; }
}
@media (max-width: 350px) {
  .nav .brand-word { display: none; }
}

/* ================================================================= rail badge ===== */
.rail a .badge, .tabs .badge { min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--amber); color: #1b1203; font: 700 10px/18px var(--mono); text-align: center; }
.rail a .badge { margin-left: auto; }
.tabs .badge { position: absolute; top: 5px; right: 20px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 8px var(--amber); vertical-align: middle; }

/* ============================================================ support ===== */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--line2); border-radius: 15px; background: var(--surface2); color: var(--muted);
  font: 600 12px var(--display); letter-spacing: .06em; user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { color: var(--text); border-color: var(--accent-dim); }
.chip:has(input:checked) { color: var(--accent); border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 10px -2px color-mix(in srgb, var(--accent) 60%, transparent); }
.tlist a.trow { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 10px;
  border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tlist a.trow:hover { background: var(--surface2); }
.tlist .trow .id { font: 600 13px var(--mono); color: var(--dim); }
.tlist .trow .subj { min-width: 0; }
.tlist .trow .subj b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tlist .trow.unread .subj b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px;
  border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); vertical-align: middle; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bubble-them); }
.msg.me { align-self: flex-end; background: var(--bubble-me); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.msg.sys { align-self: center; max-width: 92%; background: transparent; border-style: dashed; color: var(--muted);
  font-size: 13px; padding: 6px 12px; text-align: center; }
.msg.internal { border-color: var(--warn-line); background: var(--amber-soft); }
.msg .who { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 6px; font: 600 11px var(--display);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.msg .body { white-space: pre-wrap; word-wrap: break-word; }
.msg .orig { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line2); color: var(--muted); font-size: 13px;
  white-space: pre-wrap; }
.msg .att { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font: 600 12px var(--mono); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font: 600 11px/1.9 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
textarea { min-height: 96px; }
.flag { display: inline-block; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent); }
.news-banner { margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.theme-btn svg { display: none; } .theme-btn svg.on { display: inline-block; }

/* ---------- landing (full width) ---------- */
.lp { --lp-pad: 4%; }
.lp-in { padding-left: var(--lp-pad); padding-right: var(--lp-pad); box-sizing: border-box; width: 100%; }
.lp section { position: relative; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-scrim { position: absolute; inset: 0; }
.lp-scrim-side { background: linear-gradient(90deg, rgba(6,8,12,.97) 0%, rgba(6,8,12,.88) 38%, rgba(6,8,12,.35) 70%, rgba(6,8,12,.15) 100%); }
.lp-scrim-rev { background: linear-gradient(90deg, rgba(6,8,12,.55) 0%, rgba(6,8,12,.85) 45%, rgba(6,8,12,.96) 100%); }
.lp-scrim-full { background: rgba(6,8,12,.84); }
.lp-hero, .lp-how, .lp-cta { overflow: hidden; color: #e6edf5; background: #06080c; }
.lp-hero { min-height: 780px; display: flex; align-items: center; }
.lp-hero-in { position: relative; padding-top: 120px; padding-bottom: 120px; }
.lp-hero-in > * { max-width: 760px; }
.lp-hero h1 { font: 700 clamp(46px, 6.4vw, 92px)/.98 var(--display); margin: 26px 0; }
.lp em { font-style: normal; color: var(--accent); }
.lp-hero em, .lp-cta em { color: #22d3ee; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #1e4a3b; background: rgba(10,39,30,.85);
  border-radius: var(--r); font: 13px var(--mono); color: #34d399; }
.lp-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.lp-lead { font-size: 21px; line-height: 1.55; color: #c3cedb; margin: 0 0 38px; max-width: 640px; }
.lp-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-row.center { justify-content: center; }
.lp .btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; display: inline-flex; align-items: center; gap: 10px; }
.lp-glass { background: rgba(6,8,12,.6); color: #e6edf5; border-color: #3b4a5e; }
.lp-ticks { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; color: #c3cedb; }
.lp-ticks li { display: flex; align-items: center; gap: 10px; }
.lp-ticks svg, .lp-feats svg { color: var(--green); flex: none; }
.lp-ticks svg { color: #34d399; }
.lp-eyebrow { font: 600 14px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lp-eyebrow.muted { color: var(--muted); }
.lp-h2 { font: 700 clamp(36px, 4.6vw, 64px)/1.02 var(--display); margin: 12px 0 16px; }
.lp-xl { font-size: clamp(42px, 5.6vw, 76px); }
.lp-sub { margin: 0; color: var(--text2); font-size: 19px; max-width: 660px; }
.lp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 52px; }
.lp-head > div:first-child { flex: 1 1 560px; min-width: 0; }
.lp-note { margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.lp-mono { font: 15px var(--mono); color: var(--text2); }
/* plans */
.lp-plans { background: radial-gradient(1100px 520px at 50% 0%, var(--glow2), transparent 70%), var(--rail); }
.lp-plans .lp-in { padding-top: 120px; padding-bottom: 112px; }
.lp-period { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface); }
.lp-period button { min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--r); cursor: pointer; font: 600 16px var(--body);
  background: transparent; color: var(--text2); }
.lp-period button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.lp-cards { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.lp-card { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; padding: 36px; border: 1px solid var(--line2);
  border-radius: var(--r); background: var(--surface); }
.lp-card.top { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 70%);
  box-shadow: 0 30px 90px var(--glow2); }
.lp-card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-card h3 { font: 700 32px var(--display); margin: 0; letter-spacing: .02em; }
.lp-flag { font: 600 12px var(--mono); padding: 5px 10px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); }
.lp-flag.quiet { background: var(--surface3); color: var(--text2); }
.lp-muted { color: var(--muted); margin-top: 6px; }
.lp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 26px 0 4px; }
.lp-price .amt { font: 700 72px/.95 var(--display); }
.lp-price .per { color: var(--muted); font-size: 18px; }
.lp-save { color: var(--green); font-size: 15px; font-weight: 500; min-height: 23px; }
.lp-was { color: var(--muted); font-size: 20px; }
.lp-was:empty { display: none; }
.lp-pricegrid .lp-was { font: 500 22px var(--display); margin-left: 6px; }
.lp-then { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.lp-promo { margin: 18px 0 0; }
.lp-founder { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; padding: 16px 22px; border: 1px solid var(--amber);
  border-radius: var(--r); background: var(--amber-soft); }
.lp-founder svg { color: var(--amber); flex: none; }
.lp-founder p { margin: 0; font-size: 16px; }
.lp-left { display: inline-block; margin-left: 8px; font: 600 13px var(--mono); padding: 3px 9px; border-radius: var(--r);
  background: var(--amber); color: #1a1205; }
.lp-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.lp-stats div { flex: 1 1 120px; border: 1px solid var(--line2); border-radius: var(--r); padding: 12px 14px; background: var(--bg); }
.lp-stats b { display: block; font: 700 30px/1 var(--display); }
.lp-stats span { color: var(--muted); font-size: 13px; }
.lp-feats { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; font-size: 17px; }
.lp-feats li { display: flex; gap: 10px; align-items: flex-start; }
.lp-feats svg { margin-top: 3px; }
.lp-card .btn-block { min-height: 54px; font-size: 16px; display: flex; align-items: center; justify-content: center; }
/* services */
.lp-pad-top { padding-top: 112px; padding-bottom: 40px; }
.lp-tiles { display: flex; flex-wrap: wrap; gap: 2px; background: var(--line); }
.lp-tile { position: relative; flex: 1 1 340px; min-width: 0; height: 520px; overflow: hidden; background: #06080c; color: #e6edf5; }
.lp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lp-tile:hover img { transform: scale(1.04); }
.lp-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,8,12,.05) 30%, rgba(6,8,12,.95) 88%); }
.lp-tile-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; z-index: 1; }
.lp-tile-t h3 { font: 700 34px var(--display); margin: 8px 0; color: #e6edf5; }
.lp-tile-t p { margin: 0; color: #c3cedb; }
.lp-tag { font: 13px var(--mono); color: #22d3ee; }
.lp-tag.amber { color: #f5b942; } .lp-tag.green { color: #34d399; }
/* how to buy */
.lp-how-in { position: relative; padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.lp-how-h { flex: 1 1 420px; min-width: 0; }
.lp-how .lp-eyebrow { color: #22d3ee; }
.lp-steps { flex: 1 1 520px; min-width: 0; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-steps li { display: flex; gap: 20px; align-items: flex-start; padding: 24px 26px; border: 1px solid #273649; border-radius: var(--r); background: rgba(11,15,22,.88); }
.lp-steps li.ok { border-color: #1e4a3b; background: rgba(10,39,30,.88); }
.lp-steps .n { font: 700 40px/1 var(--display); color: #22d3ee; }
.lp-steps li.ok .n { color: #34d399; }
.lp-steps b { display: block; font: 600 24px var(--display); }
.lp-steps span:not(.n) { color: #c3cedb; }
/* price per file */
.lp-perfile { background: var(--rail); }
.lp-perfile .lp-in { padding-top: 104px; padding-bottom: 104px; }
.lp-perfile .lp-head { margin-bottom: 40px; }
.lp-pricegrid { display: flex; flex-wrap: wrap; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lp-pricegrid div { flex: 1 1 220px; padding: 30px 32px; background: var(--surface); }
.lp-pricegrid span { color: var(--muted); }
.lp-pricegrid b { display: block; font: 700 48px/1.1 var(--display); }
/* trust */
.lp-trust-in { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 40px; }
.lp-trust-in > div { flex: 1 1 280px; min-width: 0; }
.lp-trust svg { color: var(--accent); }
.lp-trust h3 { font: 600 26px var(--display); margin: 14px 0 8px; }
.lp-trust p { margin: 0; color: var(--muted); font-size: 17px; }
/* final cta */
.lp .lp-cta { border-bottom: 0; }
.lp-cta-in { position: relative; padding-top: 140px; padding-bottom: 140px; text-align: center; }
.lp-cta .lp-lead { margin: 0 auto 40px; }
.lp-legal { margin: 28px 0; }
@media (max-width: 640px) {
  .lp-hero { min-height: 0; }
  .lp-hero-in, .lp-how-in, .lp-cta-in { padding-top: 80px; padding-bottom: 80px; }
  .lp-plans .lp-in, .lp-perfile .lp-in, .lp-pad-top { padding-top: 72px; }
  .lp-tile { height: 420px; }
  .lp-card { padding: 26px; }
  .lp-price .amt { font-size: 56px; }
}


/* ---------- web panel: purchases, new request, purchase detail ---------- */
.wrap-row { flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; flex: 1 1 520px; }
.stats .stat .readout { margin-top: 4px; }
.search { height: 34px; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface2); color: var(--text); font: 400 14px var(--body, inherit); width: 220px; max-width: 100%; }
.step-h { display: flex; align-items: center; gap: 12px; }
.step-h h2 { margin: 0; font: 700 18px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 15px var(--display); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface2); color: var(--text2); font: 600 14px var(--display); letter-spacing: .04em; cursor: pointer; }
.chip input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pay-row { gap: 12px; flex-wrap: wrap; }
.pay-row .btn { flex: 1 1 220px; }
.lines { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.lines .line { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.total { margin-top: 10px; font: 700 20px var(--display); }
.note { padding: 10px 12px; border-radius: var(--r); background: var(--surface2); color: var(--text2); font-size: 13px; line-height: 1.5; }
.note.amber { background: var(--amber-soft); color: var(--amber); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps li i { display: block; height: 4px; border-radius: 2px; background: var(--line2); }
.steps li.done i { background: var(--green); }
.steps li b { font: 700 15px var(--display); letter-spacing: .04em; color: var(--muted); }
.steps li.done b { color: var(--text); }
.steps li.done:last-child b { color: var(--green); }
@media (max-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sign in / sign up modal over the landing ---------- */
dialog.modal { border: 0; padding: 0; background: transparent; width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
dialog.modal::backdrop { background: rgba(2, 6, 12, .72); backdrop-filter: blur(3px); }
dialog.modal .hud { color: var(--text); }
.tabs-auth { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface2); }
.tabs-auth button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 4px; cursor: pointer;
  font: 600 13px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.tabs-auth button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
dialog.modal .close { color: var(--muted); font-size: 18px; padding: 4px 8px; }
dialog.modal .close:hover { color: var(--text); }
