:root {
  color-scheme: light;
  --canvas: oklch(0.978 0.004 250);
  --surface: oklch(1 0 0);
  --surface-subtle: oklch(0.96 0.006 250);
  --ink: oklch(0.22 0.025 250);
  --muted: oklch(0.49 0.018 250);
  --border: oklch(0.9 0.009 250);
  --primary: oklch(0.51 0.13 155);
  --primary-dark: oklch(0.43 0.12 155);
  --primary-soft: oklch(0.96 0.035 155);
  --success: oklch(0.57 0.14 150);
  --success-bg: oklch(0.955 0.035 150);
  --warning: oklch(0.61 0.135 75);
  --warning-bg: oklch(0.96 0.045 80);
  --danger: oklch(0.55 0.19 25);
  --danger-bg: oklch(0.96 0.035 25);
  --info: oklch(0.57 0.13 245);
  --info-bg: oklch(0.96 0.025 245);
  --radius: 8px;
  --sidebar: 248px;
  --focus: 0 0 0 3px oklch(0.78 0.1 205 / 0.42);
  --z-sidebar: 20;
  --z-toast: 50;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

.consent-row {
  align-items: flex-start;
  display: flex;
  gap: 9px;
}

.consent-row input {
  flex: 0 0 auto;
  margin-top: 5px;
  width: auto;
}

.consent-row a {
  color: var(--primary-dark);
  font-weight: 700;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

svg {
  display: block;
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button-primary {
  background: var(--primary);
  color: white;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--primary-dark);
}

.button-secondary:hover {
  border-color: var(--primary);
  background: var(--surface-subtle);
}

.button-small {
  min-height: 36px;
  padding: 6px 12px;
}

.button-block {
  width: 100%;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 700;
}

.url-text {
  display: inline-block;
  max-width: 380px;
  overflow-wrap: anywhere;
  text-align: left;
}

.back-link {
  color: var(--primary-dark);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  text-decoration: none;
}

.back-link::before {
  content: "←";
  display: inline-block;
  margin-left: 6px;
}

.status {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}

.status::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.status-success {
  background: var(--success-bg);
  color: oklch(0.43 0.12 150);
}

.status-warning {
  background: var(--warning-bg);
  color: oklch(0.47 0.12 70);
}

.status-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-info {
  background: var(--info-bg);
  color: oklch(0.46 0.11 245);
}

.status-muted {
  background: var(--surface-subtle);
  color: var(--muted);
}

.app-brand {
  align-items: center;
  display: inline-flex;
  font-size: 17px;
  font-weight: 850;
  gap: 9px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--primary-dark);
  border-radius: 7px;
  color: white;
  display: inline-flex;
  font-size: 12px;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.02em;
  width: 34px;
}

.public-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}

.public-header nav {
  align-items: center;
  display: flex;
  gap: 24px;
}

.public-header nav > a:not(.button) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.public-header nav > a:not(.button):hover {
  color: var(--ink);
}

.public-header .app-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.public-header .app-brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}

.public-header .login-link {
  border-right: 1px solid var(--border);
  padding-right: 24px;
}

.public-main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 28px;
}

.public-main.narrow {
  max-width: 1040px;
}

.hero {
  min-height: 720px;
  padding: 58px 0 0;
  position: relative;
}

.hero-copy {
  margin: 0 auto 48px;
  max-width: 780px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-label {
  align-items: center;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-label span {
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  width: 7px;
}

.hero h1 {
  font-size: 56px;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.hero-copy > p:not(.hero-label) {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}

.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 18px;
}

.trust-list {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li::before {
  color: var(--success);
  content: "✓";
  font-weight: 900;
  margin-left: 6px;
}

.product-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 480px;
  overflow: hidden;
  position: relative;
}

.preview-sidebar {
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
}

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

.preview-brand > span {
  align-items: center;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  font-size: 10px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.preview-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 30px;
}

.preview-sidebar nav b {
  border-radius: 6px;
  color: oklch(0.78 0.018 250);
  font-size: 12px;
  font-weight: 650;
  padding: 9px 10px;
}

.preview-sidebar nav .is-active {
  background: oklch(1 0 0 / 0.11);
  color: white;
}

.preview-user {
  border-top: 1px solid oklch(1 0 0 / 0.16);
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding: 14px 8px 0;
}

.preview-user small {
  color: oklch(0.72 0.015 250);
}

.preview-workspace {
  background: var(--canvas);
  padding: 24px;
}

.preview-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-top > div {
  display: flex;
  flex-direction: column;
}

.preview-top small,
.preview-table small,
.site-identity small,
.site-card small {
  color: var(--muted);
  display: block;
}

.preview-top strong {
  font-size: 18px;
  margin-top: 2px;
}

.preview-metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
}

.preview-metrics > div {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 94px;
  padding: 13px;
}

.preview-metrics > div:first-child {
  border-radius: 0 7px 7px 0;
}

.preview-metrics > div:last-child {
  border-radius: 7px 0 0 7px;
}

.preview-metrics span,
.preview-metrics small {
  color: var(--muted);
  font-size: 10px;
}

.preview-metrics strong {
  font-size: 24px;
  margin: 3px 0;
}

.preview-board {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.5fr) minmax(210px, 0.7fr);
}

.preview-table,
.preview-activity {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.preview-table-head,
.preview-table-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 90px 55px;
  padding: 11px 13px;
}

