
/* CHILLIPOP POSTER THEME */
:root {
  --poster-rose: #e9799d;
  --poster-pink: #f6b5cb;
  --poster-blush: #ffe4e8;
  --poster-cream: #fff2d4;
  --poster-burgundy: #7d2638;
  --poster-warm: #a65c50;
}

body {
  background:
    radial-gradient(circle at 12% 12%,
      rgba(255, 231, 235, .95), transparent 32%),
    radial-gradient(circle at 88% 25%,
      rgba(255, 205, 215, .75), transparent 35%),
    linear-gradient(145deg,
      #f9d5d7 0%,
      #f4b8c5 42%,
      #fbe7d2 100%) !important;
  color: var(--poster-burgundy);
}

/* Soft poster-like cards */
.card,
.panel,
section,
.feature-card,
.ingredient-card {
  border-color: rgba(125, 38, 56, .22);
}

.card,
.panel,
.feature-card,
.ingredient-card {
  box-shadow: 0 5px 16px rgba(105, 40, 50, .13);
}

/* Ingredient and product images */
img {
  border-radius: 14px;
}

.ingredient-card img,
.feature-card img {
  background: var(--poster-cream);
  padding: 5px;
}

/* Pink and cream accents */
button,
.btn,
.primary-button {
  background: linear-gradient(135deg,
    var(--poster-rose), var(--poster-pink));
  border-color: var(--poster-rose);
  color: #fff;
}

h1, h2, h3 {
  color: var(--poster-burgundy);
}

/* Decorative dental sparkle */
body::after {
  content: "✦  ♡  ✧  🦷  ✧  ♡  ✦";
  display: block;
  text-align: center;
  padding: 16px 8px;
  color: rgba(125, 38, 56, .45);
  letter-spacing: 7px;
  pointer-events: none;
}


/* POSTER CONTENT SECTIONS */
.poster-content-section {
  max-width: 1120px;
  margin: 54px auto;
  padding: 34px clamp(18px, 4vw, 42px);
  border: 1px solid rgba(125, 38, 56, .18);
  border-radius: 28px;
  background: rgba(255, 248, 239, .82);
  box-shadow: 0 12px 32px rgba(105, 40, 50, .10);
}

.poster-section-title {
  text-align: center;
  margin-bottom: 26px;
}

.poster-kicker {
  display: inline-block;
  color: #a34b69;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: 8px;
}

.poster-content-section h2 {
  margin: 5px 0 12px;
  color: #7d2638;
}

.poster-content-section h3 {
  color: #7d2638;
}

.poster-benefit-grid,
.poster-ai-grid,
.poster-outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.poster-info-card,
.poster-ai-grid article,
.poster-outcome-grid article {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff4d9, #ffe0e9);
  border: 1px solid rgba(125, 38, 56, .15);
}

.poster-card-icon {
  font-size: 1.7rem;
}

.poster-process-list {
  display: grid;
  gap: 12px;
}

.poster-process-list article {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 15px 18px;
  border-radius: 16px;
  background: #fff0d4;
}

.poster-process-list article span {
  flex: 0 0 42px;
  color: #b64268;
  font-weight: 800;
}

.poster-process-list p,
.poster-info-card p,
.poster-ai-grid p,
.poster-outcome-grid p {
  margin: 7px 0 0;
  line-height: 1.65;
}

.poster-ai-grid article span,
.poster-outcome-grid article span {
  font-size: 1.8rem;
  color: #c23c70;
}

.poster-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.poster-comparison figure {
  width: min(100%, 320px);
  margin: 0;
  text-align: center;
}

.poster-comparison img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff8eb;
  border: 2px solid #eaa0b7;
  border-radius: 20px;
  padding: 8px;
}

.poster-comparison figcaption {
  margin-top: 10px;
  font-weight: 800;
  color: #7d2638;
}

.poster-arrow {
  font-size: 2rem;
  color: #a34b69;
}

.poster-research-note {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 225, 232, .75);
  color: #7d2638;
  font-size: .9rem;
  line-height: 1.65;
}

