:root {
  --ink: #0B1220;
  --ink-2: #172033;
  --muted: #475569;
  --line: #D8E1EC;
  --line-strong: #b9c7d8;
  --panel: #ffffff;
  --soft: #F4F8FC;
  --soft-2: #eaf1f6;
  --blue: #155EEF;
  --blue-2: #0d47c3;
  --green: #12B8A6;
  --amber: #b96b11;
  --rose: #c2415d;
  --shadow: 0 18px 45px rgba(7, 17, 31, 0.1);
  --shadow-soft: 0 8px 24px rgba(7, 17, 31, 0.07);
  --radius: 8px;
  --page-x: 24px;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #f7fafc 0%, #edf3f8 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  min-height: calc(100vh - 140px);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-2);
  text-decoration: underline;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 3.35rem;
  font-weight: 850;
  line-height: 1.02;
}

h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.14;
}

h3 {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #c8d3e0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 87, 217, 0.16);
  border-color: var(--blue);
}

label {
  display: grid;
  gap: 5px;
  color: #273244;
  font-size: 0.88rem;
  font-weight: 750;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef2f7;
  color: #0f172a;
  font-size: 0.9em;
}

.platform-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  border-bottom: 1px solid rgba(198, 210, 224, 0.82);
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(16px);
}

.platform-nav .container-fluid {
  max-width: 1440px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-symbol {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.brand-wordmark span:first-child {
  color: var(--ink);
}

.brand-wordmark span:last-child {
  color: var(--blue);
}

.navbar-nav .nav-link,
.nav-actions .nav-link {
  color: #3f4a5c;
  font-size: 0.94rem;
  font-weight: 650;
}

.navbar-nav .nav-link:hover,
.nav-actions .nav-link:hover {
  color: var(--ink);
}

.navbar-nav .nav-link.active {
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-actions,
.button-row,
.admin-nav,
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-buy-cta__compact {
  display: none;
}

.btn {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 760;
  line-height: 1.1;
  box-shadow: none;
}

.btn-lg {
  min-height: 42px;
  padding: 11px 17px;
  font-size: 0.98rem;
}

.btn-sm {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.btn-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--blue-2);
  background: var(--blue-2);
  color: #fff;
  text-decoration: none;
}

.btn-outline-dark {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.btn-outline-dark:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: 34px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 58px var(--page-x) 28px;
  overflow: hidden;
}

.hero-copy {
  max-width: 650px;
}

.hero-media img {
  border: 1px solid rgba(185, 199, 216, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.trust-row span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 760;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: calc(100% - var(--page-x) - var(--page-x));
  max-width: 1352px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.metric-band div {
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.92);
}

.metric-band strong {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.05;
}

.metric-band span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 16px;
}

.proof-card {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow-soft);
}

.proof-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber), var(--rose));
  content: "";
}

.proof-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.proof-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px var(--page-x);
}

.section-tight {
  padding-top: 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.page-hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px var(--page-x) 26px;
  border-bottom: 1px solid rgba(215, 224, 234, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(239, 245, 250, 0.18));
}

.page-hero.compact h1 {
  max-width: 860px;
  font-size: 2.65rem;
}

.page-hero.compact p:not(.eyebrow) {
  max-width: 780px;
  font-size: 1rem;
}

.two-column,
.split-dashboard,
.checkout-layout,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

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

.card-grid,
.feature-list,
.docs-grid,
.pricing-grid,
.faq-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.info-card,
.panel,
.price-card,
.doc-card,
.auth-panel,
.checkout-summary,
.license-card,
.feature-list article,
.timeline article,
.faq-list article,
.faq-admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 1px rgba(7, 17, 31, 0.03);
}

.info-card,
.feature-list article,
.price-card,
.doc-card,
.panel,
.auth-panel,
.checkout-summary,
.license-card,
.timeline article,
.faq-list article,
.faq-admin-card {
  padding: 18px;
}

.info-card:hover,
.doc-card:hover,
.price-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

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

.doc-card:hover {
  text-decoration: none;
}

.chip {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 8px;
  background: rgba(20, 87, 217, 0.1);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
}

.chip.green {
  background: rgba(17, 133, 111, 0.12);
  color: var(--green);
}

.chip.amber {
  background: rgba(185, 107, 17, 0.13);
  color: var(--amber);
}

.chip.rose {
  background: rgba(194, 65, 93, 0.13);
  color: var(--rose);
}

.feature-group + .feature-group {
  margin-top: 32px;
}

.feature-list small,
.doc-card small,
.timeline small,
.license-card small,
.small-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.color-showcase {
  position: relative;
}

.color-showcase::before,
.automation-band::before {
  position: absolute;
  inset: 0 var(--page-x);
  z-index: -1;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 87, 217, 0.08), rgba(17, 133, 111, 0.08)),
    linear-gradient(90deg, rgba(185, 107, 17, 0.08), rgba(194, 65, 93, 0.08));
  content: "";
}

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

.provider-grid.compact-providers .provider-card {
  min-height: 150px;
}

.provider-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.provider-card::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  content: "";
}

.provider-card span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.provider-card h3,
.provider-card p {
  position: relative;
  z-index: 1;
  color: #fff;
}

.provider-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.provider-card.openai {
  background: linear-gradient(135deg, #0f766e, #123c69);
}

.provider-card.anthropic {
  background: linear-gradient(135deg, #b45309, #7c2d12);
}

.provider-card.gemini {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.provider-card.azure {
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
}

.provider-card.custom {
  background: linear-gradient(135deg, #be123c, #4c1d95);
}

.automation-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 22px;
  align-items: center;
}

.automation-copy {
  padding: 24px;
  border: 1px solid rgba(20, 87, 217, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

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

.flow-node {
  min-height: 146px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.flow-node:nth-child(1) {
  border-top: 5px solid var(--blue);
}

.flow-node:nth-child(2) {
  border-top: 5px solid var(--amber);
}

.flow-node:nth-child(3) {
  border-top: 5px solid var(--green);
}

.flow-node:nth-child(4) {
  border-top: 5px solid var(--rose);
}

.flow-node strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.flow-node span {
  color: var(--muted);
}

.requirements-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 16px;
  align-items: stretch;
}

.requirement-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid rgba(20, 87, 217, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow-soft);
}

.requirement-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #1457d9, #0f766e);
  color: #fff;
  font-weight: 900;
}

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

.requirement-pills span {
  display: grid;
  min-height: 64px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #293547;
  font-weight: 780;
  box-shadow: 0 1px 1px rgba(7, 17, 31, 0.03);
}

.automation-feature-grid {
  position: relative;
}

.workflow-feature-list article {
  position: relative;
  overflow: hidden;
}

.workflow-feature-list article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber), var(--rose));
  content: "";
}

