/* ── Design Tokens ── */
:root {
  --brand-600: #1d4ed8;
  --brand-500: #3b82f6;
  --brand-400: #60a5fa;
  --brand-200: #bfdbfe;
  --brand-50: #eff6ff;
  --brand-950: #0a1628;
  --accent-600: #d97706;
  --accent-500: #f59e0b;
  --accent-400: #fbbf24;
  --accent-50: #fffbeb;
  --gray-0: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --success: #10b981;
  --warning: #f59e0b;
  --destructive: #ef4444;
  --purple: #8b5cf6;
  --font-display: 'Syne', 'PingFang SC', 'Noto Sans SC', sans-serif;
  --font-body: 'DM Sans', 'PingFang SC', 'Noto Sans SC', sans-serif;
  --radius: 1rem;
  --radius-sm: 0.625rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; min-height: 100%; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--gray-0); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { text-decoration: none; color: inherit; }

/* ── Container ── */
.container { max-width: 72rem; margin: 0 auto; padding: 0 2rem; }

/* ── Nav ── */
.store-nav { background: rgba(255,255,255,0.92); backdrop-filter: blur(20px) saturate(1.8); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 50; }
.store-nav_inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.store-nav_logo { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--gray-900); display: flex; align-items: center; gap: 0.625rem; }
.store-nav_logo .icon { width: 2rem; height: 2rem; background: linear-gradient(135deg, var(--brand-600), var(--brand-400)); border-radius: 0.4rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.875rem; font-weight: 800; }
.store-nav_links { display: flex; gap: 2rem; align-items: center; }
.store-nav_link { font-size: 0.9375rem; font-weight: 500; color: var(--gray-600); transition: color 0.2s; }
.store-nav_link:hover { color: var(--gray-900); }

/* ── Hero ── */
.store-hero { text-align: center; padding: 5rem 0 4rem; background: linear-gradient(180deg, var(--brand-50) 0%, var(--gray-0) 100%); }
.store-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.04em; color: var(--gray-900); margin-bottom: 1rem; }
.store-hero p { color: var(--gray-600); font-size: 1.125rem; max-width: 36rem; margin: 0 auto; line-height: 1.75; }

/* ── Plan Cards ── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; }
.plan-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 16rem;
}
.plan-card:hover { border-color: var(--brand-400); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(29,78,216,0.1); }
.plan-card.selected { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(29,78,216,0.15), 0 12px 40px rgba(29,78,216,0.1); }
.plan-card_badge { position: absolute; top: -0.625rem; right: 1.25rem; background: linear-gradient(135deg, var(--accent-500), var(--accent-600)); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.875rem; border-radius: 99px; letter-spacing: 0.02em; }
.plan-card_name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; color: var(--gray-900); margin-bottom: 1rem; }
.plan-card_price { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; color: var(--brand-600); letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.plan-card_price span { font-size: 1rem; font-weight: 500; color: var(--gray-600); letter-spacing: 0; }
.plan-card_features { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.plan-card_features li { font-size: 0.875rem; color: var(--gray-600); display: flex; align-items: center; gap: 0.5rem; }
.plan-card_features li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.plan-card_desc { font-size: 0.875rem; color: var(--gray-600); margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--gray-100); line-height: 1.6; }
.plan-card_select { display: block; margin-top: 1.5rem; text-align: center; padding: 0.625rem; border-radius: var(--radius-sm); background: var(--gray-50); color: var(--gray-600); font-size: 0.8125rem; font-weight: 600; transition: all 0.2s; }
.plan-card:hover .plan-card_select { background: var(--brand-50); color: var(--brand-600); }
.plan-card.selected .plan-card_select { background: var(--brand-600); color: #fff; }

/* ── Duration Selector ── */
.duration-section { margin-bottom: 3rem; padding: 2.5rem 0; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; color: var(--gray-900); margin-bottom: 1.5rem; text-align: center; }
.durations { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.dur-btn { background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); padding: 1rem 2rem; cursor: pointer; font-family: var(--font-body); font-size: 1rem; font-weight: 500; transition: all 0.2s; color: var(--gray-800); min-width: 8rem; }
.dur-btn:hover { border-color: var(--brand-400); transform: translateY(-2px); }
.dur-btn.selected { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.dur-btn .discount { display: block; font-size: 0.75rem; color: var(--success); font-weight: 600; margin-top: 0.25rem; }

/* ── Order Summary ── */
.summary-card { max-width: 30rem; margin: 0 auto 2.5rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2rem 2.5rem; box-shadow: 0 4px 24px rgba(0,0,0,0.04); }
.summary-row { display: flex; justify-content: space-between; padding: 0.625rem 0; font-size: 0.9375rem; }
.summary-row.discount { color: var(--success); }
.summary-row.total { border-top: 2px solid var(--gray-200); margin-top: 0.75rem; padding-top: 1rem; font-weight: 700; font-size: 1.25rem; color: var(--gray-900); }

/* ── Checkout Form ── */
.checkout-form { max-width: 30rem; margin: 0 auto 5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.5rem; }
.form-hint { font-size: 0.8125rem; color: var(--gray-600); margin-top: 0.375rem; }
.form-input { width: 100%; padding: 0.875rem 1.125rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; outline: none; background: #fff; }
.form-input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }
.form-input.error { border-color: var(--destructive); }

.btn-checkout { width: 100%; padding: 1.125rem; background: var(--brand-600); color: #fff; border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; cursor: pointer; transition: all 0.2s; letter-spacing: -0.01em; }
.btn-checkout:hover { background: var(--brand-500); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,78,216,0.25); }
.btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Trust Badges ── */
.trust-section { text-align: center; padding: 3rem 0 4rem; }
.trust-items { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-600); }
.trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ── Status Page ── */
.status-card { max-width: 32rem; margin: 5rem auto; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 3rem; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,0.04); }
.status-icon { font-size: 3.5rem; margin-bottom: 1.25rem; }
.status-card h2 { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.75rem; }
.status-badge { display: inline-block; padding: 0.3rem 0.875rem; border-radius: 99px; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.status-badge.pending { background: var(--gray-100); color: var(--gray-600); }
.status-badge.paid { background: var(--accent-50); color: var(--accent-600); }
.status-badge.fulfilled { background: #ecfdf5; color: #059669; }
.status-badge.refunded { background: #fef2f2; color: #dc2626; }

/* ── Footer ── */
.store-footer { background: var(--gray-900); color: rgba(255,255,255,0.5); text-align: center; padding: 2.5rem 0; font-size: 0.875rem; }
.store-footer a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.store-footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .store-hero { padding: 3.5rem 0 2.5rem; }
  .plans { grid-template-columns: 1fr; max-width: 24rem; margin-left: auto; margin-right: auto; }
  .plan-card { min-height: auto; }
  .durations { flex-direction: column; align-items: center; }
  .dur-btn { width: 100%; max-width: 20rem; text-align: center; }
  .trust-items { gap: 1.5rem; }
}
