:root {
  --ink: #12181f;
  --ink-deep: #0a0e13;
  --steel: #2f5f8a;
  --copper: #c47a3a;
  --blue: #1f6feb;
  --paper: #f3f5f8;
  --text: #182029;
  --muted: #5a6b7a;
  --line: rgba(18, 24, 31, 0.12);
  --font-display: "Sora", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(31, 111, 235, 0.12), transparent 55%),
    radial-gradient(700px 420px at 0% 20%, rgba(196, 122, 58, 0.08), transparent 50%),
    linear-gradient(180deg, #eef2f6 0%, var(--paper) 40%, #e7ebf0 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(20px, 4vw, 48px);
  backdrop-filter: blur(14px);
  background: rgba(243, 245, 248, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 245, 248, 0.94);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.logo-sub {
  margin-left: 0.35em;
  color: var(--steel);
  font-size: 1em;
  font-weight: inherit;
  font-family: inherit;
  letter-spacing: inherit;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-btn:hover {
  background: var(--ink);
  color: #fff;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--copper);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 24px;
  background: rgba(243, 245, 248, 0.97);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 12px 4px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: end;
  padding:
    calc(var(--header-h) + 32px)
    clamp(20px, 4vw, 48px)
    clamp(40px, 8vh, 80px);
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(150deg, #0d1724 0%, #17324d 45%, #1f4d6e 100%);
}

.hero-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  right: 8%;
  top: 18%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: orbitSpin 28s linear infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--copper);
}

.hero-orbit::before {
  width: 10px;
  height: 10px;
  top: 24px;
  left: 50%;
}

.hero-orbit::after {
  width: 8px;
  height: 8px;
  bottom: 48px;
  right: 36px;
  background: #7eb6ff;
}

.hero-device {
  position: absolute;
  right: 12%;
  top: 28%;
  width: min(280px, 36vw);
  aspect-ratio: 3 / 4;
  animation: deviceFloat 6s ease-in-out infinite;
}

.device-body {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(160deg, #24384f, #152232);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.device-screen {
  position: absolute;
  inset: 14% 12% 28%;
  background:
    linear-gradient(180deg, rgba(126, 182, 255, 0.35), transparent 70%),
    #0b1520;
  border-radius: 8px;
}

.device-ports {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 12%;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.25) 0 18px,
    transparent 18px 28px
  );
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(10, 14, 19, 0.55) 70%, rgba(10, 14, 19, 0.9) 100%),
    linear-gradient(90deg, rgba(10, 14, 19, 0.7) 0%, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  color: #f5f7fa;
  animation: riseIn 0.9s ease both;
}

.brand-lockup {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 600;
  max-width: 16ch;
  line-height: 1.3;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 38ch;
  color: rgba(245, 247, 250, 0.76);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

.btn-primary:hover {
  background: #d48945;
}

.btn-ghost {
  border: 1px solid rgba(245, 247, 250, 0.4);
  color: #f5f7fa;
}

.btn-ghost:hover {
  border-color: #f5f7fa;
  background: rgba(245, 247, 250, 0.08);
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-cart {
  flex: 1;
  background: var(--ink);
  color: #fff;
}

.btn-cart:hover {
  background: #243041;
}

.btn-cart.has-qty {
  background: var(--steel);
}

.btn-cart.has-qty:hover {
  background: #3a6f9c;
}

.btn-dec {
  flex: 0 0 46px;
  min-height: 46px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-dec:hover {
  border-color: var(--ink);
  background: rgba(18, 24, 31, 0.04);
}

.btn-dec[hidden] {
  display: none;
}

.section {
  padding: clamp(72px, 11vh, 110px) clamp(20px, 4vw, 48px);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 700;
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
}

.catalog-head {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter.is-active,
.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(18, 24, 31, 0.04);
}

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

.product {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}

.product:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 95, 138, 0.35);
}

.product.is-hidden {
  display: none;
}

.product-visual {
  height: 160px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, #e8eef5, #f7f9fb);
  position: relative;
  overflow: hidden;
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.p-shape {
  width: 72px;
  height: 72px;
  border: 3px solid var(--steel);
  position: relative;
}

.p-shape.sensor {
  border-radius: 50%;
}

.p-shape.sensor::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--copper);
}

.p-shape.gateway {
  border-radius: 10px;
}

.p-shape.gateway::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 16px;
  height: 10px;
  background: var(--blue);
}

.p-shape.gateway::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--steel) 0 8px, transparent 8px 14px);
}

.p-shape.control {
  clip-path: polygon(20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%, 0 50%);
  background: rgba(47, 95, 138, 0.12);
}

.p-shape.meter {
  border-radius: 8px 8px 16px 16px;
}

.p-shape.meter::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 18px;
  bottom: 18px;
  background: linear-gradient(180deg, var(--blue), transparent);
  opacity: 0.55;
}

.product-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--steel);
  font-weight: 700;
}

.product h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.product p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.featured {
  background: var(--ink);
  color: #eef2f6;
}

.featured .eyebrow {
  color: var(--copper);
}

.featured .section-lead {
  color: rgba(238, 242, 246, 0.68);
  margin-bottom: 0;
}

.featured-head {
  margin-bottom: 28px;
}

.bundle-stage {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, var(--max)) 88px;
  justify-content: space-between;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: none;
  padding: 8px clamp(12px, 2.5vw, 28px) 0;
  border-top: 1px solid rgba(238, 242, 246, 0.14);
}

