:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #647085;
  --line: #dce4ee;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --accent: #e56b4e;
  --accent-2: #3346a3;
  --warning: #b45309;
  --danger: #b91c1c;
  --success: #047857;
  --soft: #e9f7f5;
  --gold-soft: #fff4e8;
  --surface: #f9fbfd;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.10);
  --shadow-strong: 0 26px 80px rgba(23, 32, 51, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
  min-width: 18px;
  min-height: 18px;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #ffffff;
  color: var(--ink);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand span,
.muted {
  color: var(--muted);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.sidebar .brand span,
.sidebar .muted,
.sidebar-card p {
  color: var(--muted);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #b76e79, #d8a36d);
  color: #fff;
  font-weight: 800;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
}

.nav-link {
  display: block;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  background: var(--soft);
  border-color: #efcbc5;
  color: var(--primary-strong);
}

.sidebar-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf8;
}

.sidebar-card p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar,
.section-head,
.panel-head,
.toolbar,
.campaign-row,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-switcher {
  min-width: min(360px, 38vw);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.view {
  display: none;
}

.admin-section {
  display: none;
}

.active-view {
  display: block;
}

.section-head {
  margin: 10px 0 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.kpi-card,
.panel,
.checkout-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi-card {
  padding: 18px;
}

.kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
}

.panel {
  padding: 18px;
}

.pipeline-list,
.lead-stack,
.lead-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pipeline-item,
.lead-card,
.message,
.script-card,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfc;
}

.inline-check {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pipeline-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.lead-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.lead-list-panel,
.lead-detail-panel {
  min-height: 620px;
}

.toolbar {
  align-items: stretch;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.lead-card {
  padding: 14px;
  text-align: left;
  background: #fff;
}

.lead-card.active,
.lead-card:hover {
  border-color: var(--primary);
  background: var(--soft);
}

.lead-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
}

.status.Booked {
  background: #eaf7ee;
  color: var(--success);
}

.status.Needs-Staff-Review {
  background: #fff7ed;
  color: var(--warning);
}

.status.Lost {
  background: #fee2e2;
  color: var(--danger);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.detail-cell {
  padding: 12px;
  background: #fff8f5;
  border-radius: 8px;
}

.messages {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.message {
  padding: 12px;
}

.message.outbound {
  background: var(--soft);
  border-color: #efcbc5;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.composer {
  display: grid;
  gap: 10px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary,
.secondary,
.danger,
.icon-button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 10px 14px;
  font-weight: 800;
}

.primary {
  background: linear-gradient(135deg, #b76e79, #c99867);
  color: #fff;
}

.primary:hover {
  background: linear-gradient(135deg, #9b5964, #b9824e);
}

.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.danger {
  background: #fff1f2;
  color: var(--danger);
  border-color: #fecdd3;
}

.icon-button {
  width: 40px;
  padding: 0;
  background: #fff;
  border-color: var(--line);
}

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

.admin-search {
  max-width: 320px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td span.muted {
  display: block;
  margin-top: 4px;
}

.access-panel {
  max-width: 620px;
  display: grid;
  gap: 14px;
  margin: 40px auto 0;
}

.script-card,
.plan-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.plan-card strong {
  font-size: 28px;
}

.plan-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}

.plan-features li::before {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.plan-card .primary,
.plan-card .link-button {
  margin-top: auto;
  justify-content: center;
}

.report-content {
  display: grid;
  gap: 14px;
}

.report-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.empty-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.dialog-card {
  width: min(520px, calc(100vw - 30px));
  padding: 18px;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 8px;
  background: #3a2a27;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.10) 0 18%, transparent 18% 100%),
    linear-gradient(135deg, #f8fbfd, #eef3f8);
}

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

.login-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signup-panel {
  width: min(620px, 100%);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.otp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.otp-row button {
  white-space: nowrap;
}

.signup-status {
  font-weight: 700;
}

.login-error {
  min-height: 22px;
  color: var(--danger);
  font-weight: 700;
}

.text-link {
  color: var(--primary-strong);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.checkout-result {
  width: min(520px, 100%);
  padding: 28px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.capture-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1fr);
  background: #fffaf8;
}

.capture-hero {
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(58, 42, 39, 0.92), rgba(120, 70, 74, 0.9)),
    #3a2a27;
  color: #fffaf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.capture-hero p {
  max-width: 560px;
  color: #f4ddd8;
  line-height: 1.65;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-brand {
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav nav a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.site-nav nav a:hover {
  color: var(--primary-strong);
}

.hero-site {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  align-items: center;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 64px);
}

.hero-site h1 {
  max-width: 840px;
  font-size: clamp(42px, 7vw, 78px);
}

.hero-site p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-proof {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-proof strong {
  display: block;
  margin: 12px 0;
  font-size: 34px;
}

.site-section,
.site-band {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 64px);
}

.site-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-grid {
  display: grid;
  gap: 18px;
}

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

.site-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfc;
}

.site-grid p,
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.legal-page h1 {
  margin: 22px 0 12px;
}

.legal-page h2 {
  margin-top: 28px;
}

.roi-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.roi-layout h1,
.trust-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 64px);
}

.roi-layout .muted,
.trust-hero .muted {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
}

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

.roi-results-band {
  margin-top: 24px;
}

.roi-results-band strong {
  display: block;
  margin: 10px 0;
  font-size: 30px;
}

.trust-list ul,
.legal-page ul {
  padding-left: 20px;
}

.trust-list li {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.capture-shell {
  padding: 42px;
  display: grid;
  align-content: center;
}

.capture-form {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
}

.success-box {
  padding: 16px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
}

.checkout-result .brand-mark {
  margin: 0 auto;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

a.secondary {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  background: linear-gradient(135deg, var(--primary), var(--accent-2) 58%, var(--accent));
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.22);
}

.panel,
.kpi-card,
.checkout-result,
.lead-card,
.script-card,
.plan-card,
.pipeline-item,
.message,
.site-grid article,
.outcome-card,
.console-card {
  border-color: rgba(124, 139, 161, 0.22);
}

.panel,
.kpi-card,
.checkout-result {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.kpi-card,
.panel,
.lead-card,
.pipeline-item,
.script-card,
.plan-card,
.site-grid article,
.outcome-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.kpi-card:hover,
.lead-card:hover,
.pipeline-item:hover,
.site-grid article:hover,
.outcome-card:hover,
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.24);
}

.primary:hover {
  background: linear-gradient(135deg, var(--primary-strong), #25378e);
  transform: translateY(-1px);
}

.secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(124, 139, 161, 0.34);
}

.secondary:hover {
  border-color: rgba(15, 118, 110, 0.42);
  color: var(--primary-strong);
}

.site-nav {
  min-height: 72px;
  background: rgba(246, 248, 251, 0.82);
  box-shadow: 0 1px 0 rgba(124, 139, 161, 0.18);
}

.site-links {
  align-items: center;
}

.site-links a {
  position: relative;
}

.site-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.site-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle,
.app-menu-button {
  display: none;
}

.drawer-backdrop,
.app-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(23, 32, 51, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(390px, calc(100vw - 28px));
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.drawer-open .drawer-backdrop,
.app-drawer-open .app-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.drawer-open .mobile-drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.mobile-drawer nav {
  display: grid;
  gap: 10px;
}

.mobile-drawer nav a {
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.mobile-drawer nav a:hover {
  background: var(--soft);
  border-color: rgba(15, 118, 110, 0.3);
}

.hero-site {
  position: relative;
  min-height: calc(100svh - 72px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(246, 248, 251, 0.96) 0%, rgba(246, 248, 251, 0.92) 39%, rgba(246, 248, 251, 0.32) 72%),
    linear-gradient(135deg, #ecfdf5 0%, #eef2ff 48%, #fff7ed 100%);
}

.hero-site::before {
  position: absolute;
  inset: 13% 4% auto auto;
  width: min(58vw, 760px);
  height: min(46vw, 560px);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 70, 163, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.7;
  transform: rotate(-8deg) skewY(-3deg);
}

.hero-aura {
  position: absolute;
  inset: auto 0 0 auto;
  width: 62vw;
  height: 72vh;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(15, 118, 110, 0.12) 18% 32%, transparent 32% 100%),
    linear-gradient(155deg, transparent 0 42%, rgba(51, 70, 163, 0.10) 42% 56%, transparent 56% 100%),
    linear-gradient(120deg, transparent 0 62%, rgba(229, 107, 78, 0.10) 62% 74%, transparent 74% 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-site h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 84px);
  letter-spacing: 0;
}

.hero-site p {
  max-width: 680px;
  color: #516075;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(124, 139, 161, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.06);
}

.hero-metrics strong {
  color: var(--ink);
}

.hero-console {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: absolute;
  z-index: 1;
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(14px, 8vh, 76px);
  width: min(46vw, 620px);
  min-width: 360px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-strong);
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-2deg);
  transform-style: preserve-3d;
  backdrop-filter: blur(18px);
  animation: consoleFloat 7s ease-in-out infinite;
}

.console-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.console-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f87171;
}

.console-top span:nth-child(2) {
  background: #fbbf24;
}

.console-top span:nth-child(3) {
  background: #34d399;
}

.console-top strong {
  margin-left: auto;
}

.console-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
}

.console-card {
  min-height: 132px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(23, 32, 51, 0.08);
}

.console-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 24px;
}

.console-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.console-card.dark {
  background: linear-gradient(135deg, #172033, #263756);
  color: #fff;
}

.console-card.dark .eyebrow,
.console-card.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.lead-flow {
  grid-row: span 2;
}

.flow-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.flow-lines i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(15, 118, 110, 0.12));
  animation: flowPulse 2.8s ease-in-out infinite;
}

.flow-lines i:nth-child(2) {
  width: 76%;
  animation-delay: 0.35s;
}

.flow-lines i:nth-child(3) {
  width: 58%;
  animation-delay: 0.7s;
}

.workflow-band {
  position: relative;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 64px);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-head,
.section-kicker {
  max-width: 760px;
  margin-bottom: 24px;
}

.workflow-head h2,
.section-kicker h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-rail article,
.outcome-card {
  padding: 20px;
  border: 1px solid rgba(124, 139, 161, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.workflow-rail span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.workflow-rail h3,
.outcome-card h3 {
  margin-bottom: 10px;
}

.outcome-section {
  background: linear-gradient(180deg, var(--bg), #ffffff);
}

.outcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 16px;
}

.feature-card {
  background: linear-gradient(135deg, #172033, #253756);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.feature-card p,
.feature-card .badge {
  color: rgba(255, 255, 255, 0.74);
}

.feature-card strong {
  display: block;
  margin: 16px 0 10px;
  font-size: 36px;
}

.trust-strip {
  background: #fff;
}

.pricing-section {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff, #f6f8fb);
}

.plan-card.highlighted {
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: var(--shadow-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.shell {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbfd, #eef3f8);
}

.sidebar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.nav-item {
  position: relative;
  font-weight: 800;
}

.nav-item.active::before {
  position: absolute;
  left: 6px;
  top: 50%;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
  transform: translateY(-50%);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.kpi-card strong {
  color: var(--ink);
  font-size: 31px;
}

.detail-cell {
  background: linear-gradient(180deg, #f9fbfd, #eef8f6);
}

.message.outbound {
  background: #e9f7f5;
  border-color: rgba(15, 118, 110, 0.24);
}

@keyframes consoleFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes flowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleX(0.86);
    transform-origin: left;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

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

/* Precision correction pass: enforce the approved Smart Clinic palette and compact console feel. */
body,
.home-lux,
.auth-page,
.admin-page {
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

.home-lux {
  --lux-white: #fafaf8;
  --lux-platinum: #eef0f2;
  --lux-ink: #080a0d;
  --lux-charcoal: #1d232b;
  --lux-muted: #667085;
  --lux-line: #d9dde3;
  --lux-teal: #0f766e;
  --lux-green: #067647;
  --lux-gold: #b08d57;
  background: var(--lux-white);
}

.home-lux .primary,
.auth-page .primary,
.admin-page .primary {
  border-color: var(--lux-teal, #0f766e);
  background: var(--lux-teal, #0f766e);
  color: #fff;
}

.home-lux .primary:hover,
.auth-page .primary:hover,
.admin-page .primary:hover {
  border-color: #0b5f59;
  background: #0b5f59;
}

.home-lux .secondary,
.auth-page .secondary,
.admin-page .secondary {
  border-color: #ccd3dc;
  background: #fff;
  color: #1d232b;
}

.lux-nav {
  min-height: 64px;
  border-bottom: 1px solid rgba(29, 35, 43, 0.12);
  background: rgba(250, 250, 248, 0.92);
  color: #080a0d;
  backdrop-filter: blur(18px);
}

.lux-nav .lux-mark {
  border-color: #d9dde3;
  background: #080a0d;
  color: #fff;
}

.lux-nav .lux-brand small,
.lux-links a {
  color: #667085;
}

.lux-links a:hover {
  color: #080a0d;
}

.lux-nav-cta {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e !important;
}

.lux-menu {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
}

.lux-hero {
  min-height: auto;
  padding-top: clamp(52px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 90px);
  background:
    radial-gradient(circle at 88% 18%, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #fafaf8 0%, #eef0f2 100%);
  color: #080a0d;
}

.lux-hero::before {
  inset: 8% -8% auto 42%;
  height: 420px;
  border-color: rgba(15, 118, 110, 0.08);
  background:
    linear-gradient(rgba(15, 118, 110, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.8;
}

.lux-hero h1 {
  color: #080a0d;
  font-weight: 720;
  line-height: 0.98;
}

.lux-hero p {
  color: #667085;
}

.lux-domain-pill,
.lux-trust-strip span {
  border-color: #d9dde3;
  background: rgba(255, 255, 255, 0.82);
  color: #475467;
}

.lux-domain-pill span {
  background: #0f766e;
  box-shadow: 0 0 18px rgba(15, 118, 110, 0.36);
}

.lux-dashboard-preview {
  border-color: rgba(29, 35, 43, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(29, 35, 43, 0.16);
}

.floating-signal {
  border-color: #d9dde3;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(29, 35, 43, 0.12);
}

.floating-signal span,
.trust-badge-grid span::before {
  background: #0f766e;
}

.lux-card span,
.preview-workflow-lux div span {
  background: #0f766e;
}

.lux-card,
.lux-product-card,
.lux-offer-card,
.lux-price-card {
  border-color: #d9dde3;
}

.product-section,
.trust-section {
  background: #eef0f2;
}

.lux-pricing {
  background: #1d232b;
}

.lux-offer-card,
.lux-price-card {
  background: #232b35;
}

.lux-price-card.featured {
  border-color: rgba(176, 141, 87, 0.5);
  background: #fafaf8;
}

.lux-offer-card span,
.lux-price-card span {
  color: #b08d57;
}

.admin-pricing-layout {
  align-items: start;
}

.pricing-admin-list {
  display: grid;
  gap: 10px;
}

.pricing-admin-card {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  color: #080a0d;
  text-align: left;
}

.pricing-admin-card:hover,
.pricing-admin-card.active {
  border-color: rgba(15, 118, 110, 0.36);
  background: #f7fbfa;
}

.pricing-admin-topline,
.pricing-admin-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.pricing-admin-price {
  font-size: 28px;
  font-weight: 780;
  letter-spacing: 0;
}

.pricing-admin-price small {
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.pricing-admin-flags {
  justify-content: flex-start;
}

.pricing-admin-flags em {
  padding: 5px 8px;
  border: 1px solid #d9dde3;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-style: normal;
  font-size: 11px;
  font-weight: 760;
}

.admin-pricing-form {
  display: grid;
  gap: 12px;
}

.admin-pricing-form textarea {
  min-height: 86px;
}

.admin-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 0;
}

.admin-inline-select {
  min-width: 150px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  background: #fff;
  color: #080a0d;
  font-size: 12px;
  font-weight: 700;
}

.mini-action {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

@media (max-width: 820px) {
  .lux-hero {
    padding-top: 34px;
  }

  .lux-hero::before {
    inset: 10% -70% auto 18%;
  }

  .lux-hero h1 {
    font-size: clamp(36px, 10.4vw, 50px);
  }
}

/* Resend-inspired product UI pass */
:root {
  --bg: #fafafa;
  --panel: #ffffff;
  --ink: #09090b;
  --muted: #71717a;
  --line: #e4e4e7;
  --primary: #09090b;
  --primary-strong: #18181b;
  --accent: #52525b;
  --accent-2: #27272a;
  --warning: #b45309;
  --danger: #dc2626;
  --success: #16a34a;
  --soft: #f4f4f5;
  --gold-soft: #fafafa;
  --surface: #f7f7f8;
  --shadow: 0 1px 2px rgba(9, 9, 11, 0.06), 0 8px 24px rgba(9, 9, 11, 0.05);
  --shadow-strong: 0 18px 50px rgba(9, 9, 11, 0.10);
}

body {
  background: var(--bg);
}

.brand-mark {
  background: #09090b;
  box-shadow: none;
}

.site-nav {
  min-height: 64px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(250, 250, 250, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.site-nav nav a,
.site-footer a,
.text-link {
  color: #52525b;
}

.site-nav nav a:hover,
.text-link:hover {
  color: #09090b;
}

.site-links a::after {
  background: #09090b;
}

.primary,
.primary:hover {
  background: #09090b;
  color: #fff;
  box-shadow: none;
}

.primary:hover,
.secondary:hover {
  transform: none;
}

.secondary {
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.secondary:hover {
  border-color: #a1a1aa;
  color: #09090b;
}

.hero-site {
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  padding: clamp(46px, 8vw, 96px) clamp(18px, 4vw, 48px);
  background: #fafafa;
}

.hero-site::before,
.hero-aura,
.hero-console {
  display: none;
}

.hero-content {
  max-width: 660px;
}

.hero-site h1 {
  max-width: 660px;
  margin-bottom: 18px;
  color: #09090b;
  font-size: clamp(46px, 6vw, 74px);
  font-weight: 650;
  letter-spacing: 0;
}

.hero-site p {
  max-width: 600px;
  color: #52525b;
  font-size: 18px;
  line-height: 1.65;
}

.eyebrow {
  color: #71717a;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.usage-preview {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  min-height: 560px;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fbfbfb;
}

.preview-logo {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 7px;
  background: #09090b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.preview-sidebar span {
  padding: 8px 9px;
  border-radius: 7px;
  color: #71717a;
  font-size: 13px;
  font-weight: 650;
}

.preview-sidebar span.active {
  background: #f4f4f5;
  color: #09090b;
}

.preview-main {
  min-width: 0;
  padding: 20px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.preview-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
}

.preview-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}

.preview-filters span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #52525b;
  font-size: 12px;
  font-weight: 650;
}

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

.usage-metrics article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.usage-metrics span,
.usage-metrics small {
  display: block;
  color: #71717a;
  font-size: 12px;
}

.usage-metrics strong {
  display: block;
  margin: 10px 0 5px;
  color: #09090b;
  font-size: 30px;
  font-weight: 650;
}

.usage-chart {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 10px;
  height: 180px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(#f4f4f5 1px, transparent 1px);
  background-size: 100% 45px;
}

.usage-chart i {
  display: block;
  border-radius: 5px 5px 0 0;
  background: #09090b;
}

.usage-table {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.usage-table div {
  display: grid;
  grid-template-columns: 1fr 88px 96px;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #52525b;
  font-size: 13px;
}

.usage-table div:first-child {
  background: #fafafa;
  color: #71717a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.usage-table div:last-child {
  border-bottom: 0;
}

.workflow-band,
.site-band,
.site-section,
.pricing-section,
.outcome-section,
.trust-strip {
  background: #fff;
}

.workflow-band,
.site-band {
  border-color: var(--line);
}

.workflow-head h2,
.section-kicker h2 {
  color: #09090b;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 650;
  letter-spacing: 0;
}

.workflow-rail article,
.outcome-card,
.site-grid article,
.plan-card,
.panel,
.kpi-card,
.lead-card,
.pipeline-item,
.script-card,
.message,
.checkout-result {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.workflow-rail article:hover,
.outcome-card:hover,
.site-grid article:hover,
.plan-card:hover,
.kpi-card:hover,
.lead-card:hover,
.pipeline-item:hover {
  transform: none;
  border-color: #c7c7ce;
  box-shadow: none;
}

.workflow-rail span,
.badge,
.status {
  background: #f4f4f5;
  color: #3f3f46;
}

.status.Booked {
  background: #ecfdf5;
  color: #047857;
}

.status.Needs-Staff-Review {
  background: #fffbeb;
  color: #b45309;
}

.feature-card {
  background: #09090b;
  color: #fff;
  box-shadow: none;
}

.feature-card .badge {
  background: #27272a;
  color: #d4d4d8;
}

.feature-card p {
  color: #d4d4d8;
}

.plan-card.highlighted {
  border-color: #09090b;
  box-shadow: none;
}

.app-page {
  height: 100vh;
  overflow: hidden;
  background: #fafafa;
}

.app-page .shell {
  height: 100vh;
  min-height: 0;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
}

.app-page .sidebar {
  position: relative;
  top: auto;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 28px 26px;
}

.app-page .nav {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.app-page .main {
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  padding: 28px;
  overscroll-behavior: contain;
}

.app-page .app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  justify-content: flex-end;
  margin: 0 0 22px;
}

.app-page .app-menu-button {
  margin-right: auto;
}

.workspace-card {
  display: grid;
  gap: 12px;
}

.workspace-card label {
  gap: 7px;
  color: #71717a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-card select {
  min-height: 44px;
  color: #09090b;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.workspace-card p {
  margin: 0;
  font-size: 14px;
}

.sidebar-action {
  width: 100%;
  justify-content: center;
}

.admin-page {
  height: 100vh;
  overflow: hidden;
  background: #fafafa;
}

.admin-page .admin-shell {
  height: 100vh;
  min-height: 0;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
}

.admin-page .sidebar {
  position: relative;
  top: auto;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 28px 26px;
}

.admin-page .nav {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.admin-page .main {
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  padding: 28px;
  overscroll-behavior: contain;
}

.admin-page .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 0 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.shell {
  background: #fafafa;
}

.sidebar {
  background: #fff;
  border-color: var(--line);
  backdrop-filter: none;
}

.sidebar-card {
  background: #fafafa;
  border-color: var(--line);
}

.nav-item:hover,
.nav-item.active {
  background: #f4f4f5;
  border-color: transparent;
  color: #09090b;
}

.nav-item.active::before {
  background: #09090b;
}

.topbar {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.detail-cell {
  background: #fafafa;
}

.message.outbound {
  background: #fafafa;
  border-color: var(--line);
}

.login-page {
  background: #fafafa;
}

.login-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.reveal {
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.toast {
  background: #09090b;
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .site-links {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 40px;
    padding: 10px 14px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
  }

  .hero-site {
    min-height: auto;
    padding-bottom: 34px;
  }

  .usage-preview {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 0;
  }

  .workflow-rail,
  .outcome-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(330px, calc(100vw - 42px));
    height: 100vh;
    transform: translateX(-104%);
    transition: transform 220ms ease;
    box-shadow: var(--shadow-strong);
  }

  .app-page .shell {
    height: 100svh;
    grid-template-columns: 1fr;
  }

  .app-page .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(330px, calc(100vw - 42px));
    height: 100svh;
    overflow-y: auto;
    transform: translateX(-104%);
  }

  .app-page .main {
    height: 100svh;
    overflow-y: auto;
  }

  .admin-page .admin-shell {
    height: 100svh;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    overflow: hidden;
  }

  .admin-page .sidebar {
    position: relative;
    inset: auto;
    z-index: 1;
    width: auto;
    height: 100svh;
    overflow: hidden;
    transform: none;
    transition: none;
    box-shadow: none;
  }

  .admin-page .main {
    height: 100svh;
    min-width: 0;
    overflow-y: auto;
  }

  .app-drawer-open .sidebar {
    transform: translateX(0);
  }

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

  .nav {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .settings-grid,
  .plans-grid,
  .site-grid.four,
  .grid-two,
  .lead-layout,
  .roi-layout {
    grid-template-columns: 1fr;
  }

  .hero-site {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: sticky;
    align-items: center;
    flex-direction: row;
  }

  .site-brand strong {
    font-size: 14px;
  }

  .site-brand small {
    font-size: 11px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .main,
  .sidebar {
    padding: 14px;
  }

  .topbar,
  .section-head,
  .panel-head,
  .campaign-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions,
  .toolbar,
  .button-row {
    width: 100%;
    flex-direction: column;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .report-row,
  .capture-page {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .otp-row {
    grid-template-columns: 1fr;
  }

  .capture-hero,
  .capture-shell {
    padding: 24px;
  }

  .hero-site,
  .site-grid.two,
  .site-grid.three,
  .workflow-rail,
  .outcome-grid,
  .usage-metrics {
    grid-template-columns: 1fr;
  }

  .usage-preview {
    display: block;
  }

  .preview-sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preview-logo {
    flex: 0 0 auto;
    margin: 0 8px 0 0;
  }

  .preview-sidebar span {
    white-space: nowrap;
  }

  .preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-table {
    overflow-x: auto;
  }

  .usage-table div {
    min-width: 420px;
  }

  .hero-site h1 {
    font-size: 42px;
  }

  .hero-site p {
    font-size: 16px;
  }

  .hero-metrics {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    top: 0;
  }

  .topbar > div,
  .top-actions {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .shell {
    min-height: 100svh;
  }

  .main {
    padding: 12px;
  }

  .app-page .main {
    padding: 12px;
  }

  .app-page .sidebar {
    padding: 18px;
  }

  .admin-page .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-page .sidebar,
  .admin-page .main {
    padding: 12px;
  }

  .admin-page .topbar {
    margin: -12px -12px 16px;
    padding: 10px 12px 12px;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: -12px -12px 16px;
    padding: 10px 12px 12px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(250, 250, 250, 0.96);
    box-shadow: none;
    backdrop-filter: blur(14px);
  }

  .app-page .app-topbar {
    margin: -12px -12px 16px;
  }

  .app-topbar .app-menu-button {
    width: 44px;
    min-width: 44px;
    min-height: 40px;
    padding: 0;
    border-radius: 8px;
    font-size: 0;
  }

  .app-topbar .app-menu-button::before {
    color: #09090b;
    content: "Menu";
    font-size: 13px;
    font-weight: 800;
  }

  .workspace-switcher {
    width: 100%;
    min-width: 0;
  }

  .workspace-switcher .eyebrow {
    margin: 0 0 4px;
    font-size: 10px;
  }

  .workspace-switcher select {
    min-height: 40px;
    padding: 8px 34px 8px 10px;
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
  }

  .app-topbar .top-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 1px;
    scrollbar-width: none;
  }

  .app-topbar .top-actions::-webkit-scrollbar {
    display: none;
  }

  .app-topbar .top-actions .badge,
  .app-topbar .top-actions .secondary,
  .app-topbar .top-actions .primary {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .app-topbar .top-actions .badge {
    border: 1px solid var(--line);
    background: #f4f4f5;
    color: #52525b;
  }

  .app-topbar .mobile-primary-action {
    margin-left: auto;
  }

  #dashboardView .section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 2px;
  }

  #dashboardView .section-head h1 {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.05;
  }

  #runReactivationBtn {
    width: 100%;
    min-height: 44px;
  }
}

/* Smart Clinic Reception AI premium landing, inspired by modern developer-product sites */
.home-v3 {
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

.home-v3 .premium-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.home-v3 .site-brand {
  min-width: 0;
}

.home-v3 .site-brand > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.home-v3 .site-brand strong,
.home-v3 .premium-nav a {
  color: #fff;
}

.home-v3 .site-brand small {
  color: rgba(255, 255, 255, 0.54);
}

.home-v3 .reveal {
  opacity: 1;
  transform: none;
}

.home-v3 .brand-mark {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  color: #000;
}

.home-v3 .site-links a {
  color: rgba(255, 255, 255, 0.64);
}

.home-v3 .site-links a:hover {
  color: #fff;
}

.home-v3 .site-links a::after {
  background: #fff;
}

.home-v3 .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.home-v3 .menu-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.home-v3 .resend-hero {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: calc(100svh - 68px);
  padding: 52px clamp(18px, 5vw, 64px) 72px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #000 0%, #070707 58%, #0d0d0d 100%);
}

.hero-floor {
  position: absolute;
  inset: 28% -16% auto -16%;
  height: 520px;
  opacity: 0.78;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(900px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 58%, transparent 100%);
}

.home-v3 .announcement {
  position: relative;
  z-index: 1;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 14px 0 26px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.home-v3 .announcement span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
}

.home-v3 .announcement strong {
  min-width: 0;
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
}

.home-v3 .hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(960px, 100%);
  max-width: 960px;
  margin: 0 auto 42px;
  text-align: center;
}

.home-v3 .hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(62px, 11vw, 142px);
  font-weight: 640;
  line-height: 0.92;
  letter-spacing: 0;
}

.home-v3 .hero-copy p {
  max-width: 720px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.68;
}

.home-v3 .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.home-v3 .primary {
  border: 1px solid #fff;
  background: #fff;
  color: #000;
}

.home-v3 .secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.integrate-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  width: min(1120px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.78);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.code-window {
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  background: #050505;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 650;
}

.code-head small {
  color: rgba(255, 255, 255, 0.42);
}

.code-window pre {
  margin: 0;
  padding: 24px 18px 28px;
  overflow-x: auto;
}

.code-window code {
  color: rgba(255, 255, 255, 0.84);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.9;
}

.code-window code span {
  display: inline-block;
  width: 28px;
  margin-right: 18px;
  color: rgba(255, 255, 255, 0.28);
  text-align: right;
}

.signal-panel {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  background: #0a0a0a;
}

.signal-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.signal-row > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.signal-row.is-live > span {
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.signal-row strong {
  display: block;
  color: #fff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.signal-row small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.signal-row em {
  min-width: 58px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.mini-graph {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 154px;
  padding: 20px 18px;
}

.mini-graph i {
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.22));
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
}

.logo-strip span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 13px;
  font-weight: 700;
}

.resend-section {
  padding: clamp(64px, 9vw, 132px) clamp(18px, 5vw, 64px);
  background: #fff;
  color: #000;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.section-copy {
  max-width: 580px;
}

.section-copy.centered {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-copy h2,
.final-cta h2 {
  margin: 0;
  color: #000;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 640;
  line-height: 1;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.final-cta p {
  color: #666;
  font-size: 17px;
  line-height: 1.7;
}

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

.workflow-card,
.bento-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
}

.workflow-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 36px;
  place-items: center;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.workflow-card h3,
.bento-card h3 {
  margin: 0 0 10px;
  color: #000;
  font-size: 22px;
  font-weight: 640;
}

.workflow-card p,
.bento-card p {
  color: #666;
  line-height: 1.65;
}

.bento-section {
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.bento-card {
  min-height: 260px;
  background: #fff;
}

.bento-card.wide {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
  gap: 18px;
}

.bento-card.dark {
  background: #000;
  color: #fff;
}

.bento-card.dark h3,
.bento-card.dark .eyebrow {
  color: #fff;
}

.review-stack {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
}

.review-stack span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
}

.review-stack strong {
  color: #000;
  font-size: 18px;
}

.review-stack small {
  color: #666;
  line-height: 1.5;
}

.pricing-ladder {
  padding: clamp(64px, 9vw, 132px) clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
  color: #fff;
}

.pricing-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.pricing-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: end;
  margin-bottom: 24px;
}

.pricing-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 640;
  line-height: 1;
  letter-spacing: 0;
}

.pricing-head p:not(.eyebrow),
.founding-offer p,
.pricing-card p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

.founding-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0b0b0b;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.founding-offer h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 640;
  letter-spacing: 0;
}

.founding-offer p {
  max-width: 680px;
  margin-bottom: 0;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0b0b0b;
}

.pricing-card.featured {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.pricing-card .eyebrow,
.pricing-head .eyebrow,
.founding-offer .eyebrow {
  color: rgba(255, 255, 255, 0.48);
}

.pricing-card.featured .eyebrow {
  color: rgba(0, 0, 0, 0.48);
}

.price-line {
  display: grid;
  gap: 5px;
}

.price-line strong {
  color: inherit;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: 0;
}

.price-line span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 750;
}

.pricing-card.featured .price-line span,
.pricing-card.featured p,
.pricing-card.featured .plan-features {
  color: rgba(0, 0, 0, 0.62);
}

.pricing-ladder .plan-features {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.62);
}

.pricing-ladder .plan-features li::before {
  background: rgba(255, 255, 255, 0.9);
}

.pricing-card.featured .plan-features li::before {
  background: #000;
}

.pricing-card .link-button {
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}

.pricing-card.featured .primary {
  border-color: #000;
  background: #000;
  color: #fff;
}

.final-cta {
  display: grid;
  justify-items: center;
  background: #000;
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  max-width: 820px;
  color: #fff;
}

.final-cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.64);
}

.final-cta .eyebrow {
  color: rgba(255, 255, 255, 0.52);
}

.premium-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  color: rgba(255, 255, 255, 0.52);
}

.premium-footer a {
  color: rgba(255, 255, 255, 0.52);
}

.home-v3 .mobile-drawer {
  background: #050505;
  border-left-color: rgba(255, 255, 255, 0.10);
}

.home-v3 .mobile-drawer nav a {
  background: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.10);
  color: #fff;
}

@media (max-width: 980px) {
  .integrate-stage,
  .split-section,
  .bento-card.wide {
    grid-template-columns: 1fr;
  }

  .code-window {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-head,
  .founding-offer {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-v3 .premium-nav {
    gap: 10px;
    min-height: 72px;
    padding: 14px 16px;
  }

  .home-v3 .site-brand {
    flex: 1 1 0;
    overflow: hidden;
  }

  .home-v3 .site-brand strong,
  .home-v3 .site-brand small {
    display: block;
    max-width: clamp(122px, 44vw, 190px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-v3 .menu-toggle {
    flex: 0 0 auto;
    min-width: 56px;
    padding: 0 10px;
  }

  .home-v3 .resend-hero {
    padding-top: 28px;
    padding-right: 22px;
    padding-left: 22px;
    min-height: auto;
  }

  .home-v3 .announcement {
    width: min(100%, 334px);
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
  }

  .home-v3 .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(40px, 12.2vw, 52px);
    line-height: 0.98;
  }

  .home-v3 .hero-copy p {
    max-width: 320px;
    font-size: 16px;
    line-height: 1.6;
  }

  .home-v3 .hero-actions {
    width: min(100%, 320px);
  }

  .home-v3 .hero-actions .link-button {
    width: 100%;
  }

  .integrate-stage,
  .workflow-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .code-window pre {
    padding: 18px 12px;
  }

  .code-head small {
    display: none;
  }

  .code-window code {
    font-size: 12px;
  }

  .code-window code span {
    width: 20px;
    margin-right: 10px;
  }

  .signal-row {
    grid-template-columns: auto 1fr;
  }

  .signal-row em {
    grid-column: 2;
    width: max-content;
  }

  .logo-strip {
    justify-content: flex-start;
  }

  .pricing-ladder {
    padding-right: 18px;
    padding-left: 18px;
  }

  .pricing-head,
  .founding-offer {
    gap: 14px;
  }

  .founding-offer .link-button {
    width: 100%;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: auto;
  }
}

/* Smart Clinic Reception AI premium app console */
.app-page {
  --app-bg: #f7f8fa;
  --app-panel: #ffffff;
  --app-ink: #0a0d14;
  --app-muted: #667085;
  --app-subtle: #98a2b3;
  --app-line: #e4e7ec;
  --app-line-strong: #d0d5dd;
  --app-soft: #f2f4f7;
  --app-accent: #0f766e;
  --app-accent-soft: #ecfdf3;
  --app-warning: #b54708;
  --app-danger: #b42318;
  --app-success: #067647;
  height: 100vh;
  overflow: hidden;
  background: var(--app-bg);
  color: var(--app-ink);
  font-size: 14px;
  line-height: 1.45;
}

.app-page .shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  overflow: hidden;
  background: var(--app-bg);
}

.app-page .sidebar {
  position: relative;
  top: auto;
  height: 100vh;
  min-height: 0;
  gap: 22px;
  padding: 22px 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--app-line);
  box-shadow: none;
}

.app-page .brand {
  min-width: 0;
  gap: 11px;
  padding: 0 4px 2px;
}

.app-page .brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #0a0d14;
  color: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 750;
}

.app-page .brand strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: var(--app-ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .brand span {
  display: block;
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.25;
}

.app-page .nav {
  display: grid;
  gap: 4px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 1px;
  scrollbar-width: thin;
}

.app-page .nav-item {
  position: relative;
  min-height: 38px;
  padding: 9px 11px 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.app-page .nav-item::before {
  position: absolute;
  left: 6px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  content: "";
  transition: background 160ms ease, transform 160ms ease;
  transform: scaleY(0.4);
}

.app-page .nav-item:hover {
  background: #f9fafb;
  border-color: var(--app-line);
  color: var(--app-ink);
}

.app-page .nav-item.active {
  background: var(--app-soft);
  border-color: var(--app-line);
  color: var(--app-ink);
}

.app-page .nav-item.active::before {
  background: var(--app-ink);
  transform: scaleY(1);
}

.app-page .sidebar-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fcfcfd;
  box-shadow: none;
}

.app-page .workspace-card {
  display: grid;
  gap: 10px;
}

.app-page .workspace-card label {
  gap: 7px;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.app-page .workspace-card select {
  min-height: 40px;
  padding: 8px 34px 8px 10px;
  color: var(--app-ink);
  font-size: 13px;
  font-weight: 650;
  text-transform: none;
}

.app-page .workspace-card p {
  margin: 0;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.45;
}

.app-page .main {
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 26px 36px;
  overscroll-behavior: contain;
}

.app-page .app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  margin: -22px -26px 22px;
  padding: 12px 26px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.app-page .app-menu-button {
  display: none;
}

.app-page .topbar-context {
  min-width: 0;
  margin-right: auto;
}

.app-page .topbar-context .eyebrow {
  margin-bottom: 2px;
}

.app-page .topbar-context h2 {
  margin: 0;
  color: var(--app-ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
}

.app-page .topbar-context .muted {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--app-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .top-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.app-page .eyebrow {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
}

.app-page h1 {
  color: var(--app-ink);
  font-size: 24px;
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: 0;
}

.app-page h2 {
  color: var(--app-ink);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: 0;
}

.app-page p {
  line-height: 1.5;
}

.app-page .muted {
  color: var(--app-muted);
}

.app-page .section-head {
  margin: 0 0 16px;
  align-items: end;
}

.app-page .section-head h1 {
  margin: 0;
}

.app-page .panel,
.app-page .kpi-card,
.app-page .lead-card,
.app-page .pipeline-item,
.app-page .script-card,
.app-page .plan-card,
.app-page .message,
.app-page .setting-field,
.app-page .settings-panel,
.app-page .billing-hero,
.app-page .feature-compare,
.app-page .billing-status-card,
.app-page .ai-insight-panel,
.app-page .ai-draft-panel {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
  box-shadow: none;
}

.app-page .panel,
.app-page .settings-panel,
.app-page .feature-compare {
  padding: 16px;
}

.app-page .panel:hover,
.app-page .kpi-card:hover,
.app-page .lead-card:hover,
.app-page .pipeline-item:hover,
.app-page .plan-card:hover,
.app-page .setting-field:hover {
  border-color: var(--app-line-strong);
  transform: none;
  box-shadow: none;
}

.app-page .primary,
.app-page .secondary,
.app-page .danger,
.app-page .icon-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.app-page .primary {
  border-color: #0a0d14;
  background: #0a0d14;
  color: #fff;
}

.app-page .primary:hover {
  background: #1d2939;
  transform: translateY(-1px);
}

.app-page .primary:active,
.app-page .secondary:active {
  transform: translateY(0);
}

.app-page .secondary {
  background: #fff;
  border-color: var(--app-line);
  color: #344054;
}

.app-page .secondary:hover {
  background: #f9fafb;
  border-color: var(--app-line-strong);
  color: var(--app-ink);
}

.app-page input,
.app-page select,
.app-page textarea {
  min-height: 40px;
  border-color: var(--app-line);
  border-radius: 8px;
  background: #fff;
  color: var(--app-ink);
  font-size: 14px;
}

.app-page input:focus,
.app-page select:focus,
.app-page textarea:focus,
.app-page button:focus-visible,
.app-page a:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
  border-color: rgba(15, 118, 110, 0.45);
}

.app-page textarea {
  min-height: 126px;
}

.app-page .badge,
.app-page .status {
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: #f9fafb;
  color: #344054;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.app-page .status.Booked {
  border-color: #abefc6;
  background: #ecfdf3;
  color: var(--app-success);
}

.app-page .status.Needs-Staff-Review {
  border-color: #fedf89;
  background: #fffaeb;
  color: var(--app-warning);
}

.app-page .status.Lost {
  border-color: #fecdca;
  background: #fef3f2;
  color: var(--app-danger);
}

.app-page .kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.app-page .metric-card {
  min-height: 128px;
  padding: 14px;
  display: grid;
  align-content: space-between;
}

.app-page .metric-card strong {
  margin: 10px 0 2px;
  color: var(--app-ink);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 760;
  line-height: 1;
}

.app-page .metric-card p {
  margin: 0;
  color: var(--app-muted);
  font-size: 12px;
}

.app-page .metric-review strong {
  color: var(--app-warning);
}

.app-page .metric-revenue strong,
.app-page .metric-booked strong {
  color: var(--app-success);
}

.app-page .grid-two {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 12px;
}

.app-page .pipeline-list,
.app-page .lead-stack,
.app-page .lead-list {
  gap: 8px;
  margin-top: 12px;
}

.app-page .pipeline-item {
  min-height: 62px;
  padding: 11px 12px;
  align-items: center;
  background: #fff;
}

.app-page .pipeline-item strong,
.app-page .lead-card strong {
  font-size: 13px;
  font-weight: 720;
}

.app-page .pipeline-item p,
.app-page .lead-card p {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-size: 12px;
}

.app-page .lead-card small {
  display: block;
  margin-top: 3px;
  color: var(--app-subtle);
  font-size: 11px;
  font-weight: 650;
}

.app-page .compact-empty {
  min-height: 148px;
  padding: 18px;
  border: 1px dashed var(--app-line-strong);
  border-radius: 8px;
  background: #fcfcfd;
  color: var(--app-muted);
}

.app-page .lead-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.app-page .lead-list-panel,
.app-page .lead-detail-panel {
  min-height: calc(100vh - 168px);
}

.app-page .lead-list-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.app-page .lead-list {
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  grid-auto-rows: max-content;
  padding-right: 2px;
}

.app-page .toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.48fr);
  gap: 8px;
  align-items: stretch;
  padding-bottom: 10px;
  background: var(--app-panel);
}

.app-page .lead-inbox-card {
  width: 100%;
  padding: 12px;
  text-align: left;
}

.app-page .lead-card.active,
.app-page .lead-card:hover {
  border-color: #111827;
  background: #fcfcfd;
}

.app-page .lead-title {
  align-items: flex-start;
  margin-bottom: 8px;
}

.app-page .lead-card-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
  color: var(--app-subtle);
  font-size: 11px;
}

.app-page .lead-card-meta span:last-child {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page .lead-detail-panel {
  padding: 0;
  overflow: hidden;
}

.app-page .lead-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  min-height: calc(100vh - 170px);
}

.app-page .lead-case {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--app-line);
}

.app-page .case-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.app-page .case-header h2 {
  margin: 0;
  font-size: 20px;
}

.app-page .detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.app-page .detail-cell {
  padding: 11px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fcfcfd;
}

.app-page .detail-cell span {
  display: block;
  font-size: 11px;
}

.app-page .detail-cell strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.app-page .status-control {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 12px;
}

.app-page .messages {
  gap: 10px;
  max-height: 340px;
  margin: 12px 0;
  overflow-y: auto;
  padding-right: 2px;
}

.app-page .message {
  width: min(88%, 620px);
  padding: 11px 12px;
  background: #fff;
}

.app-page .message.outbound {
  margin-left: auto;
  background: #f9fafb;
  border-color: var(--app-line-strong);
}

.app-page .message-meta {
  gap: 10px;
  color: var(--app-subtle);
  font-size: 11px;
}

.app-page .ai-draft-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fcfcfd;
}

.app-page .ai-actions {
  gap: 8px;
}

.app-page .guardrail-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fedf89;
  border-radius: 8px;
  background: #fffaeb;
  color: #93370d;
  font-size: 12px;
}

.app-page .ai-insight-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  background: #fcfcfd;
}

.app-page .ai-insight-panel strong {
  color: var(--app-ink);
  font-size: 17px;
  line-height: 1.35;
}

.app-page .insight-list {
  display: grid;
  gap: 8px;
}

.app-page .insight-list div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

.app-page .insight-list span {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.app-page .insight-list b {
  color: var(--app-ink);
  font-size: 13px;
}

.app-page .trust-stack,
.app-page .trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.app-page .trust-stack span,
.app-page .trust-row span {
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: #fff;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 720;
}

.app-page .settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.app-page .settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

.app-page .settings-tabs button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 720;
}

.app-page .settings-tabs button.active {
  border-color: var(--app-line);
  background: var(--app-soft);
  color: var(--app-ink);
}

.app-page .settings-panel {
  display: none;
  gap: 14px;
}

.app-page .settings-panel.active {
  display: grid;
}

.app-page .settings-panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.app-page .settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-page .setting-field {
  min-width: 0;
  padding: 12px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 720;
}

.app-page .setting-field.wide {
  grid-column: 1 / -1;
}

.app-page .inline-check.setting-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--app-ink);
  font-size: 13px;
}

.app-page .billing-status-card {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 14px;
}

.app-page .plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.app-page .billing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.app-page .billing-hero h2 {
  margin: 0;
  font-size: 22px;
}

.app-page .billing-proof-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fcfcfd;
}

.app-page .billing-proof-card strong {
  font-size: 28px;
  line-height: 1;
}

.app-page .plan-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-page .plan-card {
  padding: 15px;
  background: #fff;
}

.app-page .plan-card.highlighted {
  border-color: #111827;
  background: #fcfcfd;
  box-shadow: inset 0 0 0 1px #111827;
}

.app-page .plan-card strong {
  font-size: 30px;
  font-weight: 760;
  line-height: 1;
}

.app-page .plan-best {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-size: 12px;
}

.app-page .plan-features {
  gap: 7px;
}

.app-page .plan-features li::before {
  background: var(--app-ink);
}

.app-page .compare-table {
  display: grid;
  margin-top: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  overflow: hidden;
}

.app-page .compare-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(100px, 0.55fr));
}

.app-page .compare-row span {
  padding: 11px 12px;
  border-right: 1px solid var(--app-line);
  border-bottom: 1px solid var(--app-line);
  color: var(--app-muted);
  font-size: 12px;
}

.app-page .compare-row span:last-child {
  border-right: 0;
}

.app-page .compare-row:last-child span {
  border-bottom: 0;
}

.app-page .compare-head span {
  background: #f9fafb;
  color: var(--app-ink);
  font-weight: 760;
}

.app-page .dialog::backdrop {
  background: rgba(10, 13, 20, 0.48);
  backdrop-filter: blur(4px);
}

.app-page .dialog-card {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(10, 13, 20, 0.18);
}

.app-page .toast {
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0a0d14;
  box-shadow: 0 16px 40px rgba(10, 13, 20, 0.18);
}

@media (max-width: 1320px) {
  .app-page .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-page .lead-detail-grid {
    grid-template-columns: 1fr;
  }

  .app-page .lead-case {
    border-right: 0;
    border-bottom: 1px solid var(--app-line);
  }

  .app-page .ai-insight-panel {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  }

  .app-page .ai-insight-panel .eyebrow,
  .app-page .ai-insight-panel > strong {
    grid-column: 1;
  }

  .app-page .insight-list {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

@media (max-width: 1100px) {
  .app-page .shell {
    height: 100svh;
    grid-template-columns: 1fr;
  }

  .app-page .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(318px, calc(100vw - 42px));
    height: 100svh;
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform 220ms ease;
    box-shadow: 0 26px 80px rgba(10, 13, 20, 0.18);
  }

  .app-drawer-open .sidebar {
    transform: translateX(0);
  }

  .app-page .app-menu-button {
    display: inline-flex;
    flex: 0 0 auto;
    margin-right: 0;
  }

  .app-page .app-menu-button::before {
    content: none;
  }

  .app-page .main {
    height: 100svh;
    padding: 18px 18px 30px;
  }

  .app-page .app-topbar {
    margin: -18px -18px 18px;
    padding: 10px 18px;
  }

  .app-page .lead-layout,
  .app-page .grid-two {
    grid-template-columns: 1fr;
  }

  .app-page .lead-list-panel {
    position: relative;
    top: auto;
    max-height: none;
    min-height: 0;
  }

  .app-page .lead-list {
    max-height: 380px;
  }

  .app-page .plan-grid-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-page .main {
    padding: 12px 12px 28px;
  }

  .app-page .app-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: -12px -12px 14px;
    padding: 10px 12px;
  }

  .app-page .topbar-context {
    min-width: 0;
  }

  .app-page .topbar-context h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-page .top-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
  }

  .app-page .top-actions::-webkit-scrollbar {
    display: none;
  }

  .app-page .top-actions .badge,
  .app-page .top-actions .secondary,
  .app-page .top-actions .primary {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
    white-space: nowrap;
  }

  .app-page .section-head,
  .app-page .panel-head,
  .app-page .case-header,
  .app-page .billing-hero {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .app-page .section-head .primary,
  .app-page #runReactivationBtn,
  .app-page #newLeadBtn,
  .app-page #saveSettingsBtn,
  .app-page #saveScriptsBtn,
  .app-page #campaignRunBtn {
    width: 100%;
  }

  .app-page h1 {
    font-size: 22px;
  }

  .app-page .kpi-grid,
  .app-page .detail-grid,
  .app-page .settings-fields,
  .app-page .plan-grid-premium,
  .app-page .ai-insight-panel {
    grid-template-columns: 1fr;
  }

  .app-page .lead-layout {
    gap: 10px;
  }

  .app-page .lead-list-panel,
  .app-page .lead-detail-panel {
    min-height: 0;
  }

  .app-page .toolbar,
  .app-page .status-control {
    grid-template-columns: 1fr;
  }

  .app-page .lead-detail-grid {
    min-height: 0;
  }

  .app-page .lead-case {
    padding: 12px;
  }

  .app-page .messages {
    max-height: none;
  }

  .app-page .message {
    width: 100%;
  }

  .app-page .ai-insight-panel .eyebrow,
  .app-page .ai-insight-panel > strong,
  .app-page .insight-list {
    grid-column: auto;
    grid-row: auto;
  }

  .app-page .settings-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .app-page .settings-tabs button {
    flex: 0 0 auto;
  }

  .app-page .billing-hero,
  .app-page .compare-row {
    grid-template-columns: 1fr;
  }

  .app-page .compare-row span {
    border-right: 0;
  }
}

/* Smart Clinic Reception AI full premium brand system */
.home-lux,
.auth-page {
  --lux-white: #fafaf8;
  --lux-platinum: #eef0f2;
  --lux-ink: #080a0d;
  --lux-charcoal: #1d232b;
  --lux-muted: #667085;
  --lux-line: #e4e7ec;
  --lux-line-strong: #d0d5dd;
  --lux-teal: #0f766e;
  --lux-green: #067647;
  --lux-gold: #b08d57;
  --lux-radius: 8px;
  background: var(--lux-white);
  color: var(--lux-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.home-lux .primary,
.auth-page .primary,
.admin-page .primary {
  border: 1px solid #080a0d;
  background: #080a0d;
  color: #fff;
  box-shadow: none;
}

.home-lux .primary:hover,
.auth-page .primary:hover,
.admin-page .primary:hover {
  background: #1d232b;
  transform: translateY(-1px);
}

.home-lux .secondary,
.auth-page .secondary,
.admin-page .secondary {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #1d232b;
  box-shadow: none;
}

.home-lux .secondary:hover,
.auth-page .secondary:hover,
.admin-page .secondary:hover {
  border-color: #98a2b3;
  background: #f9fafb;
}

.lux-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 13, 0.82);
  color: #fff;
  backdrop-filter: blur(18px);
}

.lux-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.lux-brand > span:not(.lux-mark) {
  min-width: 0;
}

.lux-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #080a0d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.lux-mark.small {
  width: 32px;
  height: 32px;
  background: #080a0d;
  color: #fff;
}

.lux-brand strong,
.lux-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lux-brand strong {
  font-size: 14px;
  font-weight: 760;
}

.lux-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.lux-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lux-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.lux-links a:hover {
  color: #fff;
}

.lux-nav-cta {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.lux-menu {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.lux-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(52px, 8vw, 112px) clamp(18px, 5vw, 64px) clamp(42px, 6vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 26%, rgba(15, 118, 110, 0.16), transparent 29%),
    linear-gradient(135deg, #080a0d 0%, #11161d 54%, #080a0d 100%);
  color: #fff;
}

.lux-hero::before {
  position: absolute;
  inset: 18% -10% auto 40%;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  opacity: 0.62;
  transform: perspective(900px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 62%, transparent 100%);
}

.lux-hero-copy,
.lux-hero-stage {
  position: relative;
  z-index: 1;
}

.lux-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin-bottom: 22px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.lux-domain-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.68);
}

.lux-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 680;
  line-height: 0.95;
  letter-spacing: 0;
}

.lux-hero p {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.72;
}

.lux-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.lux-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.lux-trust-strip span,
.trust-badge-grid span {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 720;
}

.lux-hero-stage {
  min-height: 640px;
  perspective: 1400px;
}

.lux-dashboard-preview {
  position: absolute;
  inset: 74px 0 auto auto;
  width: min(760px, 100%);
  min-height: 520px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(250, 250, 248, 0.96);
  color: #080a0d;
  overflow: hidden;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.42);
  transform: rotateX(6deg) rotateY(-9deg) rotateZ(1deg);
  transform-style: preserve-3d;
  animation: lux-console-float 8s ease-in-out infinite;
}

.preview-sidebar-lux {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid #e4e7ec;
  background: #f6f7f8;
}

.preview-sidebar-lux span {
  padding: 8px 9px;
  border-radius: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 740;
}

.preview-sidebar-lux span.active {
  background: #080a0d;
  color: #fff;
}

.preview-main-lux {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.preview-topline,
.preview-lead-lux,
.preview-metrics-lux article,
.preview-workflow-lux div {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.preview-topline span,
.preview-lead-lux small,
.preview-metrics-lux span,
.preview-metrics-lux small,
.preview-workflow-lux small {
  color: #667085;
  font-size: 11px;
  font-weight: 720;
}

.preview-topline strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.preview-topline em {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-style: normal;
  font-size: 11px;
  font-weight: 760;
}

.preview-metrics-lux {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-metrics-lux article {
  padding: 12px;
}

.preview-metrics-lux strong {
  display: block;
  margin: 12px 0 5px;
  font-size: 26px;
}

.preview-workflow-lux {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.preview-workflow-lux div {
  position: relative;
  min-height: 108px;
  padding: 12px;
}

.preview-workflow-lux div span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: #080a0d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.preview-workflow-lux strong,
.preview-workflow-lux small {
  display: block;
}

.preview-workflow-lux i {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0f766e;
  box-shadow: 0 0 18px rgba(15, 118, 110, 0.58);
  animation: lux-signal-run 4.6s linear infinite;
}

.preview-lead-lux {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 1fr);
  gap: 14px;
  padding: 14px;
}

.preview-lead-lux strong,
.preview-lead-lux span {
  display: block;
}

.preview-lead-lux strong {
  margin: 5px 0;
  font-size: 20px;
}

.preview-lead-lux p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.floating-signal {
  position: absolute;
  z-index: 3;
  width: 226px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #080a0d;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(16px);
  animation: lux-card-float 6s ease-in-out infinite;
}

.floating-signal span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #0f766e;
}

.floating-signal strong,
.floating-signal small {
  display: block;
}

.floating-signal strong {
  font-size: 13px;
}

.floating-signal small {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.signal-one {
  top: 24px;
  left: 20px;
}

.signal-two {
  right: 4px;
  top: 18px;
  animation-delay: -1.6s;
}

.signal-three {
  right: 48px;
  bottom: 10px;
  animation-delay: -3s;
}

@keyframes lux-console-float {
  0%, 100% {
    transform: rotateX(6deg) rotateY(-9deg) rotateZ(1deg) translateY(0);
  }
  50% {
    transform: rotateX(5deg) rotateY(-7deg) rotateZ(1deg) translateY(-10px);
  }
}

@keyframes lux-card-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes lux-signal-run {
  0% {
    left: 8%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: 90%;
    opacity: 0;
  }
}

.lux-section,
.lux-pricing,
.lux-final-cta {
  padding: clamp(58px, 8vw, 118px) clamp(18px, 5vw, 64px);
}

.lux-section {
  background: var(--lux-white);
}

.lux-section-copy {
  max-width: 680px;
}

.lux-section-copy.centered {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.lux-section h2,
.lux-pricing h2,
.lux-final-cta h2 {
  margin: 0;
  color: var(--lux-ink);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0;
}

.lux-section p,
.lux-pricing p,
.lux-final-cta p {
  color: var(--lux-muted);
  line-height: 1.7;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

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

.lux-card,
.lux-product-card,
.lux-offer-card,
.lux-price-card {
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
}

.lux-card,
.lux-product-card,
.lux-price-card {
  padding: 22px;
}

.lux-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 36px;
  place-items: center;
  border-radius: 50%;
  background: #080a0d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.lux-card h3,
.lux-product-card h3,
.lux-offer-card h3 {
  margin: 0 0 10px;
  color: var(--lux-ink);
  font-size: 24px;
  font-weight: 680;
  line-height: 1.1;
}

.product-section,
.trust-section {
  background: #f6f7f8;
  border-top: 1px solid var(--lux-line);
  border-bottom: 1px solid var(--lux-line);
}

.lux-product-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}

.lux-product-card.wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 18px;
}

.mini-inbox {
  align-self: center;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fafaf8;
}

.mini-inbox span {
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fffaeb;
  color: #b54708;
  font-size: 11px;
  font-weight: 800;
}

.mini-inbox strong,
.mini-inbox small {
  display: block;
}

.mini-inbox small {
  color: var(--lux-muted);
  line-height: 1.5;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
}

.trust-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badge-grid span {
  border-color: var(--lux-line);
  background: #fff;
  color: var(--lux-charcoal);
}

.lux-pricing {
  background: #080a0d;
  color: #fff;
}

.lux-pricing h2 {
  color: #fff;
}

.lux-pricing .lux-section-copy p {
  color: rgba(255, 255, 255, 0.62);
}

.lux-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto 14px;
  padding: 22px;
  background: #10151c;
  border-color: rgba(255, 255, 255, 0.12);
}

.lux-offer-card span,
.lux-price-card span {
  color: var(--lux-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lux-offer-card h3 {
  color: #fff;
}

.lux-offer-card p,
.lux-price-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

.lux-price-row {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.lux-price-card {
  background: #10151c;
  border-color: rgba(255, 255, 255, 0.12);
}

.lux-price-card.featured {
  background: #fff;
  color: #080a0d;
}

.lux-price-card strong {
  display: block;
  margin: 16px 0 10px;
  color: inherit;
  font-size: 48px;
  font-weight: 720;
  line-height: 1;
}

.lux-price-card.featured p {
  color: #667085;
}

.lux-final-cta {
  display: grid;
  justify-items: center;
  background: var(--lux-white);
  text-align: center;
}

.lux-final-cta p:not(.eyebrow) {
  max-width: 620px;
}

.lux-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--lux-line);
  background: #fff;
  color: var(--lux-muted);
}

.lux-footer a {
  color: var(--lux-muted);
  font-weight: 720;
  text-decoration: none;
}

.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1fr);
  background: var(--lux-white);
}

.auth-brand-panel {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 78% 18%, rgba(15, 118, 110, 0.18), transparent 28%),
    linear-gradient(135deg, #080a0d, #151b23 58%, #080a0d);
  color: #fff;
}

.auth-brand-panel h1 {
  margin: 0;
  max-width: 560px;
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 680;
  line-height: 1;
}

.auth-brand-panel p:not(.eyebrow) {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.7;
}

.auth-trust-list {
  display: grid;
  gap: 9px;
}

.auth-trust-list span {
  width: max-content;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 720;
}

.auth-panel {
  align-self: center;
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.signup-panel {
  width: min(760px, calc(100% - 32px));
}

.auth-inline-brand .brand-mark {
  flex: 0 0 42px;
  background: #080a0d;
  box-shadow: none;
}

.auth-inline-brand {
  min-width: 0;
}

.auth-inline-brand > div:last-child,
.auth-brand-panel .lux-brand > span:not(.lux-mark) {
  min-width: 0;
  max-width: 100%;
}

.auth-inline-brand strong,
.auth-inline-brand span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.auth-panel h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 720;
  line-height: 1.1;
}

.auth-page .login-form {
  gap: 12px;
}

.auth-page label {
  color: var(--lux-muted);
  font-size: 12px;
  font-weight: 740;
}

.auth-page input,
.auth-page select,
.auth-page textarea {
  min-height: 44px;
  border-color: var(--lux-line);
  background: #fff;
}

.auth-page input:focus,
.auth-page select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
  border-color: rgba(15, 118, 110, 0.42);
}

.google-auth-button {
  min-height: 44px;
}

.signup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
}

.signup-steps span {
  padding: 8px 8px;
  border-radius: 7px;
  background: #f6f7f8;
  color: #475467;
  font-size: 11px;
  font-weight: 780;
  text-align: center;
}

.signup-step-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fcfcfb;
}

.auth-page .text-link {
  color: var(--lux-ink);
}

.admin-page {
  --app-bg: #f7f8fa;
  --app-panel: #ffffff;
  --app-ink: #0a0d14;
  --app-muted: #667085;
  --app-line: #e4e7ec;
  background: var(--app-bg);
}

.admin-page .sidebar {
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--app-line);
  box-shadow: none;
}

