/* CreditorTrack UK. White canvas, one vivid violet for every action, lilac and orchid surfaces, a lavender dusk
   behind the hero, Poppins throughout. Cards are defined by fill, not borders or shadows.
   Red / amber / green are reserved for severity and never used decoratively. */
/* Poppins (SIL Open Font Licence 1.1), served from this site so no visitor data goes to a font CDN. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }

:root {
  --brand: #7d33f6;
  --brand-hover: #6a22e0;
  --brand-ink: #6a22e0;             /* violet for text links and labels on tints */
  --brand-ring: rgba(125, 51, 246, .26);

  --heading: #24282d;
  --ink: #333333;
  --slate: #5f5f66;                 /* secondary text: darker than the reference for AA on tints */
  --iron: #67676e;                  /* small muted text: 4.5:1 or better on white, canvas and lilac */
  --fog: #bbbbc1;
  --mist: #e4e2ea;
  --pebble: #eceef2;
  --canvas: #f6f5f8;
  --surface: #ffffff;

  --lilac: #f4edff;
  --orchid: #e9d4fb;
  --glow: #9292ff;
  --gradient-dusk: linear-gradient(251deg, #f8f0ed -9%, #f2e4f0 36%, #aa93ea 106%);
  --gradient-bloom: radial-gradient(circle at 0 100%, #f7ecee 0, #e7d7ef 60%, #c7a4e6 68%, #9f7fe1 100%);
  --gradient-text: linear-gradient(90deg, #7d33f6 10%, #a16bff 90%);

  --red: #b42318;   --red-bg: #fee4e2;
  --amber: #b54708; --amber-bg: #fef0c7;
  --green: #067647; --green-bg: #dcfae6;

  --radius-card: 24px;
  --radius-control: 10px;
  --radius-small: 6px;
  --radius-pill: 100px;
  --shadow-nav: 0 8px 32px rgba(0, 0, 0, .06);
  --shadow-mock: 0 12px 48px rgba(88, 40, 170, .14);
  --shadow-pop: 0 8px 32px rgba(0, 0, 0, .1);
  --font: "Poppins", "Manrope", "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--surface); }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { color: var(--heading); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -.025em; }
h2 { font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
h3, .h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: var(--radius-small); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--slate); }
.small { font-size: 14px; }
.block { display: block; }
.inline { display: inline; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.center .row { justify-content: center; }
.mt-32 { margin-top: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--heading); color: #fff; padding: 8px 14px; border-radius: var(--radius-pill); z-index: 20; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--lilac); color: var(--brand-ink);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 480px) { .eyebrow { font-size: 11px; letter-spacing: .08em; } }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lede { font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--slate); max-width: 38em; text-wrap: pretty; }
/* A lede in a centred block sits centred too, not against the left edge. */
:is(.center, .hero, .cta__card, .welcome__card, .post__head, .post-cta, .empty) .lede { margin-left: auto; margin-right: auto; }
.center .lede { margin-left: auto; margin-right: auto; }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons: pills everywhere except small in-card controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px;
  border: 1px solid var(--brand); border-radius: var(--radius-pill); background: var(--brand); color: #fff; font: 500 16px/1 var(--font);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--soft { background: var(--lilac); color: var(--brand-ink); border-color: var(--lilac); }
.btn--soft:hover { background: var(--orchid); color: var(--brand-ink); border-color: var(--orchid); }
.btn--light { background: #fff; color: var(--brand-ink); border-color: #fff; }
.btn--light:hover { background: var(--lilac); color: var(--brand-ink); border-color: var(--lilac); }
.btn--small { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.card .btn--small, .plan .btn, .app-main .btn, .app-side .btn { border-radius: var(--radius-control); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.danger { color: var(--red); }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); border: 0; background: none; color: var(--iron); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--red-bg); color: var(--red); }

/* Top bar: the one floating surface */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.6) blur(12px); box-shadow: var(--shadow-nav); }
.topbar__inner { display: flex; align-items: center; gap: 12px 28px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { color: var(--heading); }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__mark svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px 12px; flex: 1; font-size: 15px; }
.nav__links { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; justify-content: center; }
.nav__actions { display: flex; gap: 10px; align-items: center; }
.nav__links a, .nav .linkish { padding: 8px 12px; border-radius: var(--radius-pill); color: var(--slate); text-decoration: none; font-weight: 500; }
.nav__links a:hover, .nav .linkish:hover { color: var(--brand); }
.nav__links a[aria-current=page] { color: var(--brand-ink); background: var(--lilac); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--pebble); border-radius: var(--radius-pill);
  background: #fff; color: var(--heading); font: 500 14px var(--font); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .nav { flex-wrap: wrap; }
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 0 20px; }
  .js .topbar.is-open .nav { display: flex; }
  .js .nav__links { flex-direction: column; justify-content: flex-start; }
  .js .nav__links a, .js .nav .linkish { padding: 12px 14px; font-size: 16px; text-align: left; border-radius: var(--radius-control); }
  .js .nav__actions { flex-direction: column; align-items: stretch; }
  .js .nav__actions .btn { width: 100%; }
}

/* Flash and notices */
.flash { margin: 0; padding: 14px 20px; border-radius: 16px; background: var(--lilac); color: var(--heading); }
.flash--error { background: var(--red-bg); color: #7a1a12; }
.flash--limit { background: var(--amber-bg); }
.notice { padding: 14px 20px; border-radius: 16px; background: var(--lilac); margin: 0 0 20px; }
.notice--action { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--amber-bg); margin-top: 20px; }

