/* ==========================================================================
   MentoringLibrary — "Ink & Saffron" design system
   Bootstrap 5.3 companion stylesheet
   --------------------------------------------------------------------------
   01. Tokens            08. Split / about blocks
   02. Base              09. Guides (book cards)
   03. Utilities         10. CTA band
   04. Buttons           11. Pricing
   05. Topbar + header   12. Library grid
   06. Hero              13. Page hero, contact, pricing
   07. Info cards        14. Footer, back-to-top, responsive
   ========================================================================== */

/* 01. Tokens ------------------------------------------------------------- */
:root {
  --ink: #1e3a37;
  --teal: #4a8b80;
  --teal-2: #6ba89c;
  --teal-soft: #e3efeb;
  --saffron: #d4a373;
  --saffron-soft: #f6ede2;
  --coral: #c48b7a;
  --coral-soft: #f5e8e4;
  --lavender: #8489b4;
  --lavender-soft: #ecedf5;
  --cream: #f4f7f4;
  --mint: #e8f1ed;
  --paper: #ffffff;
  --text: #4a5c5a;
  --muted: #7b8b88;
  --line: #e1e8e4;

  --grad-ink: linear-gradient(160deg, #1e3a37 0%, #2a4c47 100%);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(30, 58, 55, .05);
  --shadow: 0 12px 32px -14px rgba(30, 58, 55, .16);
  --shadow-lg: 0 24px 50px -22px rgba(30, 58, 55, .24);
  --ease: cubic-bezier(.22, .8, .24, 1);

  --header-h: 84px;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-primary: #4a8b80;
  --bs-primary-rgb: 74, 139, 128;
  --bs-link-color: var(--teal);
  --bs-link-hover-color: var(--ink);
}

/* 02. Base --------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.2; }

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }

h3, h4, h5, h6 { font-family: var(--font-body); letter-spacing: -.01em; }

a { color: var(--teal); text-decoration: none; transition: color .25s var(--ease); }

a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }

::selection { background: var(--saffron); color: var(--ink); }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--saffron); color: var(--ink); padding: 10px 18px; border-radius: 10px; font-weight: 700;
}

.skip-link:focus { top: 12px; }

/* 03. Utilities ---------------------------------------------------------- */
.section { padding: 110px 0; position: relative; }

.section-sm { padding: 80px 0; }

.bg-paper { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}

.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--saffron); }

.eyebrow.on-dark { color: var(--teal-2); }

.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }

.section-head .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--saffron); }

.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 16px; }

.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

.text-gradient { color: var(--teal); }

.ink-underline { position: relative; white-space: nowrap; }

.ink-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em; z-index: -1;
  background: var(--saffron); opacity: .35; border-radius: 4px; transform: skewX(-12deg);
}

.icon-tile {
  width: 60px; height: 60px; flex: none; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.5rem;
}

.tile-teal { background: var(--teal-soft); color: var(--teal); }