.admin-page .brand-mark {
  background: #080a0d;
  box-shadow: none;
}

.admin-page .nav-item {
  min-height: 38px;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
}

.admin-page .nav-item.active,
.admin-page .nav-item:hover {
  background: #f2f4f7;
  border-color: var(--app-line);
  color: var(--app-ink);
}

.admin-page .topbar,
.admin-page .panel,
.admin-page .kpi-card,
.admin-page .lead-card {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.admin-page .topbar {
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.admin-page .admin-table th {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-page .admin-table td {
  font-size: 13px;
}

.home-lux .reveal {
  opacity: 1;
  transform: none;
}

body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) {
  background: #fafaf8;
  color: #080a0d;
}

body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .site-nav {
  min-height: 72px;
  border-bottom: 1px solid #e4e7ec;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .site-nav nav a,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .text-link {
  color: #1d232b;
}

body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .brand-mark,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .checkout-result .brand-mark {
  background: #080a0d;
  color: #fff;
  box-shadow: none;
}

body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .panel,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .site-grid article,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .checkout-result,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .login-panel {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) input,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) select,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) textarea {
  border-color: #d0d5dd;
  background: #fff;
}

body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) input:focus,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) select:focus,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
  border-color: rgba(15, 118, 110, 0.42);
}

.login-page:not(.auth-page) {
  background:
    radial-gradient(circle at 18% 10%, rgba(15, 118, 110, 0.13), transparent 30%),
    #fafaf8;
}