.animated-card {
  animation: riseIn 620ms ease both;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.animated-card:nth-child(2) {
  animation-delay: 80ms;
}

.animated-card:nth-child(3) {
  animation-delay: 160ms;
}

.animated-card:nth-child(4) {
  animation-delay: 240ms;
}

.animated-card:nth-child(5) {
  animation-delay: 320ms;
}

.animated-card:nth-child(6) {
  animation-delay: 400ms;
}

.animated-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pulse-card {
  animation: softPulse 3s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 450ms;
}

.delay-2 {
  animation-delay: 900ms;
}

.delay-3 {
  animation-delay: 1350ms;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@keyframes softPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.price {
  margin: 16px 0;
  color: var(--ink);
  font-size: 2.4rem;
  font-weight: 850;
  line-height: 1;
}

.clean-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 22px;
  color: #354155;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  content: "+";
  color: var(--green);
  font-weight: 900;
}

.article-page {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.article-page h1 {
  font-size: 2.6rem;
}

.article-body {
  margin: 24px 0;
  padding: 20px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff;
}

.auth-shell {
  display: grid;
  min-height: 72vh;
  place-items: center;
  padding: 38px 20px;
}

.auth-panel {
  width: min(520px, 100%);
  padding: 24px;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  font-size: 2.15rem;
  line-height: 1.08;
}

.auth-panel p:not(.eyebrow) {
  margin-bottom: 18px;
}

.auth-panel.wide {
  width: min(720px, 100%);
}

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

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.inline-fields {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: end;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px var(--page-x) 18px;
}

.portal-header h1 {
  font-size: 2.25rem;
}

.portal-header p:not(.eyebrow) {
  margin-top: 8px;
  margin-bottom: 0;
}

.checkout-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
}

.checkout-main,
.checkout-summary {
  align-self: start;
}

.checkout-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}

.checkout-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.order-summary-card {
  display: grid;
  gap: 18px;
}

.order-summary-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 0.95;
}

.order-summary-card p {
  max-width: 62ch;
}

.order-price {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 10px;
  background: #eef6ff;
}

.order-price strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.order-price span,
.provider-cost-note,
.optional-text {
  color: var(--muted);
}

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

.order-facts div {
  padding: 12px;
  border-radius: 10px;
  background: #f7fafc;
}

.order-facts dt {
  color: #526173;
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

.order-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 760;
}

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

.change-plan-link {
  width: max-content;
  font-weight: 800;
}

.totals-box {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.totals-box div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #334155;
}

.totals-box strong {
  color: var(--ink);
  text-align: right;
}

.totals-box .total-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
}

.customer-payment-card,
.checkout-form,
.payment-methods {
  display: grid;
  gap: 16px;
}

.managed-addon-option {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #b8d4f8;
  border-radius: 10px;
  background: #f2f8ff;
}

.managed-addon-option h2 {
  margin: 2px 0 5px;
  font-size: 1.2rem;
}

.managed-addon-option p {
  margin: 0;
}

.addon-choice {
  align-items: flex-start;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8e5f7;
  cursor: pointer;
}

.addon-choice input {
  margin-top: 3px;
}

.addon-choice span,
.addon-choice small {
  display: block;
}

.addon-choice small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-tier-card {
  align-self: start;
}

.addon-admin-section {
  display: grid;
  gap: 12px;
  margin: 8px 0;
  padding: 16px;
  border: 1px solid #c7d9ef;
  border-radius: 8px;
  background: #f5f9ff;
}

.addon-admin-section legend {
  padding: 0 7px;
  color: var(--ink);
  font-weight: 850;
}

.addon-calculation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.addon-calculation div {
  padding: 10px;
  border-radius: 7px;
  background: #fff;
}

.addon-calculation dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.addon-calculation dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 850;
}

.verification-status {
  display: grid;
  gap: 3px;
  margin: -5px 0 3px;
  padding: 9px 10px;
  border-radius: 7px;
  background: #e8eef7;
  color: #344054;
  font-size: 0.82rem;
}

.verification-status.status-ready {
  background: #e8f8f3;
  color: #08745f;
}

.verification-status.status-failed,
.verification-status.status-amountmismatch,
.verification-status.status-currencymismatch,
.verification-status.status-billingintervalmismatch,
.verification-status.status-wrongenvironment,
.verification-status.status-priceinactive {
  background: #fff0f0;
  color: #b42318;
}

.addon-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

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

