/* =========================================================
   अपरिचित का प्रभाव — Sales & Thank-You page stylesheet
   Design language: literary / editorial / warm / restrained
   ========================================================= */

:root {
  /* Colour tokens */
  --ivory: #F5EFE2;
  --paper: #FBF8F0;
  --ink: #241F1A;
  --ink-soft: #574737;
  --brown: #4A3527;
  --vermilion: #B8451F;
  --vermilion-dark: #953417;
  --gold: #9C7A3C;
  --line: rgba(74, 53, 39, 0.16);
  --shadow: 0 20px 45px rgba(36, 31, 26, 0.10);

  /* Type */
  --font-display: "Noto Serif Devanagari", "EB Garamond", serif;
  --font-body: "Noto Sans Devanagari", "EB Garamond", serif;
  --font-latin: "EB Garamond", serif;

  --measure: 42rem;
  --measure-wide: 60rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-latin);
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 0.9em;
}

.container {
  width: 100%;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

section { position: relative; padding: 5.5rem 0; }

.section-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 5rem;
  margin: 0 auto 2.4rem;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}
.section-divider__mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vermilion);
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 239, 226, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--measure-wide);
  margin: 0 auto;
}
.site-header__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.header-cta {
  display: none;
}
@media (min-width: 720px) {
  .header-cta { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 2.1rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--primary {
  background: var(--vermilion);
  color: var(--paper);
  box-shadow: 0 10px 26px rgba(184, 69, 31, 0.28);
}
.btn--primary:hover {
  background: var(--vermilion-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(184, 69, 31, 0.34);
}
.btn--primary:focus-visible,
.btn--ghost:focus-visible {
  outline: 2px solid var(--vermilion-dark);
  outline-offset: 3px;
}
.btn--ghost {
  background: transparent;
  border-color: var(--brown);
  color: var(--brown);
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
}
.btn--ghost:hover { background: rgba(74,53,39,0.06); }
.btn--small { padding: 0.65rem 1.3rem; font-size: 0.88rem; }
.btn--block { width: 100%; justify-content: center; }

.cta-micro {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  position: relative;
}
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}
.hero__kicker {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: block;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin-bottom: 0.35em;
}
.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--brown);
  margin-bottom: 1.4rem;
}
.hero__lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
  margin: 1.8rem 0 0.4rem;
}
.hero__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--vermilion-dark);
  font-weight: 700;
}
.hero__author {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* book cover mockup */
.cover-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.book-cover {
  width: min(300px, 70vw);
  aspect-ratio: 5 / 7.6;
  background: linear-gradient(160deg, var(--brown) 0%, #2c1f16 100%);
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    0 30px 60px rgba(36,31,26,0.35),
    inset -10px 0 18px rgba(0,0,0,0.25);
  position: relative;
  color: var(--ivory);
  padding: 2.1rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-2.5deg);
  transition: transform 0.5s ease;
}
.book-cover::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: rgba(0,0,0,0.28);
  border-radius: 2px 0 0 2px;
}
.cover-stage:hover .book-cover { transform: rotate(0deg); }
.book-cover__eyebrow {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.book-cover__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 0.9rem 0 0.5rem;
}
.book-cover__subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.55;
}
.book-cover__mark {
  align-self: flex-start;
  width: 34px; height: 34px;
  border: 1px solid rgba(245,239,226,0.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.book-cover__author {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.cover-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.7;
  margin-top: 1rem;
}

/* signature path motif */
.path-thread {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.path-thread svg { height: 100%; width: 100%; }

/* ---------- Questions / curiosity ---------- */
.curiosity { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.curiosity h2 { text-align: center; max-width: 40rem; margin-left: auto; margin-right: auto; }
.question-list {
  list-style: none;
  margin: 2.6rem auto 0;
  padding: 0;
  max-width: 38rem;
  display: grid;
  gap: 1.1rem;
}
.question-list li {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--brown);
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--vermilion);
  background: var(--ivory);
}

/* ---------- Core idea ---------- */
.core-idea__wrap {
  display: grid;
  gap: 2.4rem;
  align-items: start;
}
@media (min-width: 860px) {
  .core-idea__wrap { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }
}
.core-idea h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.core-idea__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.core-idea__list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-soft);
}
.core-idea__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Benefits grid ---------- */
.benefits-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.6rem;
}
@media (min-width: 700px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
.benefit-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow);
}
.benefit-card h3 {
  font-size: 1.12rem;
  color: var(--vermilion-dark);
  margin-bottom: 0.5em;
}
.benefit-card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Inside the book / chapters ---------- */
.chapters-list {
  counter-reset: chapter;
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.chapters-list li {
  counter-increment: chapter;
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.chapters-list li::before {
  content: counter(chapter, decimal-leading-zero);
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  flex-shrink: 0;
  width: 2.1rem;
}
.chapters-list span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brown);
}