.login-page:not(.auth-page) .login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.login-page:not(.auth-page) .login-panel {
  width: min(680px, 100%);
  padding: clamp(22px, 4vw, 34px);
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 36px auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.legal-page h1,
.site-section h1,
.site-section h2 {
  color: #080a0d;
  letter-spacing: 0;
}

.legal-page p,
.site-section p,
.site-band p {
  color: #667085;
  line-height: 1.7;
}

.capture-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  background: #fafaf8;
}

.capture-hero {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 72% 18%, rgba(15, 118, 110, 0.18), transparent 30%),
    linear-gradient(135deg, #080a0d, #151b23 60%, #080a0d);
  color: #fff;
}

.capture-hero .brand > div:last-child {
  display: grid;
  gap: 3px;
}

.capture-hero .brand span {
  color: rgba(255, 255, 255, 0.56);
}

.capture-hero h1 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.capture-hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
}

.capture-shell {
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 42px);
}

.capture-form {
  width: min(620px, 100%);
}

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fafaf8;
}

.checkout-result {
  width: min(520px, 100%);
  padding: 28px;
  text-align: center;
}

@media (max-width: 1120px) {
  .lux-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
    width: 100%;
    max-width: 100vw;
  }

  .lux-nav .lux-brand {
    width: 100%;
    min-width: 0;
  }

  .lux-links {
    display: none;
  }

  .lux-menu {
    display: inline-flex;
    justify-content: center;
  }

  .lux-hero,
  .problem-grid,
  .trust-section,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .lux-hero-stage {
    min-height: 620px;
  }

  .auth-brand-panel {
    min-height: auto;
  }

  .auth-panel {
    margin: 28px auto;
  }
}

