:root {
  --ink: #07100f;
  --muted: #66737d;
  --line: #dce5e1;
  --paper: #f4f7ef;
  --white: #ffffff;
  --lime: #c8ff4d;
  --blue: #3157ff;
  --green: #0d7c5f;
  --coral: #ff6f4f;
  --amber: #f3b840;
  --shadow: 0 24px 72px rgba(7, 16, 15, 0.15);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 78px;
  background:
    linear-gradient(rgba(7, 16, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 16, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.h5-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-weight: 950;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--lime) 0 34%, transparent 35%),
    var(--ink);
  color: var(--white);
}

.header-cta,
.button,
.apply-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 0 15px;
  font-weight: 900;
  text-align: center;
}

.header-cta {
  flex: 0 0 auto;
}

.button.ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.hero,
.section,
.checkout-layout {
  padding: 44px 20px;
}

.hero {
  padding-top: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: 42px;
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: 30px;
  line-height: 1.08;
}

h3 {
  line-height: 1.18;
}

.lead,
.section > p,
.audit-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions,
.audit-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 26px 0;
}

.url-chip {
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.url-chip span {
  color: var(--ink);
  font-weight: 850;
}

.commerce-preview {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  border: 10px solid var(--ink);
  border-radius: 34px;
  background: #f8faf7;
  box-shadow: var(--shadow);
  padding: 16px;
}

.preview-top {
  min-height: 150px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(200, 255, 77, 0.96), rgba(49, 87, 255, 0.78)),
    var(--blue);
  padding: 20px;
  color: var(--ink);
}

.preview-top span,
.preview-pay span,
.price-panel span,
.order-summary span {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.preview-top b {
  display: block;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1;
}

.preview-grid,
.feature-grid,
.plans,
.steps,
.checklist {
  display: grid;
  gap: 12px;
}

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

.preview-grid article,
.preview-pay,
.feature-grid article,
.plans article,
.steps li,
.service-card,
.scenario-screen,
.scenario-copy,
.order-summary,
.checklist article,
.price-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.preview-grid article {
  padding: 12px;
}

.swatch {
  display: block;
  aspect-ratio: 1.2;
  border-radius: 8px;
  background: var(--coral);
}

.swatch.blue {
  background: var(--blue);
}

.preview-grid strong,
.preview-grid small,
.preview-pay b,
.preview-pay small {
  display: block;
  margin-top: 8px;
}

.preview-grid small,
.preview-pay small {
  color: var(--muted);
  line-height: 1.45;
}

.preview-pay {
  padding: 16px;
}

.trust-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 20px;
  background: var(--ink);
  scrollbar-width: none;
}

.trust-strip::-webkit-scrollbar {
  display: none;
}

.trust-strip span {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

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

.feature-grid article,
.plans article,
.checklist article {
  padding: 18px;
}

.feature-grid span,
.checklist span {
  color: var(--blue);
  font-weight: 950;
}

.feature-grid h3,
.plans strong,
.service-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 22px;
}

.feature-grid p,
.plans p,
.steps small,
.service-card p,
.scenario-copy p,
.checklist p,
.order-summary li,
.price-panel small {
  color: var(--muted);
  line-height: 1.65;
}

.plans span {
  color: var(--green);
  font-weight: 950;
}

.plans a,
.checklist a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
}

.plans .featured {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.plans .featured p {
  color: rgba(255, 255, 255, 0.72);
}

.plans .featured span,
.plans .featured a {
  color: var(--lime);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 12px;
  padding: 16px;
}

.steps span {
  grid-row: span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--lime);
  font-weight: 950;
}

.audit-card {
  background: var(--ink);
  color: var(--white);
}

.audit-card .eyebrow {
  color: var(--lime);
}

.audit-card p {
  color: rgba(255, 255, 255, 0.76);
}

.price-panel {
  margin-top: 24px;
  padding: 18px;
}

.price-panel strong {
  display: block;
  margin: 8px 0;
  font-size: 32px;
}

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

.service-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(13, 124, 95, 0.1);
  color: var(--green);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}

.featured-service {
  border-color: rgba(49, 87, 255, 0.35);
  box-shadow: var(--shadow);
}

.scenario {
  display: grid;
  gap: 16px;
}

.scenario-screen {
  padding: 16px;
}

.screen-bar {
  width: 86px;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #222a32;
}

.screen-banner {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 111, 79, 0.92), rgba(243, 184, 64, 0.9)),
    var(--coral);
  padding: 22px;
  color: var(--white);
  font-size: 24px;
  font-weight: 950;
}

.screen-product {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.screen-product span,
.screen-product small,
.pay-placeholder small {
  display: block;
  color: var(--muted);
}

.screen-product b {
  display: block;
  margin: 6px 0;
}

.scenario-copy {
  padding: 18px;
}

.checkout-layout {
  display: grid;
  gap: 16px;
  padding-top: 0;
}

.apply-form {
  display: grid;
  gap: 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 18px;
}

.apply-form label {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 13px 12px;
  outline: none;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 87, 255, 0.12);
}

.apply-form button:disabled {
  opacity: 0.62;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.order-summary {
  padding: 18px;
}

.order-summary strong {
  display: block;
  margin: 8px 0;
  font-size: 34px;
}

.order-summary ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 18px;
}

.pay-placeholder {
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 14px;
}

.pay-placeholder small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.bottom-bar {
  position: fixed;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px;
  backdrop-filter: blur(16px);
}

.bottom-bar a {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 900;
}

.bottom-bar .primary {
  background: var(--ink);
  color: var(--white);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 86px;
  left: 18px;
  z-index: 40;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-weight: 850;
  line-height: 1.5;
}

@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .h5-header,
  .hero,
  .section,
  .checkout-layout {
    padding-right: calc((100vw - 720px) / 2);
    padding-left: calc((100vw - 720px) / 2);
  }

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

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

  .scenario,
  .checkout-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  }

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

  .apply-form .full,
  .apply-form button,
  .form-note {
    grid-column: 1 / -1;
  }

  .bottom-bar {
    display: none;
  }
}
