/* Same palette as the plug-in's front panel. No web fonts and no third-party
   assets, which is also what lets the Content-Security-Policy in the Caddyfile
   stay strict. */

:root {
  --ink: #0e0f10;
  --panel: #141517;
  --panel-2: #1b1d1f;
  --line: #2b2e31;
  --line-soft: #212326;
  --silk: #eceae4;
  --dim: #8d9194;
  --amber: #d98b1f;
  --green: #8fc71c;
  --red: #e0402f;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--silk);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration-color: rgba(236,234,228,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }

/* --- chrome ------------------------------------------------------------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 28px; border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand strong { display: block; font-size: 14px; letter-spacing: .02em; }
.brand small { display: block; color: var(--dim); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 5px; flex: none; position: relative;
  background: linear-gradient(160deg, #35383c, #0c0d0e); border: 1px solid #000;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 5px 4px auto 4px; height: 10px;
  border-radius: 1px; background: linear-gradient(#e6e4cd, #b9b7a0);
}
nav { display: flex; gap: 20px; font-size: 14px; }
nav a { color: var(--dim); text-decoration: none; }
nav a:hover { color: var(--silk); }

main { flex: 1; width: 100%; max-width: 940px; margin: 0 auto; padding: 56px 28px 80px; }

footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 28px; border-top: 1px solid var(--line-soft);
  color: var(--dim); font-size: 13px;
}

/* --- headings ----------------------------------------------------------- */
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 20px; font-weight: 700; }
h2 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin: 0 0 18px; }
h3 { font-size: 16px; margin: 0 0 10px; }