@media (max-width: 820px) {
  .lux-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 12px;
  }

  .lux-nav .lux-brand {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .lux-nav .lux-brand > span:not(.lux-mark) {
    max-width: calc(100vw - 164px);
  }

  .lux-nav .lux-brand small {
    display: none;
  }

  .lux-menu {
    flex: 0 0 auto;
    width: 58px;
    min-width: 0;
    min-height: 42px;
    padding: 0 8px;
    justify-content: center;
  }

  .lux-hero {
    min-height: auto;
    padding-top: 46px;
  }

  .capture-page {
    grid-template-columns: 1fr;
  }

  .capture-hero,
  .capture-shell {
    padding: 24px;
  }

  .lux-hero h1 {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1;
    overflow-wrap: break-word;
  }

  .lux-hero-stage {
    min-height: auto;
    perspective: none;
  }

  .lux-dashboard-preview {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    transform: none;
    animation: none;
  }

  .preview-sidebar-lux {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--lux-line);
  }

  .preview-metrics-lux,
  .preview-workflow-lux,
  .preview-lead-lux,
  .lux-card-grid,
  .lux-product-grid,
  .lux-product-card.wide,
  .lux-price-row,
  .lux-offer-card,
  .signup-steps {
    grid-template-columns: 1fr;
  }

  .floating-signal {
    position: relative;
    inset: auto;
    width: 100%;
    margin-bottom: 8px;
    animation: none;
  }

  .preview-workflow-lux i {
    display: none;
  }

  .auth-brand-panel,
  .auth-panel {
    width: auto;
    margin: 0;
    border-radius: 0;
  }

  .auth-panel {
    border-width: 1px 0 0;
  }

  .form-row,
  .otp-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lux-dashboard-preview,
  .floating-signal,
  .preview-workflow-lux i {
    animation: none;
  }

  .home-lux *,
  .auth-page *,
  .admin-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Final override: old duplicated landing styles above must not override the approved palette. */
