:root {
  --bg: #111111; --surface: #1A1A1A; --surface-2: #222222; --line: #2B2B2B;
  --text: #FFFFFF; --muted: #A3A3A3; --dim: #6B6B6B;
  --accent: #FF6A2B; --cta-a: #FF4F1F; --cta-b: #FFA31A;
  --bubble: #005C4B; --ok: #3DDC84; --warn: #FFB547; --bad: #FF6B5E;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--sans); }
a { color: var(--text); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--cta-b); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  overflow-x: auto; white-space: pre-wrap; line-height: 1.5; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); } .small { font-size: .9rem; } .mt { margin-top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cta-b); outline-offset: 3px; }

/* Header */
header.site { position: relative; z-index: 3; }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--text); }
nav form { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  border-radius: 10px; padding: 13px 22px; font: 700 1rem/1.1 var(--sans); text-decoration: none;
  color: #fff; background: linear-gradient(90deg, var(--cta-a), var(--cta-b)); }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.big { width: 100%; padding: 18px 22px; font-size: 1.15rem; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 9px 14px; font-size: .92rem; }
.btn.danger { background: transparent; color: var(--bad); border: 1.5px solid var(--bad); }
.linkish { background: none; border: 0; color: var(--muted); font: 600 1rem var(--sans); cursor: pointer; padding: 0; }
.linkish:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: -68px; padding-top: 68px; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px;
  align-items: center; padding: 72px 20px 96px; }
.hero h1 { margin-bottom: 28px; }
.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 1.25rem; line-height: 1.45; }
.pains li { display: grid; grid-template-columns: 1.6em 1fr; gap: 6px; }
.pains .em { font-style: normal; }
.cta-card { background: #fff; border-radius: 22px; padding: 8px; }
.cta-card-in { background: var(--bg); border-radius: 16px; padding: 26px 22px 22px; display: grid; gap: 14px; }
.cta-card .price { font-size: 1.05rem; font-weight: 700; text-align: center; margin: 0; }
.cta-card .fine { color: var(--muted); font-size: .88rem; text-align: center; margin: 0; }

/* The wall of links sent to yourself and never read */
.wall { position: absolute; inset: -40px -60px 0 -60px; z-index: 1; display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 18px; padding: 30px; transform: rotate(-6deg) scale(1.08);
  opacity: .55; pointer-events: none; }
.wall::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,.96) 0%, rgba(17,17,17,.88) 42%, rgba(17,17,17,.45) 70%, rgba(17,17,17,.25) 100%),
              linear-gradient(0deg, rgba(17,17,17,1) 0%, rgba(17,17,17,0) 30%),
              linear-gradient(180deg, rgba(17,17,17,.95) 0, rgba(17,17,17,0) 130px); }
.bubble { background: var(--bubble); color: #E9FBF5; border-radius: 12px 12px 4px 12px; padding: 10px 12px 8px;
  font-size: .9rem; line-height: 1.35; align-self: start; }
.bubble .link { display: block; color: #7FD4FF; word-break: break-all; }
.bubble .meta { display: block; text-align: right; color: #9AD9C6; font-size: .72rem; margin-top: 4px; }
.wall .col { display: grid; gap: 18px; align-content: start; }
.wall .col:nth-child(2n) { margin-top: 70px; }
.wall .col:nth-child(3n) { margin-top: 30px; }

/* Sections */
section.band { padding: 80px 0; border-top: 1px solid var(--line); }
section.band > .wrap > h2 { max-width: 22ch; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin-bottom: 36px; }

/* How it works: the real sequence, read left to right */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.mock .who { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.mock .who .handle { color: var(--muted); font-weight: 400; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: inline-grid;
  place-items: center; font-size: 1rem; flex: none; }
.avatar img { width: 34px; height: 34px; border-radius: 50%; }
.mock p { margin: 0 0 8px; }
.mock .tag { color: #4FA8FF; font-weight: 600; }
.mock .reply { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.caption { color: var(--muted); font-size: .95rem; margin: 12px 4px 0; }
.issue h3 { font-size: 1.05rem; margin-bottom: 10px; }
.issue dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 10px; font-size: .95rem; }
.issue dt { color: var(--muted); } .issue dd { margin: 0; }
.verdict { color: var(--ok); font-weight: 700; }

/* Pricing + FAQ */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.price-big { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0 0 6px; }
.price-big small { font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; font-size: 1.05rem; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--muted); }
.faq details[open] summary::before { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0 1.2em; }

/* Sticky bottom bar (landing only) */
.stickybar { position: sticky; bottom: 0; z-index: 5; background: rgba(17,17,17,.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); }
.stickybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.stickybar p { margin: 0; font-weight: 700; }

/* App pages (dashboard, guide, legal, admin) */
.dash { padding: 36px 0 70px; display: grid; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.dash .card h2 { font-size: 1.3rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; border: 1px solid var(--line); }
.pill.ok { color: var(--ok); border-color: currentColor; } .pill.warn { color: var(--warn); border-color: currentColor; }
.pill.bad { color: var(--bad); border-color: currentColor; } .pill.dim { color: var(--muted); }
progress.meter { appearance: none; width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; }
progress.meter::-webkit-progress-bar { background: var(--line); }
progress.meter::-webkit-progress-value { background: linear-gradient(90deg, var(--cta-a), var(--cta-b)); }
progress.meter::-moz-progress-bar { background: linear-gradient(90deg, var(--cta-a), var(--cta-b)); }
form.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
label .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=url], input[type=password], select {
  width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg);
  color: var(--text); font: 400 1rem var(--sans); }
input:focus, select:focus { outline: 3px solid var(--cta-b); outline-offset: 1px; }
#delete input { max-width: 280px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.alert { border-radius: 10px; padding: 12px 14px; border: 1.5px solid currentColor; }
.alert.bad { color: var(--bad); } .alert.ok { color: var(--ok); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
details summary { cursor: pointer; }
.card details summary { color: var(--cta-b); }
.htmx-indicator { display: none; } .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; } .prose li { margin: .35em 0; } .prose ol, .prose ul { padding-left: 1.3em; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (max-width: 860px) {
  header.site .wrap { flex-wrap: nowrap; }
  .brand { font-size: 1rem; white-space: nowrap; }
  nav { gap: 12px; }
  nav .nav-guide { display: none; }
  .wall::after { background: rgba(17,17,17,.84); }
  .hero-inner, .flow, .split, .grid2 { grid-template-columns: 1fr; }
  .hero-inner { padding: 36px 20px 56px; gap: 32px; }
  .pains { font-size: 1.1rem; }
  .wall { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
  section.band { padding: 56px 0; }
  .stickybar p { display: none; }
  .stickybar .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