.carousel-btn {
  width: 72px;
  height: 72px;
  justify-self: center;
  border: 1px solid rgba(238, 242, 246, 0.4);
  color: #f5f7fa;
  font-size: 2.6rem;
  line-height: 1;
  background: rgba(245, 247, 250, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.carousel-btn:hover {
  border-color: #f5f7fa;
  background: rgba(245, 247, 250, 0.14);
  transform: scale(1.05);
}

.carousel-btn-prev {
  justify-self: start;
}

.carousel-btn-next {
  justify-self: end;
}

.bundle-carousel {
  overflow: hidden;
  touch-action: pan-y;
  min-width: 0;
  width: 100%;
  justify-self: center;
}

.bundle-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.bundle-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding-top: 24px;
}

.bundle {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.bundle-copy h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.bundle-copy p {
  margin: 0 0 18px;
  color: rgba(238, 242, 246, 0.72);
  max-width: 42ch;
}

.bundle-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.bundle-price span {
  color: rgba(238, 242, 246, 0.55);
}

.bundle-price strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
}

.bundle-visual {
  min-height: 240px;
  position: relative;
  background: linear-gradient(145deg, #1a2b3d, #24384f);
  overflow: hidden;
}

.bundle-visual.theme-b {
  background: linear-gradient(145deg, #1a2f28, #243f38);
}

.bundle-visual.theme-c {
  background: linear-gradient(145deg, #2a2218, #3d3224);
}

.chip {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(31, 111, 235, 0.2);
}

.chip-a {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  left: 18%;
  top: 28%;
  animation: deviceFloat 5s ease-in-out infinite;
}

.chip-b {
  width: 110px;
  height: 70px;
  border-radius: 12px;
  right: 16%;
  top: 22%;
  animation: deviceFloat 6.5s ease-in-out infinite 0.4s;
}

.chip-c {
  width: 70px;
  height: 70px;
  clip-path: polygon(20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%, 0 50%);
  left: 42%;
  bottom: 18%;
  background: rgba(196, 122, 58, 0.28);
  animation: deviceFloat 7s ease-in-out infinite 0.8s;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0 clamp(20px, 4vw, 48px);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(238, 242, 246, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--copper);
  transform: scale(1.2);
}

.service-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-list li:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--line);
}

.service-list li:nth-child(even) {
  padding-left: 32px;
}

.service-list strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

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

.site-footer {
  padding: 40px clamp(20px, 4vw, 48px) 48px;
  background: var(--ink-deep);
  color: rgba(238, 242, 246, 0.68);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #f5f7fa;
  font-family: var(--font-display);
  font-weight: 700;
}

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

.footer-meta {
  margin-top: 16px;
  font-size: 0.88rem;
}

.footer-meta a {
  border-bottom: 1px solid rgba(238, 242, 246, 0.35);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 55;
  width: min(380px, 100%);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 14, 19, 0.4);
}

.cart-backdrop[hidden] {
  display: none;
}

.cart-head,
.cart-foot {
  padding: 20px;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.cart-close {
  color: var(--muted);
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 8px 20px;
  flex: 1;
  overflow: auto;
  min-height: 80px;
}

.cart-form {
  padding: 4px 20px 16px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.cart-ship-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-ship-head a {
  color: var(--steel);
  border-bottom: 1px solid transparent;
}

.cart-ship-head a:hover {
  border-bottom-color: currentColor;
}

.cart-ship-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-ship-empty a {
  color: var(--steel);
  border-bottom: 1px solid currentColor;
}

.cart-ship-card {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.cart-ship-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.cart-ship-top strong {
  font-family: var(--font-display);
}

.cart-ship-top span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-ship-tag {
  font-style: normal;
  color: #c43b2e;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-ship-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item strong {
  font-size: 0.95rem;
}

.cart-item .qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
}

.qty-row button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
}

.cart-empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-display);
}

.cart-checkout {
  width: 100%;
}

.cart-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

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

  .bundle,
  .service-list {
    grid-template-columns: 1fr;
  }

  .bundle-stage {
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    gap: clamp(10px, 2vw, 20px);
    padding-left: 10px;
    padding-right: 10px;
  }

  .carousel-btn {
    width: 64px;
    height: 64px;
    font-size: 2.2rem;
  }

  .service-list li,
  .service-list li:nth-child(odd),
  .service-list li:nth-child(even) {
    padding: 22px 0;
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .cart-label {
    display: none;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-device {
    opacity: 0.35;
    right: -8%;
  }

  .brand-lockup {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 短信登录页 */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h, 72px) + 48px) clamp(20px, 4vw, 48px) 64px;
}

.panel {
  padding: clamp(28px, 5vw, 40px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 42ch;
}

.info-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(47, 95, 138, 0.25);
  border-color: var(--steel);
}

.field input.is-error,
.field textarea.is-error {
  border-color: #c45c3a;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.code-row .btn {
  white-space: nowrap;
  min-height: 46px;
}

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

.form-tip {
  margin: 18px 0 0;
  color: var(--steel);
  font-size: 0.95rem;
}

.form-tip.is-error {
  color: #c45c3a;
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pay-modal[hidden] {
  display: none;
}

.pay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 38, 0.45);
}

.pay-modal-panel {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(20, 28, 38, 0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(20, 28, 38, 0.18);
}

.pay-modal-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.pay-modal-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.pay-modal-items {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pay-modal-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.pay-modal-ship {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(20, 28, 38, 0.1);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.pay-modal-ship strong {
  color: var(--ink);
}

.pay-modal-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 1rem;
}

.pay-modal-total strong {
  color: var(--copper);
  font-size: 1.35rem;
}

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

.pay-modal-tip {
  margin: 0 0 12px;
}