.home-lux .lux-nav {
  min-height: 64px !important;
  border-bottom: 1px solid rgba(29, 35, 43, 0.12) !important;
  background: rgba(250, 250, 248, 0.94) !important;
  color: #080a0d !important;
}

.home-lux .lux-nav .lux-mark {
  border-color: #d9dde3 !important;
  background: #080a0d !important;
  color: #fff !important;
}

.home-lux .lux-brand small,
.home-lux .lux-links a {
  color: #667085 !important;
}

.home-lux .lux-links a:hover {
  color: #080a0d !important;
}

.home-lux .lux-nav-cta,
.home-lux .lux-menu {
  border-color: rgba(15, 118, 110, 0.22) !important;
  background: rgba(15, 118, 110, 0.08) !important;
  color: #0f766e !important;
}

.home-lux .lux-hero {
  min-height: auto !important;
  padding-top: clamp(52px, 7vw, 96px) !important;
  padding-bottom: clamp(48px, 7vw, 90px) !important;
  background:
    radial-gradient(circle at 88% 18%, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #fafaf8 0%, #eef0f2 100%) !important;
  color: #080a0d !important;
}

.home-lux .lux-hero::before {
  inset: 8% -8% auto 42% !important;
  height: 420px !important;
  border-color: rgba(15, 118, 110, 0.08) !important;
  background:
    linear-gradient(rgba(15, 118, 110, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.055) 1px, transparent 1px) !important;
  background-size: 38px 38px !important;
  opacity: 0.8 !important;
}

.home-lux .lux-hero h1 {
  color: #080a0d !important;
  font-size: clamp(46px, 5.35vw, 76px) !important;
  font-weight: 720 !important;
  line-height: 1.02 !important;
}

.home-lux .lux-hero p {
  color: #667085 !important;
}

.home-lux .lux-domain-pill,
.home-lux .lux-trust-strip span {
  border-color: #d9dde3 !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #475467 !important;
}

.home-lux .lux-domain-pill span,
.home-lux .floating-signal span,
.home-lux .lux-card span,
.home-lux .preview-workflow-lux div span {
  background: #0f766e !important;
}

.home-lux .lux-dashboard-preview {
  border-color: rgba(29, 35, 43, 0.12) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 24px 80px rgba(29, 35, 43, 0.16) !important;
}

.home-lux .floating-signal {
  border-color: #d9dde3 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 46px rgba(29, 35, 43, 0.12) !important;
}

.home-lux .product-section,
.home-lux .trust-section {
  background: #eef0f2 !important;
}

.home-lux .lux-pricing {
  background: #1d232b !important;
}

.home-lux .lux-offer-card,
.home-lux .lux-price-card {
  background: #232b35 !important;
}

.home-lux .lux-price-card.featured {
  border-color: rgba(176, 141, 87, 0.5) !important;
  background: #fafaf8 !important;
}

.home-lux .lux-offer-card span,
.home-lux .lux-price-card span {
  color: #b08d57 !important;
}

.home-lux .primary {
  border-color: #0f766e !important;
  background: #0f766e !important;
  color: #fff !important;
}

.home-lux .primary:hover {
  border-color: #0b5f59 !important;
  background: #0b5f59 !important;
}

.home-lux .secondary {
  border-color: #ccd3dc !important;
  background: #fff !important;
  color: #1d232b !important;
}

@media (max-width: 820px) {
  .home-lux .lux-hero {
    padding-top: 34px !important;
  }

  .home-lux .lux-hero h1 {
    font-size: clamp(36px, 10.4vw, 50px) !important;
  }
}

/* Color restoration pass: remove the full-width header bar and bring back controlled brand color. */
.home-lux .lux-nav {
  position: absolute !important;
  top: 22px !important;
  left: clamp(18px, 5vw, 64px) !important;
  right: clamp(18px, 5vw, 64px) !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.home-lux .lux-brand {
  min-height: 48px !important;
  padding: 7px 12px 7px 7px !important;
  border: 1px solid rgba(15, 118, 110, 0.22) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(8, 10, 13, 0.96), rgba(29, 35, 43, 0.92)) !important;
  color: #fff !important;
  box-shadow: 0 18px 44px rgba(29, 35, 43, 0.18) !important;
}

.home-lux .lux-brand .lux-mark {
  width: 34px !important;
  height: 34px !important;
  border-color: rgba(176, 141, 87, 0.38) !important;
  background: #0f766e !important;
  color: #fff !important;
}

.home-lux .lux-brand small {
  color: rgba(255, 255, 255, 0.58) !important;
}

.home-lux .lux-links {
  min-height: 48px !important;
  padding: 6px !important;
  border: 1px solid rgba(15, 118, 110, 0.2) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 18px 44px rgba(29, 35, 43, 0.12) !important;
  backdrop-filter: blur(18px) !important;
}

.home-lux .lux-links a {
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  color: #475467 !important;
}

.home-lux .lux-links a:hover {
  background: rgba(15, 118, 110, 0.08) !important;
  color: #0f766e !important;
}

.home-lux .lux-nav-cta {
  border-color: rgba(176, 141, 87, 0.42) !important;
  background: #0f766e !important;
  color: #fff !important;
}

.home-lux .lux-links .lux-nav-cta,
.home-lux .lux-links .lux-nav-cta:hover {
  background: #0f766e !important;
  color: #fff !important;
}

/* Subtle 12% glass accent on side surfaces only. */
.app-page .sidebar,
.admin-page .sidebar {
  position: sticky;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.76)),
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(176, 141, 87, 0.08)) !important;
  backdrop-filter: blur(12px) saturate(112%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
}

