/* =========================================================
   Center Point · Mobile Tools Story
   File suggestion:
   /wp-content/themes/YOUR-CHILD-THEME/css/cp-tools-mobile-story.css

   This CSS is scoped to .cp-mobile-tools-story so it can live
   beside the desktop Tools page safely.
   ========================================================= */

.cp-mobile-tools-story {
  --cp-bg: #f2ead7;
  --cp-panel: #f7efdc;
  --cp-text: #191713;
  --cp-muted: #6f654f;
  --cp-line: rgba(70, 58, 39, 0.25);
  --cp-line-soft: rgba(70, 58, 39, 0.14);
  --cp-gold: #a88437;
  --cp-gold-bright: #e4c36a;
  --cp-blue: #263244;
  --cp-blue-soft: #5f6f84;
  --cp-night: #11100c;
  --cp-cream: #f3ead6;
  --cp-story-offset: 0px;

  width: min(430px, calc(100vw - 32px));
  height: min(820px, calc(100svh - 32px));
  margin: 32px auto;
  overflow: hidden;
  background: var(--cp-bg);
  color: var(--cp-text);
  border: 1px solid rgba(70, 58, 39, 0.22);
  box-shadow: 0 24px 70px rgba(54, 44, 28, 0.14);
  font-family: inherit;
}

.cp-mobile-tools-story * {
  box-sizing: border-box;
}

.cp-mobile-tools-story a {
  color: inherit;
}

.cp-mobile-tools-story .cp-story-track {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cp-mobile-tools-story .cp-story-track::-webkit-scrollbar {
  display: none;
}

.cp-mobile-tools-story .cp-story-slide {
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cp-mobile-tools-story .cp-story-inner {
  height: 100%;
  min-height: 100%;
  padding: 36px 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cp-mobile-tools-story .cp-story-inner.cp-top-weighted {
  justify-content: flex-start;
  padding-top: 38px;
}

.cp-mobile-tools-story .cp-story-inner.cp-space-between {
  justify-content: space-between;
}

/* Themes */

.cp-mobile-tools-story .cp-theme-cream {
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.36), transparent 54%),
    var(--cp-bg);
  color: var(--cp-text);
}

.cp-mobile-tools-story .cp-theme-panel {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.34), transparent 46%),
    var(--cp-panel);
  color: var(--cp-text);
}

.cp-mobile-tools-story .cp-theme-blue {
  background:
    radial-gradient(circle at 22% 0%, rgba(255,255,255,0.12), transparent 44%),
    linear-gradient(150deg, #263244, #1d2837);
  color: var(--cp-cream);
}

.cp-mobile-tools-story .cp-theme-blue-soft {
  background:
    radial-gradient(circle at 22% 0%, rgba(255,255,255,0.12), transparent 44%),
    linear-gradient(150deg, #5f6f84, #314156);
  color: var(--cp-cream);
}

.cp-mobile-tools-story .cp-theme-night {
  background:
    radial-gradient(circle at 30% 0%, rgba(117,149,166,0.18), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(168,132,55,0.12), transparent 32%),
    var(--cp-night);
  color: var(--cp-cream);
}

/* Typography */

.cp-mobile-tools-story .cp-story-slide h1,
.cp-mobile-tools-story .cp-story-slide h2,
.cp-mobile-tools-story .cp-story-slide h3,
.cp-mobile-tools-story .cp-story-slide p {
  margin-top: 0;
}

.cp-mobile-tools-story .cp-story-slide h1,
.cp-mobile-tools-story .cp-story-slide h2,
.cp-mobile-tools-story .cp-story-slide h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.052em;
  color: inherit;
}

.cp-mobile-tools-story .cp-story-slide h1 {
  font-size: clamp(60px, 17vw, 82px);
  margin-bottom: 22px;
}

.cp-mobile-tools-story .cp-story-slide h2 {
  font-size: clamp(46px, 13.5vw, 66px);
  margin-bottom: 20px;
}

.cp-mobile-tools-story .cp-story-slide h3 {
  font-size: clamp(34px, 10vw, 48px);
  margin-bottom: 16px;
}

.cp-mobile-tools-story .cp-story-slide em {
  color: var(--cp-gold);
  font-style: italic;
  font-weight: inherit;
}

.cp-mobile-tools-story .cp-theme-blue em,
.cp-mobile-tools-story .cp-theme-blue-soft em,
.cp-mobile-tools-story .cp-theme-night em {
  color: #d0a64f;
}

.cp-mobile-tools-story .cp-story-kicker,
.cp-mobile-tools-story .cp-story-meta,
.cp-mobile-tools-story .cp-story-small-label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1.55;
  color: var(--cp-muted);
  margin: 0 0 18px;
}

