:root {
  color-scheme: light;
  --ink: #292d40;
  --muted: #626779;
  --accent: #5145cd;
  --accent-hover: #4035ad;
  --soft: #eeecfc;
  --line: #e4e3ed;
  --surface: #ffffff;
  --background: #fcfbf8;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img, svg { vertical-align: middle; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.5vw, 52px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
section { scroll-margin-top: 24px; }
.container { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.muted { color: var(--muted); font-size: 14px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 30; transform: translateY(-160%); padding: 10px 20px; background: white; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: #fcfbf8f5; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.wordmark { font-size: 25px; font-weight: 800; letter-spacing: -.055em; }
.wordmark > span { color: var(--accent); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav > a:hover:not(.button) { color: var(--accent); }
.site-nav .panel-link { color: var(--ink); }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #6457e4, var(--accent));
  color: white;
  font-weight: 650;
  box-shadow: 0 6px 16px -8px #5145cd99;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}
button:hover, .button:hover { background: var(--accent-hover); color: white; box-shadow: 0 8px 20px -8px #5145cdaa; }
button:disabled { opacity: .55; cursor: wait; }
.button-small { min-height: 44px; padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.button-secondary { color: var(--ink); background: white; border-color: #d6d3e5; box-shadow: 0 1px 2px #292d400a; }
.button-secondary:hover { background: var(--soft); color: var(--accent); }
.card { background: white; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px #292d4004; }
form { max-width: 620px; }
label { display: block; margin: 18px 0; font-size: 14px; font-weight: 600; }
input, select { display: block; min-height: 48px; width: 100%; min-width: 0; padding: 11px 14px; margin-top: 8px; border: 1px solid #9495a8; border-radius: 10px; color: var(--ink); background: white; font-size: 16px; line-height: 1.5; }
input::placeholder { color: #707587; opacity: 1; }
input[type=checkbox] { width: 18px; min-height: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.check { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; font-weight: 400; color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: 14px; table-layout: fixed; }
th, td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: top; }
th { font-weight: 650; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; min-height: 28px; }
details > p { color: var(--muted); margin: 14px 0 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft); border-radius: 12px; padding: 16px; font-size: 13px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.secret { font: 20px monospace; overflow-wrap: anywhere; }
progress { width: 100%; accent-color: var(--accent); }
#message { color: #9a3029; overflow-wrap: anywhere; }
#message:not(:empty) { position: sticky; bottom: 20px; z-index: 21; padding: 16px 20px; background: #fff4f1; border: 1px solid #d5a59c; border-radius: 12px; box-shadow: 0 8px 30px #292d4010; }
#message:empty { margin: 0; }
[hidden] { display: none !important; }
.inner-page main { padding-block: 48px 80px; min-height: 60vh; overflow-wrap: anywhere; }
.inner-page main > section { margin-block: 40px; }
.inner-page main > nav { display: flex; flex-wrap: wrap; gap: 24px; margin-block: 24px; }
.inner-page form > button { margin-top: 12px; }
.site-footer { border-top: 1px solid var(--line); background: #f4f3f8; padding-block: 44px 24px; color: var(--muted); font-size: 13px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--ink); font-size: 14px; }
.footer-brand img { flex-shrink: 0; }
.footer-brand a { color: inherit; text-decoration: none; }
.footer-brand a:hover { text-decoration: underline; }
.footer-tagline { margin: 0 0 0 44px; font-size: 12px; letter-spacing: .025em; }
.footer-contact { padding-block: 7px; font-size: 14px; font-weight: 600; text-decoration: none; }
.footer-contact span { margin-left: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-top: 24px; border-top: 1px solid #dcdae7; }
.footer-bottom p { margin: 0; }
.legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { margin: 16px 0 0; font-size: 11px; line-height: 1.5; color: #8a8aa0; max-width: 72ch; }
.legal-links small { display: block; font-size: 11px; }
@media (max-width: 900px) {
  .site-nav { gap: 18px; }
  .footer-bottom { align-items: flex-start; flex-direction: column-reverse; gap: 20px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 142px; }
  .container { width: calc(100% - 40px); }
  .header-inner { position: relative; flex-wrap: wrap; justify-content: flex-start; gap: 0; padding-block: 12px; }
  .brand img { width: 34px; height: 34px; }
  .wordmark { font-size: 23px; }
  .site-nav { display: flex; flex-wrap: wrap; width: 100%; gap: 0 18px; margin-top: 6px; }
  .site-nav > a:not(.button) { white-space: nowrap; min-height: 40px; }
  .site-nav > a:not(.button), .button-small { font-size: 12px; }
  .site-nav .button-small { position: absolute; right: 0; top: 12px; padding: 8px 12px; gap: 6px; }
  .site-nav .panel-link { font-size: 11px; }
  .inner-page .site-nav { display: flex; justify-content: flex-start; }
  .footer-top { flex-direction: column; gap: 20px; padding-bottom: 24px; }
  .footer-tagline { margin-left: 0; }
  .legal-links { gap: 16px 24px; }
  th, td { padding: 12px 6px; font-size: 12px; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Shared client dashboard and contact controls. */
textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid #9495a8; border-radius: 10px; background: white; color: var(--ink); font: inherit; resize: vertical; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.client-page .site-nav { display: flex; align-items: center; justify-content: flex-end; }
.client-page .site-nav form { margin: 0; }
.client-page .site-nav button { margin: 0; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.dashboard-heading h1 { margin: 4px 0 18px; }
.dashboard-heading .eyebrow { margin-bottom: 8px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.dashboard-card { min-width: 0; padding: 30px; }
.dashboard-card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 22px; }
.dashboard-card h2 .icon { color: var(--accent); }
.dashboard-card h3 { margin-top: 0; }
.dashboard-card > button { margin-top: 20px; }
.dashboard-card details { border: 0; }
.dashboard-card summary { color: var(--accent); }
.dashboard-price, .usage-number { margin: 16px 0; font-size: 32px; font-weight: 750; line-height: 1.3; letter-spacing: -.04em; }
.dashboard-price span, .usage-number span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.dashboard-card progress { height: 14px; margin: 8px 0 22px; border: none; border-radius: 20px; overflow: hidden; background: var(--soft); }
.dashboard-card progress::-webkit-progress-bar { background: var(--soft); }
.dashboard-card progress::-webkit-progress-value { background: var(--accent); border-radius: 20px; }
.dashboard-card progress::-moz-progress-bar { background: var(--accent); border-radius: 20px; }
.feature-list { padding-left: 20px; color: var(--muted); font-size: 14px; }
.feature-list li { margin-bottom: 6px; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 30px; padding: 7px 14px; font-size: 13px; font-weight: 650; background: var(--soft); color: var(--accent); }
.status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-active { color: #236349; background: #e9f5ee; }
.status-past_due, .status-restricted, .status-needs_slug { color: #87500c; background: #fff2da; }
.status-suspended, .status-deleting, .status-failed_provisioning { color: #9a3029; background: #fff0ed; }
.dashboard-notice { margin-bottom: 24px; padding: 22px; border-radius: 16px; background: #fff5df; }
.account-details { margin: 0 0 24px; }
.account-details dt { color: var(--muted); font-size: 13px; }
.account-details dd { margin: 0 0 18px; font-weight: 650; }
.security-tip { margin: 24px 0 0; padding: 16px; background: var(--soft); border-radius: 12px; font-size: 13px; }
.security-tip .icon { width: 20px; height: 20px; margin-right: 6px; color: var(--accent); }
.table-scroll { width: 100%; overflow-x: auto; margin-bottom: 16px; }
.invoice-table { min-width: 360px; table-layout: auto; }
.invoice-table small { display: block; color: var(--muted); font-size: 11px; }
.empty-state { padding: 24px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.account-card { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.delete-account { align-self: start; padding: 0; }
.delete-account summary { color: #9a3029; }
.button-danger { background: #a33830; }
.button-danger:hover { background: #812b25; }
.welcome-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; padding-block: 30px; }
.welcome-intro h1 { margin: 14px 0 24px; }
.welcome-intro > p:not(.eyebrow) { color: var(--muted); max-width: 40ch; }
.welcome-emblem { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 20px; background: var(--soft); color: var(--accent); }
.welcome-emblem .icon { width: 36px; height: 36px; }
.welcome-steps { padding-left: 24px; color: var(--muted); }
.welcome-steps li { margin-block: 14px; padding-left: 8px; }
.welcome-card h2 { font-size: 24px; margin-top: 0; }
.welcome-card #tenant-status { font-weight: 650; color: var(--accent); }
.welcome-card .button, .welcome-card button { width: 100%; }
.welcome-card .slug-choice h2 { font-size: 21px; margin-top: 24px; }
.login-card { width: min(100%,520px); margin: 20px auto 40px !important; padding: 40px; }
.login-card .eyebrow { margin: 24px 0 10px; }
.login-card h1 { font-size: 38px; margin: 0 0 22px; }
.login-card form { margin-block: 24px; }
.login-card form button { width: 100%; }
.login-result { padding: 14px; border-radius: 12px; background: #e9f5ee; color: #236349; }
.lead-message { white-space: pre-wrap; }
@media (max-width: 800px) {
  .dashboard-grid, .welcome-layout, .account-card { grid-template-columns: 1fr; }
  .welcome-layout { gap: 24px; padding-top: 0; }
  .dashboard-heading .actions { width: 100%; }
  .dashboard-heading .button { flex: 1; }
  .client-page .header-inner { justify-content: space-between; }
  .client-page .site-nav { width: auto; gap: 12px; margin: 0; }
  .client-page .site-nav button { position: static; }
  .client-page .site-nav .panel-link { font-size: 13px; }
}
@media (max-width: 480px) {
  .dashboard-card, .login-card { padding: 24px; }
  .dashboard-heading .actions { flex-direction: column; }
  .dashboard-card .actions button { width: 100%; }
  .client-page .site-nav { width: 100%; justify-content: space-between; margin-top: 10px; }
}

.checkout-error { color: #a12532; font-size: 14px; }
.checkout-error:empty { display: none; }
.addon-quantity { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.addon-quantity input { width: 76px; margin: 0; text-align: center; }
.addon-switch { display: flex; align-items: flex-start; gap: 12px; }