.app-page .sidebar::before,
.admin-page .sidebar::before,
.auth-brand-panel::before,
.capture-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.app-page .sidebar::before,
.admin-page .sidebar::before {
  border-right: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at 18% 8%, rgba(15, 118, 110, 0.12), transparent 30%);
}

.auth-brand-panel,
.capture-hero {
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before,
.capture-hero::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(176, 141, 87, 0.12), transparent 28%);
  opacity: 0.72;
}

/* Sitewide subtle glass system. Keep it restrained: no loud glare, only 10-14% depth. */
.home-lux .lux-dashboard-preview,
.home-lux .floating-signal,
.home-lux .lux-links,
.home-lux .lux-card,
.home-lux .lux-product-card,
.home-lux .lux-offer-card,
.home-lux .lux-price-card,
.home-lux .lux-final-cta,
.home-lux .lux-footer,
.home-lux .mini-inbox,
.app-page .app-topbar,
.app-page .kpi-card,
.app-page .panel,
.app-page .lead-card,
.app-page .settings-panel,
.app-page .billing-hero,
.app-page .billing-status-card,
.app-page .plan-card,
.admin-page .topbar,
.admin-page .panel,
.admin-page .kpi-card,
.admin-page .lead-card,
.admin-page .pricing-admin-card,
.auth-page .auth-panel,
.login-page:not(.auth-page) .login-panel,
.legal-page,
.capture-form,
.checkout-result,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .panel,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .site-grid article {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.76)),
    linear-gradient(180deg, rgba(15, 118, 110, 0.10), rgba(176, 141, 87, 0.07)) !important;
  border-color: rgba(15, 118, 110, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 18px 60px rgba(29, 35, 43, 0.08) !important;
  backdrop-filter: blur(10px) saturate(112%);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
}

