/* Informational content uses open layouts; raised pastel shapes remain actions. */
.demo-explanation {
  background: transparent;
  border: 0;
  border-left: 3px solid #d9bddf;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 0 17px;
  margin: 25px 5px 0;
}
#demo-quote { color: #64507c; font-size: 17px; line-height: 1.35; }
#demo-description { color: #596078; }

/* Three ideas form an illustrated reading list, without card backgrounds. */
.pace-items { position: relative; gap: 0; }
.pace-items::before { content: ''; position: absolute; left: 24px; top: 50px; bottom: 55px; width: 2px; background: linear-gradient(#c9e0f5, #eac9df, #b9e1d4); }
.pace-items article, .pace-items article:nth-child(2), .pace-items article:nth-child(3) {
  position: relative;
  padding: 27px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 24px;
}
.pace-items article:first-child { padding-top: 6px; }
.pace-items article:last-child { padding-bottom: 6px; }
.pace-items article + article > div { padding-top: 24px; border-top: 1px solid #e8e0ee; }
.pace-items article + article .round-icon { margin-top: 24px; }
.pace-items .round-icon { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; box-shadow: none; border: 6px solid #fdfbff; }
.pace-items .round-icon.blue { background: #e3f1fc; color: #2b82a4; }
.pace-items .round-icon.rose { background: #fbe4f0; color: #c14b86; }
.pace-items .round-icon.mint { background: #def2ea; color: #198b79; }
.pace-items .round-icon svg { width: 24px; height: 24px; }
.pace-items article p { max-width: 365px; }

/* A parent/child conversation is set as quotations, not clickable tiles. */
.parent-visual { position: relative; }
.family-message, .parent-message, .child-message {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  min-height: 0;
  max-width: none;
  transform: none;
}
.parent-message { position: relative; padding-left: 34px; }
.parent-message::before { content: '“'; position: absolute; top: 5px; left: -10px; color: #d9c2e9; font-size: 100px; font-family: Georgia, serif; line-height: 1; }
.family-message .message-label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #786388; }
.family-message p { font-size: clamp(24px, 2.3vw, 32px); font-weight: 650; line-height: 1.4; margin-top: 13px; color: #66507f; }
.child-message { margin: 0 0 0 34px; align-items: flex-start; gap: 16px; }
.child-message .message-label { color: #267e79; }
.child-message p { color: #226e72; font-size: clamp(23px, 2.1vw, 29px); }
.child-message img { width: 54px; height: 54px; border-radius: 50%; margin-top: 22px; }
.connection-line { width: 50px; margin: 16px 0 16px 34px; padding: 7px 0; font-size: 22px; color: #c683ac; }
.connection-line::before, .connection-line::after { content: ''; display: block; width: 1px; height: 15px; margin: 3px auto; background: #dec9e0; }
.scenario-label { text-align: left; margin: 26px 0 0 34px; }
.parents-copy .check-list { padding: 17px 0 0; background: transparent; border: 0; border-top: 1px solid #e4cfdf; border-radius: 0; box-shadow: none; }
.parents-copy .check-list li { padding: 3px 0; }

/* The daily rituals are another reading sequence, using large pastel numbers. */
.ritual-grid article, .ritual-grid article:last-child, .ritual-grid article:nth-child(2), .ritual-grid article:nth-child(3) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 24px 0 0;
}
.ritual-grid article + article { border-left: 1px solid #e5ddeb; padding-left: 28px; }
.ritual-time { align-items: baseline; gap: 13px; margin-bottom: 15px; }
.ritual-time > span { width: auto; height: auto; background: transparent; border-radius: 0; display: inline; color: #8b71b6; font-size: 42px; font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.ritual-grid article:nth-child(2) .ritual-time > span { color: #428b87; }
.ritual-grid article:nth-child(3) .ritual-time > span { color: #bb648e; }

@media(max-width:1000px) {
  .pace-items article { gap: 16px; }
  .family-message p { font-size: 25px; }
  .child-message p { font-size: 23px; }
  .child-message { margin-left: 15px; gap: 12px; }
}
@media(min-width:601px) and (max-height:700px) {
  .demo-explanation { padding: 0 0 0 14px; margin-top: 17px; }
  #demo-quote { font-size: 14px; }
}
@media(max-width:600px) {
  .pace-items { margin-top: 32px; }
  .pace-items article, .pace-items article:nth-child(2), .pace-items article:nth-child(3) { padding: 16px 0; gap: 16px; }
  .pace-items article + article > div { padding-top: 16px; }
  .pace-items article + article .round-icon { margin-top: 16px; }
  .pace-items article p { font-size: 13px; }
  .parent-message { padding-left: 25px; }
  .parent-message::before { font-size: 80px; left: -7px; }
  .family-message p { font-size: 25px; }
  .child-message { margin-left: 0; gap: 12px; }
  .child-message p { font-size: 22px; }
  .child-message img { width: 44px; height: 44px; }
  .connection-line { margin: 12px 0 12px 25px; }
  .scenario-label { margin-left: 25px; }
  .parents-copy .check-list { padding: 15px 0 0; }
  .ritual-grid { gap: 25px; }
  .ritual-grid article, .ritual-grid article:last-child, .ritual-grid article:nth-child(2), .ritual-grid article:nth-child(3) { padding: 0 0 25px; border: 0; border-bottom: 1px solid #e5ddeb; }
  .ritual-grid article:last-child { padding-bottom: 0; border-bottom: 0; }
  .ritual-time > span { font-size: 36px; }
}
@media(max-width:600px) and (max-height:680px) {
}

/* First-visit information, also available from the footer. */
#welcome-dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100svh - 28px); padding: 34px; overflow: auto; overscroll-behavior: contain; }
#welcome-dialog .dialog-close { top: 14px; right: 14px; }
#welcome-dialog .welcome-icon { margin: 0 0 18px; width: 56px; height: 56px; }
#welcome-dialog .eyebrow { margin: 0 0 12px; font-size: 10px; }
#welcome-title { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 0; }
#welcome-title:focus { outline: none; }
#welcome-dialog p:not(.eyebrow) { font-size: 15px; line-height: 1.65; margin: 16px 0 0; }
#welcome-dialog .welcome-family { margin-top: 22px; padding: 20px; border-radius: 20px; background: #e7f2ee; color: #285e60; }
#welcome-dialog .welcome-family h3 { font-size: 17px; line-height: 1.35; }
#welcome-dialog .welcome-family p { margin-top: 8px; }
.welcome-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
#welcome-discover { background: #eee5f6; color: #594477; }
#welcome-reopen { border: 0; padding: 8px 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:600px) {
 #welcome-dialog { padding: 25px 22px; border-radius: 24px; }
 #welcome-dialog .welcome-icon { width: 44px; height: 44px; margin-bottom: 16px; }
 #welcome-dialog .welcome-family { padding: 16px; }
 .welcome-actions { flex-direction: column; }
 .welcome-actions .button { width: 100%; }
}