.tile-saffron { background: var(--saffron-soft); color: #9a6b3f; }

.tile-coral { background: var(--coral-soft); color: var(--coral); }

.tile-lavender { background: var(--lavender-soft); color: var(--lavender); }

/* 04. Buttons ------------------------------------------------------------ */
.btn-ml {
  --pad: 15px 30px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 0;
  font-weight: 700; font-size: .98rem; line-height: 1.2; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: box-shadow .3s ease;
}

.btn-ml i { transition: box-shadow .3s ease; }

.btn-warm { background: var(--saffron); color: var(--ink); box-shadow: none; }

.btn-warm:hover { background: #c9956a; color: var(--ink); }

.btn-teal { background: var(--teal); color: #fff; box-shadow: none; }

.btn-teal:hover { background: #3f7a70; color: #fff; }

.btn-outline-ink { background: transparent; color: var(--ink); border: 2px solid var(--ink); }

.btn-outline-ink:hover { background: var(--ink); color: #fff; }

.btn-sm-ml { --pad: 10px 20px; font-size: .9rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }

.link-arrow i { transition: box-shadow .3s ease; color: var(--coral); }

.link-arrow:hover { color: var(--teal); }

/* 05. Topbar + header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(30, 58, 55, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}

.site-header.is-scrolled { background: rgba(30, 58, 55, .98); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); }

.site-header .navbar { min-height: var(--header-h); padding: 0; transition: min-height .35s var(--ease); }

.site-header.is-scrolled .navbar { min-height: 70px; }

.brand-logo { height: 42px; width: auto; transition: height .35s var(--ease); }

.site-header.is-scrolled .brand-logo { height: 36px; }

.main-nav .nav-link {
  position: relative; color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .92rem; line-height: 1.2;
  padding: 7px 14px !important; margin: 0 2px; border-radius: 999px;
}

.main-nav .nav-link:hover { color: #fff; }
.main-nav .nav-link.active { color: var(--ink); background: var(--saffron); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.5rem; display: grid; place-items: center;
}

.offcanvas.ml-offcanvas { background: var(--grad-ink); color: #fff; width: min(340px, 86vw); }

.ml-offcanvas .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, .08); }

.ml-offcanvas .btn-close { filter: invert(1); opacity: .8; }

.ml-offcanvas .nav-link {
  color: rgba(255, 255, 255, .85); font-weight: 600; font-size: 1.1rem; padding: 14px 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, .1); display: flex; justify-content: space-between;
}

.ml-offcanvas .nav-link.active, .ml-offcanvas .nav-link:hover { color: var(--saffron); }

/* 06. Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--mint) 0%, var(--cream) 100%); color: var(--text);
  padding: 80px 0 150px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 24px;
}

.hero-badge span {
  background: var(--teal-soft); color: var(--teal); border-radius: 999px; padding: 3px 12px;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}

.hero h1 { color: var(--ink); font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.04; margin-bottom: 22px; }

.hero h1 em { font-style: italic; font-weight: 500; color: var(--teal); }

.hero .lead { color: var(--text); font-size: 1.18rem; max-width: 540px; margin-bottom: 36px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; max-width: 560px; margin: 0 auto; aspect-ratio: 1 / 1.02; }
.shelf-panel {
  position: absolute; right: -6%; top: 6%; width: 56%; padding: 18px 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
}
.shelf-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.shelf-head span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-right: auto; }
.shelf-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.shelf-books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shelf-books figure { margin: 0; }
.shelf-books img { width: 100%; aspect-ratio: 491 / 700; object-fit: contain; background: var(--mint); border-radius: 10px; padding: 6px 4px; }
.shelf-books figcaption { font-size: .72rem; font-weight: 700; line-height: 1.3; color: var(--ink); margin-top: 8px; }
.shelf-books figcaption small { display: block; font-weight: 600; color: var(--muted); font-size: .66rem; margin-top: 2px; }
.spot-panel {
  position: absolute; right: -10%; bottom: 8%; width: 52%; z-index: 3;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px;
  background: var(--ink); color: rgba(255, 255, 255, .75); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.spot-panel img { width: 64px; flex: none; }
.spot-panel small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-2); }
.spot-panel strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; margin: 2px 0 6px; }
.spot-panel span { font-size: .8rem; }
.spot-panel span i { color: var(--saffron); margin-right: 4px; }
.hero-visual .reader {
  position: absolute; left: -4%; bottom: 0; z-index: 2; height: 100%; width: auto; max-width: 64%; object-fit: contain; object-position: bottom left;
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent);
}

/* 07. Info cards --------------------------------------------------------- */
.info-strip { position: relative; z-index: 5; margin-top: -110px; }

.info-card {
  height: 100%; display: flex; gap: 18px; align-items: center;
  background: var(--paper); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid rgba(232, 225, 214, .7);
  transition: box-shadow .3s ease;
  position: relative; overflow: hidden;
}

.info-card:hover { box-shadow: var(--shadow-lg); }
.info-card h3 { font-size: 1.08rem; margin-bottom: 4px; }

.info-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

.info-card a { color: var(--ink); font-weight: 600; }

.info-card a:hover { color: var(--teal); }

/* 08. Split / about blocks ---------------------------------------------- */
.media-stack { position: relative; }

.media-stack .main-img {
  border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  box-shadow: var(--shadow-lg); position: relative; z-index: 2;
}

.split-copy h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 20px; }

.split-copy > p { color: var(--muted); font-size: 1.05rem; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0 36px; padding: 0; list-style: none; }

.check-grid li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .95rem;
}

.check-grid i {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); font-size: .95rem;
}

/* 09. Experience bento -------------------------------------------------- */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(260px, auto); gap: 24px;
}

.bento-tile {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  padding: 34px; display: flex; flex-direction: column;
  transition: box-shadow .3s ease;
}

.bento-tile:hover { box-shadow: var(--shadow-lg); }
.bento-tile h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; margin: 0 0 10px; }

