/* ========================================
   FULL MANUAL — LASER PASSING LANDING PAGE
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #0d0d0d;
  --bg-alt:     #111111;
  --surface:    #161616;
  --border:     #222222;
  --accent:     #c8a84b;
  --accent-dim: #a08030;
  --text:       #e8e8e8;
  --text-muted: #888888;
  --text-dim:   #555555;

  --font-body: 'Georgia', serif;
  --font-ui:   system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max-width:  1100px;
  --narrow:     720px;
  --radius:     6px;
  --section-gap: 96px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: var(--narrow);
}

/* --- Section --- */
.section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* --- Typography --- */
h1 {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
}

h2 {
  font-family: var(--font-ui);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 24px;
}

h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.body-text {
  color: var(--text);
  margin-bottom: 20px;
}

.body-text:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* --- Button --- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--bg);
  background-color: var(--accent);
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 8px;
}

.btn:hover {
  background-color: #d9ba60;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-large {
  font-size: 17px;
  padding: 18px 44px;
}

.price-note {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 0.03em;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 100px 0 80px;
  background-color: var(--bg);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-image {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  display: block;
}

/* Placeholder state when image is missing */
.hero-image img[src="images/ebook-cover.png"]:not([naturalWidth]) {
  min-height: 400px;
  background-color: var(--surface);
  border: 1px solid var(--border);
}

/* ========================================
   PROBLEM LIST
   ======================================== */
.problem-list {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-list li {
  padding: 16px 20px 16px 44px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* ========================================
   INSIDE GRID
   ======================================== */
.inside-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.inside-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card-icon {
  display: block;
  font-size: 22px;
  margin-bottom: 14px;
  line-height: 1;
}

.inside-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================================
   AUDIENCE LIST
   ======================================== */
.audience-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audience-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
  font-size: 1rem;
}

.audience-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-weight: 600;
}

/* ========================================
   FINAL CTA
   ======================================== */
.cta-section {
  background-color: var(--bg-alt);
}

.cta-inner {
  text-align: center;
}

.cta-inner .body-text {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-support {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-support a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.footer-support a:hover {
  color: var(--accent);
}

.checkout-note {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ========================================
   SITE HEADER
   ======================================== */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

.site-header-inner {
  display: flex;
  align-items: center;
}

.site-logo {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ========================================
   CATALOG HERO
   ======================================== */
.catalog-hero {
  padding: 80px 0 64px;
  background-color: var(--bg);
}

.catalog-hero-inner {
  max-width: var(--narrow);
}

.catalog-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 24px 16px 16px;
  font-family: var(--font-ui);
}

.yt-badge-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.yt-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent-dim);
  box-shadow: 0 0 0 1px var(--border);
}

.yt-logo {
  width: 30px;
  height: auto;
  flex-shrink: 0;
}

.yt-badge-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yt-channel-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.yt-channel-name:hover {
  color: var(--accent);
}

.yt-sub-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ========================================
   CATALOG SECTION
   ======================================== */
.catalog-section {
  background-color: var(--bg-alt);
}

.catalog-section h2 {
  margin-bottom: 40px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ========================================
   PRODUCT CARD
   ======================================== */
.product-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}

.product-card--coming-soon {
  opacity: 0.6;
}

.product-card--coming-soon:hover {
  transform: none;
  border-color: var(--border);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-card-image--contain {
  background-color: var(--bg);
}

.product-card-image--contain img {
  object-fit: contain;
  padding: 8px;
}

.product-card-image--placeholder {
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.product-card-image--mystery {
  font-size: 2.5rem;
  color: var(--border);
  letter-spacing: 0;
  text-transform: none;
}

/* YouTube promo block — replaces placeholder in Coming Soon card */
.yt-promo-block {
  flex-direction: column;
  gap: 12px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.yt-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #cc0000;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 4px;
  line-height: 1;
}

.yt-promo-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

.yt-promo-channel {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.yt-promo-channel:hover {
  color: #d9ba60;
}

.yt-promo-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  opacity: 0.75;
}

.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.product-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.product-price {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  line-height: 1;
}

.coming-soon-badge {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.product-card-actions .btn {
  width: 100%;
  text-align: center;
  margin-top: 0;
  padding: 12px 20px;
  font-size: 14px;
}

/* Carousel dots — hidden by default, shown only in mobile media query */
.carousel-dots {
  display: none;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.carousel-dot.active {
  background-color: var(--accent);
  transform: scale(1.4);
}

/* Ghost button */
.btn-ghost {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.btn-ghost:hover {
  background-color: rgba(200, 168, 75, 0.08);
  color: var(--accent);
}

/* Back navigation link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 14px 0;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

/* ========================================
   PREVIEW PAGE
   ======================================== */
.preview-back-nav {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.preview-section {
  background-color: var(--bg);
}

.preview-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.preview-full-image {
  width: 100%;
  max-width: 960px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 48px;
}

.preview-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.preview-cta .btn {
  margin-top: 0;
}

/* ========================================
   FEATURED EBOOK SECTION
   ======================================== */
.featured-ebook-section {
  background-color: var(--bg);
}

.featured-ebook-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.featured-ebook-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.featured-ebook-cover {
  position: sticky;
  top: 24px;
}

.featured-ebook-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  display: block;
}

.featured-ebook-title {
  margin-bottom: 16px;
}

.featured-ebook-price {
  font-family: var(--font-ui);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1;
}

.featured-ebook-desc {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.featured-ebook-desc + .featured-ebook-desc {
  margin-bottom: 32px;
}

.featured-ebook-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.featured-ebook-actions .btn {
  min-width: 260px;
  text-align: center;
  margin-top: 0;
}

/* ========================================
   EBOOK PREVIEW AREA
   ======================================== */
.ebook-preview-area {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.ebook-preview-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.ebook-preview-text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.ebook-preview-image {
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

/* ========================================
   COMPANION GUIDES SECTION
   ======================================== */
.companion-section {
  background-color: var(--bg-alt);
}

.companion-section h2 {
  margin-bottom: 40px;
}

.companion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --section-gap: 72px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 40px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    flex: none;
    width: 100%;
  }

  .hero-image img {
    max-width: 220px;
    margin: 0 auto;
  }

  .inside-grid {
    grid-template-columns: 1fr;
  }

  .featured-ebook-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-ebook-cover {
    position: static;
    max-width: 260px;
  }

  .featured-ebook-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .companion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --section-gap: 56px;
  }

  body {
    font-size: 16px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .catalog-hero {
    padding: 56px 0 48px;
  }

  /* Carousel: bleed grid to screen edges so cards snap cleanly */
  .catalog-grid {
    display: flex;
    flex-direction: row;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    /* negative margin breaks out of container padding; matching padding restores first-card indent */
    margin-left: -24px;
    margin-right: -24px;
    padding: 4px 24px 12px;
  }

  .catalog-grid::-webkit-scrollbar {
    display: none;
  }

  .catalog-grid .product-card {
    flex: 0 0 calc(100vw - 64px);
    scroll-snap-align: start;
    transform: none;
  }

  .catalog-grid .product-card:hover {
    transform: none;
  }

  /* Dot indicators — hidden on desktop, shown on mobile */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }

  .btn-large {
    width: 100%;
    text-align: center;
  }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Featured ebook — mobile */
  .featured-ebook-inner {
    gap: 32px;
  }

  .featured-ebook-cover {
    max-width: 200px;
  }

  .featured-ebook-price {
    font-size: 1.5rem;
  }

  .featured-ebook-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .ebook-preview-area {
    padding-top: 36px;
  }

  /* Companion grid — mobile carousel */
  .companion-grid {
    display: flex;
    flex-direction: row;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 4px 24px 12px;
  }

  .companion-grid::-webkit-scrollbar {
    display: none;
  }

  .companion-grid .product-card {
    flex: 0 0 calc(100vw - 64px);
    scroll-snap-align: start;
    transform: none;
  }

  .companion-grid .product-card:hover {
    transform: none;
  }

  .companion-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
}