.home-lux .lux-offer-card,
.home-lux .lux-price-card:not(.featured),
.home-lux .lux-pricing .lux-card {
  background:
    linear-gradient(145deg, rgba(35, 43, 53, 0.9), rgba(29, 35, 43, 0.82)),
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(176, 141, 87, 0.10)) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 24px 70px rgba(8, 10, 13, 0.18) !important;
}

.home-lux .lux-section,
.home-lux .lux-final-cta,
.site-section,
.site-band,
.app-page .main,
.admin-page .main,
.auth-shell,
.capture-shell,
.center-page {
  position: relative;
}

.home-lux .lux-section::before,
.home-lux .lux-final-cta::before,
.site-section::before,
.site-band::before,
.app-page .main::before,
.admin-page .main::before,
.auth-shell::before,
.capture-shell::before,
.center-page::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 118, 110, 0.10), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(176, 141, 87, 0.10), transparent 26%);
  content: "";
  opacity: 0.55;
}

.home-lux .lux-section > *,
.home-lux .lux-final-cta > *,
.site-section > *,
.site-band > *,
.app-page .main > *,
.admin-page .main > *,
.auth-shell > *,
.capture-shell > *,
.center-page > * {
  position: relative;
  z-index: 1;
}

.home-lux .lux-card,
.home-lux .lux-product-card,
.home-lux .lux-price-card,
.home-lux .lux-offer-card,
.home-lux .lux-dashboard-preview,
.home-lux .mini-inbox,
.app-page .kpi-card,
.app-page .panel,
.app-page .settings-panel,
.app-page .plan-card,
.admin-page .kpi-card,
.admin-page .panel,
.admin-page .pricing-admin-card,
.auth-page .auth-panel,
.legal-page,
.capture-form {
  position: relative;
  overflow: hidden;
}