.bento-tile p { margin: 0; }

.bento-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--teal-soft); color: var(--teal);
}

.bento-tag.light { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); }

/* Library showcase */
.tile-library {
  grid-column: span 2; grid-row: span 2; padding: 46px 44px 0; color: rgba(255, 255, 255, .78);
  background: var(--ink);
}

.tile-library .bento-tag { background: rgba(212, 163, 115, .16); color: var(--saffron); }

.tile-library h3 { color: #fff; font-size: clamp(1.9rem, 2.8vw, 2.5rem); max-width: 440px; }

.tile-library p { max-width: 430px; margin-bottom: 26px; }

.tile-library .btn-ml { align-self: flex-start; }

.book-fan { position: relative; flex: 1; min-height: 270px; margin-top: 30px; }

.book-fan img {
  position: absolute; left: 50%; bottom: -24px; width: 150px; margin-left: -75px;
  transform-origin: 50% 120%;
  transform: translateX(calc(var(--i) * 70px)) rotate(calc(var(--i) * 6deg));
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45));
  transition: transform .6s var(--ease);
}

.tile-library:hover .book-fan img { transform: translateX(calc(var(--i) * 82px)) translateY(-14px) rotate(calc(var(--i) * 8deg)); }

/* Photo tiles */
.tile-wide { grid-column: span 2; }

.tile-photo { justify-content: flex-end; color: rgba(255, 255, 255, .85); min-height: 280px; }

.tile-photo .tile-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: box-shadow .3s ease;
}

.tile-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30, 58, 55, .1) 30%, rgba(30, 58, 55, .82) 100%);
}

.tile-photo h3 { color: #fff; }

.tile-photo .tile-copy { max-width: 380px; }

/* Number tiles */
.tile-refund, .tile-trial { justify-content: flex-end; }

.tile-refund { background: var(--saffron-soft); color: var(--text); border: 1px solid #ecdcc8; }

.tile-trial { background: var(--lavender-soft); color: var(--text); border: 1px solid #dcdeee; }

.tile-trial h3 { color: var(--ink); }

.big-num {
  font-family: var(--font-display); font-weight: 600; font-size: 5.2rem; line-height: .9; letter-spacing: -.04em;
  color: #b9845a; margin-bottom: 14px;
}

.tile-trial .big-num { color: #6b70a0; }

.big-num small { font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: .02em; margin-left: 8px; }

.tile-refund h3, .tile-trial h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.12rem; margin-bottom: 4px; }

.tile-refund p, .tile-trial p { font-size: .93rem; line-height: 1.5; }

/* Topics */
.tile-topics { grid-column: span 2; background: var(--cream); border: 1px solid var(--line); }

.tile-topics h3 { margin-bottom: 22px; max-width: 420px; }

.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: auto; }

.topic {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px;
  background: var(--paper); border: 1px solid var(--line); font-weight: 700; color: var(--ink);
  transition: box-shadow .3s ease;
}

.topic .icon-tile { width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; }

.topic:hover { color: var(--ink); box-shadow: var(--shadow-sm); border-color: transparent; }

/* 10. CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: 64px 56px; color: #fff; background: var(--ink);
}

.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 14px; }

.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; font-size: 1.06rem; max-width: 560px; }

/* 11. Pricing ------------------------------------------------------------ */
.pricing { background: var(--cream); }

.price-card {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius-lg); padding: 40px 36px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}

.price-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.price-card .plan-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }

.price-card .plan-head h3 { font-size: 1.25rem; margin: 0; }

.price-card .plan-head small { color: var(--muted); font-size: .85rem; }

.price-card .price { font-family: var(--font-display); font-size: 3.1rem; font-weight: 600; color: var(--ink); line-height: 1; }

.price-card .price sup { font-size: 1.4rem; top: -1.1em; margin-right: 2px; }

.price-card .price span { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); }