/* Hero */
.hero { position: relative; padding: 64px 0 0; text-align: center; overflow: hidden; background: var(--gradient-dusk); }
@media (min-width: 900px) { .hero { padding-top: 96px; } }
.display { font-weight: 600; font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -.035em; max-width: 14em; margin: 0 auto 24px; }
.hero .lede { margin-bottom: 32px; color: #4a4a52; text-wrap: balance; }
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__ctas .btn--ghost { background: rgba(255, 255, 255, .6); }
.hero__ctas .btn--ghost:hover { background: var(--brand); }
.hero__note { font-size: 14px; color: #4a4a52; margin: 16px 0 0; }
.hero__stage { position: relative; margin-top: 56px; }

/* Product mock-ups: illustrations built from real UI, invented companies */
.board { position: relative; text-align: left; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-mock); overflow: hidden; }
.hero .board { max-width: 980px; margin: 0 auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.board__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--pebble); flex-wrap: wrap; }
.board__title { margin: 0; font-weight: 600; color: var(--heading); }
.board__meta { margin: 0; font-size: 13px; color: var(--iron); }
.board__dots { display: flex; gap: 6px; }
.board__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--pebble); }
.board__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) auto; gap: 16px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--pebble); font-size: 15px; }
.board__row:last-of-type { border-bottom: 0; }
.board__row--head { padding-top: 10px; padding-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--iron); background: var(--canvas); }
.board__co { font-weight: 500; color: var(--heading); }
.board__co small { display: block; font-weight: 400; color: var(--iron); font-size: 13px; }
.board__state { display: flex; gap: 8px; align-items: center; color: var(--slate); flex-wrap: wrap; }
.board__when { font-size: 13px; color: var(--iron); text-align: right; }
@media (max-width: 640px) {
  .board__row { grid-template-columns: 1fr; gap: 6px; padding: 14px 18px; }
  .board__row--head { display: none; }
  .board__when { text-align: left; }
}
.board__foot { margin: 0; padding: 12px 24px; font-size: 12px; color: var(--iron); background: var(--canvas); }

.mail { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-mock); padding: 24px; text-align: left; }
.mail__from { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mail__avatar { width: 36px; height: 36px; flex: none; }
.mail__from p { margin: 0; line-height: 1.35; color: var(--heading); font-weight: 500; }
.mail__from small { color: var(--iron); font-weight: 400; }
.mail__item { display: grid; gap: 2px; padding: 12px 14px; margin-top: 8px; border-radius: 12px; background: var(--canvas); font-size: 14px; }
.mail__item strong { font-size: 15px; color: var(--heading); }
.mail__item .chip { justify-self: start; margin-bottom: 4px; }

/* Chips and status: severity pills */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; flex: none; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--red { background: var(--red-bg); color: var(--red); }
.chip--amber { background: var(--amber-bg); color: var(--amber); }
.chip--green { background: var(--green-bg); color: var(--green); }
.chip--ok { background: var(--lilac); color: var(--brand-ink); }
.chip--muted { background: var(--canvas); color: var(--slate); }
.chip--muted::before { display: none; }
.status { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius-pill); font-weight: 500; font-size: 14px; background: var(--canvas); color: var(--heading); white-space: nowrap; }
.status--ok { background: var(--lilac); color: var(--brand-ink); }
.status--red { background: var(--red-bg); color: var(--red); }
.status--amber { background: var(--amber-bg); color: var(--amber); }
.status--green { background: var(--green-bg); color: var(--green); }

/* Sections */
.band { padding: 64px 0; background: var(--canvas); }
@media (min-width: 900px) { .band { padding: 96px 0; } }
.band--plain { background: transparent; }
.band--top0 { padding-top: 0; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p:last-child { margin-bottom: 0; }

.facts-strip { display: grid; gap: 28px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 44px 0 36px; text-align: center; }
@media (min-width: 900px) { .facts-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts-strip p { margin: 0; padding: 4px 20px; color: var(--slate); font-size: 14px; line-height: 1.5; text-wrap: balance; }
@media (min-width: 1100px) { .facts-strip p { padding: 4px 32px; } }
@media (max-width: 480px) { .facts-strip p { padding: 4px 12px; } }
.facts-strip strong { display: block; color: var(--heading); font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 2px; }
@media (min-width: 900px) { .facts-strip strong { white-space: nowrap; font-size: 20px; } }
.facts-strip > :nth-child(even) { border-left: 1px solid var(--pebble); }
@media (min-width: 900px) { .facts-strip > * + * { border-left: 1px solid var(--pebble); } }
.facts-band + .band { padding-top: 40px; }

.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tile { padding: 32px; border-radius: var(--radius-card); background: var(--lilac); }
.tile:nth-child(even) { background: var(--orchid); }
.tile--white, .tile--white:nth-child(even) { background: #fff; }
.tile__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--brand); margin-bottom: 24px; }
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { margin-bottom: 8px; }
.tile p { margin: 0; color: #4a4a52; font-size: 15px; }
.tile p + p { margin-top: 10px; }
.tile .chip { margin-bottom: 18px; background: #fff; }
.tile a.more { display: inline-block; margin-top: 16px; font-weight: 500; font-size: 15px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--flip > :first-child { order: 2; } }
.split__copy h2 { margin-bottom: 16px; }
.split__copy .lede { margin-bottom: 24px; }
.panel { padding: 32px; border-radius: var(--radius-card); background: var(--brand); }
@media (min-width: 720px) { .panel { padding: 48px; } }
.panel--bloom { background: var(--gradient-bloom); }
.panel--soft { background: var(--lilac); }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before, .plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--lilac)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l2.8 2.8 6-6.3' fill='none' stroke='%237d33f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { position: relative; padding: 32px; border-radius: var(--radius-card); background: #fff; }
.band--plain .steps li { background: var(--lilac); }
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; margin-bottom: 20px; }
.steps p { color: var(--slate); margin: 0; font-size: 15px; }

.journey { list-style: none; margin: 0; padding: 0; }
.journey li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding-bottom: 40px; position: relative; }
.journey li:last-child { padding-bottom: 0; }
.journey li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 64px; bottom: 8px; width: 2px; background: var(--orchid); }
.journey__n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 600; font-size: 18px; }
.journey h3 { margin: 12px 0 8px; }
.journey p { color: var(--slate); margin: 0 0 10px; }
.journey .mail, .journey .board { margin-top: 16px; max-width: 560px; box-shadow: none; border: 1px solid var(--pebble); }

