﻿:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --muted-foreground: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --card: #ffffff;
  --muted: #f8fafc;
  --soft: #f1f5f9;
  --primary: #111827;
  --primary-foreground: #ffffff;
  --secondary: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 18px;
  --radius-sm: 14px;
  --max-width: 1152px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--foreground);
  background: var(--background);
}

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

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--foreground);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-action,
.button.primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button.secondary {
  background: var(--secondary);
  border-color: var(--border);
  color: var(--foreground);
}

.nav-action:hover,
.button:hover,
.nav-action:focus-visible,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(253, 186, 116, 0.12) 40%, rgba(125, 211, 252, 0.18));
}

.hero-inner {
  position: relative;
  padding: 96px 0 104px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero h1 {
  margin: 24px auto 0;
  max-width: 12ch;
  font-size: clamp(2.7rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted-foreground);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.7);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 40px;
  padding: 20px 0;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.8rem;
}

.section {
  padding: 80px 0;
}

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

.section-heading.center {
  text-align: center;
}

.section-heading.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 14px auto 0;
  color: var(--muted-foreground);
  line-height: 1.8;
  font-size: 1rem;
}

.feature-grid,
.pricing-grid,
.steps-grid,
.partner-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.card,
.pricing-card,
.step-card,
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 28px 22px;
  text-align: center;
}

.card-icon,
.partner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 1.25rem;
}

.card h3,
.pricing-card h3,
.step-card h3,
.partner-card h3,
.site-footer h3 {
  margin: 18px 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card p,
.pricing-card p,
.step-card p,
.partner-card p,
.site-footer p,
.faq-answer {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.pricing-card.featured {
  border-color: rgba(15, 23, 42, 0.18);
}

.pricing-badge,
.partner-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-desc {
  margin-top: 2px;
}

.pricing-list,
.partner-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 26px;
  list-style: none;
}

.pricing-list li,
.partner-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--foreground);
  font-size: 0.95rem;
}

.list-check {
  color: #16a34a;
}

.pricing-card .button,
.partner-card .button {
  margin-top: auto;
}

.step-card {
  padding: 26px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.partner-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.partner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-cta {
  margin-top: 32px;
  text-align: center;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  padding: 0 22px;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  border: none;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding-bottom 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  padding-bottom: 20px;
}

.faq-symbol {
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 48px;
}

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

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

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

@media (max-width: 768px) {
  .nav-shell {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 20px;
  }

  .hero-inner {
    padding: 72px 0 80px;
  }

  .hero-badge {
    line-height: 1.5;
    padding: 8px 14px;
    min-height: 0;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, var(--max-width));
  }

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

  .hero-actions,
  .footer-actions {
    width: 100%;
  }

  .button,
  .nav-action {
    width: 100%;
  }
}

.compact-grid {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.item-page {
  min-height: 100vh;
  background: var(--background);
}

.item-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.item-nav-shell {
  display: flex;
  align-items: center;
  height: 64px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--foreground);
}

.item-nav .brand {
  margin-left: auto;
}

.item-main {
  padding: 48px 0 80px;
}

.item-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.item-detail h1 {
  margin: 16px 0 8px;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.item-subtitle {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

.item-separator {
  height: 1px;
  margin: 28px 0;
  background: var(--border);
}

.item-benefits {
  display: grid;
  gap: 16px;
}

.item-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  line-height: 1.65;
}

.item-benefit span {
  color: #16a34a;
  font-weight: 800;
}

.item-note {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.7;
}

.item-note p {
  margin: 0 0 6px;
}

.order-card {
  align-self: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 22px;
}

.order-header h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.order-price {
  margin-top: 12px;
}

.order-price strong {
  font-size: 2.75rem;
  letter-spacing: -0.05em;
}

.order-price span {
  margin-left: 4px;
  color: var(--muted-foreground);
}

.checkout-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.field-group {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.field-group input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  padding: 0 12px;
  color: var(--foreground);
  font: inherit;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus {
  border-color: rgba(15, 23, 42, 0.28);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.field-group small,
.checkout-hint {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.6;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-row input {
  max-width: 96px;
}

.unit-price {
  color: var(--muted-foreground);
  font-weight: 500;
}

.pay-option {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  padding: 14px;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
}

.pay-option small {
  color: var(--muted-foreground);
}

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.order-total strong {
  font-size: 1.35rem;
}

.checkout-button {
  width: 100%;
}

.checkout-hint {
  margin: 0;
  text-align: center;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
}

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

.order-modal-card {
  position: relative;
  width: min(100%, 420px);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.order-modal-card h2 {
  margin: 16px 0 8px;
}

.order-modal-card p {
  color: var(--muted-foreground);
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: var(--soft);
  cursor: pointer;
  font-size: 1.2rem;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  height: 180px;
  margin: 18px 0;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 16px;
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
  color: var(--muted-foreground);
  font-weight: 700;
}

@media (max-width: 820px) {
  .item-layout {
    grid-template-columns: 1fr;
  }
}

.order-page {
  min-height: 100vh;
  background: var(--background);
}

.order-main {
  max-width: 620px;
  padding: 48px 0 80px;
}

.order-title {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.order-title span {
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.15rem;
}

.order-status-card {
  min-height: 260px;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px;
}

.order-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  color: var(--muted-foreground);
}

.loader-dot {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--muted-foreground);
  border-radius: 999px;
  animation: order-spin 0.8s linear infinite;
}

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

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-pill.pending {
  background: #fff7ed;
  color: #c2410c;
}

.status-pill.paid {
  background: #dcfce7;
  color: #15803d;
}

.order-created {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.payment-box {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--muted);
}

.qr-placeholder.large {
  height: 180px;
  margin: 0;
  background: #fff;
}

.payment-copy h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.payment-copy p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.order-info-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.order-info-grid span {
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.order-info-grid strong {
  overflow-wrap: anywhere;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 14px;
}

.order-empty {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.order-empty h2 {
  margin: 0;
}

.order-empty p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .payment-box,
  .order-info-grid {
    grid-template-columns: 1fr;
  }
}
