/* Sketch Pricing — front-end styles */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

.sp-wrap *, .sp-wrap *::before, .sp-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sp-wrap {
  --sp-bg:             #f9f9f9;
  --sp-surface:        #ffffff;
  --sp-border:         #e8e8ec;
  --sp-border-strong:  #d0d0d8;
  --sp-text:           #2b2563;
  --sp-muted:          #7c8a97;
  --sp-subtle:         #a0aab4;
  --sp-accent:         #6552ff;
  --sp-accent-light:   #f0eeff;
  --sp-featured-bg:    #13162f;
  --sp-featured-muted: rgba(255,255,255,0.55);
  --sp-check:          #6552ff;
  --sp-font-head:      'Manrope', sans-serif;
  --sp-font-body:      'Manrope', sans-serif;
  --sp-r-sm:           0px;
  --sp-r-lg:           4px;

  font-family: var(--sp-font-body);
  color: var(--sp-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* Header */
.sp-header { text-align: center; margin-bottom: 48px; }

.sp-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-accent);
  margin-bottom: 12px;
  font-family: var(--sp-font-body);
}

.sp-title {
  font-family: var(--sp-font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sp-text);
  margin-bottom: 14px;
  line-height: 1.15;
}

.sp-subtitle {
  font-size: 17px;
  color: var(--sp-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tabs */
.sp-tab-bar { display: flex; justify-content: center; margin-bottom: 48px; }

.sp-tab-track {
  display: inline-flex;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 50px;
  padding: 4px;
  gap: 2px;
}

.sp-tab-btn {
  font-family: var(--sp-font-head);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 24px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.18s ease;
  color: var(--sp-muted);
  background: transparent;
  outline: none;
}

.sp-tab-btn:hover  { color: var(--sp-text); }
.sp-tab-btn.active { background: var(--sp-text); color: #fff; }

/* Panels */
.sp-panel { display: none; }
.sp-panel.active { display: block; }

/* Animations */
@keyframes sp-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sp-eyebrow  { animation: sp-fade-in  0.5s ease both; animation-delay: 0.05s; }
.sp-title    { animation: sp-fade-up  0.55s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.1s; }
.sp-subtitle { animation: sp-fade-up  0.55s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.18s; }
.sp-tab-bar  { animation: sp-fade-up  0.5s  cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.25s; }

.sp-panel.animating .sp-card,
.sp-panel.animating .sp-bespoke {
  opacity: 0;
  animation: sp-fade-up 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
.sp-panel.animating .sp-card:nth-child(1) { animation-delay: 0.05s; }
.sp-panel.animating .sp-card:nth-child(2) { animation-delay: 0.12s; }
.sp-panel.animating .sp-card:nth-child(3) { animation-delay: 0.19s; }
.sp-panel.animating .sp-card:nth-child(4) { animation-delay: 0.26s; }
.sp-panel.animating .sp-bespoke          { animation-delay: 0.30s; }

/* Grid */
.sp-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}
.sp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sp-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.sp-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.15s;
  position: relative;
}
.sp-card:hover { border-color: var(--sp-border-strong); }

.sp-card.sp-featured { background: var(--sp-featured-bg); border-color: var(--sp-featured-bg); color: #fff; }
.sp-card.sp-featured:hover { border-color: #333; }

.sp-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sp-accent);
  color: #fff;
  font-family: var(--sp-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.sp-plan-name {
  font-family: var(--sp-font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sp-featured .sp-plan-name { color: #fff; }

.sp-plan-desc { font-size: 13px; color: var(--sp-muted); line-height: 1.55; margin-top: 4px; }
.sp-featured .sp-plan-desc { color: var(--sp-featured-muted); }

.sp-price { display: flex; align-items: baseline; gap: 2px; }

.sp-currency {
  font-family: var(--sp-font-head);
  font-size: 18px;
  font-weight: 500;
  color: var(--sp-muted);
  align-self: flex-start;
  margin-top: 6px;
}
.sp-featured .sp-currency { color: rgba(255,255,255,0.55); }

.sp-amount {
  font-family: var(--sp-font-head);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sp-period { font-size: 13px; color: var(--sp-muted); margin-left: 4px; }
.sp-featured .sp-period { color: var(--sp-featured-muted); }

.sp-billing-note { font-size: 12px; color: var(--sp-subtle); margin-top: 4px; }
.sp-featured .sp-billing-note { color: rgba(255,255,255,0.35); }

.sp-divider { height: 1px; background: var(--sp-border); }
.sp-featured .sp-divider { background: rgba(255,255,255,0.12); }

.sp-features { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; margin: 0; padding: 0; }
.sp-features li { font-size: 13px; color: var(--sp-muted); display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.sp-featured .sp-features li { color: rgba(255,255,255,0.7); }

.sp-check { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; color: var(--sp-check); }
.sp-featured .sp-check { color: #6ee7b7; }

.sp-cta {
  display: block;
  text-align: center;
  font-family: var(--sp-font-head);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--sp-r-sm);
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid var(--sp-border-strong);
  background: transparent;
  color: var(--sp-text);
}
.sp-cta:hover { background: var(--sp-bg); border-color: var(--sp-text); color: var(--sp-text); }
.sp-featured .sp-cta { background: #fff; color: var(--sp-text); border-color: #fff; }
.sp-featured .sp-cta:hover { background: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.85); }

/* Bespoke row */
.sp-bespoke {
  margin-top: 16px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-r-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sp-bespoke-left { max-width: 560px; }

.sp-bespoke-label {
  font-family: var(--sp-font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-subtle);
  margin-bottom: 6px;
}

.sp-bespoke-title {
  font-family: var(--sp-font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--sp-text);
  margin-bottom: 6px;
}

.sp-bespoke-desc { font-size: 14px; color: var(--sp-muted); line-height: 1.6; }

.sp-bespoke-cta {
  font-family: var(--sp-font-head);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--sp-r-sm);
  border: 1px solid var(--sp-text);
  background: var(--sp-text);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
}
.sp-bespoke-cta:hover { background: var(--sp-accent); border-color: var(--sp-accent); color: #fff; }

/* Footnote */
.sp-footnote { text-align: center; margin-top: 40px; font-size: 13px; color: var(--sp-subtle); }
.sp-footnote a { color: var(--sp-accent); text-decoration: none; }
.sp-footnote a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .sp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sp-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .sp-wrap { padding: 48px 16px 64px; }
  .sp-tab-track { width: 100%; justify-content: stretch; }
  .sp-tab-btn   { flex: 1; padding: 9px 10px; font-size: 13px; }
  .sp-grid-4,
  .sp-grid-3    { grid-template-columns: 1fr; }
  .sp-card      { padding: 22px 20px; }
  .sp-card.sp-featured { padding: 28px 20px; }
  .sp-amount    { font-size: 32px; }
  .sp-bespoke   { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 16px; }
  .sp-bespoke-left { max-width: 100%; }
  .sp-bespoke-cta  { width: 100%; text-align: center; }
  .sp-badge { font-size: 10px; padding: 3px 12px; }
}