/* Severity guide */
.levels { display: grid; gap: 16px; }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level { padding: 32px; border-radius: var(--radius-card); background: #fff; }
.level--red { background: var(--red-bg); }
.level--amber { background: var(--amber-bg); }
.level--green { background: var(--green-bg); }
.level--soft { background: var(--lilac); }
.level--soft h3 { margin-top: 0; }
.level .chip { background: #fff; }
.level h3 { margin: 18px 0 8px; }
.level p { color: #3f3f46; font-size: 15px; margin: 0; }
.signal-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-card); overflow: hidden; font-size: 15px; }
.signal-table th, .signal-table td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--pebble); vertical-align: top; }
.signal-table thead th { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); background: var(--lilac); border-bottom: 0; }
.signal-table tbody th { font-weight: 600; color: var(--heading); width: 30%; }
.signal-table td { color: #44444c; }
.signal-table td:last-child { width: 130px; }
.signal-table tr:last-child th, .signal-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .signal-table thead { display: none; }
  .signal-table, .signal-table tbody, .signal-table tr, .signal-table th, .signal-table td { display: block; width: auto !important; }
  .signal-table tr { padding: 16px 20px; border-bottom: 1px solid var(--pebble); }
  .signal-table tr:last-child { border-bottom: 0; }
  .signal-table th, .signal-table td { padding: 2px 0; border: 0; }
  .signal-table td:last-child { margin-top: 8px; }
}