.terms-row {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.payment-methods h2 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.payment-method-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid #cbd8ef;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

button.payment-method-card:hover,
button.payment-method-card:focus-visible,
.payment-method-card:focus-within {
  border-color: #155eef;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

.payment-method-card strong,
.payment-method-card small {
  display: block;
}

.payment-method-card small {
  margin-top: 3px;
  color: var(--muted);
}

.method-cta {
  border-radius: 9px;
  background: #155eef;
  color: #ffffff;
  padding: 10px 12px;
  font-weight: 850;
  text-align: center;
}

.paypal-card {
  grid-template-columns: minmax(0, 1fr);
}

.paypal-buttons {
  min-height: 48px;
}

.fallback-paypal {
  border: 0;
}

.checkout-message {
  min-height: 22px;
  color: #155eef;
  font-weight: 760;
}

.checkout-message.is-error {
  color: #b42318;
}

.inline-notice {
  width: auto;
  margin: 0;
}

.checkout-status-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 80px;
}

.checkout-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.status-card,
.install-card {
  display: grid;
  gap: 18px;
}

.status-card {
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.status-hero-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.status-card h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.status-card p {
  max-width: 65ch;
}

.status-indicator {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(21, 94, 239, 0.18);
}

.status-indicator span {
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: status-spin 1s linear infinite;
}

.status-indicator.is-success {
  background: #e8fbf7;
  color: #07937f;
}

.status-indicator.is-success span {
  width: 19px;
  height: 11px;
  border-width: 0 0 3px 3px;
  border-radius: 0;
  transform: rotate(-45deg);
  animation: none;
}

.status-indicator.is-error {
  background: #fff1f3;
  color: #be123c;
}

.status-indicator.is-error span {
  position: relative;
  width: 20px;
  height: 20px;
  border: 0;
  animation: none;
}

.status-indicator.is-error span::before,
.status-indicator.is-error span::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  width: 3px;
  height: 20px;
  border-radius: 3px;
  background: currentColor;
}

.status-indicator.is-error span::before {
  transform: rotate(45deg);
}

.status-indicator.is-error span::after {
  transform: rotate(-45deg);
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checkout-progress li {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 10px;
  background: #f7fafc;
  color: #526173;
  font-weight: 780;
}

.checkout-progress span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.82rem;
}

.checkout-progress .is-current {
  background: #eef6ff;
  color: var(--blue);
}

.checkout-progress .is-current span,
.checkout-progress .is-complete span {
  background: var(--blue);
  color: #ffffff;
}

.checkout-progress .is-complete {
  color: #0f766e;
  background: #ecfdf8;
}

.checkout-progress .is-complete span {
  background: var(--green);
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 850;
}

.license-key-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #f8fbff;
}

.license-key-panel > span {
  color: #526173;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.license-key-panel code {
  overflow-wrap: anywhere;
  font-weight: 850;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-live {
  margin: 0;
  color: #526173;
  font-size: 0.9rem;
}

.install-card {
  background: #f8fbff;
}

.install-card h2 {
  font-size: 1.28rem;
}

.install-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #344256;
}

@keyframes status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-indicator span {
    animation: none;
  }
}

.is-hidden {
  display: none !important;
}

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

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.data-table.compact {
  min-width: 520px;
}

.data-table th,
.data-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  color: #293547;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #445268;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.license-card + .license-card,
.timeline article + article {
  margin-top: 12px;
}

.release-timeline {
  display: grid;
  gap: 14px;
}

.release-card {
  position: relative;
  overflow: hidden;
}

.release-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  content: "";
}

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

.version-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: #0f172a;
  color: #fff;
  font-weight: 850;
}

.release-card ul {
  margin-bottom: 0;
}

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

.admin-nav a,
.link-button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.admin-nav a:hover,
.link-button:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.link-button {
  cursor: pointer;
}

.admin-metrics {
  margin-top: 0;
}

.portal-context-nav,
.admin-context-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.portal-context-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.admin-context-nav {
  background: #0b1220;
  color: #fff;
}

.admin-context-nav .brand,
.admin-context-nav .brand:hover,
.admin-context-nav .brand-wordmark span:first-child {
  color: #fff;
}

.admin-context-nav .brand-symbol {
  filter: brightness(0) invert(1);
}

.admin-context-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  background: #fff;
}

.portal-context-nav .navbar-collapse,
.admin-context-nav .navbar-collapse {
  align-items: center;
  gap: 18px;
}

.admin-primary-nav {
  flex: 1;
  justify-content: center;
  gap: 2px;
}

.admin-context-nav .nav-link {
  color: #cbd5e1;
  font-size: 0.88rem;
}

.admin-context-nav .nav-link:hover,
.admin-context-nav .nav-link.active {
  color: #fff;
}

.admin-context-nav .nav-link.active {
  text-decoration-color: #12b8a6;
}

.admin-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-login-label {
  margin-left: auto;
  color: #cbd5e1;
  font-weight: 700;
}

.portal-context-nav form,
.admin-context-nav form {
  margin: 0;
}

.portal-context-nav .link-button {
  border: 0;
  background: transparent;
  color: #3f4a5c;
}

.portal-main,
.admin-main {
  min-height: calc(100vh - 64px);
}

.portal-main {
  background: #f6f9fc;
}

.admin-main {
  background: #eef3f8;
  padding-bottom: 48px;
}

.purchase-account-shell {
  width: min(1040px, calc(100% - 48px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 36px 0 72px;
}

.purchase-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  margin: 0 auto 24px;
}

.purchase-progress > div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 0.88rem;
}

.purchase-progress > div:not(:last-child)::after {
  position: absolute;
  right: 12px;
  left: 44px;
  height: 2px;
  background: #d8e1ec;
  content: "";
}

.purchase-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  font-weight: 800;
}

.purchase-progress .is-current,
.purchase-progress .is-complete {
  color: var(--ink);
}

.purchase-progress .is-current span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.purchase-progress .is-complete span {
  border-color: #12b8a6;
  background: #12b8a6;
  color: #fff;
}

.purchase-account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: start;
}

.purchase-plan-summary {
  display: grid;
  gap: 12px;
}

.purchase-plan-summary h1 {
  font-size: 2rem;
}

.purchase-plan-price {
  color: var(--ink);
  font-size: 1.4rem;
}

.purchase-account-card h2 {
  font-size: 1.75rem;
}

.purchase-account-card .btn {
  width: 100%;
}

.form-help-link {
  justify-self: start;
  font-size: 0.88rem;
  font-weight: 700;
}

.checkout-account-summary {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #eef6ff;
}

.checkout-account-summary span,
.checkout-account-summary small {
  color: var(--muted);
}

.purchase-progress--payment {
  width: min(760px, calc(100% - 48px));
  margin-top: 32px;
  margin-bottom: 0;
}

.anchor-target {
  display: block;
  position: relative;
  top: -84px;
  visibility: hidden;
}

.bar-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.filter-row {
  margin-bottom: 16px;
}

.filter-row input {
  max-width: 420px;
}

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

.faq-list article p {
  margin-bottom: 0;
}

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

.content-summary {
  align-self: stretch;
}

