/* ============================================
   CRAFT Blueprint — Product Page Stylesheet
   eBookSphere Lab
   ============================================ */

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

:root {
  --white:        #ffffff;
  --off:          #f8f8fb;
  --border:       #e4e4ed;
  --text:         #1c1c2e;
  --muted:        #6b6b80;
  --purple:       #5b21b6;
  --purple-mid:   #7c3aed;
  --purple-light: #ede9fe;
  --purple-dim:   #c4b5fd;
  --navy:         #0f0e1a;
  --green:        #166534;
  --green-light:  #dcfce7;
  --radius:       7px;
  --max:          900px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--purple-mid); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.lab { color: var(--purple-mid); font-weight: 600; }

/* ── Hero ── */
.hero {
  background: var(--navy);
  padding: 56px 32px 52px;
  border-bottom: 3px solid var(--purple-mid);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--purple);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 16px;
  color: #9999b8;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 460px;
}
.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta-item { font-size: 13px; color: #6666a0; }
.hero-meta-item strong { color: #aaaac8; font-weight: 600; }

.btn-buy {
  display: inline-block;
  background: var(--purple-mid);
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s;
}
.btn-buy:hover { background: var(--purple); }

.guarantee-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4a4a70;
  margin-top: 14px;
}

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

/* ── Container ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Sections ── */
.section {
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; padding-bottom: 72px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 6px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}
.section-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── Stage list ── */
.stage-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.stage-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  border-bottom: 1px solid var(--border);
}
.stage-item:last-child { border-bottom: none; }

.stage-letter {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--purple-dim);
  letter-spacing: -0.5px;
}
.stage-body { padding: 20px 24px; }
.stage-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.stage-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Companion guides ── */
.companion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.companion-card {
  background: var(--off);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple-dim);
  border-radius: 8px;
  padding: 20px 22px;
}
.companion-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.companion-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Visual showcase ── */
.showcase-section {
  background: var(--off) !important;
  border-radius: 10px !important;
  padding: 48px 40px !important;
  border: 1px solid var(--border) !important;
}

.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.showcase-books {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.showcase-books img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.showcase-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.3px;
}

.showcase-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.showcase-checklist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.showcase-checklist-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--purple-mid);
}

.showcase-checklist-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.showcase-checklist-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 4px;
}

.showcase-checklist img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

@media (max-width: 500px) {
  .showcase-section { padding: 24px 16px !important; }
}

/* ── Buy box ── */
.buy-box {
  background: var(--navy);
  border-radius: 10px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.buy-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--purple-mid);
}

.buy-box-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}
.buy-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.buy-box-desc {
  font-size: 14px;
  color: #8888aa;
  line-height: 1.6;
  max-width: 400px;
}
.price-block { text-align: right; flex-shrink: 0; }
.price-amount {
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}
.price-note { font-size: 12px; color: #5555a0; margin-top: 4px; }

/* ── Buy box items ── */
.buy-box-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.buy-box-items li {
  font-size: 14px;
  color: #8888b0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.buy-box-items li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--purple-dim);
  font-size: 12px;
}
.buy-box-items li strong {
  color: #aaaace;
  font-weight: 600;
  display: inline;
}

/* ── Guarantee row ── */
.guarantee-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  text-align: left;
}
.guarantee-seal img {
  width: 130px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.guarantee-text {
  font-size: 14px;
  color: #6666a0;
  line-height: 1.6;
  max-width: 460px;
}
.guarantee-text strong { color: #9999c0; font-weight: 500; }

/* ── CTA button ── */
.btn-buy-main {
  display: block;
  background: var(--purple-mid);
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  transition: background .15s;
  margin-bottom: 12px;
}
.btn-buy-main:hover { background: var(--purple); }
.btn-buy-sub {
  text-align: center;
  font-size: 12px;
  color: #4a4a70;
}


/* ── Secure checkout strip ── */
.secure-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.secure-lock { font-size: 13px; }
.secure-label { font-size: 12px; color: #5555a0; white-space: nowrap; }
.secure-sep { font-size: 12px; color: #3a3a60; }
.secure-paypal {
  height: 22px;
  width: auto;
  display: block;
}
.secure-payloadz {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

/* ── PWA / Alliance badge ── */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.trust-row img {
  width: 90px;
  height: auto;
  opacity: 0.90;
}
.trust-text {
  font-size: 12px;
  color: #4a4a70;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Also available strip ── */
.also-strip {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.also-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.also-text strong { color: var(--text); font-weight: 600; }
.btn-also {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s;
}
.btn-also:hover { border-color: var(--purple-dim); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { order: -1; text-align: center; }
  .hero-image img { max-width: 280px; margin: 0 auto; }
  .buy-box-header { grid-template-columns: 1fr; }
  .price-block { text-align: left; }
  .companion-grid { grid-template-columns: 1fr; }
  .also-strip { flex-direction: column; align-items: flex-start; }
  .trust-row { flex-direction: column; text-align: center; }
}
@media (max-width: 500px) {
  .nav { padding: 0 16px; }
  .hero { padding: 36px 16px 32px; }
  .container { padding: 0 16px; }
  .buy-box { padding: 24px 18px; }
}