/* Plans */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; margin-bottom: 20px; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pebble); border-radius: var(--radius-card); padding: 32px; }
.plan--featured { border-color: transparent; background: var(--gradient-bloom); }
.plan--current { border: 2px solid var(--brand); }
.plan__badge { position: absolute; top: 28px; right: 28px; margin: 0; padding: 4px 12px; border-radius: var(--radius-pill); background: #fff; color: var(--brand-ink); font-size: 12px; font-weight: 600; }
.plan h3 { margin-bottom: 4px; }
.plan__for { margin: 0 0 18px; font-size: 14px; color: var(--slate); }
.plan--featured .plan__for { color: #3f3f46; }
.plan__price { font-size: 44px; font-weight: 600; color: var(--heading); margin: 0 0 22px; letter-spacing: -.03em; line-height: 1.1; }
.plan__price span { font-size: 15px; font-weight: 400; color: var(--slate); letter-spacing: 0; }
.plan--featured .plan__price span { color: #3f3f46; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; display: grid; gap: 12px; align-content: start; }
.plan li { position: relative; padding-left: 34px; font-size: 15px; }
.plan--featured li::before { background-color: #fff; }
.plan .btn, .plan form { width: 100%; }
.plan .btn--ghost { background: var(--lilac); border-color: var(--lilac); color: var(--brand-ink); }
.plan .btn--ghost:hover { background: var(--orchid); border-color: var(--orchid); color: var(--brand-ink); }
.plan__current { margin: 0; text-align: center; font-weight: 500; color: var(--brand-ink); padding: 13px; border-radius: var(--radius-control); background: var(--lilac); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; background: #fff; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--pebble); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-weight: 600; color: var(--heading); background: var(--lilac); border-bottom: 0; }
.compare tbody th { font-weight: 400; color: var(--ink); text-align: left; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .yes { color: var(--brand-ink); font-weight: 600; }
.compare .no { color: var(--fog); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-card); border: 1px solid var(--pebble); }

/* FAQ and CTA */
.faq details { background: var(--lilac); border-radius: 16px; padding: 0 24px; margin-bottom: 8px; }
.band .faq details { background: #fff; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 500; color: var(--heading); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 18px; line-height: 1; color: var(--brand); }
.band .faq summary::after { background: var(--lilac); }
.faq details[open] summary::after { content: "–"; background: var(--brand); color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p, .faq details ul { color: #44444c; }
.faq details > :last-child { padding-bottom: 20px; margin-bottom: 0; }
.faq-group { margin-bottom: 56px; }
.faq-group h2 { font-size: 26px; margin-bottom: 18px; }
.faq-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 40px; padding: 0; list-style: none; }
.faq-nav a { display: inline-block; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--lilac); text-decoration: none; font-weight: 500; font-size: 14px; }
.faq-nav a:hover { background: var(--orchid); }
.cta { padding: 64px 0; }
.band--plain + .cta { padding-top: 0; }
.cta__card { padding: 56px 28px; border-radius: 32px; background: var(--brand); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta__card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%); }
@media (min-width: 720px) { .cta__card { padding: 80px 48px; } }
.cta h2 { color: #fff; margin: 0 0 12px; position: relative; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0 auto 28px; max-width: 32em; position: relative; }
.cta .btn { position: relative; }

/* Footer */
.footer { padding: 64px 0 40px; background: var(--canvas); }
.footer__inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--heading); margin-bottom: 12px; font-size: 17px; }
.footer__brand svg { width: 28px; height: 28px; }
.footer__about p { max-width: 30em; }
.footer__col h2 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--iron); margin: 0 0 16px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__col a { color: var(--slate); text-decoration: none; }
.footer__col a:hover { color: var(--brand); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--mist); font-size: 13px; color: var(--iron); }

/* Generic pages */
.page-head { padding: 64px 0 48px; background: var(--gradient-dusk); }
@media (min-width: 900px) { .page-head { padding: 96px 0 72px; } }
.page-head--plain { background: none; }
.page-head--tight { padding: 48px 0 32px; }
.page-head h1 { font-size: clamp(36px, 5.6vw, 56px); letter-spacing: -.03em; }
.page-head .lede { color: #4a4a52; }
.card { background: #fff; border-radius: var(--radius-card); }
.is-site .card { border: 1px solid var(--pebble); }
.card--pad { padding: 24px; margin-bottom: 20px; }
@media (min-width: 720px) { .card--pad { padding: 32px; } }
.card--soft, .is-site .card--soft { background: var(--lilac); border-color: transparent; }
.prose h2 { font-size: 24px; margin-top: 1.8em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose p, .prose li { color: #44444c; }

/* Forms */
.auth { display: grid; place-items: start center; padding: 56px 16px 96px; background: var(--gradient-dusk); }
.auth__card { width: 100%; max-width: 460px; border: 0 !important; box-shadow: var(--shadow-pop); }
.auth__card h1 { font-size: 32px; }
.form { display: grid; gap: 18px; margin: 20px 0; }
.form--tight { gap: 10px; margin: 12px 0; }
.form label:not(.check) { display: grid; gap: 6px; font-weight: 500; font-size: 14px; color: var(--heading); }
input[type=email], input[type=password], input[type=text], input[type=search], input:not([type]), select {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--mist); border-radius: var(--radius-control); font: 16px var(--font); color: var(--ink); background: #fff; }
textarea { width: 100%; min-height: 160px; padding: 12px 14px; border: 1px solid var(--mist); border-radius: var(--radius-control); font: 16px/1.55 var(--font); color: var(--ink); background: #fff; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
input[type=file] { font: 15px var(--font); }
.auth .btn--block { border-radius: var(--radius-pill); }
.hint { font-weight: 400; color: var(--slate); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.radios { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.radios legend { font-weight: 500; font-size: 14px; color: var(--heading); margin-bottom: 8px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input { flex: 1; min-width: 160px; min-height: 38px; }

/* Search box */
.searchbox { display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: var(--radius-pill); box-shadow: var(--shadow-pop); max-width: 640px; }
.center .searchbox { margin-left: auto; margin-right: auto; }
.searchbox input[type=search] { flex: 1; min-width: 0; min-height: 48px; border: 0; padding: 0 20px; border-radius: var(--radius-pill); background: transparent; }
.searchbox input[type=search]:focus { box-shadow: none; }
.searchbox:focus-within { box-shadow: 0 0 0 4px var(--brand-ring), var(--shadow-pop); }
@media (max-width: 480px) { .searchbox { flex-direction: column; border-radius: 24px; } .searchbox .btn { width: 100%; } .searchbox input[type=search] { text-align: center; } }

/* Check page */
.results { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.results a { display: grid; gap: 2px; padding: 16px 20px; background: var(--lilac); border-radius: 16px; text-decoration: none; color: var(--heading); }
.results a:hover { background: var(--orchid); }
.results .muted { font-size: 14px; }
.company-card__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.company-card__head h2 { margin-bottom: 4px; font-size: 30px; }
.company-card__head p { margin: 0; }
.flags { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.flag { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; font-weight: 500; flex-wrap: wrap; color: var(--heading); }
.flag .chip { background: #fff; }
.flag--red { background: var(--red-bg); }
.flag--amber { background: var(--amber-bg); }
.flag--green { background: var(--green-bg); }
.allclear { padding: 14px 16px; border-radius: 14px; background: var(--lilac); color: var(--brand-ink); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 24px; margin: 0 0 24px; padding: 22px; border-radius: 16px; background: var(--canvas); }
.facts dt { font-size: 13px; color: var(--slate); }
.facts dd { margin: 2px 0 0; font-weight: 500; color: var(--heading); }
.facts__wide { grid-column: 1 / -1; }
.subhead { margin-top: 8px; }
.company-card__cta { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; padding: 24px; margin-top: 24px; border-radius: 16px; background: var(--lilac); }
.company-card__cta p { margin: 0; }
.company-card__cta .btn { border-radius: var(--radius-pill); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; width: 2px; background: var(--pebble); }
.timeline__dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--fog); box-shadow: 0 0 0 4px #fff; }
.timeline__item--red .timeline__dot { background: var(--red); }
.timeline__item--amber .timeline__dot { background: var(--amber); }
.timeline__item--green .timeline__dot { background: var(--green); }
.timeline__company { font-weight: 500; color: var(--heading); text-decoration: none; font-size: 15px; }
.timeline__company:hover { color: var(--brand); text-decoration: underline; }
.timeline__summary { margin: 0; font-size: 15px; }
.timeline__when { margin: 0; font-size: 13px; color: var(--iron); }

/* App */
body.is-app { background: var(--canvas); }
.app-head { padding: 40px 0 8px; }
.app-head__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.app-head h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); }
.app-head .eyebrow { margin-bottom: 12px; background: #fff; }
.app-head .btn--small { border-radius: var(--radius-pill); }
.meter { min-width: 250px; display: grid; gap: 8px; padding: 16px 20px; border-radius: 18px; background: #fff; }
.meter__label { font-size: 14px; color: var(--slate); }
.meter__label strong { color: var(--heading); font-size: 18px; font-weight: 600; }
.meter__bar { width: 100%; height: 8px; border: 0; border-radius: var(--radius-pill); background: var(--lilac); -webkit-appearance: none; appearance: none; }
.meter__bar::-webkit-meter-bar { background: var(--lilac); border-radius: var(--radius-pill); border: 0; height: 8px; }
.meter__bar::-webkit-meter-optimum-value, .meter__bar::-webkit-meter-suboptimum-value { background: var(--brand); border-radius: var(--radius-pill); }
.meter__bar::-webkit-meter-even-less-good-value { background: var(--amber); border-radius: var(--radius-pill); }
.meter__bar::-moz-meter-bar { background: var(--brand); border-radius: var(--radius-pill); }
.app-grid { display: grid; gap: 20px; padding: 24px 0 72px; }
@media (min-width: 980px) { .app-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.app-main, .app-side { min-width: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.tabs > a { padding: 8px 16px; border-radius: var(--radius-pill); text-decoration: none; color: var(--slate); font-weight: 500; font-size: 14px; background: #fff; }
.tabs > a:hover { color: var(--brand); }
.tabs > a.is-active { background: var(--brand); color: #fff; }
.tabs__count { opacity: .7; margin-left: 2px; }
.tabs__new summary { cursor: pointer; padding: 8px 16px; color: var(--brand-ink); font-weight: 500; font-size: 14px; list-style: none; }
.tabs__new[open] { flex-basis: 100%; }
.addbox h2 { margin-bottom: 14px; }
.addbox__csv { margin: 14px 0 0; }

/* Add-a-customer search: one field first; the optional reference appears once a company is picked. */
.addform { display: flex; flex-wrap: wrap; gap: 10px; }
.addform [hidden] { display: none; }
.addform__search { position: relative; flex: 1 1 200px; min-width: 0; }
.addform__icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--iron); pointer-events: none; }
.addform__search input { width: 100%; padding-left: 46px; }
.addform__label { flex: 0 1 180px; min-width: 0; }
.addform__label input { width: 100%; }
.addform input { min-height: 48px; }
.addform--hero { padding: 8px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-mock); }
.addform--hero input { border-color: transparent; background: var(--canvas); min-height: 56px; font-size: 16px; }
.addform--hero .btn { min-height: 56px; border-radius: 14px; }
.addform--hero .addform__icon { width: 22px; height: 22px; }
@media (max-width: 560px) { .addform .btn, .addform__label { flex-basis: 100%; } }

/* Welcome: the first screen of a new account */
.welcome { padding: 48px 0 72px; }
.welcome__card { max-width: 760px; margin: 0 auto; padding: 48px 24px; text-align: center; border-radius: 32px; background: var(--gradient-dusk); }
@media (min-width: 720px) { .welcome__card { padding: 64px 56px; } }
.welcome__card h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.welcome__card .lede { margin: 0 auto 32px; color: #4a4a52; }
.welcome__card .addform { text-align: left; }
.welcome__csv { margin: 18px 0 0; color: #4a4a52; }
.setup { list-style: none; margin: 32px auto 0; padding: 0; max-width: 760px; display: grid; gap: 12px; }
.setup__step { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; background: #fff; border-radius: 20px; }
.setup__step h2 { margin: 0 0 4px; }
.setup__step p { margin: 0; font-size: 15px; color: var(--slate); }
.setup__step strong { color: var(--heading); font-weight: 500; }
.setup__n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--canvas); color: var(--slate); }
.setup__n svg { width: 16px; height: 16px; }
.setup__step.is-current .setup__n { background: var(--brand); color: #fff; }
.setup__step.is-done .setup__n { background: var(--green-bg); color: var(--green); }
.h4 { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--heading); margin: 0 0 14px; }

/* Signed-in pages */
.app-head__meta { margin: 6px 0 0; color: var(--slate); font-size: 15px; }
.app-body { padding-bottom: 72px; }
.app-body > .notice:first-child { margin-top: 24px; }
.app-body .app-grid { padding-bottom: 0; }

/* Pulse: the one-line answer to "does anyone need me today?" */
.pulse { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center; margin-top: 24px; padding: 24px; background: #fff; border-radius: var(--radius-card); }
@media (min-width: 900px) { .pulse { grid-template-columns: auto minmax(0, 1fr) auto; padding: 28px 32px; } }
.pulse__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--lilac); color: var(--brand-ink); }
.pulse__icon svg { width: 26px; height: 26px; }
.pulse--red .pulse__icon { background: var(--red-bg); color: var(--red); }
.pulse--amber .pulse__icon { background: var(--amber-bg); color: var(--amber); }
.pulse--clear .pulse__icon { background: var(--green-bg); color: var(--green); }
.pulse__text h2 { font-size: clamp(20px, 2.4vw, 24px); margin: 0 0 2px; }
.pulse__text p { margin: 0; color: var(--slate); font-size: 15px; }
.pulse__counts { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .pulse__counts { grid-column: auto; } }
.pulse__count { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 14px; white-space: nowrap; }
.pulse__count strong { font-size: 18px; }
.pulse__count--red { background: var(--red-bg); color: var(--red); }
.pulse__count--amber { background: var(--amber-bg); color: var(--amber); }
.pulse__count--green { background: var(--green-bg); color: var(--green); }
.pulse__count.is-zero { background: var(--canvas); color: var(--iron); }

.listcard { overflow: visible; }
.listcard__bar { padding: 20px; border-bottom: 1px solid var(--pebble); }
.listcard__limit, .listcard__empty { margin: 0; color: var(--slate); font-size: 15px; }
.listcard__empty { padding: 32px 20px; text-align: center; }
.status-line { margin-top: 6px; }
.more-signs { margin-top: 6px; }
.more-signs summary { cursor: pointer; list-style: none; }
.more-signs summary::-webkit-details-marker { display: none; }
.more-signs__toggle { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--lilac); color: var(--brand); font-weight: 500; white-space: nowrap; }
.more-signs summary:hover .more-signs__toggle, .more-signs summary:focus-visible .more-signs__toggle { background: var(--brand); color: #fff; }
.more-signs[open] .more-signs__toggle { background: var(--brand); color: #fff; }
.more-signs ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.more-signs__item { padding: 6px 10px; border-radius: 10px; color: var(--heading); }
.more-signs__item--red { background: var(--red-bg); }
.more-signs__item--amber { background: var(--amber-bg); }
.more-signs__item--green { background: var(--green-bg); }
.side-card__gap { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--pebble); }
.side-card__link { margin: 12px 0 0; }
.side-card .meter__bar { margin-top: 12px; }
.kv { margin: 0; display: grid; gap: 8px; font-size: 15px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--slate); }
.kv dd { margin: 0; color: var(--heading); font-weight: 500; text-align: right; }

/* Settings: what's set now, then the choices */
.current { display: flex; gap: 16px; align-items: flex-start; margin: 24px 0 20px; padding: 24px; border-radius: var(--radius-card); background: var(--lilac); }
.current--saved { background: var(--green-bg); }
.current__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-ink); }
.current--saved .current__icon { color: var(--green); }
.current__icon svg { width: 22px; height: 22px; }
.current .h4 { margin: 0 0 6px; }
.current__list { margin: 0; padding-left: 18px; color: var(--heading); font-size: 15px; display: grid; gap: 4px; }
.options { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.options legend { font-weight: 600; font-size: 15px; color: var(--heading); margin-bottom: 10px; }
.form label.option { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--mist); border-radius: 16px; cursor: pointer; font-weight: 400; font-size: 15px; color: var(--ink); }
.form label.option:hover { border-color: var(--orchid); }
.form label.option:has(input:checked) { border-color: var(--brand); background: #fbf8ff; }
.option > input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.option__body { display: grid; gap: 2px; min-width: 0; }
.option__body strong { color: var(--heading); }
.option__hint { color: var(--slate); font-size: 14px; }
.option__extra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--heading); }
.option__extra select { width: auto; min-height: 40px; padding-right: 36px; }
.form label.option:not(:has(input:checked)) .option__extra { display: none; }
.suggest { position: absolute; z-index: 4; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 16px; box-shadow: var(--shadow-pop); max-height: 320px; overflow: auto; }
.suggest li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: grid; line-height: 1.35; }
.suggest li[aria-selected=true], .suggest li:hover { background: var(--lilac); }
.suggest small { color: var(--slate); }
.watchlist { overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--iron); padding: 14px 20px; border-bottom: 1px solid var(--pebble); }
.table td { padding: 16px 20px; border-bottom: 1px solid var(--pebble); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfbfe; }
.table tr.is-paused td { opacity: .6; }
.table td .chip { margin-right: 6px; }
.table__actions { width: 1%; text-align: right; }
.company-link { font-weight: 500; color: var(--heading); text-decoration: none; }
.company-link:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 640px) { .hide-sm { display: none; } .table th, .table td { padding: 12px 12px; } }
.empty { text-align: center; padding: 48px 24px; border-radius: var(--radius-card); background: var(--lilac); }
.list-admin { margin-top: 16px; font-size: 14px; }
.list-admin summary { cursor: pointer; color: var(--slate); }
.list-admin form { margin-top: 10px; }
.picklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.picklist li { padding: 12px 14px; border-radius: 12px; background: var(--lilac); }
.code { background: #2a1f45; color: #f4edff; padding: 16px 18px; border-radius: 12px; overflow-x: auto; }
.app-head + .wrap.narrow { padding-top: 24px; padding-bottom: 56px; }
.is-app .band--plain { padding-top: 32px; }

/* "Which one did you mean?" */
.picks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; background: #fff; border-radius: 18px; }
.pick__text { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.pick__text strong { color: var(--heading); }
.pick .btn { border-radius: var(--radius-control); }

/* VAT registration card */
.vat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin: 0 0 10px; font-size: 15px; }
.vat-form { margin-top: 18px; }
.vat-form input { max-width: 260px; min-height: 42px; text-transform: uppercase; }

/* Small helpers used by the admin area and blog */
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.h2 { font-size: clamp(26px, 3vw, 32px); }
.field { display: grid; gap: 6px; margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--heading); }
.field input, .field textarea { width: 100%; }
.table-wrap { overflow-x: auto; }

/* Admin: authenticator set-up */
.setup-steps { margin: 18px 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.secret { display: inline-block; padding: 4px 8px; border-radius: 8px; background: var(--lilac); color: var(--heading); font-size: 14px; letter-spacing: .06em; }
.secret--wrap { display: block; margin-top: 8px; word-break: break-all; letter-spacing: 0; }

/* Admin: dashboard */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 24px; }
.stat { display: grid; gap: 2px; padding: 20px 22px; border-radius: 20px; background: #fff; }
.stat strong { font-size: 28px; font-weight: 600; color: var(--heading); letter-spacing: -.02em; }
.stat__label { font-size: 13px; color: var(--slate); }
.stat__note { font-size: 13px; color: var(--iron); }
.stat--warn { background: var(--amber-bg); }
.listcard__title { margin: 0; }
.listcard__sub { margin: 4px 0 0; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; }
.activity li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--pebble); font-size: 14px; }
.activity li:last-child { border-bottom: 0; }
.activity__when { color: var(--iron); font-size: 13px; }
.activity__who { grid-column: 2; color: var(--slate); font-size: 13px; }
.health { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.health__item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.health__dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.health__item--warn .health__dot { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-bg); }

/* Admin: blog editor */
.editor-page .editor-title { width: 100%; border: 0 !important; padding: 0 !important; min-height: 0 !important; font: 600 clamp(26px, 3vw, 34px)/1.2 var(--font); color: var(--heading); letter-spacing: -.02em; box-shadow: none !important; }
.editor-page .editor-excerpt { width: 100%; margin: 12px 0 20px; border: 0 !important; padding: 0 !important; resize: vertical; font: 400 17px/1.5 var(--font); color: var(--slate); box-shadow: none !important; }
.editor__toolbar { position: sticky; top: 72px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; margin-bottom: 12px; border-radius: 14px; background: var(--canvas); }
.editor__toolbar button { min-width: 36px; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; font: 500 13px var(--font); color: var(--heading); cursor: pointer; }
.editor__toolbar button:hover { background: #fff; color: var(--brand); }
.editor__sep { width: 1px; margin: 6px 4px; background: var(--mist); }
.editor__panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 16px; margin-bottom: 12px; border-radius: 14px; background: var(--lilac); }
.editor__panel label { display: grid; gap: 6px; flex: 1 1 220px; font-size: 13px; font-weight: 500; color: var(--heading); }
.editor__panel[hidden] { display: none; }
.editor__status { margin: 0; flex-basis: 100%; color: var(--brand-ink); }
.editor__status:empty { display: none; }
.editor__area { min-height: 420px; padding: 4px 2px; outline: none; }
.editor__area:focus-visible { outline: none; }
.editor__source { width: 100%; font: 14px/1.5 ui-monospace, Consolas, monospace; }
.editor__hint { margin: 16px 0 0; }
.cover-preview { margin: 0 0 12px; }
.cover-preview img { width: 100%; border-radius: 14px; }
.editor-actions { display: flex; gap: 16px; align-items: center; padding-bottom: 56px; }

/* Rich text: blog posts and the editor */
.prose { font-size: 17px; line-height: 1.7; }
.prose h2, .prose h3 { scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose a { color: var(--brand-ink); }
.prose ol { padding-left: 22px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; font-size: 19px; color: var(--heading); background: linear-gradient(var(--orchid), var(--orchid)) left / 3px 100% no-repeat; }
.prose aside.callout { margin: 1.6em 0; padding: 20px 24px; border-radius: 18px; background: var(--lilac); }
.prose aside.callout > :last-child { margin-bottom: 0; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; border-radius: 18px; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--slate); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.6em 0; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--pebble); text-align: left; }

/* Blog: list and post */
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 8px; }
.post-card__link { display: grid; height: 100%; overflow: hidden; border-radius: var(--radius-card); background: #fff; color: inherit; text-decoration: none; box-shadow: 0 0 0 1px var(--pebble); transition: box-shadow .15s, transform .15s; }
.band .post-card__link { box-shadow: none; }
.post-card__link:hover { box-shadow: var(--shadow-mock); transform: translateY(-2px); }
.post-card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__img--blank { background: var(--gradient-dusk); }
.post-card__body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 24px; }
.post-card__date { font-size: 13px; color: var(--iron); }
.post-card__title { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--heading); }
.post-card__excerpt { font-size: 15px; color: var(--slate); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.post__head { padding: 56px 16px 24px; text-align: center; }
@media (min-width: 720px) { .post__head { padding: 72px 32px 32px; } }
.post__head h1 { font-size: clamp(32px, 4.6vw, 48px); }
.post__head .lede { margin: 0 auto 16px; }
.post__meta { margin: 0; }
.post__cover { margin: 8px auto 40px; max-width: 1100px; }
.post__cover img { width: 100%; height: auto; border-radius: 28px; }
.post__body { padding-bottom: 24px; }
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 32px; }
.post__tags .chip { text-decoration: none; }
.post-cta { padding: 36px 32px; border-radius: var(--radius-card); background: var(--gradient-dusk); text-align: center; }
.post-cta .hero__ctas { justify-content: center; }

/* Team */
.team { list-style: none; margin: 0; padding: 0; }
.team__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--pebble); }
.team__row:last-child { border-bottom: 0; }
.team__row--pending .team__who strong { color: var(--slate); font-weight: 500; }
.team__who { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.team__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.team__actions select { min-height: 38px; }
.btn--danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn--danger:hover { filter: brightness(.95); }
.settings-danger hr { border: 0; border-top: 1px solid var(--pebble); margin: 24px 0; }

/* Signed-in shell: a sidebar whose sections follow the role. Off-canvas below 1024px. */
.shell { min-height: 100vh; background: var(--canvas); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 264px; display: flex; flex-direction: column; gap: 20px; padding: 22px 16px 18px;
  background: var(--surface); border-right: 1px solid var(--pebble); overflow-y: auto; transform: translateX(-100%); transition: transform .2s ease; }
.shell.is-open .sidebar { transform: none; box-shadow: var(--shadow-pop); }
.sidebar__brand { padding: 0 8px; font-size: 17px; }
.sidebar__nav { display: grid; gap: 18px; flex: 1; }
.sidebar__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sidebar__title { margin: 0 0 6px; padding: 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--iron); }
.sidebar__nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 12px; color: var(--slate); text-decoration: none; font-weight: 500; font-size: 15px; }
.sidebar__nav a:hover { color: var(--brand-ink); background: var(--canvas); }
.sidebar__nav a[aria-current=page] { color: var(--brand-ink); background: var(--lilac); }
.sidebar__nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar__badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.sidebar__me { padding: 16px 12px 0; border-top: 1px solid var(--pebble); display: grid; gap: 4px; }
.sidebar__org { margin: 0; font-weight: 600; color: var(--heading); font-size: 14px; overflow-wrap: anywhere; }
.sidebar__who { margin: 0 0 10px; font-size: 13px; color: var(--slate); overflow-wrap: anywhere; display: grid; }
.sidebar__who span { color: var(--iron); font-size: 12px; }
.shell__bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 16px;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.6) blur(12px); box-shadow: var(--shadow-nav); }
.shell__bar .menu-btn { display: inline-flex; margin-left: 0; }
.shell__main > main { padding-bottom: 32px; }
@media (min-width: 1024px) {
  .sidebar { transform: none; }
  .shell__main { margin-left: 264px; }
  .shell__bar { display: none; }
}
.flash-wrap { padding-top: 20px; padding-bottom: 20px; }
.is-app .flash-wrap { padding-bottom: 0; }

