:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #5e6974;
  --line: #dfe4e0;
  --teal: #0f7f86;
  --teal-dark: #0a5c61;
  --amber: #d8891d;
  --green: #3f8b59;
  --coral: #c85d4d;
  --blue: #376fa6;
  --shadow: 0 22px 60px rgba(23, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(246, 247, 242, 0.92);
  border-bottom: 1px solid rgba(223, 228, 224, 0.85);
  backdrop-filter: blur(14px);
}

.site-header.compact {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--teal-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 8vw, 92px) clamp(18px, 5vw, 64px) 48px;
  min-height: 620px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.hero-text,
.section-heading p,
.split p,
.payment-note p,
.muted {
  color: var(--muted);
}

.hero-text {
  max-width: 700px;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

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

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

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

.btn.small {
  min-height: 38px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.btn.full {
  width: 100%;
}

.hero-panel,
.checkout-card,
.pay-panel,
.product-card,
.payment-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 26px;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #3eb489;
  box-shadow: 0 0 0 5px rgba(62, 180, 137, 0.16);
}

.flow-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  font-weight: 800;
}

.flow-list span {
  color: var(--teal);
  font-size: 13px;
}

.section {
  padding: 34px clamp(18px, 5vw, 64px) 52px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 64px) 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 14px 40px rgba(23, 32, 42, 0.07);
}

.trust-strip div {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 20px;
  background: #fff;
}

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

.trust-strip strong {
  font-size: 17px;
}

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

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

.product-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 22px;
}

.product-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.accent-teal .product-icon {
  background: var(--teal);
}

.accent-amber .product-icon {
  background: var(--amber);
}

.accent-green .product-icon {
  background: var(--green);
}

.accent-coral .product-icon {
  background: var(--coral);
}

.accent-blue .product-icon {
  background: var(--blue);
}

.accent-ink .product-icon {
  background: var(--ink);
}

.product-body {
  flex: 1;
}

.product-body p {
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0f3ee;
  color: #52606b;
  font-size: 12px;
  font-weight: 800;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-footer strong {
  font-size: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.info-list span {
  color: var(--muted);
}

.payment-note {
  margin: 0 clamp(18px, 5vw, 64px) 54px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

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

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: grid;
  gap: 6px;
  text-align: right;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 5vw, 64px);
}

.checkout-card,
.pay-panel {
  padding: 24px;
}

.pay-panel {
  position: sticky;
  top: 24px;
}

.selected-product {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.selected-product strong {
  font-size: 22px;
}

.order-form {
  display: grid;
  gap: 16px;
}

.order-form label,
.order-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.order-form fieldset {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-form legend {
  padding: 0 6px;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: 3px solid rgba(15, 127, 134, 0.16);
  border-color: var(--teal);
}

.radio-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
  font-weight: 700 !important;
}

.radio-row input {
  width: auto;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line span {
  color: var(--muted);
}

.summary-line strong {
  text-align: right;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.qr-placeholder {
  display: grid;
  min-height: 180px;
  margin: 18px 0;
  place-items: center;
  border: 1px dashed #aeb8b2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 127, 134, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 127, 134, 0.08) 1px, transparent 1px),
    #fbfcf8;
  background-size: 18px 18px;
  text-align: center;
}

.qr-placeholder img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  border-radius: 8px;
  background: #fff;
}

.qr-placeholder span,
.qr-placeholder strong {
  display: block;
}

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

.qr-placeholder strong {
  font-size: 20px;
}

.mini-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .pay-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .btn.small {
    width: 100%;
  }

  .footer-links {
    text-align: left;
  }
}