.price-card .trial {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 26px; padding: 10px 14px; border-radius: 12px;
  background: var(--saffron-soft); color: #8a6038; font-size: .9rem; font-weight: 600;
}

.price-card ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }

.price-card li { display: flex; gap: 12px; align-items: flex-start; }

.price-card li i { color: var(--teal); font-size: 1.1rem; }

.price-card li.na { color: #a5b2bf; text-decoration: line-through; }

.price-card li.na i { color: #c6ced6; }

.price-card .btn-ml { margin-top: auto; width: 100%; }

.price-card.featured {
  background: var(--grad-ink); color: rgba(255, 255, 255, .82); border: 0;
  box-shadow: var(--shadow-lg);
}

.price-card.featured h3, .price-card.featured .price { color: #fff; }

.price-card.featured .plan-head small, .price-card.featured .price span { color: rgba(255, 255, 255, .6); }

.price-card.featured .trial { background: rgba(212, 163, 115, .15); color: var(--saffron); }

.price-card.featured li i { color: var(--saffron); }

.pricing-note { text-align: center; color: var(--muted); margin-top: 50px; font-size: .95rem; }

.pricing-note i { color: var(--teal); margin-right: 6px; }

/* 12. Library grid ------------------------------------------------------- */
.book-card {
  height: 100%; display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: box-shadow .3s ease;
}

.book-card:hover { box-shadow: var(--shadow); }
.book-card .thumb { position: relative; overflow: hidden; aspect-ratio: 342 / 240; }

.book-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: box-shadow .3s ease; }

.book-card .thumb::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(30, 58, 55, .55));
}

.book-card .cat {
  position: absolute; left: 16px; top: 16px; z-index: 1; padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper); color: var(--ink);
}

.book-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }

.book-card h3 { font-size: 1.12rem; margin-bottom: 10px; }

.book-card h3 a { color: var(--ink); }

.book-card h3 a:hover { color: var(--teal); }
.book-card p { color: var(--muted); font-size: .94rem; margin-bottom: 20px; }

.book-card .link-arrow { margin-top: auto; font-size: .92rem; }

.book-card .cover-thumb { aspect-ratio: 1 / 1; }

.book-card .cover-thumb::after { display: none; }

.book-card .cover-thumb img {
  position: absolute; left: 0; right: 0; top: 30px; bottom: 20px; width: 100%; height: calc(100% - 50px);
  object-fit: contain; filter: drop-shadow(0 20px 22px rgba(30, 58, 55, .3));
}

.cover-thumb.t-saffron { background: var(--saffron-soft); }

.cover-thumb.t-lavender { background: var(--lavender-soft); }

.cover-thumb.t-coral { background: var(--coral-soft); }

.cover-thumb.t-teal { background: var(--teal-soft); }

/* 13a. Page hero --------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--text); text-align: center; padding: 72px 0 78px;
  background: linear-gradient(180deg, rgba(232, 241, 237, .9) 0%, rgba(244, 247, 244, .97) 100%),
              url("../img/photos/page-library.jpg") center 40% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.page-hero + .section { padding-top: 84px; }

.page-hero h1 { color: var(--ink); font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 18px; }

.page-hero p { color: var(--text); max-width: 560px; margin: 0 auto 26px; font-size: 1.08rem; }

.crumbs {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; margin: 0; list-style: none;
  border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600;
}

.crumbs a { color: var(--muted); }

.crumbs a:hover { color: var(--teal); }
.crumbs i { font-size: .7rem; color: var(--teal); }

.crumbs [aria-current] { color: var(--ink); }

/* 13b. About ------------------------------------------------------------- */
.value-card {
  height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); transition: box-shadow .3s ease;
}

.value-card:hover { box-shadow: var(--shadow-lg); }
.value-card .vc-img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }

.value-card .vc-img img { width: 100%; height: 100%; object-fit: cover; transition: box-shadow .3s ease; }

.value-card .vc-num {
  position: absolute; right: 18px; bottom: -26px; z-index: 2;
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: var(--shadow); border: 4px solid var(--paper);
}

.value-card .vc-body { padding: 34px 30px 32px; }

.value-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-bottom: 12px; }

.value-card p { color: var(--muted); margin: 0; }

.feature-row { display: grid; gap: 18px; margin: 30px 0 36px; }

