/* ============================================
   eBookSphere Lab — Stylesheet
   ============================================ */

*, *::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;
  --navy-mid:     #1a1830;
  --green:        #166534;
  --green-light:  #dcfce7;
  --amber:        #92400e;
  --amber-light:  #fef3c7;
  --radius:       7px;
  --max:          1140px;
}

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: 28px; 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.active { color: var(--purple-mid); font-weight: 600; }

/* ── Header ── */
.lab-header {
  background: var(--navy);
  padding: 60px 32px 56px;
  border-bottom: 3px solid var(--purple-mid);
}
.lab-header-inner { max-width: var(--max); margin: 0 auto; }
.lab-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 18px;
}
.lab-header h1 {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  max-width: 580px;
}
.lab-header p {
  font-size: 17px;
  color: #9999b8;
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.lab-header p strong { color: #c8c8e0; font-weight: 500; }
.founder-line { font-size: 13px; color: #6666a0; margin-top: 4px; }
.founder-line strong { color: #8888b8; font-weight: 500; }

/* ── Container ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ── Section blocks ── */
.section-block {
  padding: 60px 0 52px;
  border-bottom: 1px solid var(--border);
}
.section-block: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: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.section-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ── Sequence statement ── */
.sequence-statement {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--muted);
  max-width: 680px;
}
.sequence-statement strong { color: var(--text); }
.seq-dot {
  width: 6px; height: 6px;
  background: var(--purple-dim);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Flagship grid ── */
.flagship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.flagship-card {
  background: var(--navy);
  border-radius: 10px;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.flagship-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
}
.flagship-card.craft::before { background: var(--purple-mid); }
.flagship-card.ai::before { background: #4ade80; }

.f-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
  width: fit-content;
}
.craft .f-badge { background: var(--purple); color: white; }
.ai .f-badge { background: #14532d; color: #86efac; }

.flagship-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.f-tagline {
  font-size: 14px;
  color: #8888aa;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.f-what {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.f-what-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5555a0;
  margin-bottom: 10px;
}

.f-items { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.f-items li {
  font-size: 13px;
  color: #9999c0;
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}
.f-items li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #5555a0;
  font-size: 11px;
}
.craft .f-items li::before { color: var(--purple-dim); }
.ai .f-items li::before { color: #4ade80; opacity: 0.6; }

.f-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.f-price { font-size: 28px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.f-price-note { font-size: 12px; color: #5555a0; margin-top: 2px; }

.btn-flagship {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-flagship:hover { opacity: 0.88; }
.craft .btn-flagship { background: var(--purple-mid); color: white; }
.ai .btn-flagship { background: #16a34a; color: white; }

.f-guarantee { font-size: 11px; color: #999999; margin-top: 10px; display: flex; align-items: center; gap: 6px; }

/* ── Bundle strip ── */
.bundle-strip {
  background: linear-gradient(90deg, #1a1060 0%, #0f1a10 100%);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bundle-text p { font-size: 14px; color: #8888b0; line-height: 1.55; }
.bundle-text strong { color: #c0c0d8; font-weight: 500; }

.bundle-price-block { text-align: right; flex-shrink: 0; }
.bundle-was { font-size: 12px; color: #999999; text-decoration: line-through; margin-bottom: 2px; }
.bundle-now { font-size: 24px; font-weight: 700; color: white; letter-spacing: -0.5px; }
.bundle-save { font-size: 11px; color: #4ade80; margin-top: 2px; }

.bundle-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.btn-bundle {
  display: inline-block;
  background: white;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-bundle:hover { opacity: 0.9; }

.bundle-reassurance {
  font-size: 11px;
  color: #4ade80;
  opacity: 0.7;
  white-space: nowrap;
}

/* ── Services grid — strict 3 columns ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  position: relative;
}

.service-card.soon { background: var(--off); }

.service-icon { font-size: 22px; margin-bottom: 14px; }

.soon-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}

.service-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.service-price { font-size: 15px; font-weight: 700; color: var(--text); }
.service-price span { font-size: 12px; font-weight: 400; color: var(--muted); }

.btn-service {
  display: inline-block;
  background: var(--off);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-service:hover { background: var(--purple-light); border-color: var(--purple-dim); }
.btn-service.disabled { pointer-events: none; opacity: 0.4; cursor: default; }

/* ── Wiki bridge ── */
.bridge {
  background: var(--purple-light);
  border: 1px solid var(--purple-dim);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 36px;
  max-width: 700px;
}
.bridge-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.bridge p { font-size: 14px; color: var(--purple); line-height: 1.55; }
.bridge a { color: var(--purple-mid); font-weight: 600; text-decoration: none; }
.bridge a:hover { text-decoration: underline; }

/* ── 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: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .flagship-grid { grid-template-columns: 1fr; }
  .bundle-strip { flex-direction: column; align-items: flex-start; }
  .bundle-price-block { text-align: left; }
  .bundle-cta { align-items: flex-start; }
}
@media (max-width: 600px) {
  .nav { padding: 0 16px; }
  .lab-header { padding: 40px 16px 36px; }
  .container { padding: 0 16px; }
  .flagship-card { padding: 26px 22px 24px; }
  .services-grid { grid-template-columns: 1fr; }
}