:root {
  --ink: #151716;
  --muted: #606861;
  --line: #d9ddd5;
  --paper: #f4f5f1;
  --surface: #ffffff;
  --charcoal: #101315;
  --charcoal-2: #1b2023;
  --accent: #dfff00;
  --coral: #ff6658;
  --blue: #2f68ff;
  --danger: #a22a2a;
  --success: #2c6b3f;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(12, 18, 20, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

main {
  min-width: 0;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
  text-align: center;
}

.button.primary,
button.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #111;
}

.button.secondary,
.button.tiny {
  border-color: #8b938d;
  background: transparent;
}

.button.secondary {
  color: inherit;
}

.button.danger,
button.button.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.button.tiny {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.kicker,
.eyebrow,
.ref {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.saas-header,
.tenant-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 14px max(18px, calc((100% - var(--max)) / 2 + 18px));
  background: rgba(16, 19, 21, 0.97);
  color: #fff;
  backdrop-filter: blur(16px);
}

.brand img,
.admin-brand img,
.business-sidebar img {
  width: 150px;
  height: auto;
}

.saas-nav,
.tenant-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.saas-nav a,
.tenant-nav a {
  min-height: 40px;
  border-radius: 6px;
  padding: 10px 12px;
  color: #e8ece7;
  font-weight: 750;
}

.saas-nav a:hover,
.saas-nav a.is-active,
.tenant-nav a:hover,
.tenant-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.saas-nav .nav-cta {
  color: #111;
}

.menu-toggle {
  display: none;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #fff;
  font-weight: 800;
}

.marketing-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--charcoal);
  color: #fff;
}

.marketing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 19, 21, 0.98), rgba(16, 19, 21, 0.82) 42%, rgba(16, 19, 21, 0.15));
}

.marketing-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.marketing-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  width: 100%;
  max-width: none;
  padding: 90px max(22px, calc((100% - var(--max)) / 2 + 18px));
}

.marketing-hero h1,
.page-hero h1 {
  max-width: 760px;
  font-size: 5.8rem;
}

.marketing-hero p,
.page-hero p {
  max-width: 620px;
  margin-top: 22px;
  color: #d5dad5;
  font-size: 1.22rem;
}

.hero-actions,
.form-actions,
.row-actions,
.storefront-actions,
.admin-topbar-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #303638;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.proof-strip div {
  display: grid;
  gap: 4px;
  padding: 24px max(22px, calc((100% - var(--max)) / 2 + 18px));
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  font-size: 1.25rem;
}

.proof-strip span,
.panel-intro,
.security-note,
.card-heading p,
.dashboard-empty p,
.feature-copy p,
.faq-band p,
.statement-band p,
.principles-band p,
.capability-band p {
  color: var(--muted);
}

.band-light,
.product-preview,
.feature-band,
.capability-band,
.setup-band,
.closing-cta,
.pricing-section,
.faq-band,
.principles-band,
.statement-band,
.support-layout,
.auth-layout,
.billing-gate,
.tenant-band {
  padding: 70px max(22px, calc((100% - var(--max)) / 2 + 18px));
}

.band-light {
  background: #eef1ec;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.panel-heading h2,
.feature-copy h2,
.statement-band h2,
.support-copy h2 {
  max-width: 760px;
  font-size: 3rem;
}

.interface-panel {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.interface-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: var(--charcoal);
}

.interface-sidebar span,
.metric-row span,
.table-lines span {
  display: block;
  min-height: 18px;
  border-radius: 6px;
  background: #e8ece6;
}

.interface-sidebar span:first-child {
  background: var(--accent);
}

.interface-main {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 28px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric-row span {
  min-height: 90px;
}

.interface-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.interface-grid article,
.feature-list-panel div,
.faq-band div,
.capability-band article,
.principles-band article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
}

.interface-grid p,
.feature-list-panel span {
  margin-top: 8px;
  color: var(--muted);
}

.capability-band,
.principles-band,
.faq-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.capability-band {
  background: var(--charcoal);
  color: #fff;
}

.capability-band article {
  min-height: 260px;
  border-color: #343b3e;
  background: var(--charcoal-2);
}

.capability-band span,
.principles-band span {
  display: block;
  margin-bottom: 54px;
  color: var(--accent);
  font-weight: 900;
}

.capability-band h2,
.principles-band h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.capability-band p {
  color: #c4cbc5;
}

.setup-band {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  background: var(--blue);
  color: #fff;
}

.setup-band h2,
.closing-cta h2 {
  max-width: 700px;
  font-size: 4rem;
}

.setup-band .kicker {
  color: #dfe7ff;
}

.setup-band ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-band li {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  min-height: 82px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.setup-band li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.setup-band span {
  color: #dfe7ff;
  font-weight: 900;
}

.setup-band strong {
  font-size: 1.25rem;
}

.closing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--accent);
}