.poster-conclusion {
  text-align: center;
  background: linear-gradient(135deg, #f6b5cb, #fff0d4);
}

@media (max-width: 600px) {
  .poster-content-section {
    margin: 28px 12px;
    padding: 24px 16px;
    border-radius: 22px;
  }
  .poster-process-list article {
    padding: 13px;
  }
}


/* CHILLIPOP SECTION SUMMARY STYLE */
.poster-section-summary {
  max-width: 720px;
  margin: 0.65rem auto 1.25rem;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--burgundy, #8B3A50);
  border-radius: 0 12px 12px 0;
  background: rgba(248, 231, 235, 0.62);
  color: #674653;
  font-size: 0.98rem;
  line-height: 1.75;
  font-weight: 500;
  text-wrap: pretty;
}

.poster-section-title .poster-section-summary {
  text-align: center;
}

.poster-conclusion .poster-section-summary {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 640px) {
  .poster-section-summary {
    font-size: 0.9rem;
    padding: 0.75rem 0.9rem;
    line-height: 1.65;
  }
}

/* CHILLIPOP SOFT CLINICAL LUXURY START */

:root {
  --chilli-rose: #d9829b;
  --chilli-rose-light: #f7dce5;
  --chilli-cream: #fffaf5;
  --chilli-burgundy: #713b50;
  --chilli-text: #49333d;
  --chilli-shadow: 0 12px 32px rgba(113, 59, 80, 0.08);
}

/* Soft page atmosphere */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(247, 220, 229, 0.42),
      transparent 28%
    ),
    radial-gradient(
      circle at 92% 42%,
      rgba(255, 238, 226, 0.48),
      transparent 30%
    ),
    var(--chilli-cream);
  color: var(--chilli-text);
}

/* Elegant section spacing */
section[id^="poster-"] {
  position: relative;
  isolation: isolate;
  padding-top: clamp(2.2rem, 5vw, 4rem);
  padding-bottom: clamp(2.2rem, 5vw, 4rem);
}

/* Refined section headings */
section[id^="poster-"] h2,
section[id^="poster-"] h3 {
  color: var(--chilli-burgundy);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

section[id^="poster-"] h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

section[id^="poster-"] h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 12px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--chilli-rose),
    rgba(217, 130, 155, 0.15)
  );
}

/* Premium summary panels */
.poster-section-summary {
  position: relative;
  border: 1px solid rgba(217, 130, 155, 0.18);
  border-left: 3px solid var(--chilli-rose);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(
    120deg,
    rgba(255, 247, 249, 0.96),
    rgba(255, 250, 245, 0.86)
  );
  box-shadow: 0 8px 24px rgba(113, 59, 80, 0.045);
  padding: 18px 22px;
  line-height: 1.8;
}

/* Gentle card polish */
section[id^="poster-"] article,
section[id^="poster-"] .card,
section[id^="poster-"] .poster-card,
section[id^="poster-"] .ingredient-card,
section[id^="poster-"] .target-card,
section[id^="poster-"] .outcome-card {
  border: 1px solid rgba(217, 130, 155, 0.14);
  border-radius: 22px;
  box-shadow: var(--chilli-shadow);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

/* Subtle hover — desktop pointer only */
@media (hover: hover) and (pointer: fine) {
  section[id^="poster-"] article:hover,
  section[id^="poster-"] .card:hover,
  section[id^="poster-"] .poster-card:hover,
  section[id^="poster-"] .ingredient-card:hover,
  section[id^="poster-"] .target-card:hover,
  section[id^="poster-"] .outcome-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 130, 155, 0.32);
    box-shadow: 0 18px 38px rgba(113, 59, 80, 0.11);
  }
}

/* Product and prototype imagery */
section[id^="poster-"] img {
  border-radius: 18px;
  transition:
    transform 300ms ease,
    filter 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  section[id^="poster-"] img:hover {
    filter: saturate(1.04);
  }
}

/* Buttons */
button,
.button,
a.button,
.btn {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

button:hover,
.button:hover,
a.button:hover,
.btn:hover {
  box-shadow: 0 8px 20px rgba(113, 59, 80, 0.12);
}

/* Clean reading rhythm */
section[id^="poster-"] p {
  line-height: 1.78;
}

section[id^="poster-"] li {
  line-height: 1.7;
}

/* Mobile refinement */
@media (max-width: 640px) {
  section[id^="poster-"] {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .poster-section-summary {
    padding: 15px 17px;
    border-radius: 0 14px 14px 0;
  }

  section[id^="poster-"] h2::after {
    width: 42px;
    margin-top: 9px;
  }
}

/* Accessibility: respect reduced motion */
@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;
  }
}