.home-lux .lux-card::after,
.home-lux .lux-product-card::after,
.home-lux .lux-price-card::after,
.app-page .kpi-card::after,
.app-page .plan-card::after,
.admin-page .kpi-card::after,
.admin-page .panel::after,
.legal-page::after,
.capture-form::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.14), transparent 34%);
  content: "";
}

.home-lux .lux-hero {
  padding-top: clamp(118px, 12vw, 152px) !important;
  background:
    linear-gradient(90deg, rgba(176, 141, 87, 0.16), transparent 18%),
    radial-gradient(circle at 86% 16%, rgba(15, 118, 110, 0.18), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(176, 141, 87, 0.13), transparent 26%),
    linear-gradient(180deg, #fafaf8 0%, #eef0f2 100%) !important;
}

.home-lux .lux-hero-copy::before {
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #b08d57);
  content: "";
}

.home-lux .preview-sidebar-lux {
  background: linear-gradient(180deg, #1d232b, #0f766e) !important;
}

.home-lux .preview-sidebar-lux span {
  color: rgba(255, 255, 255, 0.72) !important;
}

.home-lux .preview-sidebar-lux span.active {
  background: #fafaf8 !important;
  color: #080a0d !important;
}

.home-lux .preview-topline em {
  background: rgba(6, 118, 71, 0.12) !important;
  color: #067647 !important;
}

.home-lux .preview-metrics-lux article:nth-child(1) {
  border-top: 3px solid #0f766e !important;
}

.home-lux .preview-metrics-lux article:nth-child(2) {
  border-top: 3px solid #b08d57 !important;
}

.home-lux .preview-metrics-lux article:nth-child(3) {
  border-top: 3px solid #067647 !important;
}

.home-lux .floating-signal:nth-child(2) {
  border-color: rgba(176, 141, 87, 0.38) !important;
}

.home-lux .floating-signal:nth-child(2) span {
  background: #b08d57 !important;
}

.auth-page .auth-brand-panel {
  background:
    radial-gradient(circle at 78% 16%, rgba(176, 141, 87, 0.2), transparent 26%),
    radial-gradient(circle at 18% 74%, rgba(15, 118, 110, 0.26), transparent 30%),
    linear-gradient(135deg, #080a0d, #1d232b 55%, #0f302d) !important;
}

.auth-page .auth-panel {
  border-color: rgba(15, 118, 110, 0.24) !important;
  box-shadow: 0 24px 80px rgba(29, 35, 43, 0.08) !important;
}

.auth-page .auth-panel::before {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #b08d57);
  content: "";
}

.admin-page {
  --app-bg: #f2f5f4 !important;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), transparent 30%),
    var(--app-bg) !important;
}

.admin-page .sidebar {
  border-right-color: rgba(15, 118, 110, 0.2) !important;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 34%),
    #ffffff !important;
}

.admin-page .brand-mark {
  background: linear-gradient(135deg, #0f766e, #1d232b) !important;
}

.admin-page .nav-item.active,
.admin-page .nav-item:hover {
  border-color: rgba(15, 118, 110, 0.26) !important;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.12), rgba(176, 141, 87, 0.08)) !important;
  color: #0f766e !important;
}

.admin-page .topbar {
  border-color: rgba(15, 118, 110, 0.18) !important;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.11), rgba(176, 141, 87, 0.08)),
    rgba(255, 255, 255, 0.92) !important;
}

.admin-page .kpi-card,
.admin-page .panel {
  border-color: rgba(15, 118, 110, 0.18) !important;
}

.admin-page .kpi-card:nth-child(1),
.admin-page .panel:nth-child(1) {
  border-top: 3px solid #0f766e !important;
}

.admin-page .kpi-card:nth-child(2),
.admin-page .panel:nth-child(2) {
  border-top: 3px solid #b08d57 !important;
}

.admin-page .kpi-card:nth-child(3) {
  border-top: 3px solid #067647 !important;
}

body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) {
  background:
    radial-gradient(circle at 8% 12%, rgba(15, 118, 110, 0.08), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(176, 141, 87, 0.11), transparent 28%),
    #fafaf8 !important;
}

body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .legal-page,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .login-panel,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .panel,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .checkout-result {
  border-color: rgba(15, 118, 110, 0.2) !important;
  box-shadow: 0 18px 60px rgba(29, 35, 43, 0.06) !important;
}

body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .legal-page::before,
body:not(.home-lux):not(.app-page):not(.auth-page):not(.admin-page) .login-panel::before {
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #b08d57);
  content: "";
}

@media (max-width: 1120px) {
  .home-lux .lux-nav {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .home-lux .lux-brand {
    width: max-content !important;
    max-width: min(72vw, 360px) !important;
  }

  .home-lux .lux-menu {
    display: inline-flex !important;
    min-width: 64px !important;
    border-radius: 999px !important;
    background: #0f766e !important;
    color: #fff !important;
  }
}

@media (max-width: 820px) {
  .home-lux .lux-nav {
    top: 14px !important;
    left: 14px !important;
    right: 14px !important;
  }

  .home-lux .lux-hero {
    padding-top: 96px !important;
  }
}

@media (max-width: 520px) {
  .auth-page .auth-shell {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .auth-page .auth-brand-panel {
    width: 100% !important;
    min-width: 0 !important;
    padding: 28px 22px !important;
  }

  .auth-page .auth-brand-panel h1 {
    max-width: 11ch !important;
    font-size: clamp(29px, 8vw, 32px) !important;
    line-height: 1.08 !important;
    overflow-wrap: break-word;
  }

  .auth-page .auth-brand-panel p:not(.eyebrow) {
    max-width: 31ch !important;
    overflow-wrap: break-word;
  }

  .auth-page .auth-panel {
    padding: 22px !important;
  }
}

.payment-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(80, 227, 194, 0.16), transparent 28%),
    radial-gradient(circle at 82% 2%, rgba(165, 180, 252, 0.14), transparent 24%),
    linear-gradient(135deg, #071013 0%, #101014 44%, #f5f7f5 44%, #f8faf8 100%);
  color: #101214;
}

.payment-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.payment-nav,
.payment-hero,
.payment-plan,
.payment-next {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 70px rgba(12, 18, 16, 0.12);
  backdrop-filter: blur(12px);
}

.payment-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 18px;
}

.payment-brand,
.payment-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-brand {
  color: inherit;
  text-decoration: none;
}

.payment-brand strong,
.payment-plan strong,
.payment-next strong {
  display: block;
  color: #071013;
}

.payment-brand small,
.payment-plan small,
.payment-plan p,
.payment-section-head p,
.payment-next li,
.payment-intake small {
  color: #66706d;
}

.payment-nav-actions a {
  color: #2f3734;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.payment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(22px, 5vw, 56px);
  margin-top: 18px;
  padding: clamp(28px, 6vw, 72px);
  border-radius: 24px;
}

.payment-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 680;
  line-height: 0.96;
  letter-spacing: 0;
}

.payment-hero > div > p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: #56605d;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.payment-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.payment-trust-strip span,
.payment-plan em {
  padding: 7px 10px;
  border: 1px solid rgba(24, 35, 31, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #33413d;
  font-size: 12px;
  font-style: normal;
  font-weight: 780;
}

.payment-intake {
  display: grid;
  gap: 13px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(24, 35, 31, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.payment-intake .form-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.payment-intake .form-head span {
  font-weight: 820;
}

.payment-intake label {
  display: grid;
  gap: 7px;
  color: #3e4744;
  font-size: 12px;
  font-weight: 800;
}

.payment-intake input,
.payment-intake select {
  height: 46px;
  width: 100%;
  border: 1px solid rgba(24, 35, 31, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #0b1110;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0 13px;
  outline: none;
}

.payment-intake input:focus,
.payment-intake select:focus {
  border-color: rgba(0, 122, 100, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 122, 100, 0.1);
}

.payment-plans {
  margin-top: 36px;
}

.payment-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}

.payment-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 660;
  line-height: 1;
}

.payment-section-head .eyebrow,
.payment-section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.payment-status {
  min-height: 0;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 760;
}

.payment-status:not(:empty) {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(4, 8, 7, 0.28);
}

.payment-status[data-type="success"] {
  border-color: rgba(80, 227, 194, 0.42);
}

.payment-status[data-type="error"] {
  border-color: rgba(248, 113, 113, 0.52);
}

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

.payment-plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 390px;
  padding: 22px;
  border-radius: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.payment-plan:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 122, 100, 0.28);
}

.payment-plan.selected {
  border-color: rgba(35, 177, 153, 0.72);
}

.payment-plan.featured {
  background: rgba(10, 17, 15, 0.88);
  color: #fff;
}

.payment-plan.featured strong,
.payment-plan.featured span {
  color: #fff;
}

.payment-plan.featured p,
.payment-plan.featured small,
.payment-plan.featured li {
  color: rgba(255, 255, 255, 0.68);
}

.payment-plan-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payment-plan-top span {
  color: #101214;
  font-size: 13px;
  font-weight: 840;
  text-transform: uppercase;
}

.payment-plan strong {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 680;
  line-height: 0.95;
}

.payment-plan ul {
  display: grid;
  gap: 9px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.payment-plan li {
  color: #59625f;
  font-size: 14px;
  line-height: 1.45;
}

.payment-plan li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: #23b199;
  vertical-align: 1px;
}

.payment-plan .primary,
.payment-plan .link-button {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.payment-plan.skeleton {
  min-height: 320px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52));
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from {
    background-position: 180% 0;
  }

  to {
    background-position: -80% 0;
  }
}

.payment-next {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 22px;
  margin-top: 18px;
  padding: 24px;
  border-radius: 20px;
}

.payment-next span {
  color: #50605b;
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.payment-next strong {
  max-width: 580px;
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.payment-next ul {
  display: grid;
  gap: 8px;
  margin: 0;
}

@media (max-width: 900px) {
  .payment-hero,
  .payment-section-head,
  .payment-next {
    grid-template-columns: 1fr;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .payment-section-head h2 {
    color: #071013;
  }

  .payment-section-head .eyebrow,
  .payment-section-head p {
    color: #59625f;
  }
}

@media (max-width: 640px) {
  .payment-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .payment-nav,
  .payment-nav-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-hero {
    padding: 22px;
    border-radius: 18px;
  }
}
