:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #172033;
  background: #f5f7f8;
  font-synthesis: none;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e0e4;
  --green: #137c4b;
  --green-dark: #0d6039;
  --green-soft: #e7f5ed;
  --amber: #bd7417;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f5f7f8;
}

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  min-height: 66px;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(217, 224, 228, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 15px;
  font-weight: 750;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #475467;
  font-size: 14px;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.site-header > .button,
.site-header > .secure-label {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button-primary {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

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

.button-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: #cbd5da;
}

.button-ghost {
  color: #ffffff;
  background: rgba(18, 28, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
}

.button-small {
  min-height: 36px;
  padding: 0 15px;
  font-size: 13px;
}

.button-wide {
  width: 100%;
}

.hero {
  position: relative;
  min-height: min(700px, calc(100vh - 66px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #172033;
  background-image: url("/assets/product-workspace.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 28, 0.66);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 72px;
  color: #ffffff;
}

.eyebrow {
  color: #55c78b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 62px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin: 24px 0 0;
  color: #e2e8ee;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  color: #d4dde4;
  font-size: 13px;
}

.hero-proof span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #55c78b;
}

.section {
  padding: 92px max(24px, calc((100vw - 1180px) / 2));
}

.section-light {
  background: #ffffff;
}

.section-ink {
  color: #ffffff;
  background: #172033;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 42px;
}

.section-heading h2,
.trust-band h2,
.page-heading h1 {
  margin: 10px 0 0;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading > p,
.trust-band > p,
.page-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-heading-inverse > p {
  color: #b9c4ce;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-item {
  min-height: 235px;
  padding: 32px 26px;
  border-right: 1px solid var(--line);
}

.capability-item:last-child {
  border-right: 0;
}

.capability-index {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.capability-item h3 {
  margin: 46px 0 12px;
  font-size: 19px;
}

.capability-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid #394455;
  list-style: none;
  counter-reset: workflow;
}

.workflow-list li {
  min-height: 190px;
  padding: 32px 24px;
  border-right: 1px solid #394455;
  counter-increment: workflow;
}

.workflow-list li:last-child {
  border-right: 0;
}

.workflow-list li::before {
  content: "0" counter(workflow);
  display: block;
  margin-bottom: 36px;
  color: #55c78b;
  font-size: 12px;
  font-weight: 800;
}

.workflow-list strong,
.workflow-list span {
  display: block;
}

.workflow-list span {
  margin-top: 10px;
  color: #aeb9c4;
  font-size: 13px;
  line-height: 1.65;
}

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

.plan-card {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.plan-card-featured {
  border-color: var(--green);
  box-shadow: inset 0 4px 0 var(--green);
}

.plan-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.plan-card h3 {
  margin: 16px 0 6px;
  font-size: 21px;
}

.plan-card > p {
  min-height: 50px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.plan-price {
  margin: 26px 0 20px;
  color: var(--ink);
}

.plan-price strong {
  font-size: 34px;
  letter-spacing: 0;
}

.plan-price span {
  color: var(--muted);
  font-size: 13px;
}

.plan-details {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  color: #475467;
  font-size: 13px;
  list-style: none;
}

.plan-details li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 800;
}

.plan-card .button {
  width: 100%;
  margin-top: auto;
}

.plan-card-selectable {
  cursor: pointer;
}

.plan-card-selectable:hover,
.plan-card-selected {
  border-color: var(--green);
}

.plan-card-selected {
  box-shadow: inset 0 0 0 1px var(--green);
}

.plan-choice {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 20px;
  height: 20px;
  border: 2px solid #aab5bd;
  border-radius: 50%;
}

.plan-card-selected .plan-choice {
  border: 6px solid var(--green);
}

.section-action {
  margin-top: 30px;
  text-align: center;
}

.loading-line {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 80px;
  padding: 72px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid #c8d0d5;
  background: #edf1f3;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 110px;
  padding: 24px max(24px, calc((100vw - 1180px) / 2));
  color: #657180;
  background: #111925;
  font-size: 13px;
}

.site-footer > :last-child {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.brand-footer {
  color: #ffffff;
}

.brand-footer img {
  width: 32px;
  height: 32px;
}

.subpage-body {
  background: #f4f6f7;
}

.secure-label {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.purchase-main,
.order-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.page-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.page-heading h1 {
  font-size: 42px;
}

.page-heading p {
  margin-top: 16px;
}

.page-heading-compact {
  margin-bottom: 32px;
}

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

.section-title-row h2,
.checkout-copy h2 {
  margin: 0;
  font-size: 22px;
}

.section-title-row span {
  color: var(--muted);
  font-size: 13px;
}

.pricing-grid-purchase .plan-card {
  min-height: 285px;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 56px;
  align-items: start;
  margin-top: 72px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.checkout-copy h2 {
  margin-top: 10px;
}

.checkout-copy > p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.checkout-summary {
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.checkout-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-summary dt {
  color: var(--muted);
}

.checkout-summary dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}

.checkout-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.form-field {
  margin-bottom: 20px;
}

.form-field label,
.order-search > label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.form-field label span {
  color: var(--muted);
  font-weight: 400;
}

.form-field input,
.order-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5da;
  border-radius: 5px;
  outline: none;
  background: #ffffff;
}

.form-field input:focus,
.order-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 124, 75, 0.12);
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 22px;
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
}

.consent-row input {
  margin-top: 4px;
}

.form-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.6;
}

.form-message-error {
  color: #932b25;
  border: 1px solid #efc4c1;
  background: #fff0ef;
}

.form-footnote {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.compact-footer {
  min-height: 80px;
  grid-template-columns: 1fr 1fr;
}

.order-main {
  max-width: 860px;
  min-height: calc(100vh - 146px);
}

.order-search {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.order-search > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.order-search > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

#order-message {
  margin-top: 18px;
}

.order-result {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.order-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
}

.order-result-header h2 {
  margin: 10px 0 0;
  font-size: 21px;
}

.order-result-header > strong {
  font-size: 25px;
}

.status-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 4px;
  color: #8a5410;
  background: #fff2d8;
  font-size: 12px;
  font-weight: 800;
}

.status-pill-success {
  color: #0d6039;
  background: var(--green-soft);
}

.status-pill-cancelled {
  color: #932b25;
  background: #fff0ef;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
}

.order-meta > div {
  min-width: 0;
  padding-right: 20px;
}

.order-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.order-meta dd {
  overflow-wrap: anywhere;
  margin: 7px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.status-panel {
  padding: 30px;
}

.status-panel h3 {
  margin: 0;
  font-size: 18px;
}

.status-panel p {
  margin: 10px 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.status-panel-success {
  background: #f3faf6;
}

.status-panel-cancelled {
  background: #fff8f7;
}

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

.activation-code-row code {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  border: 1px dashed #9ebdab;
  border-radius: 5px;
  background: #ffffff;
  color: #0d6039;
  font-size: 16px;
  font-weight: 800;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #eef1f3;
  text-align: center;
}

.not-found-page main {
  max-width: 460px;
}

.not-found-page img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.not-found-page span {
  display: block;
  margin-top: 24px;
  color: var(--green);
  font-weight: 800;
}

.not-found-page h1 {
  margin: 8px 0;
  font-size: 32px;
}

.not-found-page p {
  margin: 0 0 24px;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

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

  .section-heading,
  .trust-band,
  .checkout-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .capability-item:nth-child(2) {
    border-right: 0;
  }

  .capability-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .workflow-list li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #394455;
  }

  .workflow-list li:last-child {
    border-bottom: 0;
  }

  .workflow-list li::before {
    margin-bottom: 18px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 60px;
    padding: 8px 16px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .site-header > .button {
    min-height: 34px;
    padding: 0 12px;
  }

  .secure-label {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 60px);
  }

  .hero-content {
    padding: 72px 0 42px;
  }

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

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

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

  .hero-proof {
    gap: 12px;
    flex-direction: column;
    margin-top: 32px;
  }

  .section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .trust-band h2,
  .page-heading h1 {
    font-size: 30px;
  }

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

  .capability-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-item:last-child {
    border-bottom: 0;
  }

  .capability-item h3 {
    margin-top: 24px;
  }

  .trust-band {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .site-footer,
  .compact-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer > :last-child {
    justify-content: flex-start;
  }

  .purchase-main,
  .order-main {
    width: min(100% - 28px, 1180px);
    padding-top: 48px;
  }

  .section-title-row {
    display: block;
  }

  .section-title-row span {
    display: block;
    margin-top: 8px;
  }

  .checkout-section {
    margin-top: 52px;
  }

  .checkout-form {
    padding: 22px 18px;
  }

  .form-row,
  .order-search > div,
  .activation-code-row {
    grid-template-columns: 1fr;
  }

  .order-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .order-result-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
