/* =============================================
   OUTBOUND — Store Stylesheet
   ============================================= */

/* ---- Store Page ---- */
.store-page {
  padding-bottom: 80px;
}

/* Hero */
.store-hero {
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.store-hero__inner {
  max-width: 680px;
  margin: 0 auto;
}
.store-hero__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(255,92,0,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.store-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}
.store-hero__sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* Sections */
.store-section {
  padding: 60px 24px;
}
.store-section--free {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.store-section__inner {
  max-width: 1160px;
  margin: 0 auto;
}
.store-section__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Product Grid */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.store-grid--free {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.product-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.product-card--free {
  background: var(--surface-2);
}
.product-card__badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-card__price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.product-card__tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #22C55E;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}
.product-card__icon {
  color: var(--orange);
  margin-bottom: 4px;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.product-card__tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.product-card__desc {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  margin-top: auto;
}
.product-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.badge--bundle {
  background: rgba(255,92,0,0.15);
  color: var(--orange);
  border: 1px solid rgba(255,92,0,0.25);
}
.badge--price {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid var(--border);
}

/* Upsell Banner */
.store-upsell {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}
.store-upsell__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.store-upsell__text {
  max-width: 560px;
}
.store-upsell__headline {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.store-upsell__sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.store-upsell__actions {
  flex-shrink: 0;
}

/* Product Detail Page */
.store-product-page {
  padding: 40px 24px 80px;
}
.store-product-page__inner {
  max-width: 960px;
  margin: 0 auto;
}
.store-breadcrumb {
  margin-bottom: 32px;
}
.store-breadcrumb a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.store-breadcrumb a:hover {
  color: var(--white);
}
.store-product-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 700px) {
  .store-product-layout {
    grid-template-columns: 1fr;
  }
}

/* Product Info */
.store-product-info__badge {
  margin-bottom: 12px;
}
.store-product-info__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.store-product-info__tagline {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}
.store-product-info__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.store-product-info__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.store-product-info__desc p { margin-bottom: 14px; }
.store-product-info__desc .desc-bullet {
  color: var(--orange);
  font-weight: 700;
}
.store-product-info__desc br + br { margin-bottom: 8px; }

/* Free form */
.free-download-section {
  margin-top: 8px;
}
.free-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 500px) {
  .free-form__row { grid-template-columns: 1fr; }
}
.free-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.free-form .form-field label {
  font-size: 13px;
  color: var(--muted);
}
.free-form .form-field input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--white);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.free-form .form-field input:focus {
  border-color: var(--orange);
}
.free-form .form-field input.error {
  border-color: #EF4444;
}
.free-form__error {
  font-size: 12px;
  color: #EF4444;
  display: none;
}
.free-download-success {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 12px;
}
.free-download-success svg { color: #22C55E; }
.free-download-success h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.free-download-success p {
  font-size: 14px;
  color: var(--muted);
}

/* Paid buy */
.paid-buy-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.paid-buy-section__note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Product Preview Card */
.store-product-preview__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: sticky;
  top: 80px;
}
.store-product-preview__icon {
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.store-product-preview__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.store-product-preview__tag {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.store-product-preview__price {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.price-free {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #22C55E;
}
.price-paid {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

/* Store Product CTA */
.store-product-cta {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.store-product-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.store-product-cta__text h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.store-product-cta__text p {
  font-size: 14px;
  color: var(--muted);
}

/* Success Page */
.store-success-page {
  padding: 80px 24px;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.store-success-page__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.store-success__icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.store-success__headline {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.store-success__sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.store-success__download {
  margin-bottom: 40px;
}
.store-success__upsell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: left;
  margin-bottom: 24px;
}
.store-success__upsell h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.store-success__upsell p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.store-success__back {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.store-success__back:hover { color: var(--white); }

/* ---- Founding Rate Banner ---- */
.founding-banner {
  background: linear-gradient(90deg, #1a0a00 0%, #2d1200 50%, #1a0a00 100%);
  border-bottom: 1px solid rgba(255, 92, 0, 0.35);
  padding: 10px 24px;
}
.founding-banner__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.founding-banner__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.founding-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5C00;
  box-shadow: 0 0 6px #FF5C00;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.founding-banner__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF5C00;
  white-space: nowrap;
}
.founding-banner__center {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-align: center;
}
.founding-banner__center strong {
  color: var(--white);
  font-weight: 700;
}
.founding-banner__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.founding-banner__deadline {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.founding-banner__cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  border-radius: 6px;
  padding: 7px 14px;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.founding-banner__cta:hover { opacity: 0.85; }
.founding-banner__close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
}
.founding-banner__close:hover { color: var(--white); }

/* Page with banner — push content down */
.store-page.has-banner { padding-top: 0; }

/* ---- Founding urgency on product cards ---- */
.product-card__founding-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #FF5C00;
  background: rgba(255, 92, 0, 0.08);
  border: 1px solid rgba(255, 92, 0, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
  margin-top: -4px;
}

/* ---- Founding urgency on product detail page ---- */
.product-founding-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #FF5C00;
  background: rgba(255, 92, 0, 0.1);
  border: 1px solid rgba(255, 92, 0, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.product-founding-tag svg { flex-shrink: 0; }

/* ---- Subscription CTA (replaces store-product-cta) ---- */
.store-product-subscription-cta {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.store-product-subscription-cta__inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.subscription-cta__founding-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF5C00;
  background: rgba(255, 92, 0, 0.1);
  border: 1px solid rgba(255, 92, 0, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.founding-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF5C00;
  box-shadow: 0 0 5px #FF5C00;
  animation: pulse-dot 2s infinite;
}
.subscription-cta__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.subscription-cta__headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.subscription-cta__sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 6px;
}
.subscription-cta__founding-price {
  color: #FF5C00;
}
.subscription-cta__regular {
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: line-through;
}
.subscription-cta__detail {
  font-size: 13px;
  color: var(--muted-2);
}
.subscription-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.subscription-cta__deadline {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

/* ---- Affiliate Section ---- */
.store-section--affiliate {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.store-section__label--affiliate {
  color: var(--orange);
}
.affiliate-section__desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  margin-top: -8px;
}
.store-grid--affiliate {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.affiliate-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.affiliate-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.affiliate-card__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,92,0,0.1);
  border: 1px solid rgba(255,92,0,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}
.affiliate-card__icon {
  color: var(--muted);
  margin-bottom: 4px;
}
.affiliate-card__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.affiliate-card__tagline {
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
  line-height: 1.5;
}
.affiliate-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.affiliate-section__disclaimer {
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--orange); color: white; }
.btn--secondary { background: var(--surface-2); color: var(--white); border: 1px solid var(--border); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn--full { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 14px 24px; font-size: 16px; }

/* Form field */
.form-field__required { color: var(--orange); }
.form-field__optional { color: var(--muted); font-weight: 400; }
.form-field__error {
  font-size: 12px;
  color: #EF4444;
  display: none;
}
.form-field input.error ~ .form-field__error { display: block; }