.notice {
  width: min(1120px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 11px 13px;
  border: 1px solid #b8c7f3;
  border-radius: var(--radius);
  background: #eff4ff;
  color: #173984;
  font-weight: 760;
}

.notice.success {
  border-color: #afd9c8;
  background: #ecfdf5;
  color: #14532d;
}

.notice.error {
  border-color: #f2b8c3;
  background: #fff1f2;
  color: #9f1239;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px var(--page-x);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

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

@media (max-width: 1100px) {
  :root {
    --page-x: 24px;
  }

  .nav-buy-cta__desktop {
    display: none;
  }

  .nav-buy-cta__compact {
    display: inline;
  }

  .hero,
  .two-column,
  .split-dashboard,
  .checkout-layout,
  .checkout-shell,
  .checkout-result-layout,
  .content-grid,
  .automation-band,
  .requirements-strip {
    grid-template-columns: 1fr;
  }

  .checkout-shell,
  .checkout-status-shell {
    width: min(100% - 32px, 1180px);
    padding-top: 28px;
  }

  .purchase-account-grid {
    grid-template-columns: 1fr;
  }

  .admin-context-nav .navbar-collapse,
  .portal-context-nav .navbar-collapse {
    margin-top: 10px;
    padding: 12px 0 16px;
  }

  .admin-primary-nav {
    align-items: flex-start;
  }

  .admin-user-menu {
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .checkout-card {
    padding: 18px;
  }

  .order-price,
  .payment-method-card,
  .totals-box div {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .order-facts,
  .status-facts,
  .field-grid.two,
  .addon-calculation {
    grid-template-columns: 1fr;
  }

  .checkout-progress {
    grid-template-columns: 1fr;
  }

  .method-cta {
    width: 100%;
  }

  .hero-media {
    order: -1;
  }

  .pricing-grid,
  .docs-grid,
  .metric-band,
  .faq-admin-grid,
  .provider-grid,
  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --page-x: 16px;
  }

  .platform-nav {
    min-height: 64px;
  }

  .purchase-account-shell {
    width: min(100% - 32px, 1040px);
    padding-top: 24px;
  }

  .purchase-progress,
  .purchase-progress--payment {
    width: min(100% - 32px, 760px);
  }

  .purchase-progress strong {
    font-size: 0.76rem;
  }

  .purchase-progress > div:not(:last-child)::after {
    right: 6px;
    left: 38px;
  }

  .brand-symbol {
    width: 24px;
    height: 24px;
  }

  .brand-wordmark {
    font-size: 1rem;
    font-weight: 700;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2,
  .page-hero.compact h1,
  .article-page h1,
  .portal-header h1 {
    font-size: 1.9rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .auth-panel h1 {
    font-size: 1.85rem;
  }

  .card-grid,
  .feature-list,
  .pricing-grid,
  .docs-grid,
  .metric-band,
  .faq-list,
  .faq-admin-grid,
  .provider-grid,
  .proof-strip,
  .automation-flow,
  .requirement-pills {
    grid-template-columns: 1fr;
  }

  .portal-header,
  .site-footer {
    flex-direction: column;
  }

  .status-hero-row,
  .license-key-panel {
    grid-template-columns: 1fr;
  }

  .inline-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .brand-wordmark {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Administration reporting and settings */
.admin-dashboard-head,
.dashboard-filters,
.admin-kpi-grid,
.dashboard-chart-grid,
.dashboard-operations-grid,
.dashboard-table-grid,
.admin-page-heading {
  width: min(100% - 48px, 1380px);
  margin-inline: auto;
}

.admin-dashboard-head,
.admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 20px;
}

.admin-dashboard-head h1,
.admin-page-heading h1 {
  margin-bottom: 5px;
  font-size: 2rem;
}

.admin-dashboard-head p:not(.eyebrow),
.admin-page-heading p:not(.eyebrow) {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
}

.dashboard-snapshot-note {
  color: #526075;
  font-size: 0.78rem;
}

.dashboard-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.dashboard-filters label,
.dashboard-custom-dates label {
  display: grid;
  gap: 5px;
  min-width: 145px;
  color: #455166;
  font-size: 0.75rem;
  font-weight: 800;
}

.dashboard-custom-dates {
  display: flex;
  gap: 8px;
}

.dashboard-filters select,
.dashboard-filters input {
  min-height: 39px;
  padding: 7px 9px;
  border: 1px solid #b9c7d8;
  background: #fff;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-block: 16px;
}

.admin-kpi {
  position: relative;
  min-width: 0;
  min-height: 136px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-top: 3px solid #94a3b8;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
  text-decoration: none;
}

.admin-kpi:hover {
  border-color: #b6c4d6;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.admin-kpi.trend-positive {
  border-top-color: var(--green);
}

.admin-kpi.trend-negative {
  border-top-color: #ef4444;
}

.kpi-label,
.admin-kpi small,
.admin-kpi em {
  display: block;
}

.kpi-label {
  max-width: calc(100% - 34px);
  color: #526075;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-kpi strong {
  display: block;
  margin-top: 14px;
  overflow: hidden;
  font-size: 1.45rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-kpi small {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.76rem;
}

.admin-kpi em {
  margin-top: 4px;
  color: #155eef;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 750;
}

.kpi-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border: 2px solid #155eef;
  border-radius: 50%;
}

.kpi-icon::after {
  position: absolute;
  inset: 5px;
  border-radius: 2px;
  background: #12b8a6;
  content: "";
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-block: 4px 14px;
}

.dashboard-chart-card,
.dashboard-operation-panel,
.dashboard-table-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
}

.dashboard-chart-card,
.dashboard-operation-panel {
  padding: 16px;
}

.dashboard-chart-wide {
  grid-column: span 2;
}

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

.dashboard-card-head h2 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-card-head > span {
  color: #64748b;
  font-size: 0.72rem;
}

.chart-canvas-wrap {
  position: relative;
  height: 250px;
}

.dashboard-chart-wide .chart-canvas-wrap {
  height: 280px;
}

.dashboard-empty,
.empty-cell {
  padding: 30px 14px;
  color: #64748b;
  text-align: center;
}

.dashboard-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 14px;
  padding-bottom: 14px;
}

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

.attention-item {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-left: 3px solid #f59e0b;
  background: #fff9e8;
  color: var(--ink);
  text-decoration: none;
}

.attention-item.severity-danger {
  border-left-color: #ef4444;
  background: #fff1f2;
}

.attention-item span {
  color: #526075;
  font-size: 0.78rem;
}

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

.quick-action-grid a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  color: #17345f;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.quick-action-grid a:hover {
  border-color: #155eef;
  background: #eff6ff;
}

.dashboard-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 48px;
}

.dashboard-table-panel .dashboard-card-head {
  padding: 15px 16px 0;
}

.dashboard-table-wide {
  grid-column: span 2;
}

.dashboard-table {
  table-layout: auto;
}

.dashboard-table td,
.dashboard-table th {
  white-space: nowrap;
}

.dashboard-table .truncate,
.admin-operations-table .truncate {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-secondary {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.76rem;
}

.status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 800;
}

.status-paid,
.status-active,
.status-sent {
  background: #dcfce7;
  color: #166534;
}

.status-failed,
.status-deadletter,
.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.status-pending,
.status-processing,
.status-awaitingpayment {
  background: #fef3c7;
  color: #92400e;
}

.status-refunded {
  background: #ede9fe;
  color: #5b21b6;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  padding-top: 8px;
}

.admin-settings-aside {
  display: grid;
  gap: 16px;
}

.settings-checks {
  display: grid;
  gap: 8px;
}

.check-row {
  display: flex !important;
  min-width: 0 !important;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

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

.danger-zone {
  border-left: 3px solid #ef4444;
}

.system-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}

.system-status-item {
  min-width: 0;
  padding: 18px;
  background: #fff;
}

.system-status-item span,
.system-status-item strong {
  display: block;
}

.system-status-item span {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.system-status-item strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-operations-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-filters {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .admin-dashboard-head,
  .dashboard-filters,
  .admin-kpi-grid,
  .dashboard-chart-grid,
  .dashboard-operations-grid,
  .dashboard-table-grid,
  .admin-page-heading {
    width: min(100% - 32px, 1380px);
  }

  .admin-dashboard-head,
  .admin-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-filters,
  .dashboard-custom-dates {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-filters label,
  .dashboard-filters .btn {
    width: 100%;
  }

  .admin-kpi-grid,
  .dashboard-chart-grid,
  .dashboard-operations-grid,
  .dashboard-table-grid,
  .attention-list,
  .system-status-grid,
  .field-grid.three {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-wide,
  .dashboard-table-wide {
    grid-column: auto;
  }

  .chart-canvas-wrap,
  .dashboard-chart-wide .chart-canvas-wrap {
    height: 230px;
  }

  .admin-user-menu {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-card,
  .pulse-card {
    animation: none;
    transition: none;
  }

  .animated-card:hover {
    transform: none;
  }
}

.landing-hero,
.landing-section,
.outcome-strip,
.final-cta {
  width: min(1200px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 40px;
  align-items: center;
  padding: 64px 0 30px;
}

.landing-hero h1 {
  max-width: 720px;
  font-size: 3.45rem;
  line-height: 1.03;
}

.landing-hero .lede {
  max-width: 700px;
  color: #435168;
  font-size: 1.16rem;
  line-height: 1.7;
}

.landing-hero .button-row {
  margin-top: 24px;
}

.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-labels span,
.provider-row span {
  padding: 8px 10px;
  border: 1px solid #cdd9e6;
  border-radius: var(--radius);
  background: #fff;
  color: #273449;
  font-size: 0.9rem;
  font-weight: 780;
}

.landing-hero__visual {
  min-width: 0;
}

.hero-widget-showcase {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 430px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #eef5fc);
}

.hero-widget-phone,
.hero-widget-settings {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: top center;
}

.hero-widget-phone {
  justify-self: center;
  max-width: 220px;
  filter: drop-shadow(0 18px 24px rgba(7, 17, 31, 0.14));
}

.hero-widget-settings {
  border: 1px solid #d7e1ec;
  border-radius: var(--radius);
  background: #fff;
}

.demo-window {
  overflow: hidden;
  border: 1px solid #c9d6e4;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.demo-window__bar {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f7fafc;
}

.demo-window__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aabc0;
}

.hero-dashboard {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 430px;
}

.hero-dashboard__side {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  background: #0d1b2f;
  color: #dce7f6;
}

.hero-dashboard__side strong {
  margin-bottom: 12px;
  color: #fff;
}

.hero-dashboard__side span {
  padding: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.hero-dashboard__main {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #eef5fc);
}

.assistant-card,
.workflow-card,
.delivery-row {
  border: 1px solid #d7e1ec;
  border-radius: var(--radius);
  background: #fff;
}

.assistant-card,
.workflow-card {
  padding: 16px;
}

.assistant-card small,
.workflow-card small {
  color: var(--blue);
  font-weight: 850;
  text-transform: uppercase;
}

.assistant-card p,
.workflow-card p {
  margin: 8px 0;
  color: #1f2a3d;
}

.assistant-card strong {
  color: #0f513e;
}

.workflow-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workflow-card span,
.client-preview span {
  padding: 6px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #164aa6;
  font-size: 0.82rem;
  font-weight: 780;
}

.delivery-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.delivery-row span {
  color: #526176;
}

.outcome-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #cfdae7;
  border-radius: var(--radius);
  background: #cfdae7;
  box-shadow: var(--shadow-soft);
}

.outcome-strip div {
  min-height: 104px;
  padding: 18px;
  background: #fff;
}

.outcome-strip strong {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.2;
}

.outcome-strip span {
  display: block;
  margin-top: 6px;
  color: #5b6b80;
  font-weight: 700;
}

.landing-section {
  padding: 58px 0;
}

.section-kicker {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-kicker h2,
.final-cta h2 {
  font-size: 2.05rem;
  line-height: 1.14;
}

.section-kicker p:not(.eyebrow) {
  font-size: 1.04rem;
  line-height: 1.7;
}

.problem-grid,
.three-outcomes,
.demo-gallery,
.workflow-board,
.use-case-list,
.automation-grid,
.trust-grid,
.pricing-preview-grid {
  display: grid;
  gap: 14px;
}

.problem-grid,
.workflow-board,
.automation-grid,
.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.use-case-list,
.landing-faqs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.problem-grid article,
.three-outcomes article,
.demo-tile,
.workflow-board article,
.use-case-list article,
.automation-grid article,
.trust-grid article,
.landing-faqs article {
  border: 1px solid #d4dfeb;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 1px rgba(7, 17, 31, 0.03);
}

.problem-grid article,
.three-outcomes article,
.workflow-board article,
.use-case-list article,
.automation-grid article,
.trust-grid article,
.landing-faqs article {
  padding: 18px;
}

.three-outcomes article {
  position: relative;
  overflow: hidden;
}

.three-outcomes article::before,
.tax-workflow::before,
.final-cta::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1457d9, #11856f);
  content: "";
}

.three-outcomes span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
}

.demo-tile {
  overflow: hidden;
}

.demo-tile h3,
.demo-tile p {
  padding-right: 14px;
  padding-left: 14px;
}

.demo-tile h3 {
  margin-top: 14px;
}

.demo-tile p {
  min-height: 70px;
  margin-bottom: 16px;
}

.demo-mini-screen {
  min-height: 160px;
  background: linear-gradient(180deg, #f8fbff, #edf4fb);
}

.demo-lines {
  display: grid;
  gap: 9px;
  padding: 18px 16px 8px;
}

.demo-lines span {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: #cbd8e7;
}

.demo-lines span:nth-child(1) {
  width: 68%;
  background: #1457d9;
}

.demo-lines span:nth-child(2) {
  width: 92%;
}

.demo-lines span:nth-child(3) {
  width: 48%;
}

.demo-meter {
  width: calc(100% - 32px);
  height: 42px;
  margin: 8px 16px 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(20, 87, 217, 0.9) 0 56%, rgba(17, 133, 111, 0.78) 56% 78%, #dbe6f2 78% 100%);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  min-height: 190px;
  padding: 16px;
  border: 1px solid #d4dfeb;
  border-radius: var(--radius);
  background: #fff;
}

.step-list span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 8px;
  background: #0d1b2f;
  color: #fff;
  font-weight: 850;
}

.step-list strong,
.workflow-board strong,
.automation-grid strong,
.trust-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.tax-workflow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #cbd9e8;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #eff6ff);
  box-shadow: var(--shadow-soft);
}

.workflow-copy {
  align-self: center;
}

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

.workflow-board article,
.automation-grid article,
.trust-grid article {
  min-height: 116px;
}

.workflow-board span,
.automation-grid span,
.trust-grid span {
  color: #58677d;
}

.alternating-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.alternating-section.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.product-shot .demo-window {
  min-height: 280px;
}

.chat-preview,
.client-preview {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.chat-preview p {
  margin: 0;
  padding: 13px;
  border-radius: var(--radius);
  background: #eff6ff;
  color: #263247;
}

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

.client-preview span {
  display: grid;
  min-height: 72px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: #2f3c51;
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--green);
  font-weight: 900;
  content: "+";
}

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

.pricing-note {
  margin-top: 16px;
  color: #475569;
  font-size: 0.98rem;
}

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

.trust-grid article {
  background: #fbfdff;
}

.final-cta {
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  padding: 30px;
  border: 1px solid #cbd9e8;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.mobile-sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  box-shadow: var(--shadow);
}

.mobile-sticky-cta:hover,
.mobile-sticky-cta:focus {
  background: var(--blue-2);
  color: #fff;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.mobile-sticky-cta:focus-visible {
  outline: 3px solid rgba(20, 87, 217, 0.28);
  outline-offset: 3px;
}

@media (max-width: 1160px) {
  .landing-hero,
  .tax-workflow,
  .alternating-section {
    grid-template-columns: 1fr;
  }

  .landing-hero__visual {
    order: -1;
  }

  .problem-grid,
  .demo-gallery,
  .automation-grid,
  .trust-grid,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .landing-hero,
  .landing-section,
  .outcome-strip,
  .final-cta {
    width: min(100% - 28px, 1200px);
  }

  .landing-hero {
    gap: 24px;
    padding-top: 34px;
  }

  .landing-hero h1 {
    font-size: 2.28rem;
  }

  .landing-hero .lede {
    font-size: 1rem;
  }

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

  .hero-widget-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-widget-phone,
  .hero-widget-settings {
    max-height: none;
  }

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

  .hero-dashboard__side strong {
    grid-column: 1 / -1;
  }

  .outcome-strip,
  .problem-grid,
  .three-outcomes,
  .demo-gallery,
  .workflow-board,
  .use-case-list,
  .automation-grid,
  .trust-grid,
  .pricing-preview-grid,
  .step-list,
  .landing-faqs,
  .client-preview {
    grid-template-columns: 1fr;
  }

  .tax-workflow,
  .final-cta {
    padding: 22px;
  }

  .section-kicker h2,
  .final-cta h2 {
    font-size: 1.72rem;
  }

  .mobile-sticky-cta.mobile-cta-visible {
    display: flex;
  }
}

.landing-section p,
.landing-section li,
.final-cta p {
  max-width: 65ch;
}

.problem-grid,
.screenshot-gallery,
.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.problem-grid article p,
.three-outcomes article p,
.workflow-board span,
.trust-grid span,
.landing-faqs p,
.price-card li,
.screenshot-card p,
.screenshot-card figcaption span {
  color: #3f4f64;
  font-size: 0.94rem;
  line-height: 1.58;
}

.demo-section {
  padding-top: 46px;
}

.live-demo-grid,
.workflow-example-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.live-demo-chat,
.guided-tour,
.workflow-example-card {
  border: 1px solid #cbd9e8;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.live-demo-chat {
  overflow: hidden;
}

.demo-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #d9e4ef;
  background: #0d1b2f;
  color: #eaf2ff;
  font-weight: 800;
}

.demo-status-bar strong {
  color: #b7f3d4;
  font-size: 0.9rem;
}

.demo-conversation {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 16px;
  background: #f8fbff;
}

.demo-conversation p {
  max-width: 64ch;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d9e4ef;
  border-radius: var(--radius);
  background: #fff;
  color: #223047;
}

.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid #d9e4ef;
}

.suggested-questions button {
  min-height: 40px;
  border: 1px solid #b9c7d8;
  border-radius: var(--radius);
  background: #fff;
  color: #17325c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.suggested-questions button {
  padding: 8px 10px;
}

.suggested-questions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.guided-tour {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.guided-tour ol,
.workflow-example-grid ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guided-tour li,
.workflow-example-grid li {
  color: #2d3b50;
}

.alert-result {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #badbcc;
  border-radius: var(--radius);
  background: #effaf4;
}

.alert-result small,
.workflow-example-card small {
  color: #0f6c54;
  font-weight: 850;
  text-transform: uppercase;
}

.alert-result strong {
  color: #0f2f24;
}

.alert-result span {
  color: #315244;
}

.screenshot-gallery {
  display: grid;
  gap: 14px;
}

.screenshot-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #d4dfeb;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 1px rgba(7, 17, 31, 0.03);
}

.screenshot-card figure {
  display: grid;
  margin: 0;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  box-sizing: border-box;
  padding: 10px;
  object-fit: contain;
  object-position: top center;
  border-bottom: 1px solid #dbe5ef;
  background: #f4f7fb;
}

.screenshot-card figcaption {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.screenshot-card figcaption strong,
.screenshot-card h3 {
  color: var(--ink);
  font-size: 1rem;
}

.screenshot-card--placeholder {
  padding: 14px;
  border-style: dashed;
  background: #fbfdff;
}

.screenshot-placeholder {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed #aebed1;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #f1f6fb, #f1f6fb 10px, #e8f0f8 10px, #e8f0f8 20px);
  color: #39516d;
  font-weight: 850;
}

.screenshot-card--placeholder small {
  color: #7a4b00;
  font-weight: 800;
}

.feature-section .screenshot-card {
  min-height: 100%;
}

.product-shot .screenshot-card img {
  aspect-ratio: 16 / 9;
}

.workflow-example {
  padding-top: 42px;
}

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

.workflow-example-grid li {
  min-height: 84px;
  padding: 14px;
  border: 1px solid #d4dfeb;
  border-radius: var(--radius);
  background: #fff;
  font-weight: 760;
}

.workflow-example-grid li span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  place-items: center;
  border-radius: 7px;
  background: #0d1b2f;
  color: #fff;
  font-size: 0.82rem;
}

.workflow-example-card {
  padding: 18px;
}

.workflow-example-card dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.workflow-example-card div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.workflow-example-card dt {
  color: #53657a;
  font-weight: 760;
}

.workflow-example-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  text-align: right;
}

.pricing-preview .price-card .clean-list {
  gap: 10px;
}

.pricing-preview .price-card li strong {
  color: var(--ink);
}

@media (max-width: 1160px) {
  .problem-grid,
  .screenshot-gallery,
  .trust-grid,
  .workflow-example-grid ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-demo-grid,
  .workflow-example-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .problem-grid,
  .screenshot-gallery,
  .trust-grid,
  .workflow-example-grid ol {
    grid-template-columns: 1fr;
  }

  .feature-section .feature-copy {
    order: 1;
  }

  .feature-section .product-shot {
    order: 2;
  }

  .demo-conversation {
    min-height: 150px;
  }

  .workflow-example-card div {
    display: grid;
  }

  .workflow-example-card dd {
    text-align: left;
  }
}

/* Final public landing polish */
.landing-hero,
.landing-section,
.outcome-strip,
.final-cta {
  width: min(1180px, calc(100% - 48px));
}

.demo-section {
  width: min(1280px, calc(100% - 48px));
}

.landing-section {
  box-sizing: border-box;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 54px 24px;
}

.landing-section:nth-of-type(odd) {
  background: #ffffff;
}

.landing-section:nth-of-type(even) {
  background: #f3f8ff;
}

.how-section,
.workflow-example,
.trust-section {
  background: #f7f8fa;
}

.section-kicker {
  max-width: 760px;
}

.section-kicker p:not(.eyebrow),
.landing-section p,
.landing-section li,
.final-cta p {
  max-width: 65ch;
}

.hero-product-composition {
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "chat knowledge reminder"
    "chat delivery delivery";
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #eef5fc);
}

.hero-composition-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 17, 31, 0.08);
}

