: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;
  }
}

/* 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;
  }
}

/* ClinicReception 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;
  }
}