.closing-cta .kicker {
  color: #344000;
}

.closing-cta .button.primary {
  border-color: #111;
  background: #111;
  color: #fff;
}

.saas-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  min-height: 360px;
  overflow: hidden;
  padding: 70px max(22px, calc((100% - var(--max)) / 2 + 18px)) 32px;
  background: var(--charcoal) url("dexify-saas-footer-2026.png") center / cover no-repeat;
  color: #fff;
}

.saas-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 18, 0.68);
}

.saas-footer > * {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  align-content: start;
  gap: 18px;
  max-width: 520px;
}

.footer-content p,
.footer-small {
  color: #c5ccc6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

.footer-links a {
  color: #ecf0ed;
  font-weight: 750;
}

.footer-small {
  grid-column: 1 / -1;
  align-self: end;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: center;
  min-height: 520px;
  padding: 70px max(22px, calc((100% - var(--max)) / 2 + 18px));
  background: var(--charcoal);
  color: #fff;
}

.page-hero.simple-hero,
.page-hero.pricing-hero,
.page-hero.contact-hero {
  grid-template-columns: 1fr;
}

.page-hero img {
  width: 100%;
  height: 430px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 42px;
  align-items: center;
}

.feature-list-panel,
.table-lines {
  display: grid;
  gap: 12px;
}

.table-lines span {
  min-height: 42px;
}

.compact-interface {
  min-height: 330px;
}

.pricing-section {
  background: var(--paper);
}

.pricing-plan {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius);
  padding: 44px;
  background: var(--charcoal);
  color: #fff;
}

.pricing-plan strong {
  display: block;
  margin: 18px 0;
  font-size: 5rem;
  line-height: 0.9;
}

.pricing-plan strong span {
  font-size: 2rem;
  vertical-align: top;
}

.pricing-plan small {
  color: #c5ccc6;
  font-size: 1rem;
}

.pricing-plan p {
  color: #c5ccc6;
}

.pricing-plan .button {
  margin-top: 24px;
}

.pricing-plan ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-plan li {
  border-top: 1px solid #3c4447;
  padding-top: 12px;
}

.statement-band {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 36px;
}

.support-layout,
.auth-layout,
.billing-gate {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 42px;
  align-items: start;
}

.support-copy h2,
.auth-copy h1,
.billing-gate h1 {
  max-width: 620px;
  font-size: 4rem;
}

.support-copy p,
.auth-copy p,
.billing-gate p {
  max-width: 440px;
  margin-top: 14px;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  font-weight: 800;
}

.chat-panel,
.auth-form,
.billing-card,
.business-panel,
.admin-panel,
.login-card,
.not-found-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.chat-panel,
.auth-form,
.billing-card {
  padding: 28px;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #edf0eb;
}

.chat-log p,
.chat-admin-log p {
  display: grid;
  gap: 4px;
  max-width: 82%;
  margin: 0;
  border-radius: 6px;
  padding: 11px 13px;
}

.chat-system,
.chat-support {
  align-self: flex-start;
  background: #fff;
}

.chat-visitor {
  align-self: flex-end;
  background: var(--accent);
  color: #111;
}

.chat-log strong,
.chat-admin-log strong,
.chat-admin-log small {
  font-size: 0.78rem;
}