/* CHILLIPOP SOFT CLINICAL LUXURY END */

/* CHILLIPOP HERO GALLERY POLISH START */

/* HERO: soft premium atmosphere */
.welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 36px);
  background:
    radial-gradient(
      ellipse at 82% 18%,
      rgba(255, 255, 255, 0.82),
      transparent 34%
    ),
    radial-gradient(
      ellipse at 12% 88%,
      rgba(247, 220, 229, 0.78),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      #fffaf6 0%,
      #fbeaf0 48%,
      #f6e2e8 100%
    );
  box-shadow:
    0 20px 55px rgba(113, 59, 80, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Hero title */
.welcome h1 {
  color: #713b50;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(113, 59, 80, 0.06);
}

/* Hero supporting text */
.welcome p {
  max-width: 680px;
  color: #624654;
  line-height: 1.8;
}

/* HERO buttons */
.welcome button,
.welcome .button,
.welcome .btn,
.welcome a.button {
  border-radius: 999px;
  font-weight: 600;
}

/* PROTOTYPE GALLERY */
.film-showcase {
  position: relative;
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(16px, 3vw, 30px);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 247, 249, 0.78)
    );
  border: 1px solid rgba(217, 130, 155, 0.18);
  box-shadow: 0 16px 42px rgba(113, 59, 80, 0.07);
}

/* Gallery images */
.film-showcase img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  background: #fffaf7;
  border: 1px solid rgba(217, 130, 155, 0.12);
  box-shadow: 0 10px 28px rgba(113, 59, 80, 0.09);
}

/* Gallery captions and descriptions */
.film-showcase h2,
.film-showcase h3,
.film-showcase h4 {
  color: #713b50;
  letter-spacing: -0.02em;
}

.film-showcase p {
  color: #624654;
  line-height: 1.75;
}

/* Responsive refinements */
@media (max-width: 640px) {
  .welcome {
    border-radius: 22px;
  }

  .welcome h1 {
    letter-spacing: -0.025em;
    line-height: 1.15;
  }

  .film-showcase {
    padding: 14px;
    border-radius: 20px;
  }

  .film-showcase img {
    border-radius: 15px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .welcome *,
  .film-showcase * {
    transition: none !important;
    animation: none !important;
  }
}

/* CHILLIPOP HERO GALLERY POLISH END */

/* CHILLIPOP NAVIGATION LAYOUT START */

/* Navigation bar */
header.topbar {
  background: rgba(255, 250, 246, 0.88);
  border-bottom: 1px solid rgba(113, 59, 80, 0.08);
  box-shadow: 0 6px 24px rgba(113, 59, 80, 0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Navigation links */
header.topbar a {
  color: #713b50;
  text-decoration: none;
  text-underline-offset: 5px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
  header.topbar a:hover {
    color: #b65f7d;
  }
}

/* Consistent content width */
section[id^="poster-"] {
  box-sizing: border-box;
}

/* More comfortable paragraph width */
section[id^="poster-"] p {
  max-width: 78ch;
}

/* Better spacing between heading and content */
section[id^="poster-"] h2 {
  margin-bottom: 1.15rem;
}

/* Consistent card text */
section[id^="poster-"] article p,
section[id^="poster-"] .card p,
section[id^="poster-"] .poster-card p {
  margin-bottom: 0.65rem;
}

/* Refined section transitions */
section[id^="poster-"] + section[id^="poster-"] {
  border-top: 1px solid rgba(217, 130, 155, 0.08);
}

/* Anchor navigation offset */
section[id^="poster-"],
section[id^="poster-"] [id] {
  scroll-margin-top: 100px;
}

/* Mobile navigation */
@media (max-width: 640px) {
  header.topbar {
    background: rgba(255, 250, 246, 0.94);
  }

  section[id^="poster-"] p {
    max-width: 100%;
  }

  section[id^="poster-"] h2 {
    margin-bottom: 0.9rem;
  }
}

/* CHILLIPOP NAVIGATION LAYOUT END */

/* CHILLIPOP AI MODULE POLISH START */

/* Module and AI views */
.module-view,
.analysis-view {
  color: #49333d;
  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(247, 220, 229, 0.42),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #fffaf6,
      #fff5f7
    );
  border: 1px solid rgba(217, 130, 155, 0.16);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(113, 59, 80, 0.07);
  padding: clamp(18px, 3vw, 32px);
}

/* Module and AI headings */
.module-view h1,
.module-view h2,
.analysis-view h1,
.analysis-view h2 {
  color: #713b50;
  letter-spacing: -0.025em;
}

/* Results panel */
.results-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(255, 247, 249, 0.96)
  );
  border: 1px solid rgba(217, 130, 155, 0.22);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(113, 59, 80, 0.08);
  padding: clamp(16px, 2.5vw, 26px);
}