.kicker { color: var(--amber); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 20px; }
.standfirst { font-size: 21px; line-height: 1.45; color: #c3c6c8; max-width: 34em; margin: 0; }
.fineprint { color: var(--dim); font-size: 13px; }
.right { text-align: right; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.lede { margin-bottom: 44px; }

/* --- product shot ------------------------------------------------------- */
.shot { margin: 0 0 56px; }
.shot img {
  width: 100%; border-radius: 6px; border: 1px solid #000;
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
}
.shot.small { margin: 28px 0 0; }
.shot.small img { box-shadow: 0 14px 34px rgba(0,0,0,.5); }

/* --- body + buy box ----------------------------------------------------- */
.columns { display: grid; grid-template-columns: 1fr 290px; gap: 52px; align-items: start; }
@media (max-width: 800px) { .columns { grid-template-columns: 1fr; gap: 36px; } }

.prose p { margin: 0 0 20px; }
.prose p:first-child::first-letter { font-size: 1.05em; }

.buybox {
  border: 1px solid var(--line); border-radius: 8px; padding: 24px;
  background: linear-gradient(var(--panel-2), var(--panel));
  position: sticky; top: 24px;
}
@media (max-width: 800px) { .buybox { position: static; } }

.price { font-size: 40px; font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1; }
.price-note { color: var(--dim); font-size: 13px; margin: 6px 0 20px; }

.ticks { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-soft); }
.ticks li { position: relative; padding-left: 18px; color: var(--dim); font-size: 13.5px; margin-bottom: 9px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1px; background: var(--amber); }

/* --- spec sheet --------------------------------------------------------- */
.specs { margin-top: 72px; }
.specs table { width: 100%; border-collapse: collapse; }
.specs th {
  text-align: left; vertical-align: top; width: 172px; padding: 13px 20px 13px 0;
  font-weight: 600; font-size: 14px; border-top: 1px solid var(--line-soft);
}
.specs td {
  padding: 13px 0; border-top: 1px solid var(--line-soft);
  color: var(--dim); font-size: 14.5px;
}
@media (max-width: 620px) {
  .specs th, .specs td { display: block; width: auto; padding: 0; border: 0; }
  .specs th { padding-top: 16px; border-top: 1px solid var(--line-soft); }
  .specs td { padding-bottom: 14px; }
}

/* --- two-up ------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-top: 76px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 44px; } }
.split p { margin: 0 0 18px; font-size: 15.5px; }

.closing {
  margin-top: 76px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  color: var(--dim); font-size: 13px; max-width: 46em;
}
.closing p { margin: 0; }

/* --- shared ------------------------------------------------------------- */
.narrow { max-width: 580px; margin: 0 auto; }
.wide { max-width: 100%; }

.card {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 24px; margin-bottom: 20px;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: start; }
.card h3 { margin-top: 0; }
.card hr { border: 0; border-top: 1px solid var(--line-soft); margin: 20px 0; }

label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--dim); }
label.check { display: flex; align-items: center; gap: 8px; }
input[type=text], input[type=email], input[type=password], input[type=number] {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  background: var(--ink); color: var(--silk);
  border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px;
}
input:focus { outline: none; border-color: rgba(217,139,31,.65); box-shadow: 0 0 0 3px rgba(217,139,31,.12); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.button {
  display: inline-block; padding: 11px 22px; border-radius: 6px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--silk);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  text-align: center;
}
.button:hover { background: #26292c; }
.button.primary { background: var(--silk); color: var(--ink); border-color: var(--silk); }
.button.primary:hover { background: #fff; }
.button.block { display: block; width: 100%; margin-bottom: 9px; }
.button.danger { border-color: rgba(224,64,47,.45); color: #f08b7d; }
.button.small { padding: 6px 12px; font-size: 12px; }
.button.disabled { opacity: .4; cursor: not-allowed; }

.notice {
  padding: 12px 15px; border-radius: 6px; font-size: 14px;
  background: rgba(217,139,31,.09); border: 1px solid rgba(217,139,31,.28);
}
.notice.error { background: rgba(224,64,47,.09); border-color: rgba(224,64,47,.32); }
.notice.good { background: rgba(143,199,28,.09); border-color: rgba(143,199,28,.3); }

.facts { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; margin: 0; }
.facts dt { color: var(--dim); font-size: 13px; }
.facts dd { margin: 0; }
.key { font-size: 15px; letter-spacing: .05em; color: var(--amber); }

.tag { display: inline-block; padding: 2px 9px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.tag.good { background: rgba(143,199,28,.14); color: var(--green); }
.tag.warn { background: rgba(217,139,31,.14); color: var(--amber); }
.tag.bad  { background: rgba(224,64,47,.14); color: #f08b7d; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 10px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); font-weight: 600; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table small { display: block; color: var(--dim); font-size: 11px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stats div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.stats strong { display: block; font-size: 24px; line-height: 1.2; }
.stats span { color: var(--dim); font-size: 12px; }

.downloads { list-style: none; padding: 0; margin: 0; }
.downloads li {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.downloads span { color: var(--dim); font-size: 13px; }

/* --- A/B player ---------------------------------------------------------- */
.ab { margin-top: 76px; }
.ab-intro { color: var(--dim); font-size: 15px; max-width: 46em; margin: 0 0 24px; }

.ab-player {
  border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px;
  background: linear-gradient(var(--panel-2), var(--panel)); margin-bottom: 16px;
}
.ab-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 18px; }
.ab-head h3 { margin: 0 0 4px; font-size: 16px; }
.ab-head p { margin: 0; color: var(--dim); font-size: 14px; }
.ab-settings {
  color: var(--amber); font-size: 12px; white-space: nowrap;
  border: 1px solid rgba(217,139,31,.3); border-radius: 4px; padding: 3px 9px;
}

.ab-controls { display: flex; align-items: center; gap: 18px; }
@media (max-width: 620px) { .ab-controls { flex-wrap: wrap; } .ab-progress { order: 3; width: 100%; } }

.ab-play {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel-3, #26282c);
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.ab-play:hover { background: #303339; }
.ab-play:disabled { opacity: .4; cursor: not-allowed; }
.ab-icon-play {
  width: 0; height: 0; margin-left: 3px;
  border-left: 12px solid var(--silk); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.ab-icon-pause { width: 12px; height: 14px; border-left: 4px solid var(--silk); border-right: 4px solid var(--silk); }

.ab-progress { flex: 1; cursor: pointer; }
.ab-progress:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.ab-bar { height: 5px; background: rgba(255,255,255,.09); border-radius: 3px; overflow: hidden; }
.ab-bar i { display: block; height: 100%; width: 0; background: var(--amber); }
.ab-time { display: flex; justify-content: space-between; color: var(--dim); font-size: 11px; margin-top: 6px; }

.ab-switch { display: flex; flex: none; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ab-switch button {
  padding: 9px 20px; border: 0; background: transparent; color: var(--dim);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ab-switch button + button { border-left: 1px solid var(--line); }
.ab-switch button.on { background: var(--silk); color: var(--ink); }
.ab-fallback { color: #f08b7d; font-size: 13px; margin: 14px 0 0; }

/* --- storefront extras --------------------------------------------------- */
.standfirst.dim { color: var(--dim); font-size: 18px; margin-top: 16px; }
.prose h2 { margin: 38px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose .aside {
  border-left: 2px solid var(--line); padding-left: 14px;
  color: var(--dim); font-size: 13px;
}
.button.quiet { background: transparent; }

/* --- admin --------------------------------------------------------------- */
.admin { max-width: 100%; }
.admin-top { margin-bottom: 18px; }
.admin-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.admin-nav a {
  padding: 10px 16px; text-decoration: none; color: var(--dim);
  font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-nav a:hover { color: var(--silk); }
.admin-nav a.on { color: var(--silk); border-bottom-color: var(--amber); }

.explain { background: rgba(217,139,31,.05); border-color: rgba(217,139,31,.25); }
.warnbox { background: rgba(224,64,47,.06); border-color: rgba(224,64,47,.3); }
.warnbox ul { margin: 0 0 10px; padding-left: 20px; color: var(--dim); font-size: 14px; }
.warnbox li { margin-bottom: 6px; }

.steps { margin: 0 0 12px; padding-left: 20px; color: var(--dim); font-size: 14px; }
.steps li { margin-bottom: 7px; }

.searchbar { display: flex; gap: 10px; margin-bottom: 22px; }
.searchbar input { flex: 1; margin-top: 0; }
input[type=search] {
  padding: 11px 12px; background: var(--ink); color: var(--silk);
  border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px;
}

.licence-card { border-left: 3px solid var(--line); }
.licence-who { margin: 0 0 4px; font-size: 15px; }
.licence-who .dim { color: var(--dim); margin-left: 8px; font-weight: 400; }

.inline-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.inline-form label { max-width: 340px; }
form.inline { display: inline; }
.nowrap { white-space: nowrap; }
.table.compact td, .table.compact th { padding: 8px 10px 8px 0; font-size: 13px; }

textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  background: var(--ink); color: var(--silk); border: 1px solid var(--line);
  border-radius: 6px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical;
}
textarea:focus { outline: none; border-color: rgba(217,139,31,.65); }
.licence-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  background: var(--ink); color: var(--silk); border: 1px solid var(--line);
  border-radius: 6px; font: inherit; font-size: 15px;
}
input[type=file] { display: block; width: 100%; margin-top: 6px; font-size: 13px; color: var(--dim); }

.field-help { color: var(--dim); font-size: 12px; margin: -8px 0 16px; line-height: 1.45; }

.sticky-save {
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 14px;
  padding: 16px 0; background: linear-gradient(transparent, var(--ink) 30%);
}

.legal p { margin: 0 0 16px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