.chat-panel form,
.auth-form,
.business-form,
.reply-form {
  display: grid;
  gap: 16px;
}

label,
.business-form label,
.admin-form label,
.reply-form label {
  display: grid;
  gap: 7px;
  color: #2c302d;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #aeb6ae;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #111;
}

textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid .wide,
.wide {
  grid-column: 1 / -1;
}

fieldset {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  padding: 18px;
}

legend {
  padding: 0 8px;
  font-weight: 900;
}

.password-field,
.domain-input,
.copy-field,
.colour-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0;
}

.password-field input,
.domain-input input,
.copy-field input {
  border-radius: 6px 0 0 6px;
}

.password-field button,
.copy-field button {
  min-height: 44px;
  border-radius: 0 6px 6px 0;
}

.domain-input span {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #aeb6ae;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
}

.check-row input {
  min-height: 20px;
  margin-top: 2px;
}

.check-row a {
  text-decoration: underline;
}

.file-input span {
  display: block;
  min-height: 44px;
  border: 1px dashed #aeb6ae;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  background: #fff;
}

.notice,
.form-error,
.form-success {
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 800;
}

.notice,
.form-success {
  border: 1px solid #b7d68a;
  background: #edf8dc;
  color: #294d10;
}

.form-error {
  border: 1px solid #e2b5b5;
  background: #fff1f1;
  color: #7d1717;
}

.billing-card {
  background: var(--charcoal);
  color: #fff;
}

.billing-card .kicker {
  color: var(--accent);
}

.billing-card > strong {
  display: block;
  margin: 12px 0 20px;
  font-size: 4.8rem;
  line-height: 1;
}

.billing-card small {
  font-size: 1rem;
  color: #c5ccc6;
}

.billing-card ul {
  margin: 0 0 22px;
  padding-left: 20px;
}

.not-found-shell {
  display: grid;
  gap: 18px;
  max-width: 620px;
  margin: 80px auto;
  padding: 32px;
}

.not-found-shell h1 {
  font-size: 3rem;
}

.business-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef1ed;
}

.business-sidebar,
.admin-dock {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 22px 16px;
  background: var(--charcoal);
  color: #fff;
}

.business-sidebar-top,
.admin-dock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.business-identity {
  display: grid;
  gap: 4px;
  border-top: 1px solid #384044;
  border-bottom: 1px solid #384044;
  padding: 16px 0;
}

.business-identity span,
.business-identity small,
.business-page-header span {
  color: #a6b0a8;
}

.business-sidebar nav,
.admin-dock nav {
  display: grid;
  gap: 6px;
}

.business-sidebar nav a,
.admin-dock nav a {
  border-radius: 6px;
  padding: 12px;
  color: #e8ece7;
  font-weight: 800;
}

.business-sidebar nav a:hover,
.business-sidebar nav a.is-active,
.admin-dock nav a:hover,
.admin-dock nav a.is-active {
  background: var(--accent);
  color: #111;
}

.sidebar-bottom {
  display: grid;
  gap: 10px;
  margin-top: auto;
  font-size: 0.92rem;
}

.admin-dock form {
  margin-top: auto;
}

.admin-dock button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-weight: 800;
}

.business-main,
.admin-main {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 34px clamp(18px, 4%, 56px);
}

.business-page-header,
.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.business-page-header h1,
.admin-topbar h1 {
  margin-top: 4px;
  font-size: 3.5rem;
}