.preview-table-head {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.preview-table-row + .preview-table-row {
  border-top: 1px solid var(--border);
}

.preview-table-row > div {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.preview-table-row i {
  align-items: center;
  background: var(--surface-subtle);
  border-radius: 6px;
  display: flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.preview-table-row b {
  display: block;
  font-size: 11px;
}

.preview-table-row small,
.preview-table-row .preview-time,
.preview-table-row em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.preview-table-row em {
  background: var(--info-bg);
  border-radius: 999px;
  padding: 4px 6px;
  text-align: center;
}

.preview-table-row .is-good {
  background: var(--success-bg);
  color: oklch(0.42 0.12 150);
}

.preview-activity {
  padding: 13px;
}

.preview-activity > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-activity > div strong {
  font-size: 11px;
}

.preview-activity > div span {
  color: var(--muted);
  font-size: 9px;
}

.preview-activity ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.preview-activity li {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  margin-right: 4px;
  padding: 0 12px 13px 0;
  position: relative;
}

.preview-activity li:last-child {
  padding-bottom: 0;
}

.preview-activity li::before {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  content: "";
  height: 7px;
  position: absolute;
  right: -5px;
  top: 4px;
  width: 7px;
}

.preview-activity li.is-done::before {
  background: var(--success);
  border-color: var(--success);
}

.preview-activity li.is-now::before {
  background: var(--info);
  border-color: var(--info);
}

.preview-activity li b {
  font-size: 10px;
}

.preview-activity li small {
  color: var(--muted);
  font-size: 9px;
}

.workflow {
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  padding: 108px 0 110px;
}

.section-heading {
  position: sticky;
  top: 110px;
}

.section-heading h2,
.cta-band h2 {
  font-size: 34px;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.section-heading p,
.cta-band p {
  color: var(--muted);
  line-height: 1.8;
}

.workflow-list {
  counter-reset: workflow;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-list li {
  border-top: 1px solid var(--border);
  counter-increment: workflow;
  display: grid;
  gap: 14px;
  grid-template-columns: 36px 1fr;
  padding: 24px 0;
}

.workflow-list li::before {
  align-items: center;
  background: var(--ink);
  border-radius: 6px;
  color: white;
  content: counter(workflow);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.workflow-list strong,
.workflow-list span {
  grid-column: 2;
}

.workflow-list strong {
  font-size: 18px;
  grid-row: 1;
}

.workflow-list span {
  color: var(--muted);
  grid-row: 2;
}

.cta-band {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 56px 0 88px;
}

.cta-band p {
  margin-bottom: 0;
}

.public-footer {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr auto auto;
  margin: 0 auto;
  max-width: 1240px;
  padding: 36px 24px;
}

.public-footer p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.public-footer > div:nth-child(2) {
  display: flex;
  gap: 18px;
}

.public-footer a {
  color: var(--muted);
  text-decoration: none;
}

.pricing-head {
  margin: 0 auto;
  max-width: 760px;
  padding: 88px 0 58px;
  text-align: center;
}

.pricing-head h1 {
  font-size: 44px;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.pricing-head p {
  color: var(--muted);
}

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

.price-column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 26px;
  position: relative;
}

.price-column.recommended {
  border-color: var(--primary-dark);
  box-shadow: inset 0 4px var(--primary-dark);
}

.recommend-label {
  background: var(--primary);
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  left: 18px;
  padding: 4px 8px;
  position: absolute;
  top: 18px;
}

.price-column h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.price-column > p {
  color: var(--muted);
}

.price {
  align-items: baseline;
  display: flex;
  direction: ltr;
  gap: 3px;
  margin: 16px 0 22px;
}

.price strong {
  font-size: 42px;
}

.price small {
  color: var(--muted);
}

.price-column ul {
  flex: 1;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.price-column li {
  border-top: 1px solid var(--border);
  padding: 11px 0;
}

.price-column li::before {
  color: var(--success);
  content: "✓";
  font-weight: 900;
  margin-left: 7px;
}

.pricing-faq {
  border-top: 1px solid var(--border);
  margin: 82px 0 94px;
  padding-top: 44px;
}

.pricing-faq h2 {
  font-size: 27px;
  margin-bottom: 26px;
}

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

.pricing-faq p {
  margin: 0;
}

.pricing-faq strong,
.pricing-faq span {
  display: block;
}

.pricing-faq strong {
  margin-bottom: 7px;
}

.pricing-faq span {
  color: var(--muted);
  font-size: 14px;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(360px, 1fr);
  min-height: calc(100vh - 70px);
}

.auth-panel {
  background: var(--surface);
  padding: 64px max(28px, 10vw);
}

.auth-panel h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.auth-panel > p {
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-aside {
  align-items: center;
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  text-align: right;
}

.auth-aside strong {
  font-size: 32px;
}

.auth-aside p {
  color: oklch(0.82 0.02 230);
  margin-top: 12px;
  max-width: 450px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  color: var(--ink);
  display: block;
  font-size: 13px;
  font-weight: 750;
}

label small {
  color: var(--muted);
  display: block;
  font-weight: 500;
  margin-top: 5px;
}

input,
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  display: block;
  margin-top: 6px;
  min-height: 42px;
  padding: 9px 11px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

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

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in oklch, var(--border) 45%, var(--primary));
}

input::placeholder,
textarea::placeholder {
  color: oklch(0.5 0.018 235);
}

.auth-switch {
  font-size: 14px;
  margin-top: 22px;
}

.auth-switch a {
  color: var(--primary-dark);
  font-weight: 800;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: oklch(0.22 0.025 250);
  border-left: 1px solid var(--border);
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  z-index: var(--z-sidebar);
}

.sidebar > .app-brand {
  padding: 0 8px;
}

.sidebar .brand-mark {
  background: var(--primary);
}

.workspace-chip {
  background: oklch(1 0 0 / 0.08);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  margin: 20px 0;
  padding: 10px 12px;
}

.workspace-chip span {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-chip small {
  color: oklch(0.72 0.015 250);
  direction: ltr;
  font-size: 11px;
  margin-top: 2px;
  text-align: right;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-link {
  align-items: center;
  border-radius: var(--radius);
  color: oklch(0.75 0.015 250);
  display: flex;
  font-weight: 700;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.is-active {
  background: oklch(1 0 0 / 0.09);
  color: white;
}

.nav-link.is-active {
  box-shadow: inset -2px 0 var(--primary);
}

.nav-icon {
  height: 19px;
  width: 19px;
}

.sidebar-foot {
  border-top: 1px solid oklch(1 0 0 / 0.14);
  margin-top: auto;
  padding: 16px 8px 0;
}

.user-mini {
  display: flex;
  flex-direction: column;
}

.user-mini strong {
  font-size: 13px;
}

.user-mini span {
  color: oklch(0.7 0.015 250);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-button {
  background: none;
  border: 0;
  color: oklch(0.76 0.13 25);
  cursor: pointer;
  font-size: 12px;
  margin-top: 10px;
  padding: 0;
}

.app-main {
  background: var(--canvas);
  min-width: 0;
  padding: 28px max(22px, 3vw) 60px;
}

.mobile-bar {
  display: none;
}

.page-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto 24px;
  max-width: 1420px;
}

.page-head h1 {
  font-size: 25px;
  margin-bottom: 5px;
}

.page-head p {
  color: var(--muted);
  margin: 0;
}

.head-actions {
  display: flex;
  gap: 8px;
}

.title-with-state {
  align-items: center;
  display: flex;
  gap: 12px;
}

.site-host {
  color: var(--muted);
  display: inline-block;
  font-size: 13px;
  text-decoration: none;
}

.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  left: 24px;
  max-width: 460px;
  position: fixed;
  top: 22px;
  width: calc(100% - 48px);
  z-index: var(--z-toast);
}

.flash {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 8px oklch(0.2 0.02 235 / 0.12);
  font-size: 14px;
  padding: 12px 14px;
}

.flash-success {
  background: var(--success-bg);
  border-color: color-mix(in oklch, var(--success) 40%, white);
}

.flash-warning {
  background: var(--warning-bg);
  border-color: color-mix(in oklch, var(--warning) 40%, white);
}

.flash-danger {
  background: var(--danger-bg);
  border-color: color-mix(in oklch, var(--danger) 35%, white);
}

.flash-info {
  background: var(--info-bg);
  border-color: color-mix(in oklch, var(--info) 35%, white);
}

.sites-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  margin: 0 auto;
  max-width: 1420px;
}

.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-card:hover {
  border-color: color-mix(in oklch, var(--border) 45%, var(--primary));
  box-shadow: 0 8px 24px oklch(0.22 0.025 250 / 0.06);
}

.site-card-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.site-identity {
  overflow: hidden;
}

.site-identity h2 {
  font-size: 17px;
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-identity a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.site-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0;
}

.site-summary div {
  border-top: 1px solid var(--border);
  min-height: 64px;
  padding: 10px 0;
}

.site-summary div:nth-child(odd) {
  padding-left: 10px;
}

.site-summary div:nth-child(even) {
  border-right: 1px solid var(--border);
  padding-right: 10px;
}

.site-summary dt,
.settings-list dt,
.evidence-panel dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.site-summary dd,
.settings-list dd,
.evidence-panel dd {
  font-weight: 750;
  margin: 4px 0 0;
}

.empty-state {
  align-items: center;
  background: var(--surface);
  border: 1px dashed color-mix(in oklch, var(--border) 35%, var(--primary));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  min-height: 340px;
  padding: 38px;
  text-align: center;
}

.empty-mark {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  font-size: 28px;
  height: 54px;
  justify-content: center;
  margin-bottom: 16px;
  width: 54px;
}

.empty-state h2 {
  margin-bottom: 5px;
}

.empty-state p {
  color: var(--muted);
}

.onboarding-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.form-surface,
.checklist-panel,
.data-section,
.evidence-panel,
.automation-policy,
.billing-summary,
.plan-actions {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.form-surface h2,
.checklist-panel h2,
.data-section h2,
.evidence-panel h2,
.automation-policy h2,
.plan-actions h2 {
  font-size: 18px;
  margin-bottom: 5px;
}

.form-surface > p,
.checklist-panel > p,
.section-title p {
  color: var(--muted);
}

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

.span-2 {
  grid-column: 1 / -1;
}

.form-actions {
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
}

.checklist-panel ol {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.checklist-panel li {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  padding: 11px 0;
}

.checklist-panel li::before {
  border: 1px solid var(--border);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 9px;
  margin-left: 9px;
  width: 9px;
}

.checklist-panel li.is-current {
  color: var(--ink);
  font-weight: 800;
}

.checklist-panel li.is-current::before {
  background: var(--primary);
  border-color: var(--primary);
}

.site-tabs {
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 4px;
  margin: 0 auto 18px;
  max-width: 1420px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-tabs a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 750;
  padding: 10px 12px;
  text-decoration: none;
}

.site-tabs a:hover,
.site-tabs a.is-active {
  border-bottom-color: var(--primary);
  color: var(--ink);
}

.runtime-strip {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.7fr) auto;
  margin: 0 auto 12px;
  max-width: 1420px;
  min-height: 64px;
  padding: 10px 14px;
}

.runtime-strip > a {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.runtime-copy {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.runtime-copy > div {
  min-width: 0;
}

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

.runtime-copy strong {
  font-size: 13px;
}

.runtime-copy small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.runtime-dot {
  background: var(--muted);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.runtime-dot.is-live {
  animation: live-pulse 1.8s ease-in-out infinite;
  background: var(--info);
}

.runtime-dot.is-done {
  background: var(--success);
}

.runtime-dot.is-failed {
  background: var(--danger);
}

.runtime-dot.is-idle {
  background: var(--muted);
}

.runtime-progress {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(100px, 1fr) 38px;
}

.runtime-progress > div {
  background: var(--surface-subtle);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.runtime-progress i {
  background: var(--primary);
  display: block;
  height: 100%;
}

.runtime-progress span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.metric-row {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto 18px;
  max-width: 1420px;
  overflow: hidden;
}

.metric-row > div {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 118px;
  padding: 18px;
}

.metric-row > div:first-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-right: 1px solid var(--border);
}

.metric-row > div:last-child {
  border-left: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
}

.metric-row span {
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong {
  font-size: 26px;
  margin: 5px 0;
}

.metric-row small {
  color: var(--muted);
}

.content-pipeline,
.keyword-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto 18px;
  max-width: 1420px;
}

.content-pipeline > div,
.keyword-summary > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
  padding: 16px;
}

.content-pipeline span,
.keyword-summary span,
.content-pipeline small,
.keyword-summary small {
  color: var(--muted);
  display: block;
}

.content-pipeline strong,
.keyword-summary strong {
  display: block;
  font-size: 24px;
  margin: 7px 0 3px;
}

.content-queue-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.content-queue-item {
  align-items: center;
  background: var(--surface);
  display: grid;
  gap: 14px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 14px 16px;
}

.content-queue-item + .content-queue-item {
  border-top: 1px solid var(--border);
}

.content-queue-item > span {
  background: var(--primary-soft);
  border-radius: 50%;
  color: var(--primary-dark);
  display: grid;
  font-weight: 800;
  height: 30px;
  place-items: center;
  width: 30px;
}

.content-queue-item strong,
.content-queue-item small,
.content-queue-item p {
  display: block;
}

.content-queue-item small,
.content-queue-item p {
  color: var(--muted);
  margin: 3px 0 0;
}

.content-queue-item p {
  font-size: 13px;
  max-width: 760px;
}

.action-block-reason {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 5px;
  max-width: 190px;
}

.integration-identity {
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: var(--radius);
  padding: 14px;
}

.integration-identity span,
.integration-identity strong,
.integration-identity small {
  display: block;
}

.integration-identity span,
.integration-identity small {
  color: var(--muted);
}

.integration-identity strong {
  font-size: 14px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}

.setup-checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 auto 18px;
  max-width: 1420px;
  padding: 20px;
}

.setup-progress {
  min-width: 180px;
}

.setup-progress strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  text-align: left;
}

.setup-progress > div {
  background: var(--surface-subtle);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.setup-progress i {
  background: var(--primary);
  display: block;
  height: 100%;
}

.setup-steps {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.setup-step {
  align-items: start;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: grid;
  gap: 9px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 142px;
  padding: 13px;
}

.setup-step:first-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.setup-step:last-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.setup-number {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.setup-step.is-done .setup-number {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.setup-step strong,
.setup-step small {
  display: block;
}

.setup-step strong {
  font-size: 13px;
}

.setup-step small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.setup-step > a {
  align-self: end;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  grid-column: 2;
  text-decoration: none;
}

.settings-evidence {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 12px;
}

.settings-evidence span {
  color: var(--muted);
  font-size: 11px;
}

.settings-evidence strong {
  overflow-wrap: anywhere;
}

.split-view,
.automation-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin: 0 auto;
  max-width: 1420px;
}

.evidence-panel dl,
.settings-list {
  margin: 18px 0 0;
}

.evidence-panel dl div,
.settings-list div {
  border-top: 1px solid var(--border);
  padding: 11px 0;
}

.evidence-panel dd[dir="ltr"],
.settings-list dd[dir="ltr"] {
  overflow-wrap: anywhere;
  text-align: left;
}

.section-title {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title p {
  margin: 0;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 11px 10px;
  text-align: right;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

td {
  font-size: 13px;
}

td strong {
  display: block;
}

td small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.error-cell {
  color: var(--danger);
  max-width: 320px;
  overflow-wrap: anywhere;
}

.inline-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 34px 18px;
  text-align: center;
}

.inline-empty span {
  color: var(--muted);
}

.success-empty strong {
  color: var(--success);
}

.integration-forms {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin: 18px auto 0;
  max-width: 1420px;
}

.toggle-row {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.toggle-row span {
  display: flex;
  flex-direction: column;
}

.toggle-row input {
  accent-color: var(--primary);
  height: 20px;
  margin: 0;
  min-height: 0;
  width: 38px;
}

.billing-summary {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto 18px;
  max-width: 1100px;
}

.billing-summary div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.billing-summary span:first-child {
  color: var(--muted);
  font-size: 12px;
}

.plan-actions,
.callout {
  margin: 18px auto;
  max-width: 1100px;
}

.plan-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.callout {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.callout-warning {
  background: var(--warning-bg);
  border-color: color-mix(in oklch, var(--warning) 40%, white);
}

.callout p {
  margin: 4px 0 0;
}

.max-form {
  margin: 0 auto 18px;
  max-width: 760px;
}

.legal-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 70px 0;
  max-width: 760px;
  padding: 34px;
}

.legal-page h1 {
  font-size: 32px;
}

.legal-page h2 {
  font-size: 20px;
  margin-top: 30px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.85;
}

.error-page {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  padding: 80px 24px;
  text-align: center;
}

.error-page > strong {
  color: var(--primary);
  font-size: 64px;
}

.error-page h1 {
  font-size: 24px;
  max-width: 650px;
}

.assistant-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 auto;
  max-width: 980px;
  overflow: hidden;
}

.assistant-thread {
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
  padding: 24px;
}

.assistant-message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 78%;
  padding: 14px 16px;
}

.assistant-message.is-user {
  align-self: flex-start;
  background: var(--primary-soft);
}

.assistant-message.is-assistant {
  align-self: flex-end;
}

.assistant-message-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
  justify-content: space-between;
}

.assistant-message p {
  line-height: 1.8;
  margin: 8px 0 0;
}

.assistant-message form {
  margin-top: 12px;
}

.assistant-empty {
  align-self: center;
  color: var(--muted);
  margin: auto;
  text-align: center;
}

.assistant-empty strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

.assistant-compose {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  padding: 18px;
}

.assistant-compose label {
  margin: 0;
}

.assistant-compose textarea {
  min-height: 72px;
  resize: vertical;
}

@media (max-width: 1050px) {
  .hero h1 {
    font-size: 54px;
  }

  .workflow {
    gap: 42px;
  }

  .product-preview {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .preview-workspace {
    padding: 20px;
  }

  .preview-board {
    grid-template-columns: 1fr 190px;
  }

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

  .content-pipeline,
  .keyword-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .setup-step,
  .setup-step:first-child,
  .setup-step:last-child {
    border-radius: var(--radius);
  }

  .metric-row > div,
  .metric-row > div:first-child,
  .metric-row > div:last-child {
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
}

@media (max-width: 820px) {
  .public-header {
    height: 62px;
    padding: 0 18px;
  }

  .public-header nav > a:not(.button) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 0;
  }

  .hero h1 {
    font-size: 46px;
  }

  .product-preview {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .preview-metrics > div,
  .preview-metrics > div:first-child,
  .preview-metrics > div:last-child {
    border-radius: 0;
  }

  .preview-board {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    position: static;
  }

  .pricing-grid,
  .integration-forms,
  .pricing-faq > div {
    grid-template-columns: 1fr;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    box-shadow: 0 8px 24px oklch(0.2 0.02 235 / 0.18);
    inset: 0 0 0 auto;
    position: fixed;
    transform: translateX(105%);
    transition: transform 200ms ease-out;
    width: min(86vw, var(--sidebar));
  }

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

  .mobile-bar {
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    height: 58px;
    justify-content: space-between;
    margin: -22px -18px 22px;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 12;
  }

  .icon-button {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
  }

  .icon-button svg {
    height: 19px;
    width: 19px;
  }

  .app-brand.compact {
    font-size: 14px;
  }

  .app-brand.compact .brand-mark {
    height: 30px;
    width: 30px;
  }

  .app-main {
    padding: 22px 18px 48px;
  }

  .onboarding-layout,
  .split-view,
  .automation-grid {
    grid-template-columns: 1fr;
  }

  .billing-summary {
    grid-template-columns: 1fr 1fr;
  }

  .assistant-compose {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .public-main {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-copy > p:not(.hero-label) {
    font-size: 16px;
  }

  .hero-actions .button,
  .cta-band .button {
    width: 100%;
  }

  .trust-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .product-preview {
    min-height: 0;
  }

  .preview-workspace {
    padding: 14px;
  }

  .preview-top {
    align-items: flex-start;
    gap: 10px;
  }

  .preview-top strong {
    font-size: 15px;
  }

  .preview-metrics > div {
    min-height: 82px;
    padding: 10px;
  }

  .preview-metrics strong {
    font-size: 20px;
  }

  .preview-table-head,
  .preview-table-row {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .preview-table-head span:first-of-type,
  .preview-table-row .preview-time {
    display: none;
  }

  .workflow {
    padding-bottom: 72px;
  }

  .cta-band {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .public-footer {
    grid-template-columns: 1fr;
  }

  .public-footer > div:nth-child(2) {
    flex-direction: column;
    gap: 7px;
  }

  .form-grid,
  .metric-row,
  .content-pipeline,
  .keyword-summary,
  .billing-summary,
  .setup-steps {
    grid-template-columns: 1fr;
  }

  .content-queue-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .content-queue-item > :last-child {
    grid-column: 2;
    justify-self: start;
  }

  .setup-progress {
    min-width: 0;
  }

  .span-2 {
    grid-column: auto;
  }

  .page-head,
  .head-actions,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .head-actions form,
  .head-actions .button,
  .head-actions button {
    width: 100%;
  }

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

  .site-summary div:nth-child(even) {
    border-right: 0;
    padding-right: 0;
  }

  .site-summary div:nth-child(odd) {
    padding-left: 0;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .assistant-thread {
    min-height: 360px;
    padding: 14px;
  }

  .assistant-message {
    max-width: 92%;
  }
}

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

.live-operations {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  padding: 22px;
}

.live-label {
  align-items: center;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  margin-bottom: 4px;
}

.live-label i {
  animation: live-pulse 1.8s ease-in-out infinite;
  background: var(--success);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.operation-list {
  display: grid;
  gap: 14px;
}

.operation-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.operation-card > header,
.operation-card > footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.operation-card > header {
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}

.operation-card h3 {
  font-size: 16px;
  margin: 2px 0 0;
}

.operation-site {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.operation-card > footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 9px 16px;
}

.operation-progress {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 42px;
  padding: 14px 16px 8px;
}

.operation-progress > div {
  background: var(--surface-subtle);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.operation-progress i {
  background: var(--primary);
  display: block;
  height: 100%;
  transition: width 240ms ease;
}

.operation-progress span {
  color: var(--muted);
  direction: ltr;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.current-step {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  padding: 0 16px 12px;
}

.current-step strong {
  color: var(--ink);
}

.operation-steps {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0 16px 14px;
}

.operation-steps li {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr auto;
  min-height: 42px;
  padding: 8px 0;
  position: relative;
}

.operation-steps li:not(:last-child)::after {
  background: var(--border);
  content: "";
  height: calc(100% - 17px);
  position: absolute;
  right: 7px;
  top: 25px;
  width: 2px;
}

.step-marker {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  height: 16px;
  margin-top: 2px;
  position: relative;
  width: 16px;
  z-index: 1;
}

.step-done .step-marker {
  background: var(--success);
  border-color: var(--success);
}

.step-running .step-marker {
  animation: live-pulse 1.8s ease-in-out infinite;
  background: var(--info);
  border-color: var(--info);
}

.step-failed .step-marker {
  background: var(--danger);
  border-color: var(--danger);
}

.step-skipped {
  opacity: 0.62;
}

.operation-steps strong,
.operation-steps small {
  display: block;
}

.operation-steps strong {
  font-size: 13px;
}

.operation-steps small {
  color: var(--muted);
  margin-top: 2px;
}

.operation-steps time {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 4px;
}

.operation-steps em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.step-evidence {
  margin-top: 6px;
}

.step-evidence summary {
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.step-evidence dl {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  margin: 7px 0 0;
  padding: 8px 10px;
}

.step-evidence dl div {
  display: grid;
  gap: 8px;
  grid-template-columns: 80px minmax(0, 1fr);
}

.step-evidence dt {
  color: var(--muted);
  font-size: 10px;
}

.step-evidence dd {
  font-size: 10px;
  margin: 0;
  overflow-wrap: anywhere;
}

.operation-error {
  background: var(--danger-bg);
  border-top: 1px solid oklch(0.88 0.055 25);
  color: var(--danger);
  display: grid;
  font-size: 12px;
  gap: 3px;
  padding: 10px 16px;
}

.operation-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  text-align: center;
}

.operation-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.feed-time {
  color: var(--muted);
  direction: ltr;
  font-size: 11px;
  margin: 12px 0 0;
  text-align: left;
}

.profile-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.profile-operation-history {
  margin: 18px auto 0;
  max-width: 1420px;
}

.profile-heading {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 190px;
}

.profile-heading h2 {
  font-size: 26px;
  margin: 6px 0 8px;
}

.eyebrow {
  color: var(--primary-dark);
  display: inline-block;
  font-size: 12px;
  font-weight: 850;
}

.confidence-meter span,
.confidence-meter strong {
  display: block;
}

.confidence-meter span {
  color: var(--muted);
  font-size: 12px;
}

.confidence-meter strong {
  direction: ltr;
  font-size: 24px;
  margin: 4px 0 8px;
  text-align: right;
}

.confidence-meter > div {
  background: var(--surface-subtle);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.confidence-meter i {
  background: var(--primary);
  display: block;
  height: 100%;
}

.profile-grid {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 18px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  padding-top: 20px;
}

.profile-grid > div > span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  padding: 5px 8px;
}

.muted-copy {
  color: var(--muted);
  font-size: 13px;
}

.profile-decision {
  align-items: center;
  background: var(--warning-bg);
  border: 1px solid oklch(0.86 0.065 80);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding: 16px;
}

.profile-decision.is-confirmed {
  background: var(--success-bg);
  border-color: oklch(0.86 0.055 150);
}

.profile-decision p {
  color: var(--muted);
  margin: 3px 0 0;
}

.inner-hero {
  max-width: 760px;
  padding: 90px 0 46px;
}

.inner-hero h1 {
  font-size: 46px;
  margin: 10px 0 16px;
}

.inner-hero p {
  color: var(--muted);
  font-size: 19px;
  max-width: 680px;
}

.feature-grid {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 70px;
}

.feature-grid article {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.feature-grid article:nth-child(odd) {
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.feature-grid article:nth-child(even) {
  padding-right: 28px;
}

.feature-grid h2,
.feature-grid a {
  display: inline-block;
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 7px;
}

.feature-grid p {
  color: var(--muted);
  margin: 0;
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 oklch(0.57 0.14 150 / 0.3);
  }
  50% {
    box-shadow: 0 0 0 5px oklch(0.57 0.14 150 / 0);
  }
}

@media (max-width: 720px) {
  .runtime-strip {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .runtime-strip > a {
    justify-self: start;
  }

  .profile-heading,
  .profile-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .profile-decision {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .feature-grid article:nth-child(odd),
  .feature-grid article:nth-child(even) {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .inner-hero h1 {
    font-size: 34px;
  }

  .operation-card > header,
  .operation-card > footer {
    align-items: flex-start;
    gap: 8px;
  }

  .operation-card > footer {
    flex-direction: column;
  }
}

/* Template v2: Tabler-derived product shell and public system preview. */
.app-brand {
  flex: 0 0 auto;
  line-height: 1;
}

.brand-lockup {
  display: block;
  height: 40px;
  max-width: 174px;
  object-fit: contain;
  object-position: right center;
  width: 174px;
}

.app-brand.compact .brand-lockup {
  height: 34px;
  width: 148px;
}

.brand-mark {
  background: transparent;
  border-radius: 0;
  display: block;
  height: 36px;
  object-fit: contain;
  padding: 0;
  width: 36px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.brand-name small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

.public-menu-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: none;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.public-menu-button svg {
  height: 20px;
  width: 20px;
}

.hero-product {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(340px, 0.74fr) minmax(620px, 1.26fr);
  min-height: auto;
  padding: 76px 0 64px;
}

.hero-product .hero-copy {
  align-self: center;
  margin: 0;
  max-width: 540px;
  text-align: right;
}

.hero-product h1 {
  font-size: 49px;
  line-height: 1.16;
  margin-bottom: 20px;
}

.hero-product .hero-copy > p:not(.hero-label) {
  font-size: 17px;
  line-height: 1.85;
  margin-right: 0;
}

.hero-product .hero-actions {
  justify-content: flex-start;
  margin-top: 26px;
}

.product-console {
  background: var(--surface);
  border: 1px solid oklch(0.86 0.012 250);
  border-radius: 8px;
  direction: rtl;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 510px;
  overflow: hidden;
}

.console-sidebar {
  background: #14213d;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
}

.console-brand {
  align-items: center;
  display: flex;
  gap: 9px;
  padding: 0 7px;
}

.console-brand img {
  height: 28px;
  width: 28px;
}

.console-brand strong {
  font-size: 13px;
}

.console-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 28px;
}

.console-sidebar nav span {
  border-radius: 5px;
  color: #aeb8cc;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 9px;
}

.console-sidebar nav .is-active {
  background: rgb(255 255 255 / 10%);
  color: white;
}

.console-plan {
  border-top: 1px solid rgb(255 255 255 / 13%);
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding: 14px 7px 2px;
}

.console-plan small {
  color: #9eacc4;
  font-size: 9px;
}

.console-plan strong {
  font-size: 10px;
  margin-top: 3px;
}

.console-main {
  background: #f6f8fb;
  min-width: 0;
  padding: 19px;
}

.console-main > header,
.console-table-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.console-main > header > div,
.console-table-title {
  gap: 3px;
}

.console-main > header > div {
  display: flex;
  flex-direction: column;
}

.console-main > header small,
.console-stats span,
.console-stats small,
.console-table-title span,
.console-table li small,
.console-table li em,
.console-evidence p {
  color: var(--muted);
  font-size: 9px;
}

.console-main > header strong {
  font-size: 15px;
}

.console-stats {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.console-stats > div {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-height: 88px;
  padding: 11px;
}

.console-stats strong {
  font-size: 18px;
  margin: 3px 0;
}

.console-work {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 165px;
}

.console-table,
.console-evidence {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.console-table-title {
  border-bottom: 1px solid var(--border);
  padding: 11px 12px;
}

.console-table-title strong {
  font-size: 11px;
}

.console-table ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.console-table li {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 9px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 57px;
  padding: 8px 11px;
}

.console-table li:last-child {
  border-bottom: 0;
}

.console-table li i {
  align-items: center;
  background: var(--surface-subtle);
  border-radius: 50%;
  color: var(--muted);
  display: flex;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.console-table li div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.console-table li strong {
  font-size: 10px;
}

.console-table li em {
  background: var(--surface-subtle);
  border-radius: 999px;
  font-style: normal;
  padding: 4px 6px;
  white-space: nowrap;
}

.console-table li.is-done i {
  background: var(--success-bg);
  color: var(--success);
}

.console-table li.is-running i {
  animation: live-pulse 1.8s infinite;
  background: var(--info);
  color: white;
}

.console-table li.is-running em {
  background: var(--info-bg);
  color: var(--info);
}

.console-evidence {
  padding: 13px;
}

.console-evidence > span {
  color: var(--muted);
  font-size: 9px;
}

.console-evidence strong {
  display: block;
  font-size: 11px;
  margin: 7px 0;
}

.console-evidence a {
  color: var(--primary-dark);
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  margin-top: 9px;
}

.proof-strip {
  background: #14213d;
  color: white;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 28px max(28px, calc((100vw - 1184px) / 2));
}

.proof-strip > div {
  align-items: center;
  border-left: 1px solid rgb(255 255 255 / 15%);
  display: flex;
  gap: 13px;
  padding: 0 28px;
}

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

.proof-strip strong {
  color: #35d39a;
  font-size: 30px;
}

.proof-strip span {
  color: #dce3ef;
  font-size: 13px;
}

.platform-grid {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  padding: 94px 0;
}

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

.platform-features article {
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0 -1px -1px 0;
  min-height: 190px;
  padding: 24px;
}

.platform-features article > span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.platform-features h3 {
  font-size: 18px;
  margin: 28px 0 9px;
}

.platform-features p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.integration-band {
  align-items: center;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 42px 0;
}

.integration-band h2 {
  font-size: 25px;
  margin: 6px 0 0;
}

.integration-band ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  max-width: 650px;
  padding: 0;
}

.integration-band li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  direction: ltr;
  font-size: 12px;
  font-weight: 750;
  padding: 8px 11px;
}

.app-shell {
  background: #f5f7fa;
  direction: ltr;
  display: grid;
  grid-template-areas: "main sidebar";
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  min-height: 100vh;
}

.sidebar {
  background: #14213d;
  border: 0;
  color: #dce3ef;
  display: flex;
  direction: rtl;
  flex-direction: column;
  grid-area: sidebar;
  height: 100vh;
  inset: 0 auto 0 0;
  padding: 18px 14px;
  position: sticky;
  top: 0;
}

[dir="rtl"] .sidebar {
  inset: 0 0 0 auto;
}

.sidebar > .app-brand {
  padding: 0 7px 18px;
}

.sidebar .brand-lockup {
  height: 42px;
  width: 184px;
}

.sidebar .workspace-chip {
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 6px;
  margin-bottom: 21px;
  padding: 10px 11px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.nav-section-label {
  color: #73819b;
  font-size: 10px;
  font-weight: 800;
  margin: 18px 10px 5px;
}

.sidebar .nav-link {
  align-items: center;
  border-radius: 5px;
  color: #b9c3d5;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  min-height: 39px;
  padding: 8px 10px;
  text-decoration: none;
}

.sidebar .nav-link:hover {
  background: rgb(255 255 255 / 6%);
  color: white;
}

.sidebar .nav-link.is-active {
  background: rgb(255 255 255 / 11%);
  box-shadow: inset -3px 0 #25c28a;
  color: white;
}

.sidebar .nav-icon,
.sidebar .nav-icon svg {
  height: 18px;
  width: 18px;
}

.sidebar-foot {
  border-color: rgb(255 255 255 / 11%);
  margin-top: auto;
}

.sidebar-foot .user-mini span,
.sidebar-foot .link-button {
  color: #91a0ba;
}

.app-main {
  background: #f5f7fa;
  direction: rtl;
  display: block;
  grid-area: main;
  margin: 0 !important;
  min-width: 0;
  padding: 0;
  width: auto !important;
}

.app-topbar {
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  height: 64px;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 12;
}

.mobile-brand {
  display: none;
}

.topbar-context {
  display: flex;
  flex-direction: column;
}

.topbar-kicker {
  color: var(--muted);
  font-size: 10px;
}

.topbar-context strong {
  font-size: 13px;
}

.topbar-health {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
}

.topbar-health i {
  animation: live-pulse 2s infinite;
  background: var(--success);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.app-content {
  margin: 0 auto;
  max-width: 1480px;
  padding: 30px;
  width: 100%;
}

.page-eyebrow,
.panel-kicker {
  color: var(--primary-dark);
  display: block;
  font-size: 11px;
  font-weight: 850;
  margin-bottom: 4px;
}

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

.overview-grid article {
  background: white;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  margin-left: -1px;
  min-height: 118px;
  padding: 17px;
}

.overview-grid article:first-child {
  border-radius: 0 7px 7px 0;
}

.overview-grid article:last-child {
  border-radius: 7px 0 0 7px;
}

.overview-grid span,
.overview-grid small {
  color: var(--muted);
  font-size: 11px;
}

.overview-grid strong {
  font-size: 28px;
  margin: 7px 0 3px;
}

.overview-grid .metric-date {
  direction: ltr;
  font-size: 15px;
  margin: 12px 0 9px;
  text-align: right;
}

.overview-grid .text-danger {
  color: var(--danger);
}

.sites-list {
  gap: 14px;
}

.site-card {
  box-shadow: 0 1px 2px rgb(20 33 61 / 4%);
}

.surface-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin: -25px -25px 24px;
  padding: 20px 25px;
}

.surface-heading span:first-child {
  color: var(--muted);
  font-size: 10px;
}

.surface-heading h2 {
  margin: 3px 0 0;
}

.onboarding-steps {
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.onboarding-steps li {
  align-items: center;
  border-left: 1px solid var(--border);
  display: flex;
  gap: 9px;
  min-height: 72px;
  padding: 12px;
}

.onboarding-steps li:last-child {
  border-left: 0;
}

.onboarding-steps li > span {
  align-items: center;
  background: var(--surface-subtle);
  border-radius: 50%;
  color: var(--muted);
  display: flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 850;
  height: 27px;
  justify-content: center;
  width: 27px;
}

.onboarding-steps div {
  display: flex;
  flex-direction: column;
}

.onboarding-steps strong {
  font-size: 11px;
}

.onboarding-steps small {
  color: var(--muted);
  font-size: 9px;
}

.onboarding-steps .is-active {
  background: var(--primary-soft);
}

.onboarding-steps .is-active > span {
  background: var(--primary);
  color: white;
}

.checklist-panel li strong,
.checklist-panel li small {
  display: block;
}

.checklist-panel li small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.evidence-note {
  background: var(--info-bg);
  border: 1px solid oklch(0.86 0.03 245);
  border-radius: 6px;
  margin-top: 22px;
  padding: 13px;
}

.evidence-note strong {
  font-size: 12px;
}

.evidence-note p {
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0 0;
}

@media (max-width: 1080px) {
  .hero-product {
    gap: 34px;
    grid-template-columns: 1fr;
  }

  .hero-product .hero-copy {
    max-width: 720px;
  }

  .product-console {
    max-width: 860px;
  }

  .platform-grid,
  .workflow {
    gap: 42px;
  }

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

  .overview-grid article,
  .overview-grid article:first-child,
  .overview-grid article:last-child {
    border-radius: 0;
  }
}

@media (max-width: 840px) {
  :root {
    --sidebar: 264px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    box-shadow: -20px 0 50px rgb(20 33 61 / 20%);
    position: fixed;
    transform: translateX(110%);
    transition: transform 180ms ease;
    width: var(--sidebar);
    z-index: var(--z-sidebar);
  }

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

  .app-topbar {
    padding: 0 18px;
  }

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

  .mobile-brand .brand-lockup {
    height: 32px;
    width: 140px;
  }

  .mobile-brand .icon-button {
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    height: 36px;
    justify-content: center;
    width: 36px;
  }

  .mobile-brand .icon-button svg {
    height: 19px;
    width: 19px;
  }

  .topbar-context {
    display: none;
  }

  .app-content {
    padding: 22px 18px;
  }

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

  .section-heading {
    position: static;
  }

  .integration-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .integration-band ul {
    justify-content: flex-start;
  }

  .onboarding-steps {
    grid-template-columns: repeat(5, 140px);
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .public-header {
    height: 64px;
    padding: 0 18px;
  }

  .public-header .brand-lockup {
    height: 34px;
    width: 148px;
  }

  .public-menu-button {
    display: inline-flex;
  }

  .public-header nav {
    align-items: stretch;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 18px 35px rgb(20 33 61 / 14%);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 18px;
    padding: 8px;
    position: absolute;
    right: 18px;
    top: 58px;
  }

  .public-header nav.is-open {
    display: flex;
  }

  .public-header nav > a {
    border: 0;
    min-height: 42px;
    padding: 10px 11px;
  }

  .public-header .login-link {
    border-right: 0;
    padding-right: 11px;
  }

  .public-main {
    min-width: 0;
    padding: 0 18px;
    width: 100%;
  }

  .hero-product {
    gap: 32px;
    min-width: 0;
    padding: 48px 0 46px;
    width: 100%;
  }

  .hero-product > *,
  .hero-product .hero-copy,
  .console-main,
  .console-work,
  .console-table {
    min-width: 0;
    width: 100%;
  }

  .hero-product h1 {
    font-size: 37px;
    overflow-wrap: anywhere;
  }

  .hero-product .hero-copy > p:not(.hero-label) {
    font-size: 15px;
  }

  .product-console {
    display: block;
    min-height: 0;
    min-width: 0;
    width: 100%;
  }

  .console-sidebar {
    display: none;
  }

  .console-main {
    padding: 14px;
  }

  .console-stats {
    grid-template-columns: 1fr;
  }

  .console-stats > div:nth-child(n + 3) {
    display: none;
  }

  .console-work {
    grid-template-columns: 1fr;
  }

  .console-evidence {
    display: none;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    padding-bottom: 6px;
    padding-top: 6px;
  }

  .proof-strip > div {
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    border-left: 0;
    padding: 14px 18px;
  }

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

  .platform-features,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    padding: 66px 0;
  }

  .platform-features article {
    min-height: 160px;
  }

  .workflow {
    padding: 66px 0;
  }

  .integration-band {
    padding: 34px 0;
  }

  .public-footer {
    grid-template-columns: 1fr;
  }

  .public-footer > div:nth-child(2) {
    flex-wrap: wrap;
  }

  .topbar-health span {
    display: none;
  }

  .app-content {
    padding: 20px 14px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .page-head .button {
    width: 100%;
  }

  .surface-heading {
    gap: 12px;
  }
}

/* Public homepage: an operations-first product story, not a dashboard collage. */
.home-main {
  max-width: 1180px;
}

.home-hero {
  align-items: center;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  min-height: calc(100vh - 72px);
  padding: 82px 0 74px;
}

.home-hero-copy {
  max-width: 510px;
}

.home-kicker {
  align-items: center;
  color: var(--primary-dark);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  margin-bottom: 20px;
}

.home-kicker span {
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--primary-soft);
  height: 7px;
  width: 7px;
}

.home-hero h1 {
  color: #101827;
  font-size: 58px;
  font-weight: 850;
  line-height: 1.09;
  margin-bottom: 24px;
}

.home-hero h1 span {
  color: var(--primary-dark);
}

.home-lede {
  color: #596374;
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 0;
}

.home-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.home-text-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-text-link span,
.home-receipt-copy a span {
  display: inline-block;
  margin-right: 5px;
  transition: transform 160ms ease;
}

.home-text-link:hover span,
.home-receipt-copy a:hover span {
  transform: translateX(-4px);
}

.home-assurance {
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0 0;
}

.home-assurance b {
  color: var(--border);
  margin: 0 5px;
}

.home-live-product {
  animation: home-stage-enter 500ms ease-out both;
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgb(16 24 39 / 10%);
  direction: rtl;
  min-width: 0;
  overflow: hidden;
}

.home-window-bar {
  align-items: center;
  background: #f4f6f8;
  border-bottom: 1px solid #e0e4ea;
  direction: ltr;
  display: grid;
  font-size: 10px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 44px;
  padding: 0 14px;
}

.home-window-dots {
  display: flex;
  gap: 5px;
}

.home-window-dots i {
  background: #c8ced8;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.home-window-bar > span {
  color: #687386;
  font-weight: 700;
}

.home-window-bar > strong {
  align-items: center;
  color: #166444;
  direction: rtl;
  display: flex;
  font-size: 10px;
  gap: 6px;
  justify-self: end;
}

.home-window-bar > strong i {
  background: #20a66a;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.home-operation-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  padding: 24px 24px 19px;
}

.home-operation-head > div {
  display: flex;
  flex-direction: column;
}

.home-operation-head span,
.home-operation-head small,
.home-evidence span {
  color: var(--muted);
  font-size: 10px;
}

.home-operation-head h2 {
  font-size: 20px;
  margin: 6px 0 0;
}

.home-operation-list {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  position: relative;
}

.home-operation-list::before {
  background: #e3e7ec;
  bottom: 26px;
  content: "";
  position: absolute;
  right: 35px;
  top: 26px;
  width: 1px;
}

.home-operation-list li {
  align-items: center;
  border-top: 1px solid #e8ebef;
  display: grid;
  gap: 13px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 12px 0;
  position: relative;
}

.home-step-mark {
  align-items: center;
  background: #fff;
  border: 2px solid #d9dee6;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 10px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  position: relative;
  width: 22px;
  z-index: 1;
}

.home-operation-list li.is-complete .home-step-mark {
  background: var(--primary);
  border-color: var(--primary);
}

.home-operation-list li.is-live .home-step-mark {
  background: #fff;
  border-color: #2584cf;
  box-shadow: 0 0 0 5px #e9f4fc;
}

.home-operation-list li.is-live .home-step-mark::after {
  background: #2584cf;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.home-operation-list li > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-operation-list li strong {
  color: #1b2432;
  font-size: 13px;
}

.home-operation-list li small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.home-operation-list li em {
  color: #7a8494;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.home-operation-list li.is-complete em {
  color: #166444;
}

.home-operation-list li.is-live em {
  color: #216fae;
  font-weight: 800;
}

.home-evidence {
  align-items: center;
  background: #14213d;
  color: #fff;
  display: grid;
  gap: 4px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 8px;
  padding: 16px 24px;
}

.home-evidence span {
  color: #9faac0;
}

.home-evidence strong {
  font-size: 11px;
  grid-column: 1;
}

.home-evidence a {
  color: #78dfb8;
  font-size: 10px;
  font-weight: 800;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.home-trust-line {
  align-items: center;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding: 22px 0;
}

.home-trust-line p {
  color: #202938;
  font-size: 14px;
  font-weight: 850;
  margin: 0;
}

.home-trust-line ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-trust-line li {
  color: #606b7b;
  font-size: 12px;
  font-weight: 700;
}

.home-trust-line li:not(:last-child)::after {
  color: #bcc3cd;
  content: "←";
  margin: 0 13px;
}

.home-workflow {
  display: grid;
  gap: 76px;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  padding: 108px 0;
}

.home-section-intro {
  align-self: start;
  position: sticky;
  top: 110px;
}

.home-section-intro > span,
.home-receipt-copy > span,
.home-integrations > div > span,
.home-honesty span,
.home-final-cta > div > span {
  color: var(--primary-dark);
  display: block;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 11px;
}

.home-section-intro h2,
.home-receipt h2,
.home-final-cta h2 {
  color: #131c2a;
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 18px;
}

.home-section-intro p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 0;
}

.home-workflow-rows article {
  border-top: 1px solid #dfe4ea;
  display: grid;
  gap: 24px;
  grid-template-columns: 160px minmax(0, 1fr);
  padding: 27px 0 30px;
}

.home-workflow-rows article:last-child {
  border-bottom: 1px solid #dfe4ea;
}

.home-row-title span {
  color: var(--primary-dark);
  display: block;
  font-size: 10px;
  font-weight: 850;
  margin-bottom: 8px;
}

.home-row-title h3 {
  font-size: 19px;
  margin-bottom: 0;
}

.home-workflow-rows article > p {
  color: #5e6878;
  line-height: 1.8;
  margin: 0;
}

.home-workflow-rows article > strong {
  color: #263142;
  font-size: 12px;
  font-weight: 800;
  grid-column: 2;
}

.home-receipt {
  background: #14213d;
  color: #fff;
  display: grid;
  gap: 84px;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  padding: 82px 56px;
}

.home-receipt-copy {
  align-self: center;
}

.home-receipt-copy > span {
  color: #76dcb5;
}

.home-receipt h2 {
  color: #fff;
}

.home-receipt-copy p {
  color: #c1cada;
  line-height: 1.85;
}

.home-receipt-copy a {
  color: #8de8c5;
  display: inline-block;
  font-size: 13px;
  font-weight: 850;
  margin-top: 12px;
  text-decoration: none;
}

.home-run-log {
  background: #fff;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  color: #192230;
  overflow: hidden;
}

.home-run-log header,
.home-run-log footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.home-run-log header {
  border-bottom: 1px solid #e3e7ec;
}

.home-run-log header > div {
  display: flex;
  flex-direction: column;
}

.home-run-log header span,
.home-run-log footer span {
  color: #778193;
  font-size: 10px;
}

.home-run-log header strong {
  font-size: 14px;
  margin-top: 4px;
}

.home-run-log header em {
  background: #e8f7f0;
  border-radius: 999px;
  color: #176b49;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 9px;
}

.home-run-log ul {
  list-style: none;
  margin: 0;
  padding: 0 20px;
}

.home-run-log li {
  align-items: center;
  border-bottom: 1px solid #edf0f3;
  display: grid;
  gap: 14px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 61px;
}

.home-run-log time {
  color: #8a94a3;
  font-size: 10px;
}

.home-run-log li span {
  font-size: 12px;
  font-weight: 750;
}

.home-run-log li strong {
  color: #516071;
  font-size: 10px;
}

.home-run-log footer {
  background: #f5f7f9;
}

.home-run-log footer strong {
  color: #344052;
  font-size: 10px;
}

.home-integrations {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 72px 0;
}

.home-integrations h2 {
  font-size: 26px;
  margin: 0;
}

.home-integrations ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  max-width: 590px;
  padding: 0;
}

.home-integrations li {
  border-bottom: 2px solid #cdd3dc;
  color: #3d495a;
  direction: ltr;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 2px 6px;
}

.home-honesty {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 82px 0;
}

.home-honesty > div {
  border-right: 1px solid var(--border);
  padding: 5px 48px 5px 0;
}

.home-honesty > div:first-child {
  border-right: 0;
  padding-left: 48px;
  padding-right: 0;
}

.home-honesty > div:last-child span {
  color: #7b6570;
}

.home-honesty p {
  color: #4f5a6b;
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
}

.home-final-cta {
  align-items: center;
  background: #edf7f2;
  border-top: 3px solid var(--primary);
  display: flex;
  justify-content: space-between;
  margin-bottom: 76px;
  padding: 48px 52px;
}

.home-final-cta h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.home-final-cta p {
  color: #5b6875;
  margin: 0;
}

.home-final-cta > div:last-child {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 12px;
  margin-right: 36px;
}

.home-final-cta > div:last-child > a:not(.button) {
  color: #405047;
  font-size: 12px;
  font-weight: 750;
}

@keyframes home-stage-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .home-hero {
    gap: 42px;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-hero-copy {
    max-width: 720px;
  }

  .home-live-product {
    max-width: 820px;
  }

  .home-workflow,
  .home-receipt {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .home-hero {
    gap: 38px;
    padding: 54px 0 50px;
  }

  .home-hero h1 {
    font-size: 43px;
  }

  .home-lede {
    font-size: 16px;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .home-text-link {
    align-self: center;
  }

  .home-assurance {
    line-height: 1.9;
  }

  .home-operation-head {
    padding: 20px 16px 15px;
  }

  .home-operation-head h2 {
    font-size: 17px;
  }

  .home-operation-list {
    padding: 0 16px;
  }

  .home-operation-list::before {
    right: 27px;
  }

  .home-operation-list li {
    gap: 10px;
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 78px;
  }

  .home-operation-list li em {
    grid-column: 2;
    margin-top: -8px;
  }

  .home-evidence {
    grid-template-columns: 1fr;
    padding: 15px 16px;
  }

  .home-evidence a {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }

  .home-trust-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .home-trust-line ul {
    row-gap: 8px;
  }

  .home-trust-line li:not(:last-child)::after {
    margin: 0 8px;
  }

  .home-workflow {
    gap: 38px;
    grid-template-columns: 1fr;
    padding: 76px 0;
  }

  .home-section-intro {
    position: static;
  }

  .home-section-intro h2,
  .home-receipt h2 {
    font-size: 31px;
  }

  .home-workflow-rows article {
    gap: 15px;
    grid-template-columns: 1fr;
  }

  .home-workflow-rows article > strong {
    grid-column: 1;
  }

  .home-receipt {
    grid-template-columns: 1fr;
    padding-bottom: 68px;
    padding-top: 68px;
  }

  .home-run-log li {
    gap: 5px 10px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 11px 0;
  }

  .home-run-log li strong {
    grid-column: 2;
  }

  .home-integrations {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
    padding: 58px 0;
  }

  .home-integrations ul {
    justify-content: flex-start;
  }

  .home-honesty {
    grid-template-columns: 1fr;
    padding: 62px 0;
  }

  .home-honesty > div,
  .home-honesty > div:first-child {
    border-right: 0;
    padding: 25px 0;
  }

  .home-honesty > div + div {
    border-top: 1px solid var(--border);
  }

  .home-final-cta {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 54px;
    padding: 36px 24px;
  }

  .home-final-cta h2 {
    font-size: 28px;
  }

  .home-final-cta > div:last-child {
    margin: 28px 0 0;
  }

  .home-final-cta .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-live-product {
    animation: none;
  }

  .home-text-link span,
  .home-receipt-copy a span {
    transition: none;
  }
}