.feature-row .item { display: flex; gap: 18px; align-items: flex-start; }

.feature-row h3 { font-size: 1.08rem; margin-bottom: 4px; }

.feature-row p { margin: 0; color: var(--muted); font-size: .96rem; }

/* 13c. Contact ----------------------------------------------------------- */
.contact-panel {
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; margin-top: 56px; position: relative; z-index: 3;
}

.contact-aside {
  height: 100%; padding: 48px 40px; color: rgba(255, 255, 255, .78); background: var(--ink); position: relative;
}

.contact-aside h2 { color: #fff; font-size: 1.9rem; margin-bottom: 12px; }

.contact-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }

.contact-list li { display: flex; gap: 16px; align-items: flex-start; }

.contact-list .icon-tile { width: 48px; height: 48px; border-radius: 14px; font-size: 1.2rem; background: rgba(255, 255, 255, .08); color: var(--saffron); }

.contact-list small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--teal-2); }

.contact-list span, .contact-list a { color: #fff; font-weight: 600; }

.contact-list a:hover { color: var(--saffron); }
.contact-form-wrap { padding: 48px 44px; }

.contact-form-wrap h2 { font-size: 2rem; margin-bottom: 10px; }

.form-label { font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 8px; }

.form-label .req { color: var(--coral); }

.form-control {
  border-radius: 14px; border: 1.5px solid var(--line); background-color: #fffdfa;
  padding: 14px 18px; font-size: .98rem; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}

.form-control::placeholder { color: #9eabb8; }

.form-control:focus {
  border-color: var(--teal); background-color: #fff; box-shadow: 0 0 0 4px rgba(74, 139, 128, .14);
}

.was-validated .form-control:invalid { border-color: var(--coral); }

.invalid-feedback { color: var(--coral); }

.form-alert {
  display: none; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px;
  background: var(--teal-soft); color: #3c7369; font-weight: 600; margin-top: 18px;
}

.form-alert.show { display: flex; }

/* 13f. Pricing page ---------------------------------------------------- */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 56px;
}

.trust-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 600; color: var(--ink); font-size: .93rem;
}

.trust-item > i { color: var(--teal); font-size: 1.1rem; }

.trust-item img { height: 22px; width: auto; border-radius: 4px; border: 1px solid var(--line); }

.step-card {
  position: relative; height: 100%; padding: 38px 32px; border-radius: var(--radius-lg);
  background: var(--cream); border: 1px solid var(--line); overflow: hidden;
  transition: box-shadow .3s ease;
}

.step-card:hover { box-shadow: var(--shadow); background: var(--paper); }

.step-card .step-num { position: absolute; right: 26px; top: 24px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.step-card .icon-tile { margin-bottom: 24px; }

.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

.step-card p { color: var(--muted); margin: 0; }

/* 14a. Footer ------------------------------------------------------------ */
.site-footer {
  position: relative; color: rgba(255, 255, 255, .7); background: var(--ink); padding-top: 90px;
}

.site-footer h3 {
  color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 24px;
}

.footer-logo { width: 210px; height: auto; margin-bottom: 20px; }

.footer-about p { max-width: 340px; }

.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }

.footer-links a { color: rgba(255, 255, 255, .72); display: inline-flex; align-items: center; gap: 8px; }

.footer-links a i { font-size: .7rem; color: var(--saffron); transition: box-shadow .3s ease; }

.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }

.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.55; }

.footer-contact i { flex: none; width: 18px; font-size: 1.05rem; line-height: 1.5; color: var(--teal-2); }