.cp-mobile-tools-story .cp-theme-blue .cp-story-kicker,
.cp-mobile-tools-story .cp-theme-blue-soft .cp-story-kicker,
.cp-mobile-tools-story .cp-theme-night .cp-story-kicker,
.cp-mobile-tools-story .cp-theme-blue .cp-story-small-label,
.cp-mobile-tools-story .cp-theme-blue-soft .cp-story-small-label,
.cp-mobile-tools-story .cp-theme-night .cp-story-small-label {
  color: #d0a64f;
}

.cp-mobile-tools-story .cp-story-copy {
  color: #4f483b;
  font-size: 17px;
  line-height: 1.62;
  margin-bottom: 24px;
  max-width: 25ch;
}

.cp-mobile-tools-story .cp-theme-blue .cp-story-copy,
.cp-mobile-tools-story .cp-theme-blue-soft .cp-story-copy,
.cp-mobile-tools-story .cp-theme-night .cp-story-copy {
  color: rgba(243, 234, 214, 0.82);
}

.cp-mobile-tools-story .cp-story-button {
  display: inline-block;
  width: fit-content;
  color: var(--cp-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 132, 55, 0.42);
  padding-bottom: 6px;
}

.cp-mobile-tools-story .cp-story-button:hover {
  color: var(--cp-text);
  border-bottom-color: var(--cp-text);
}

.cp-mobile-tools-story .cp-theme-blue .cp-story-button,
.cp-mobile-tools-story .cp-theme-blue-soft .cp-story-button,
.cp-mobile-tools-story .cp-theme-night .cp-story-button {
  color: var(--cp-gold-bright);
  border-bottom-color: rgba(228, 195, 106, 0.5);
}

.cp-mobile-tools-story .cp-theme-blue .cp-story-button:hover,
.cp-mobile-tools-story .cp-theme-blue-soft .cp-story-button:hover,
.cp-mobile-tools-story .cp-theme-night .cp-story-button:hover {
  color: var(--cp-cream);
  border-bottom-color: var(--cp-cream);
}

.cp-mobile-tools-story .cp-story-subtle {
  display: block;
  width: fit-content;
  margin-top: 16px;
  color: rgba(93, 84, 68, 0.72);
  font-size: 13px;
  text-decoration: none;
}

.cp-mobile-tools-story .cp-story-subtle:hover {
  color: var(--cp-gold);
}

.cp-mobile-tools-story .cp-story-swipe {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  margin: 0;
  color: rgba(122, 110, 88, 0.72);
  font-size: 12px;
  font-style: italic;
}

.cp-mobile-tools-story .cp-theme-night .cp-story-swipe,
.cp-mobile-tools-story .cp-theme-blue .cp-story-swipe {
  color: rgba(243, 234, 214, 0.58);
}

.cp-mobile-tools-story .cp-story-rule {
  width: 86px;
  height: 1px;
  background: rgba(168, 132, 55, 0.45);
  margin: 22px 0 26px;
}

.cp-mobile-tools-story .cp-story-meta {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(70, 58, 39, 0.22);
  color: #7f7259;
  font-size: 12px;
  line-height: 1.6;
}

.cp-mobile-tools-story .cp-theme-blue .cp-story-meta,
.cp-mobile-tools-story .cp-theme-blue-soft .cp-story-meta,
.cp-mobile-tools-story .cp-theme-night .cp-story-meta {
  border-top-color: rgba(243, 234, 214, 0.22);
  color: rgba(243, 234, 214, 0.68);
}

/* Guide slide */

.cp-mobile-tools-story .cp-choice-list {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.cp-mobile-tools-story .cp-choice {
  display: block;
  padding: 18px 0;
  border-top: 1px solid rgba(70, 58, 39, 0.22);
  color: inherit;
  text-decoration: none;
}

.cp-mobile-tools-story .cp-choice:last-child {
  border-bottom: 1px solid rgba(70, 58, 39, 0.22);
}

.cp-mobile-tools-story .cp-choice strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 8px;
  color: inherit;
}

.cp-mobile-tools-story .cp-choice span {
  display: block;
  color: var(--cp-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.35;
}

/* Thematic image accents */

.cp-mobile-tools-story .cp-scene-accent {
  position: absolute;
  right: -4%;
  bottom: 2%;
  width: 62%;
  height: 42%;
  overflow: hidden;
  border-radius: 24px 0 0 24px;
  opacity: 0.82;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
}

.cp-mobile-tools-story .cp-scene-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}

.cp-mobile-tools-story .cp-scene-left .cp-scene-accent {
  left: -4%;
  right: auto;
  border-radius: 0 24px 24px 0;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
}

