@font-face {
  font-family: Readex;
  src: url('/assets/readex.ttf') format('truetype');
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: Readex, system-ui, sans-serif;
  --ink: #211831;
  --muted: #645971;
  --canvas: #f9f7fc;
  --surface: #fff;
  --line: #dfd8e9;
  --field: #a79ab7;
  --accent: #b79af5;
  --focus: #6841aa;
  --brand: #62409a;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { color: var(--ink); background: #e2d6fc; }
.topbar {
  padding: 20px max(20px, calc((100% - 1000px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; font-weight: 400; }
h1, h2, p { margin: 0; }
h1 { font-size: 2.1rem; font-weight: 550; line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { font-size: 1.18rem; font-weight: 600; line-height: 1.35; }
p { margin-block: 12px 0; line-height: 1.6; color: var(--muted); }
.entry {
  width: min(100% - 40px, 1000px);
  margin: 72px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: start;
  gap: 60px;
}
.intro { padding-block: 24px; }
.intro p { max-width: 40ch; }
.surface { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
form { display: grid; gap: 16px; margin-top: 18px; justify-items: start; }
label { display: grid; gap: 6px; font-size: .875rem; font-weight: 500; width: 100%; }
input, select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--field);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
input:hover, select:hover { border-color: var(--brand); }
button, .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font: 550 .9rem Readex, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: #c9b4f7; }
button:disabled { cursor: wait; opacity: .56; }
.secondary { background: #ede7f5; }
.secondary:hover { background: #e3d8f0; }
.hint, .feedback { margin: 0; font-size: .875rem; }
.feedback:empty { display: none; }
.feedback[data-error] { color: #982f40; }
.workspace { width: min(100% - 40px, 1000px); margin: 48px auto; }
.workspace-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; padding-top: 28px; }
.activation { border-left: 1px solid var(--line); padding-left: 30px; }
.activation > a, [data-confirm] > a { display: inline-block; margin-top: 14px; font-size: .9rem; }
.activation > .button { display: inline-flex; }
.state { width: fit-content; border-radius: 8px; padding: 5px 9px; background: #eae0f9; color: #4c306f; font-size: .85rem; }
.billing-page { max-width: 660px; }
.back-link { display: inline-block; margin-bottom: 20px; font-size: .9rem; }
.billing-page > p { max-width: 54ch; }
.billing-page form { margin-top: 28px; gap: 24px; }
.billing-page fieldset { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.billing-page fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 14px; }
.billing-page legend { padding: 0 12px 0 0; margin-bottom: 10px; font-weight: 600; }
.billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
.billing-grid label { min-width: 0; }
.billing-full { grid-column: 1 / -1; }
.billing-page .hint { margin-top: 8px; }
.billing-page [aria-invalid="true"] { border-color: #982f40; }
.billing-postcode { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.billing-postcode label { flex: 1 1 8rem; }
.billing-postcode .address-feedback { flex-basis: 100%; margin: 0; }
.address-feedback:empty { position: absolute; }
.demo-canvas { padding: 20px; }
.demo-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; width: min(100%, 480px); margin: 0 auto 16px; }
.demo-shell { width: min(100%, 480px); margin: 0 auto; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; background: #fff; --provider: #30214c; }
.theme-green { --provider: #17463a; }
.theme-blue { --provider: #224168; }
.demo-hero { padding: 24px 24px 46px; background: var(--provider); color: #fff; }
.demo-hero h1 { font-size: 1.85rem; margin-top: 22px; }
.demo-hero p { color: #f0eafa; font-size: .88rem; margin-top: 5px; overflow-wrap: anywhere; }
.demo-content { padding: 0 20px 24px; }
.help-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px; margin-top: -24px; position: relative; }
.demo-row { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-row dl { margin-bottom: 0; }
.demo-row dt { font-size: .85rem; color: var(--muted); }
.demo-row dd { margin: 5px 0 0; font-weight: 600; }
.demo-row small { margin-left: 6px; font-weight: 400; }
details { margin-top: 14px; }
summary { color: var(--brand); font-weight: 550; cursor: pointer; min-height: 30px; }
.diagnostic-code { display: flex; flex-wrap: wrap; gap: 4px 8px; font-family: ui-monospace, monospace; font-size: .8rem; padding: 8px 0; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .86rem; }
.demo-actions+.feedback { margin-top: 10px; }
@media (max-width: 720px) {
  .entry { display: block; margin-block: 28px 48px; }
  .intro { padding: 0; margin-bottom: 24px; }
  h1 { font-size: 1.65rem; }
  .surface { padding: 22px; }
  .workspace { margin-top: 30px; }
  .workspace-title { align-items: start; flex-direction: column; }
  .workspace-grid { grid-template-columns: 1fr; gap: 28px; }
  .activation { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
}
@media (max-width: 440px) {
  .billing-grid { grid-template-columns: minmax(0, 1fr); }
}
