:root {
  --canvas: #f7f6f1;
  --surface: #fffdfc;
  --peach: #f1eee8;
  --rose: #f2ebef;
  --border: #ded9da;
  --ink: #242226;
  --muted: #575158;
  --accent: #62384e;
  --accent-hover: #502c3e;
  --on-accent: #ffffff;
  --focus: #62384e;
  --veil: #342a3266;
  --shadow: #24222614;
}

/* The photograph remains the strongest color on the first screen. */
.page {
  background-image:
    radial-gradient(ellipse at 83% 0, #ead9e9 0, #f2e8ee 24%, #f2e8ee00 67%),
    radial-gradient(ellipse at 0 22%, #f8eadc 0, #f8eadc00 53%),
    linear-gradient(160deg, #fffaf2 0, var(--canvas) 46%, #f3ecef 100%);
  background-repeat: no-repeat;
  background-size: 100% 650px, 100% 910px, 100% 100%;
}
.hero { background-image: none; }
.hero-title .highlight,
.logo-text {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
.logo-icon { filter: drop-shadow(0 2px 6px #62384e24); }
.logo-icon stop:nth-child(1) { stop-color: #9e7789; }
.logo-icon stop:nth-child(2) { stop-color: #80566b; }
.logo-icon stop:nth-child(3) { stop-color: var(--accent); }

.age-pill,
.age-brand,
#heading { color: var(--ink); }
.featured-card { box-shadow: 0 10px 24px var(--shadow); }
.final-cta-card { background-color: var(--surface); }
.rail-card:hover { border-color: #a5949d; }
.row-arrow, .sec-more, .close, .policy-close { color: var(--muted); }

.overlay { background-color: var(--veil); }
.panel { box-shadow: 0 14px 34px var(--shadow); }
.panel input:not([type="range"]) { border-color: #938792; }
.guide-steps li::marker { color: var(--accent); }
.privacy-link:focus { outline-color: var(--focus); }
.age { background-image: linear-gradient(#f7f6f199, #eae5e7b3), var(--age-img); }
.slider-shell { background-color: var(--rose); }
.policy-warning { border-color: var(--border); background-color: var(--surface); }

/* Aimee guide order: title, illustration, instructions, primary action. */
.panel:has(.safari-guide) {
  border-radius: 18px;
  padding: 22px;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overscroll-behavior: contain;
}
.panel:has(.safari-guide) h2 {
  padding-inline-end: 34px;
  margin: 6px 0 12px;
  line-height: 1.3;
}
:root[lang="ta"] { --guide-visual-max-height: 176px; }
.guide-visual { margin: 0 0 12px; }
.guide-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--guide-visual-max-height, 218px);
  object-fit: contain;
  background-color: var(--rose);
  border-radius: 10px;
}
.guide-visual figcaption {
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
}
.safari-guide > p, .safari-guide .guide-steps { margin-block: 9px; }
.safari-guide + p { margin-bottom: 0; }
@media (max-height: 600px), (max-width: 350px) {
  .panel:has(.safari-guide) { padding: 18px 20px; }
  .panel:has(.safari-guide) h2 { font-size: 21px; }
  .guide-visual img { max-height: 154px; }
}