/* Overview pieces shared by the reseller console and the superadmin */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 24px 0; }
@media (max-width: 480px) { .kpi strong { font-size: 22px; } .kpi { padding: 14px 16px; } }
.kpi { background: var(--surface); border-radius: 20px; padding: 18px 20px; display: grid; gap: 4px; }
.kpi__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--iron); }
.kpi strong { font-size: 28px; font-weight: 500; color: var(--heading); letter-spacing: -.02em; }
.kpi__note { font-size: 13px; color: var(--slate); }
.attention { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attention a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--amber-bg); color: var(--heading); text-decoration: none; font-size: 15px; }
.attention a::after { content: "→"; color: var(--amber); }
.attention--clear { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--green-bg); color: var(--green); font-size: 15px; }
.chart { display: block; width: 100%; height: auto; margin-top: 12px; }
.chart__axis { stroke: var(--pebble); stroke-width: 1; }
.chart__main { fill: var(--brand); }
.chart__extra { fill: var(--orchid); }
.chart__label { font-size: 11px; fill: var(--iron); text-anchor: middle; font-family: var(--font); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 0; font-size: 13px; color: var(--slate); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--brand); }
.legend .legend--light::before { background: var(--orchid); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--pebble); }
.toolbar form { display: flex; gap: 8px; align-items: center; }
.toolbar select, .toolbar input[type=month] { min-height: 38px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 0; }
.tabs a { padding: 8px 16px; border-radius: var(--radius-pill); text-decoration: none; color: var(--slate); font-weight: 500; background: var(--surface); }
.tabs a[aria-current=page] { background: var(--lilac); color: var(--brand-ink); }
.copybox { display: flex; gap: 8px; flex-wrap: wrap; }
.copybox input { flex: 1; min-width: 220px; min-height: 40px; font-size: 14px; }
.terms-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.terms-form label { display: grid; gap: 4px; font-size: 13px; color: var(--slate); }
.terms-form select, .terms-form input { min-height: 38px; }
.terms-form input { width: 110px; }
.kpi strong.small-strong { font-size: 20px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
input[type=month] { font-family: var(--font); }
.app-body > .listcard { margin-bottom: 20px; }

/* Support: contact form and conversation threads */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.msg { max-width: 640px; padding: 16px 18px; border-radius: 20px; background: var(--canvas); }
.is-app .msg { background: var(--surface); }
.is-app .msg--staff { background: var(--lilac); }
.msg--staff { background: var(--lilac); margin-left: auto; }
.msg__meta { margin: 0 0 6px; font-size: 13px; color: var(--slate); }
.msg__meta strong { color: var(--heading); font-weight: 600; }
.msg__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.contact-aside { display: grid; gap: 12px; align-content: start; }
.contact-aside .card { margin: 0; }
@media (min-width: 900px) { .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; } }