.footer-contact a { color: #fff; }

.footer-contact a:hover { color: var(--saffron); }
.footer-pay { display: flex; align-items: center; gap: 10px; margin-top: 22px; }

.footer-pay img {
  height: 38px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px;
}

.footer-bottom {
  margin-top: 70px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .86rem; color: rgba(255, 255, 255, .55); text-align: center;
}

/* 14b. Back-to-top ------------------------------------------------------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 1040; width: 54px; height: 54px; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .4s var(--ease);
}

.to-top.show { opacity: 1; visibility: visible; transform: none; }

.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }

.to-top circle { fill: none; stroke: var(--saffron); stroke-width: 3; stroke-linecap: round; }

.to-top i { font-size: 1.15rem; }

.to-top:hover { background: var(--teal); }

/* 14d. Responsive -------------------------------------------------------- */
@media (max-width: 991.98px) {
  :root { --header-h: 72px; }

  .trust-strip { margin-top: 40px; }

  .section { padding: 84px 0; }

  .brand-logo { height: 36px; }

  .hero { padding: 60px 0 160px; text-align: center; }

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

  .hero-actions { justify-content: center; }

  .hero-visual { margin-top: 40px; max-width: 480px; }

  .media-stack { margin-bottom: 20px; }

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

  .tile-library { grid-row: span 1; }

  .cta-band { padding: 56px 36px; text-align: center; }

  .cta-band p { margin: 0 auto 26px; }

  .contact-panel { margin-top: 40px; }

}
@media (max-width: 767.98px) {
  .section { padding: 72px 0; }

  .info-strip { margin-top: -100px; }

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

  .bento-tile { padding: 28px 24px; }

  .tile-library { padding: 34px 26px 0; }

  .contact-aside, .contact-form-wrap { padding: 36px 24px; }

}
@media (max-width: 575.98px) {

  

  .price-card { padding: 32px 24px; }
  .shelf-panel { width: 58%; right: 0; padding: 12px; }
  .hero-visual .reader { max-width: 62%; left: -2%; }
  .shelf-books { gap: 8px; }
  .shelf-books figcaption { display: none; }
  .spot-panel { width: 62%; right: 0; padding: 10px 12px; }
  .spot-panel img { width: 44px; }
  .spot-panel strong { font-size: .95rem; }

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

  .bento-tile, .tile-library, .tile-wide, .tile-topics { grid-column: auto; }

  .book-fan { min-height: 160px; margin-top: 10px; }

  .book-fan img { width: 112px; margin-left: -56px; transform: translateX(calc(var(--i) * 40px)) rotate(calc(var(--i) * 7deg)); }

  .tile-library:hover .book-fan img { transform: translateX(calc(var(--i) * 46px)) translateY(-10px) rotate(calc(var(--i) * 8deg)); }

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

  .to-top { right: 16px; bottom: 16px; }

}

/* Policy pages inherit Ebookon's reading typography, including CRM content. */
.legal-section { padding-top: 48px; }
.legal-document { max-width: 960px; margin-inline: auto; padding: clamp(24px, 5vw, 56px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.legal-policy { font-family: var(--font-body); color: var(--text); font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.legal-policy :where(p, div, span, li, a, font, td, th) { font-family: inherit; font-size: inherit; color: inherit; line-height: inherit; }
.legal-policy :is(h1, h2, h3, h4, h5, h6) { color: var(--ink); line-height: 1.3; margin: 2rem 0 1rem; font-style: normal; }
.legal-policy :is(h1, h2) { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
.legal-policy :is(h3, h4, h5, h6) { font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; }
.legal-policy :is(h1, h2, h3, h4, h5, h6) * { font-family: inherit; font-size: inherit; font-weight: inherit; font-style: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; }
.legal-policy h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.legal-policy h2 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); }
.legal-policy :where(h3, h4, h5, h6) { font-size: 1.2rem; }
.legal-policy > :first-child { margin-top: 0; }
.legal-policy p { margin: 0 0 1.25rem; }
.legal-policy :where(ul, ol) { padding-left: 1.5rem; margin: 0 0 1.5rem; list-style-position: outside; }
.legal-policy ul { list-style-type: disc; }
.legal-policy ol { list-style-type: decimal; }
.legal-policy li { margin-bottom: .65rem; }
.legal-policy a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal-policy a:hover { color: var(--ink); }
.legal-policy table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 1.5rem; }
.legal-policy :where(td, th) { border: 1px solid var(--line); padding: .75rem; }

/* API document headings use the same sans-serif family as template UI headings.
   Keep the decorative display face for the page hero only. */
.legal-document .legal-policy .policy-heading,
.legal-document .legal-policy .policy-heading * {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: -.025em;
}
.legal-document .legal-policy .policy-heading {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  margin: 2.25rem 0 1rem;
  text-transform: none;
}
.legal-document .legal-policy .policy-heading * {
  font-size: inherit !important;
  line-height: inherit !important;
}

.policy-hero h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -.035em;
  line-height: 1.2;
}