.cp-mobile-tools-story .cp-scene-top .cp-scene-accent {
  top: 0;
  right: -8%;
  bottom: auto;
  width: 72%;
  height: 32%;
  opacity: 0.68;
}

.cp-mobile-tools-story .cp-scene-wide .cp-scene-accent {
  right: -8%;
  bottom: 0;
  width: 84%;
  height: 34%;
  border-radius: 26px 0 0 0;
  opacity: 0.76;
}

.cp-mobile-tools-story .cp-theme-blue .cp-scene-accent,
.cp-mobile-tools-story .cp-theme-blue-soft .cp-scene-accent {
  opacity: 0.48;
  mix-blend-mode: screen;
}

/* Meditation hero image treatment, softened into dark section */

.cp-mobile-tools-story .cp-meditation-slide .cp-story-inner {
  justify-content: flex-start;
  padding-top: 18px;
}

.cp-mobile-tools-story .cp-meditation-hero {
  width: calc(100% + 28px);
  margin-left: -14px;
  margin-right: -14px;
  height: 40svh;
  min-height: 230px;
  max-height: 340px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #11100c;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.24);
}

.cp-mobile-tools-story .cp-meditation-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) brightness(0.92) contrast(0.98);
}

.cp-mobile-tools-story .cp-meditation-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(17,16,12,0) 0%,
      rgba(17,16,12,0) 54%,
      rgba(17,16,12,0.28) 72%,
      rgba(17,16,12,0.88) 100%
    ),
    linear-gradient(
      to right,
      rgba(17,16,12,0.48) 0%,
      rgba(17,16,12,0.08) 22%,
      rgba(17,16,12,0) 48%
    ),
    linear-gradient(
      to left,
      rgba(17,16,12,0.38) 0%,
      rgba(17,16,12,0.06) 24%,
      rgba(17,16,12,0) 52%
    );
}

/* Session format label */

.cp-mobile-tools-story .cp-session-format {
  margin: 0 0 10px;
  color: rgba(228, 195, 106, 0.86);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cp-mobile-tools-story .cp-session-format + .cp-story-kicker {
  margin-bottom: 14px;
  color: rgba(243, 234, 214, 0.58);
}

/* Index */

.cp-mobile-tools-story .cp-index-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(70, 58, 39, 0.22);
}

.cp-mobile-tools-story .cp-index-group:first-of-type {
  margin-top: 8px;
}

.cp-mobile-tools-story .cp-index-group p {
  margin: 0 0 10px;
}

.cp-mobile-tools-story .cp-index-list {
  display: grid;
  gap: 7px;
}

.cp-mobile-tools-story .cp-index-list a {
  display: block;
  color: var(--cp-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.26;
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid rgba(168, 132, 55, 0.26);
  padding-bottom: 3px;
}

.cp-mobile-tools-story .cp-index-list a:hover {
  color: var(--cp-text);
  border-bottom-color: var(--cp-text);
}

/* Real phone: full viewport. Desktop test page: phone-sized preview. */

@media (max-width: 767px) {
  .cp-mobile-tools-story {
    width: 100vw;
    max-width: none;
    height: calc(100svh - var(--cp-story-offset));
    margin: 0 calc(50% - 50vw);
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 380px) {
  .cp-mobile-tools-story .cp-story-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cp-mobile-tools-story .cp-story-slide h1 {
    font-size: clamp(54px, 16vw, 74px);
  }

  .cp-mobile-tools-story .cp-story-slide h2 {
    font-size: clamp(40px, 12vw, 60px);
  }

  .cp-mobile-tools-story .cp-story-copy {
    font-size: 16px;
  }

  .cp-mobile-tools-story .cp-meditation-hero {
    min-height: 210px;
  }
  .cp-mobile-tools-story .cp-meditation-slide h3 {
  font-size: clamp(36px, 10.5vw, 50px);
  line-height: 1.02;
  margin-bottom: 16px;
}

.cp-mobile-tools-story .cp-meditation-slide .cp-story-copy {
  font-size: 16px;
  line-height: 1.58;
  margin-bottom: 22px;
}
  .cp-mobile-tools-story .cp-release-slide {
  position: relative;
  background: #11100c;
}

.cp-mobile-tools-story .cp-release-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cp-mobile-tools-story .cp-release-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.58;
  filter: saturate(0.92) brightness(0.82) contrast(1.05);
}

.cp-mobile-tools-story .cp-release-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(17,16,12,0.18) 0%,
      rgba(17,16,12,0.34) 42%,
      rgba(17,16,12,0.78) 100%
    ),
    radial-gradient(
      circle at 72% 42%,
      rgba(228,195,106,0.08),
      transparent 44%
    );
}

.cp-mobile-tools-story .cp-release-slide .cp-story-inner {
  position: relative;
  z-index: 2;
}
}