/* ---------- Stories ---------- */
.stories { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.stories-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.8rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 760px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .stories-grid { grid-template-columns: repeat(3, 1fr); }
}
.story-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.7rem 1.5rem;
}
.story-card__where {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}
.story-card h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.story-card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0; }
.stories-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 2.2rem;
}

/* ---------- For you / not for you ---------- */
.fit-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.6rem;
}
@media (min-width: 800px) {
  .fit-grid { grid-template-columns: 1fr 1fr; }
}
.fit-card {
  padding: 1.9rem 1.8rem;
  border-radius: 4px;
}
.fit-card--yes { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--vermilion); }
.fit-card--no { background: transparent; border: 1px dashed var(--line); }
.fit-card h3 { font-size: 1.15rem; }
.fit-card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.fit-card li { margin-bottom: 0.6rem; font-size: 0.97rem; }

/* ---------- 30 day plan ---------- */
.plan-section {
  background: linear-gradient(180deg, var(--brown) 0%, #2c1f16 100%);
  color: var(--ivory);
  border-radius: 6px;
  padding: 3.4rem 2rem;
  margin: 0 auto;
  max-width: var(--measure-wide);
}
.plan-section h2 { color: var(--ivory); }
.plan-section .eyebrow { color: #D9B77C; }
.plan-section p { color: rgba(245,239,226,0.82); }
.plan-weeks {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .plan-weeks { grid-template-columns: repeat(4, 1fr); }
}
.plan-week {
  background: rgba(245,239,226,0.06);
  border: 1px solid rgba(245,239,226,0.18);
  border-radius: 4px;
  padding: 1.2rem 1.1rem;
}
.plan-week__label {
  font-family: var(--font-latin);
  font-style: italic;
  color: #D9B77C;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.4rem;
}
.plan-week h4 { color: var(--ivory); font-size: 1rem; margin-bottom: 0.3em; }
.plan-week p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Author ---------- */
.author-block {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}
@media (min-width: 760px) {
  .author-block { grid-template-columns: 220px 1fr; }
}
.author-photo {
  width: 100%;
  max-width: 220px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  filter: grayscale(0.08) sepia(0.06);
}
.author-name { font-size: 1.5rem; margin-bottom: 0.2em; }
.author-role { color: var(--gold); font-family: var(--font-latin); font-style: italic; margin-bottom: 1rem; display: block; }
.author-bio { color: var(--ink-soft); }

/* ---------- Preview ---------- */
.preview-grid {
  display: grid;
  gap: 1.3rem;
  margin-top: 2.6rem;
}
@media (min-width: 700px) {
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
}
.preview-page {
  aspect-ratio: 3/4;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.preview-page span:first-child { font-size: 1.6rem; }

/* ---------- Emotional journey ---------- */
.journey {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.6rem;
}
.journey span {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--brown);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.journey .arrow { border: none; background: none; color: var(--gold); padding: 0.6rem 0.1rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.3rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brown);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-latin);
  font-size: 1.4rem;
  color: var(--vermilion);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 1.3rem; margin: 0; max-width: 42rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.final-cta h2 { max-width: 32rem; margin: 0 auto 0.5em; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.final-cta__lede { max-width: 34rem; margin: 0 auto 2rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.6rem 0 6.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
@media (min-width: 720px) { .site-footer { padding-bottom: 2.6rem; } }
.site-footer a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -12px 24px rgba(36,31,26,0.08);
}
.sticky-cta__price { font-family: var(--font-display); color: var(--vermilion-dark); font-weight: 700; }
@media (min-width: 720px) { .sticky-cta { display: none; } }

/* ---------- Reveal on scroll ----------
   JS adds .reveal-armed once it has confirmed it can observe and
   reveal elements, so content is never hidden if JS fails to run. */
.reveal-armed { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-armed.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Thank-you page ---------- */
.ty-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.ty-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--vermilion);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.5rem;
}
.ty-hero__body { text-align: center; max-width: 30rem; margin: 0 auto; }
.ty-cover { display: flex; justify-content: center; margin: 2.2rem 0; }
.ty-support {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.reflect-list { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 34rem; display: grid; gap: 1rem; }
.reflect-list li {
  font-family: var(--font-display);
  color: var(--brown);
  padding: 1rem 1.3rem;
  background: var(--paper);
  border-left: 2px solid var(--gold);
}