.business-metrics,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.business-metrics article,
.metric-grid article {
  display: grid;
  gap: 16px;
  min-height: 125px;
  border-top: 4px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.business-metrics span,
.metric-grid span,
.draw-tools span,
.draw-status-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.business-metrics strong,
.metric-grid strong {
  font-size: 2rem;
  line-height: 1;
}

.business-panel,
.admin-panel {
  min-width: 0;
  padding: 24px;
}

.storefront-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.storefront-actions input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-list {
  display: grid;
}

.business-list a {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.dashboard-empty,
.empty-state,
.quiet-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 34px 0;
}

.empty-state {
  max-width: 760px;
  margin: 42px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
}

.account-list,
.settings-list,
.detail-facts {
  display: grid;
  margin: 0;
}

.account-list div,
.settings-list div,
.detail-facts div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.account-list dt,
.settings-list dt,
.detail-facts dt {
  color: var(--muted);
  font-weight: 800;
}

.account-list dd,
.settings-list dd,
.detail-facts dd {
  min-width: 0;
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.colour-field {
  grid-template-columns: 72px 160px;
  gap: 10px;
  justify-content: start;
}

.colour-field input[type="color"] {
  padding: 4px;
}

.compact-form {
  max-width: 460px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef1ec;
  color: #333936;
  font-size: 0.78rem;
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  background: #fff;
  color: #333936;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-active {
  border-color: #9bd36f;
  color: var(--success);
}

.status-draft {
  color: var(--muted);
}

.status-paused,
.status-completed {
  border-color: #e0c071;
  color: #765411;
}

.status-drawn {
  border-color: #91b2ff;
  color: #174783;
}

.admin-shell {
  background: #ecefed;
}

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.admin-login {
  width: min(100%, 460px);
  padding: 20px;
}

.login-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.shortcut-grid,
.export-hub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.shortcut-tile,
.export-card,
.manager-card,
.draw-card,
.message-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.shortcut-tile strong,
.export-card strong {
  font-size: 1.2rem;
}

.shortcut-tile small,
.export-card small,
.manager-body p,
.draw-card p,
.message-head a {
  color: var(--muted);
}

.primary-tile {
  background: var(--charcoal);
  color: #fff;
}

.primary-tile small {
  color: #c5ccc6;
}

.stack-list,
.message-list,
.draw-list,
.raffle-manager-list {
  display: grid;
  gap: 12px;
}

.admin-list-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.manager-card {
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
}

.manager-media img,
.card-media img,
.detail-media img,
.tenant-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-media img {
  min-height: 220px;
}

.manager-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.manager-meta,
.featured-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draw-tools,
.draw-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.draw-tools > div,
.draw-status-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.chat-admin {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
}

.chat-thread-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.chat-thread-list a {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.chat-thread-list a.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 104, 255, 0.14);
}

.chat-thread-list span,
.chat-thread-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.chat-conversation {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.conversation-head,
.message-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.chat-admin-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #eef1ec;
}

.reply-form {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.tenant-header {
  grid-template-columns: auto 1fr;
}

.tenant-brand {
  display: grid;
  gap: 0;
}

.tenant-brand strong {
  font-size: 1.15rem;
}

.tenant-brand span,
.powered-by {
  color: #aab3ad;
  font-size: 0.86rem;
}

.tenant-nav {
  justify-content: flex-end;
}

.tenant-nav a.is-active,
.tenant-nav a:hover {
  background: color-mix(in srgb, var(--tenant-accent, var(--accent)) 22%, transparent);
}

.tenant-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 620px;
  background: var(--charcoal);
  color: #fff;
}

.tenant-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px max(22px, calc((100vw - var(--max)) / 2 + 18px));
}

.tenant-hero h1,
.tenant-page-hero h1 {
  max-width: 720px;
  font-size: 5rem;
}

.tenant-hero p,
.tenant-page-hero p {
  max-width: 540px;
  margin-top: 18px;
  color: #d5dad5;
  font-size: 1.12rem;
}

.tenant-hero-media,
.tenant-feature-media {
  min-height: 0;
}

.tenant-hero-media img,
.tenant-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tenant-page-hero {
  padding: 70px max(22px, calc((100% - var(--max)) / 2 + 18px));
  background: var(--charcoal);
  color: #fff;
}

.tenant-band {
  background: var(--paper);
}

.raffle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.raffle-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card-media {
  height: 250px;
  margin: 0;
  background: #edf0eb;
}

.card-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.card-heading {
  display: grid;
  gap: 10px;
}

.card-heading h3 {
  font-size: 1.7rem;
}

.card-stats {
  display: grid;
  gap: 8px;
}

.card-stats span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
}

.card-stats strong {
  color: var(--ink);
}

