/* Styles for the generated pages (tools/make-pages.mjs): chat library, categories, landing pages.
   Same "Bubblegum" look as app.css, but only what these pages need. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #FFF4F8; --ink: #2B1B3A; --ink-soft: #4A3A58; --muted: #8A6F99; --card: #FFFFFF;
  --blush: #F3D5E3; --blush-soft: #FBE7F0; --pink: #FF5FA2; --pink-deep: #D63F82;
  --mint: #C9F7D8; --mint-deep: #7FD69C; --butter: #FFE9A8; --sky: #D9F2FF;
  --bubble: 20px 20px 20px 6px; --bubble-sent: 20px 20px 6px 20px;
}
html, body { background: var(--bg); color: var(--ink); }
body { font-family: Rubik, system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5; overflow-x: hidden; }
body::before { content: ''; position: fixed; z-index: -1; pointer-events: none; width: 340px; height: 340px; border-radius: 50%; background: #FFD6E8; top: -150px; right: -120px; }
a { color: var(--pink-deep); }
code { font-size: .92em; background: var(--blush-soft); border-radius: 6px; padding: 1px 5px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px 40px; }

/* top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 16px 0 8px; }
.brand { font-family: 'Bagel Fat One', Rubik, sans-serif; font-size: 30px; line-height: 1; color: var(--ink); text-decoration: none; }
.brand span { color: var(--pink); }
.top nav { display: flex; gap: 10px; align-items: center; margin-left: auto; }   /* drops below the logo when the words are long */
.top nav a { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.pill-btn { background: var(--card); border-radius: var(--bubble); padding: 8px 12px; box-shadow: 0 3px 0 var(--blush); }

/* buttons: toy keys, like the app */
.cta {
  display: inline-block; font-family: 'Bagel Fat One', Rubik, sans-serif; font-size: 20px; letter-spacing: .01em;
  background: var(--pink); color: #fff; text-decoration: none; padding: 14px 22px; border-radius: var(--bubble-sent);
  box-shadow: 0 5px 0 var(--pink-deep); transition: transform .08s, box-shadow .08s;
}
.cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pink-deep); }
.cta.soft { font-family: Rubik, sans-serif; font-weight: 600; font-size: 15px; background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--blush); border-radius: var(--bubble); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

.crumbs { font-size: 13.5px; color: var(--muted); margin: 8px 0 4px; }
.crumbs a { color: var(--muted); }

/* hero: text + phone picture */
.hero { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 14px 0 8px; }
@media (min-width: 860px) { .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; } }
h1 { font-family: 'Bagel Fat One', Rubik, sans-serif; font-weight: 400; font-size: clamp(34px, 7vw, 54px); line-height: 1.04; letter-spacing: .005em; overflow-wrap: break-word; }
h1 em { font-style: normal; color: var(--pink); }
.lede { font-size: 17.5px; margin-top: 14px; max-width: 36em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.facts span, .facts a { background: var(--mint); color: var(--ink); text-decoration: none; border-radius: 999px; padding: 4px 11px; font-size: 13.5px; font-weight: 500; }
.facts a { background: var(--butter); }
.phone { display: flex; justify-content: center; }
.phone img { display: block; width: min(100%, 340px); height: auto; border-radius: 22px; box-shadow: 0 16px 36px -16px rgba(43, 27, 58, .5); }

/* sections */
section { margin-top: 38px; }
h2 { font-family: 'Bagel Fat One', Rubik, sans-serif; font-weight: 400; font-size: 27px; line-height: 1.1; margin-bottom: 14px; }
h2 a { color: inherit; text-decoration: none; }
h3 { font-size: 17px; font-weight: 600; }
.card { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: 0 5px 0 var(--blush); }
.card p { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.steps { list-style: none; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--butter); font-weight: 700; margin-bottom: 8px; }
.ticks { list-style: none; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ticks li { background: var(--card); border-radius: var(--bubble); padding: 10px 14px; box-shadow: 0 3px 0 var(--blush); }
.ticks li::before { content: '✓ '; color: var(--mint-deep); font-weight: 700; }

/* chat cards */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chat-card { display: block; text-decoration: none; color: var(--ink); background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 5px 0 var(--blush); }
.chat-card img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 11; object-fit: cover; object-position: top; background: var(--blush-soft); }
.card-text { display: block; padding: 10px 12px 12px; }
.chat-card b { display: block; font-size: 15px; line-height: 1.25; }
.chat-card small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.chat-card q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--ink-soft); margin-top: 6px; quotes: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { text-decoration: none; color: var(--ink); background: var(--card); border-radius: var(--bubble); padding: 8px 13px; font-weight: 500; font-size: 14.5px; box-shadow: 0 3px 0 var(--blush); }
.chips a.on { background: var(--mint); box-shadow: 0 3px 0 var(--mint-deep); }
.chips .n { color: var(--muted); font-size: 12.5px; }

/* a chat as text */
.two { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .two { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .two > .card { margin-top: 41px; } }
.transcript { background: var(--card); border-radius: 24px; padding: 16px 14px; box-shadow: 0 5px 0 var(--blush); display: flex; flex-direction: column; gap: 6px; max-width: 580px; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: var(--bubble); background: var(--blush-soft); align-self: flex-start; overflow-wrap: anywhere; }
.msg .who { display: block; font-size: 12px; font-weight: 600; color: var(--pink-deep); }
.msg.me { align-self: flex-end; background: var(--mint); border-radius: var(--bubble-sent); }
.msg.me .who { color: #2F7A48; }
.pause { align-self: center; font-size: 12px; color: var(--muted); padding: 2px 0; }

/* the library as links */
.chat-list { list-style: none; columns: 2 170px; column-gap: 18px; }
.chat-list li { break-inside: avoid; padding: 3px 0; }
.chat-list a { color: var(--ink); text-decoration-color: var(--blush); text-underline-offset: 3px; }

details { background: var(--card); border-radius: 18px; padding: 12px 16px; box-shadow: 0 3px 0 var(--blush); margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin-top: 8px; color: var(--ink-soft); }

.more { text-align: center; margin-top: 18px; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; font-weight: 500; }
.prevnext a { color: var(--ink); max-width: 48%; }
.prevnext a:last-child { text-align: right; }
.foot { margin-top: 44px; text-align: center; color: var(--muted); font-size: 13px; }
.foot p { max-width: 440px; margin: 0 auto 6px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 10px; font-weight: 500; }