.hero-composition-card img {
  width: 100%;
  max-height: 168px;
  object-fit: contain;
  object-position: top center;
}

.hero-composition-card figcaption {
  color: #1f2f48;
  font-size: 0.88rem;
  font-weight: 850;
}

.hero-composition-card--chat {
  grid-area: chat;
  align-content: center;
}

.hero-composition-card--chat img {
  max-height: 390px;
}

.hero-product-composition .hero-composition-card:nth-child(2) {
  grid-area: knowledge;
}

.hero-product-composition .hero-composition-card:nth-child(3) {
  grid-area: reminder;
}

.hero-product-composition .hero-composition-card:nth-child(4) {
  grid-area: delivery;
}

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

.problem-outcome-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.problem-outcome-grid small,
.problem-outcome-grid strong {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.problem-outcome-grid p {
  margin: 0;
}

.product-tour-showcase {
  display: block;
}

.product-tour-action {
  justify-self: start;
  grid-column: 1 / -1;
}

.screenshot-card {
  min-width: 0;
}

.screenshot-card img {
  min-height: 230px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card .btn {
  margin-top: auto;
}

.price-card--popular {
  border-color: rgba(20, 87, 217, 0.45);
  box-shadow: 0 18px 36px rgba(20, 87, 217, 0.13);
}

.popular-badge {
  align-self: start;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f2ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-period {
  display: block;
  margin: -4px 0 14px;
  color: #1f3f70;
  font-size: 0.96rem;
}

.pricing-comparison {
  margin-top: 18px;
}

.pricing-comparison td,
.pricing-comparison th {
  vertical-align: top;
}

.faq-accordion {
  display: grid;
  gap: 10px;
}

.faq-accordion details {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 1px rgba(7, 17, 31, 0.05);
}

.faq-accordion summary {
  min-height: 48px;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.faq-accordion summary:focus-visible {
  outline: 3px solid rgba(20, 87, 217, 0.28);
  outline-offset: 3px;
}

.faq-accordion p {
  margin: 0;
  padding: 0 16px 16px;
}

.final-cta {
  padding: 42px 32px;
  background:
    linear-gradient(90deg, rgba(20, 87, 217, 0.08), rgba(17, 133, 111, 0.08)),
    #ffffff;
}

.final-cta h2 {
  font-size: 2.22rem;
}

@media (max-width: 1160px) {
  .hero-product-composition,
  .product-tour-showcase {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .hero-composition-card,
  .hero-composition-card--chat,
  .hero-product-composition .hero-composition-card:nth-child(2),
  .hero-product-composition .hero-composition-card:nth-child(3),
  .hero-product-composition .hero-composition-card:nth-child(4) {
    grid-area: auto;
  }

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

@media (max-width: 760px) {
  .landing-hero,
  .landing-section,
  .outcome-strip,
  .final-cta,
  .demo-section {
    width: min(100% - 32px, 1280px);
  }

  .landing-section {
    padding: 42px 16px;
  }

  .hero-product-composition,
  .problem-outcome-grid {
    grid-template-columns: 1fr;
  }

  .hero-composition-card img,
  .hero-composition-card--chat img,
  .screenshot-card img {
    min-height: 0;
    max-height: none;
  }

  .final-cta {
    padding: 32px 20px;
  }

  .final-cta h2 {
    font-size: 1.86rem;
  }
}

/* Screenshot gallery slider and overlay cards */
.product-tour-showcase {
  display: block;
}

.product-gallery-slider {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.product-gallery-slider:focus-visible {
  outline: 3px solid rgba(20, 87, 217, 0.35);
  outline-offset: 5px;
}

.product-gallery-slider__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  background: #07111f;
  box-shadow: 0 22px 52px rgba(7, 17, 31, 0.18);
}

.product-gallery-slider__track {
  display: flex;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.product-gallery-slide {
  position: relative;
  display: block;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(20, 87, 217, 0.18), transparent 34%),
    #eef4fb;
}

.product-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 16px;
  object-fit: contain;
  object-position: top center;
}

.product-gallery-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.06), rgba(7, 17, 31, 0.08) 38%, rgba(7, 17, 31, 0.58) 100%),
    linear-gradient(90deg, rgba(7, 17, 31, 0.58), transparent 52%);
  pointer-events: none;
}

.product-gallery-slide__overlay {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 6px;
  width: min(560px, calc(100% - 36px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 17, 31, 0.72);
  color: #fff;
  box-shadow: 0 16px 32px rgba(7, 17, 31, 0.24);
  backdrop-filter: blur(10px);
}

.product-gallery-slide.is-active .product-gallery-slide__overlay {
  animation: galleryOverlayIn 460ms ease both;
}

.product-gallery-slide__overlay small {
  color: #b7f3d4;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.product-gallery-slide__overlay h3,
.product-gallery-slide__overlay p {
  max-width: 65ch;
  margin: 0;
}

.product-gallery-slide__overlay h3 {
  color: #fff;
  font-size: clamp(1.26rem, 2vw, 1.78rem);
}

.product-gallery-slide__overlay p {
  color: #eaf2ff;
  font-size: 0.98rem;
  line-height: 1.5;
}

.product-gallery-slider__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.product-gallery-slider__controls button {
  min-height: 42px;
  border: 1px solid #b9c7d8;
  border-radius: var(--radius);
  background: #fff;
  color: #17325c;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 850;
  cursor: pointer;
}

.product-gallery-slider__controls > button {
  padding: 8px 13px;
}

.product-gallery-slider__controls button:hover,
.product-gallery-slider__controls button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 87, 217, 0.15);
}

.product-gallery-slider__dots {
  display: flex;
  flex: 1 1 180px;
  gap: 8px;
  justify-content: center;
}

.product-gallery-slider__dots button {
  width: 34px;
  min-height: 12px;
  padding: 0;
  border-radius: 999px;
  background: #d3dfec;
}

.product-gallery-slider__dots button[aria-current="true"] {
  border-color: var(--green);
  background: var(--green);
}

.product-gallery-slider .product-tour-action {
  justify-self: start;
}

.product-gallery-slider--full {
  max-width: 1280px;
  margin-inline: auto;
}

.screenshot-card {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.screenshot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(7, 17, 31, 0.11);
}

.screenshot-card figure {
  position: relative;
  min-height: 100%;
}

.screenshot-card img {
  min-height: 260px;
  border-bottom: 0;
}

.screenshot-card figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 17, 31, 0.72);
  color: #fff;
  backdrop-filter: blur(9px);
}

.screenshot-card__shade {
  position: absolute;
  inset: -160px -16px -16px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.5));
  pointer-events: none;
}

.screenshot-card figcaption strong,
.screenshot-card figcaption span {
  color: #fff;
}

.screenshot-card figcaption span:not(.screenshot-card__shade) {
  color: #dce8f6;
}

.screenshot-card__link {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: transparent;
  text-indent: -999px;
}

@keyframes galleryOverlayIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .product-gallery-slider__track,
  .screenshot-card {
    transition: none;
  }

  .product-gallery-slide.is-active .product-gallery-slide__overlay {
    animation: none;
  }
}

@media (max-width: 760px) {
  .product-gallery-slide {
    min-height: 420px;
    aspect-ratio: auto;
  }

  .product-gallery-slide img {
    padding: 10px;
  }

  .product-gallery-slide__shade {
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.02), rgba(7, 17, 31, 0.12) 35%, rgba(7, 17, 31, 0.72) 100%);
  }

  .product-gallery-slide__overlay {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    padding: 13px 14px;
  }

  .product-gallery-slider__controls {
    justify-content: center;
  }

  .product-gallery-slider__dots {
    order: 3;
    flex-basis: 100%;
  }

  .screenshot-card img {
    min-height: 280px;
  }
}