.progress-block {
  display: grid;
  gap: 8px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.progress-meta strong {
  color: var(--ink);
}

.progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 6px;
  background: #d8ddd5;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--tenant-accent, var(--accent));
}

.progress-minimum {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 20px;
  background: var(--blue);
}

.raffle-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 0;
  min-height: 680px;
  background: var(--paper);
}

.detail-visual {
  min-width: 0;
}

.detail-media {
  height: 100%;
  min-height: 680px;
  margin: 0;
  background: #edf0eb;
}

.purchase-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 54px;
  background: #fff;
}

.purchase-panel h1 {
  font-size: 3.8rem;
}

.lead {
  color: var(--muted);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-line strong {
  font-size: 3rem;
  line-height: 1;
}

.price-line span,
.total-row span {
  color: var(--muted);
}

.ticket-form {
  display: grid;
  gap: 14px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 48px 88px 48px;
  width: 184px;
  overflow: hidden;
  border: 1px solid #aeb6ae;
  border-radius: 6px;
  background: #fff;
}

.quantity-control button,
.quantity-control input {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  text-align: center;
}

.quantity-control button {
  background: #eef1ec;
  font-weight: 900;
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-weight: 900;
}

.draw-video {
  width: 100%;
  border: 1px solid var(--line);
  background: #111;
}

.ticket-list {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #f7f8f5;
}

.tenant-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 38px max(22px, calc((100% - var(--max)) / 2 + 18px));
  background: var(--charcoal);
  color: #fff;
}

.tenant-footer p {
  color: #c5ccc6;
}

