:root {
  /* neutral defaults; each project overrides them (tenants.branding) */
  --accent: #111111;
  --accent-text: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e6e6ea;
  --bg: #f6f6f8;
  --surface: #ffffff;
  --ok: #1f9d55;
  --radius: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.wrap { max-width: 520px; margin: 0 auto; padding: 24px 16px 48px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { max-height: 32px; max-width: 160px; }
.secure { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.lock { width: 10px; height: 12px; border: 2px solid var(--muted); border-radius: 2px; position: relative; top: 2px; }
.lock::before { content: ""; position: absolute; left: 0; top: -8px; width: 6px; height: 6px;
  border: 2px solid var(--muted); border-bottom: 0; border-radius: 6px 6px 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
h1 { font-size: 22px; margin: 0 0 4px; }
.muted { color: var(--muted); }
.summary { margin: 20px 0; padding: 16px; background: var(--bg); border-radius: calc(var(--radius) * .75); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.row.total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
label { font-size: 13px; font-weight: 600; }
input, select { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .75); background: var(--surface); color: var(--ink); width: 100%; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 12px 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.grid2 .field { margin: 0; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } .card { padding: 18px; } }
.methods { display: flex; gap: 8px; margin: 18px 0 8px; flex-wrap: wrap; }
.methods button { flex: 1; min-width: 120px; padding: 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .75); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer; }
.methods button[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
/* Stripe sessions: the trial in one big line, and the private / business choice before the provider's form */
.trial { margin: 16px 0; padding: 16px; border: 2px solid var(--accent); border-radius: calc(var(--radius) * .75); font-size: 19px; font-weight: 700; line-height: 1.35; }
.buyer { display: flex; gap: 8px; margin: 18px 0 8px; flex-wrap: wrap; }
.buyer button { flex: 1; min-width: 120px; padding: 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .75); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer; }
.buyer button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cardfield { min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .75); }
.btn { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: calc(var(--radius) * .75); background: var(--accent); color: var(--accent-text);
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.btn:hover { filter: brightness(.92); }
.btn:disabled { opacity: .55; cursor: default; }
.msg { margin-top: 14px; padding: 12px; border-radius: calc(var(--radius) * .75); background: #fff4f3; color: #9b1c17; font-size: 14px; }
.msg.ok { background: #effaf3; color: var(--ok); }
.foot { margin-top: 16px; text-align: center; color: var(--muted); font-size: 12px; }
.info h1 { margin-top: 14px; }
.info hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.info p { margin: 8px 0; }
.info + .info { margin-top: 16px; }
/* information block of the root page and the legal line of the Paddle link page */
.about h2 { font-size: 17px; margin: 0 0 8px; }
.about h3 { font-size: 15px; margin: 0; }
.prod { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.prod .price { color: var(--muted); font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 8px 0; padding: 0; font-size: 14px; }
.about a, .legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal p { margin: 6px 0; }
/* demo accounts: clearly a test */
.demo-banner { margin: 0 0 12px; padding: 8px 12px; border-radius: calc(var(--radius) * .75); background: #fff4e5; color: #8a4b00;
  font-size: 13px; font-weight: 700; text-align: center; letter-spacing: .02em; }
.demo { margin: 16px 0 0; color: #8a4b00; font-size: 14px; }
.demo-buttons { grid-template-columns: 1fr 1fr; }
.btn-alt { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
a.btn { display: block; text-align: center; text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.result-icon { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff; background: var(--muted); }
.result-icon.ok { background: var(--ok); }
.result-icon.bad { background: #c0392b; }
/* the heading above Stripe's form: our order is placed, the form is only the payment step */
.ordered { margin: 20px 0 0; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--bg); border-radius: calc(var(--radius) * .5); font-size: 15px; font-weight: 600; line-height: 1.45; }
/* Stripe sessions: the provider's embedded form fills the card (it brings its own look) */
#stripeBox { margin-top: 16px; min-height: 420px; }