/* Result headings */
.results-card h2,
.results-card h3 {
  color: #713b50;
}

/* Research notices: clear, calm, not alarming */
.notice,
.analysis-disclaimer {
  background: rgba(255, 247, 238, 0.92);
  border: 1px solid rgba(190, 145, 105, 0.22);
  border-left: 3px solid #c49a73;
  border-radius: 0 16px 16px 0;
  color: #665044;
  padding: 15px 18px;
  line-height: 1.75;
}

/* Buttons inside app views */
.module-view button,
.analysis-view button,
.module-view .button,
.analysis-view .button,
.module-view .btn,
.analysis-view .btn {
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .module-view button:hover,
  .analysis-view button:hover,
  .module-view .button:hover,
  .analysis-view .button:hover,
  .module-view .btn:hover,
  .analysis-view .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(113, 59, 80, 0.12);
  }
}

/* Upload area: preserve native input behavior */
.analysis-view input[type="file"] {
  max-width: 100%;
  border-radius: 14px;
}

/* Comfortable reading */
.module-view p,
.analysis-view p {
  line-height: 1.75;
}

/* Mobile interface */
@media (max-width: 640px) {
  .module-view,
  .analysis-view {
    padding: 16px;
    border-radius: 20px;
  }

  .results-card {
    padding: 16px;
    border-radius: 18px;
  }

  .notice,
  .analysis-disclaimer {
    padding: 13px 15px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .module-view *,
  .analysis-view * {
    transition: none !important;
    animation: none !important;
  }
}

/* CHILLIPOP AI MODULE POLISH END */

/* CHILLIPOP FINAL CONSISTENCY START */

/* Unified typography */
body {
  font-family:
    "Inter",
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #49333d;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Consistent heading hierarchy */
h1,
h2,
h3,
h4 {
  color: #713b50;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* Clear, consistent links */
a {
  color: #96516b;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(217, 130, 155, 0.72);
  outline-offset: 3px;
}

/* Prevent media from overflowing */
img,
video,
canvas,
svg {
  max-width: 100%;
}

/* Unified subtle borders */
hr {
  border: 0;
  border-top: 1px solid rgba(217, 130, 155, 0.18);
}

/* Form controls */
input,
select,
textarea {
  max-width: 100%;
  border-color: rgba(113, 59, 80, 0.18);
}

/* Comfortable content spacing */
main {
  min-width: 0;
}

section {
  min-width: 0;
}

/* Improve long text wrapping */
h1,
h2,
h3,
p,
li {
  overflow-wrap: break-word;
}

/* Small-screen typography */
@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  h1 {
    line-height: 1.16;
  }

  h2 {
    line-height: 1.25;
  }
}

/* CHILLIPOP FINAL CONSISTENCY END */


/* STEP 63.5 — INGREDIENT IMAGE DISPLAY FIX */

/* Keep ingredient artwork fully visible and centered */
.botanical-item .ingredient-art {
  height: clamp(210px, 24vw, 250px);
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Override previous image sizing/padding rules */
.botanical-item .ingredient-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 0 !important;
  margin: 0 auto;
  transform: none;
}

/* Keep the image layout stable on iPad and mobile */
@media (max-width: 1024px) {
  .botanical-item .ingredient-art {
    height: 220px;
    min-height: 220px;
  }

  .botanical-item .ingredient-art img {
    object-fit: contain;
    object-position: center;
  }
}

/* STEP 63.5 — INGREDIENT IMAGE DISPLAY FIX END */