.powered-by {
  grid-column: 1 / -1;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-on-scroll.is-visible,
.no-js .reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .marketing-hero h1,
  .page-hero h1,
  .tenant-hero h1,
  .tenant-page-hero h1 {
    font-size: 4.4rem;
  }

  .capability-band,
  .principles-band,
  .faq-band,
  .raffle-grid,
  .shortcut-grid,
  .export-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-hero,
  .feature-band,
  .support-layout,
  .auth-layout,
  .billing-gate,
  .setup-band,
  .pricing-plan,
  .statement-band,
  .tenant-hero,
  .raffle-detail,
  .chat-admin {
    grid-template-columns: 1fr;
  }

  .tenant-hero-media img {
    max-height: 480px;
  }

  .detail-media {
    min-height: 460px;
  }

  .purchase-panel {
    padding: 34px max(22px, calc((100% - var(--max)) / 2 + 18px));
  }

  .business-shell,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .business-sidebar,
  .admin-dock {
    position: static;
    height: auto;
  }

  .business-sidebar nav,
  .admin-dock nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .saas-header,
  .tenant-header {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .saas-nav,
  .tenant-nav,
  .business-sidebar nav,
  .admin-dock nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    width: 100%;
    justify-content: stretch;
  }

  .saas-nav.is-open,
  .tenant-nav.is-open,
  .business-sidebar nav.is-open,
  .admin-dock nav.is-open {
    display: grid;
  }

  .saas-nav a,
  .tenant-nav a,
  .business-sidebar nav a,
  .admin-dock nav a {
    width: 100%;
  }

  .marketing-hero {
    min-height: 640px;
  }

  .marketing-hero::after {
    background: linear-gradient(0deg, rgba(16, 19, 21, 0.98), rgba(16, 19, 21, 0.78) 58%, rgba(16, 19, 21, 0.16));
  }

  .marketing-hero > img {
    object-position: 62% center;
  }

  .marketing-hero-copy {
    justify-content: flex-end;
    padding: 36px 20px;
  }

  .marketing-hero h1,
  .page-hero h1,
  .tenant-hero h1,
  .tenant-page-hero h1 {
    font-size: 3.2rem;
  }

  .marketing-hero p,
  .page-hero p,
  .tenant-hero p,
  .tenant-page-hero p {
    font-size: 1rem;
  }

  .marketing-hero h1,
  .marketing-hero p,
  .marketing-hero .hero-actions {
    width: 100%;
  }

  .band-light,
  .product-preview,
  .feature-band,
  .capability-band,
  .setup-band,
  .closing-cta,
  .pricing-section,
  .faq-band,
  .principles-band,
  .statement-band,
  .support-layout,
  .auth-layout,
  .billing-gate,
  .tenant-band,
  .page-hero,
  .tenant-page-hero {
    padding: 48px 18px;
  }

  .section-heading,
  .panel-heading,
  .closing-cta,
  .business-page-header,
  .admin-topbar,
  .conversation-head,
  .message-head {
    display: grid;
    align-items: start;
  }

  .section-heading h2,
  .panel-heading h2,
  .feature-copy h2,
  .statement-band h2,
  .support-copy h2,
  .setup-band h2,
  .closing-cta h2,
  .auth-copy h1,
  .billing-gate h1 {
    font-size: 2.5rem;
  }

  .capability-band,
  .principles-band,
  .faq-band,
  .raffle-grid,
  .interface-grid,
  .metric-row,
  .business-metrics,
  .metric-grid,
  .shortcut-grid,
  .export-hub,
  .pricing-plan ul,
  .form-grid,
  .form-grid.two,
  .draw-tools,
  .draw-status-grid {
    grid-template-columns: 1fr;
  }

  .interface-panel {
    grid-template-columns: 1fr;
  }

  .interface-sidebar {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-plan,
  .chat-panel,
  .auth-form,
  .billing-card,
  .business-panel,
  .admin-panel,
  .login-card {
    padding: 20px;
  }

  .pricing-plan strong,
  .billing-card > strong {
    font-size: 4rem;
  }

  .business-main,
  .admin-main {
    padding: 24px 14px;
  }

  .business-page-header h1,
  .admin-topbar h1,
  .purchase-panel h1 {
    font-size: 2.7rem;
  }

  .storefront-actions,
  .password-field,
  .domain-input,
  .copy-field,
  .colour-field,
  .tenant-footer,
  .saas-footer {
    grid-template-columns: 1fr;
  }

  .password-field input,
  .domain-input input,
  .copy-field input,
  .domain-input span,
  .password-field button,
  .copy-field button {
    border-radius: 6px;
  }

  .domain-input span {
    border-left: 1px solid #aeb6ae;
  }

  .business-list a {
    grid-template-columns: 1fr;
  }

  .account-list div,
  .settings-list div,
  .detail-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .responsive-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .responsive-table table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .responsive-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--line);
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 900;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .manager-card,
  .admin-list-row {
    grid-template-columns: 1fr;
  }

  .manager-media img,
  .card-media {
    min-height: 220px;
  }

  .purchase-panel {
    padding: 28px 18px;
  }

  .detail-media {
    min-height: 360px;
  }

  .sticky-purchase {
    position: sticky;
    bottom: 12px;
    width: 100%;
    box-shadow: var(--shadow);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 320px) {
  .saas-header,
  .tenant-header {
    gap: 10px;
    min-height: 64px;
    padding: 12px 14px;
  }

  .brand img,
  .admin-brand img,
  .business-sidebar img {
    width: 132px;
  }

  .menu-toggle {
    min-height: 38px;
    padding: 0 10px;
  }

  .marketing-hero {
    min-height: auto;
  }

  .marketing-hero-copy {
    width: 100%;
    max-width: none;
    min-height: auto;
    padding: 32px 16px 40px;
  }

  .marketing-hero h1 {
    max-width: none;
    font-size: 2.45rem;
    line-height: 1.04;
  }

  .marketing-hero p {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 180px) {
  .saas-header,
  .tenant-header {
    gap: 8px;
    padding: 8px 10px;
  }

  .brand img,
  .admin-brand img,
  .business-sidebar img {
    width: 92px;
  }

  .menu-toggle {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .marketing-hero-copy {
    padding: 24px 10px 30px;
  }

  .marketing-hero h1 {
    font-size: 1.5rem;
    line-height: 1.08;
  }

  .marketing-hero p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions .button {
    min-height: 38px;
    padding: 0 6px;
    font-size: 0.75rem;
  }
}
