/* Sterling Path Shop — matches landing page design system */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --grey-50: #f5f5f5;
  --grey-100: #e8e8e8;
  --grey-200: #d4d4d4;
  --grey-400: #a3a3a3;
  --grey-500: #737373;
  --grey-600: #525252;
  --grey-800: #262626;
  --grey-900: #171717;
  --blue: #2556c4;
  --blue-dark: #1c3f8f;
  --blue-light: #eef2fa;
  --blue-tint: #f5f7fc;
  --green: #2d7a4f;
  --red: #c43325;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: var(--white); }
a { color: inherit; text-decoration: none; }

/* Top accent bar */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  z-index: 200;
}

/* ═══ NAV ═══ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-logo img { height: 36px; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-500);
  transition: color 0.3s;
}

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

.nav-cta {
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  padding: 0.65rem 1.8rem;
  border: 1px solid var(--blue);
  color: var(--blue) !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--blue);
  color: var(--white) !important;
}

/* ═══ SHOP HEADER ═══ */
.shop-header {
  padding: 8rem 3rem 4rem;
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-tint) 50%, var(--blue-light) 100%);
  text-align: center;
}

.shop-header .section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.shop-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.shop-header h1 em { font-style: italic; color: var(--blue); }

.shop-header p {
  font-size: 1.05rem;
  color: var(--grey-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══ PRODUCT SECTIONS ═══ */
.product-section {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--grey-100);
}

.product-section:last-child { border-bottom: none; }

.product-section .section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.product-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.product-section > p {
  font-size: 1rem;
  color: var(--grey-500);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ═══ PRODUCT CARD ═══ */
.product-card {
  background: var(--grey-50);
  padding: 2.5rem;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  background: var(--white);
}

.product-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.product-card .product-interval {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.product-card .product-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--grey-600);
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-card .product-meta {
  list-style: none;
  margin-bottom: 2rem;
}

.product-card .product-meta li {
  font-size: 0.8rem;
  color: var(--grey-600);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.product-card .product-meta li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.product-card .product-price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.product-card .product-price span {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--grey-500);
}

.product-card .product-price .free-tag {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  width: 100%;
}

.btn-subscribe:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 86, 196, 0.2);
}

/* ═══ PRODUCT CARD — Image + Actions ═══ */
.product-card-image {
  margin: -2.5rem -2.5rem 1.5rem;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--grey-100);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
}

.product-actions .btn-subscribe {
  flex: 1;
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  background: none;
  color: var(--grey-600);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--grey-200);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-learn-more:hover {
  border-color: var(--black);
  color: var(--black);
}

/* ═══ PDP — Hero Section ═══ */
.pdp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 8rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.pdp-hero-image {
  border-radius: 6px;
  overflow: hidden;
  background: var(--grey-100);
}

.pdp-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.pdp-hero-info .section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.pdp-hero-info h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.pdp-price {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.pdp-price span {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--grey-500);
}

.pdp-hero-info .product-meta {
  list-style: none;
  margin-bottom: 2rem;
}

.pdp-hero-info .product-meta li {
  font-size: 0.85rem;
  color: var(--grey-600);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pdp-hero-info .product-meta li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.pdp-hero-info .btn-subscribe {
  margin-bottom: 1rem;
}

.btn-download-trial {
  display: block;
  padding: 0.65rem 1.5rem;
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s, color 0.3s;
  margin-top: 0.75rem;
}

.btn-download-trial:hover {
  background: var(--blue);
  color: #ffffff;
}

.pdp-back-row {
  padding: 0.5rem 2rem;
}

.pdp-back {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--grey-500);
  transition: color 0.3s;
}

.pdp-back:hover {
  color: var(--blue);
}

/* ═══ PDP — Description ═══ */
.pdp-description {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 3rem 4rem;
  border-top: 1px solid var(--grey-100);
}

.pdp-description h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.pdp-description-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--grey-600);
  max-width: 800px;
}

.pdp-description-content p { margin-bottom: 1rem; }
.pdp-description-content ul,
.pdp-description-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.pdp-description-content li { margin-bottom: 0.5rem; }
.pdp-description-content h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: var(--black); }
.pdp-description-content a { color: var(--blue); text-decoration: underline; }
.pdp-description-content a:hover { color: var(--blue-dark); }

/* ═══ PDP — Gallery ═══ */
.pdp-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem 4rem;
}

.pdp-gallery h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.pdp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.pdp-gallery-thumb {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--grey-100);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.pdp-gallery-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.pdp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══ LIGHTBOX ═══ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ═══ CHECKOUT PAGE ═══ */
.checkout-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.checkout-container h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.checkout-product-summary {
  background: var(--blue-tint);
  border: 1px solid var(--grey-100);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.checkout-product-summary h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.checkout-product-summary .price {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--blue);
}

.checkout-product-summary .price span {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--grey-500);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--black);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 86, 196, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Square card form container */
#card-container {
  min-height: 90px;
  margin-bottom: 1.5rem;
}

/* Apple Pay / Google Pay */
#apple-pay-button,
#google-pay-button {
  margin-bottom: 1rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--grey-400);
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-200);
}

.subdomain-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--blue-light, #eef2fa);
  border: 2px solid var(--blue-light, #eef2fa);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue, #2556c4);
  cursor: pointer;
  transition: all 0.15s ease;
}
.subdomain-chip:hover {
  background: var(--blue-tint, #f5f7fc);
  border-color: var(--blue, #2556c4);
}
.subdomain-chip.selected {
  background: var(--blue, #2556c4);
  border-color: var(--blue, #2556c4);
  color: var(--white, #fafafa);
}

.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  width: 100%;
}

.btn-pay:hover {
  background: var(--blue-dark);
}

.btn-pay:disabled {
  background: var(--grey-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.checkout-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 1rem;
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.checkout-error.visible { display: block; }

.secure-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--grey-400);
}

.secure-notice svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ═══ CONFIRMATION PAGE ═══ */
.confirmation-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 10rem 2rem 4rem;
  text-align: center;
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 2rem;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-icon svg {
  width: 32px;
  height: 32px;
  color: var(--blue);
}

.confirmation-container h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.confirmation-container p {
  font-size: 1rem;
  color: var(--grey-500);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.confirmation-details {
  background: var(--grey-50);
  border-radius: 8px;
  padding: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.confirmation-details h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.confirmation-details table {
  width: 100%;
  border-collapse: collapse;
}

.confirmation-details td {
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.confirmation-details td:first-child {
  font-weight: 600;
  color: var(--grey-600);
  width: 120px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  color: var(--grey-600);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--grey-200);
  background: none;
  transition: all 0.3s var(--ease);
}

.btn-back:hover {
  border-color: var(--black);
  color: var(--black);
}

/* ═══ FOOTER ═══ */
footer {
  padding: 4rem 3rem;
  background: var(--grey-900);
  color: var(--grey-500);
  border-top: 1px solid var(--grey-800);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--grey-600);
}

/* ═══ LOADING ═══ */
.loading {
  text-align: center;
  padding: 4rem;
  color: var(--grey-400);
  font-size: 0.9rem;
}

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .shop-header { padding: 7rem 1.5rem 3rem; }
  .product-section { padding: 3rem 1.5rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .checkout-container { padding: 7rem 1.5rem 3rem; }
  .confirmation-container { padding: 7rem 1.5rem 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .pdp-hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; gap: 2rem; }
  .pdp-description { padding: 2rem 1.5rem 3rem; }
  .pdp-gallery { padding: 0 1.5rem 3rem; }
  .pdp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev, .lightbox-next { font-size: 2rem; }
  footer { padding: 3rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
}
