:root {
  --pink: #ff9ec4;
  --pink-deep: #ff5fa2;
  --mint: #8fe3c8;
  --cream: #fff7ef;
  --choc: #6b4a35;
  --ink: #3a2c30;
  --shadow: 0 8px 24px rgba(107, 74, 53, 0.15);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #ffe3ef 0, transparent 40%),
    radial-gradient(circle at 85% 5%, #dcfbf0 0, transparent 38%),
    var(--cream);
  line-height: 1.55;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 60%, #ff7eb3 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem 3.5rem;
  border-bottom-left-radius: 40% 12%;
  border-bottom-right-radius: 40% 12%;
}
.scoop { font-size: 4rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.hero h1 { margin: .4rem 0 .25rem; font-size: 2.2rem; text-shadow: 0 2px 4px rgba(0,0,0,.15); }
.tagline { margin: .25rem auto .9rem; max-width: 30ch; font-size: 1.1rem; opacity: .95; }
.hero-hint {
  display: inline-block; margin: 0; padding: .5rem .9rem;
  background: rgba(255,255,255,.2); border-radius: 999px; font-size: .9rem;
}

.install-btn {
  display: inline-block; margin-top: 1rem; padding: .6rem 1.1rem;
  background: #fff; color: var(--pink-deep); border: none; border-radius: 999px;
  font-size: .95rem; font-weight: 700; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.install-btn:hover { transform: translateY(-2px); }
.install-btn[hidden] { display: none; }

main { max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }

/* Quick nav */
.quicknav {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin: -2rem auto 1.5rem; position: relative;
}
.quicknav a {
  background: #fff; color: var(--ink); text-decoration: none;
  padding: .5rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow); transition: transform .12s ease, background .12s ease;
}
.quicknav a:hover { transform: translateY(-2px); background: var(--mint); }

/* Cards */
.card {
  background: #fff; border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem;
  margin-bottom: 1.25rem; box-shadow: var(--shadow);
}
.card h2 { margin-top: 0; color: var(--pink-deep); font-size: 1.5rem; }
.card h3 { color: var(--choc); margin-bottom: .35rem; }

.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .6rem; }
.bullets { padding-left: 1.2rem; }
.bullets li { margin-bottom: .5rem; }

.flavors {
  list-style: none; padding: 0; margin: .4rem 0 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.flavors li {
  background: var(--cream); border: 1px solid #f0e0d4;
  padding: .35rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 600;
}

.callout {
  margin-top: 1rem; padding: .8rem 1rem; background: #fff2d6;
  border-left: 5px solid #ffc24d; border-radius: 10px; font-size: .95rem;
}

.supply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.supply { background: var(--cream); border-radius: 14px; padding: 1rem; }
.supply h3 { margin-top: 0; }
.supply .place { font-weight: 700; color: var(--pink-deep); margin: 0 0 .2rem; }
.supply p { margin: .2rem 0; font-size: .95rem; }
.supply .note { font-size: .82rem; color: #8a7a70; }

footer { text-align: center; padding: 1.5rem 1rem 2.5rem; color: #8a7a70; font-size: .9rem; }

/* Chat toggle */
.chat-toggle {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  display: flex; align-items: center; gap: .5rem;
  background: var(--pink-deep); color: #fff; border: none;
  padding: .8rem 1.1rem; border-radius: 999px; cursor: pointer;
  font-size: 1rem; font-weight: 700; box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.chat-toggle:hover { transform: translateY(-2px); }
.chat-toggle-icon { font-size: 1.3rem; }

/* Chat panel */
.chat-panel[hidden] { display: none; }
.chat-panel {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 2rem));
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-header {
  background: var(--pink-deep); color: #fff; padding: .8rem 1rem;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700;
}
.chat-close { background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { padding: .6rem .85rem; border-radius: 14px; max-width: 85%; font-size: .95rem; white-space: pre-wrap; }
.msg.bot { background: var(--cream); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--mint); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.error { background: #ffe0e0; color: #a33; align-self: flex-start; }
.msg .sources { margin-top: .4rem; font-size: .78rem; color: #8a7a70; }
.typing { display: inline-block; }
.typing span { animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }

.chat-form { display: flex; gap: .4rem; padding: .7rem; border-top: 1px solid #f0e6dd; }
.chat-form input {
  flex: 1; padding: .6rem .8rem; border: 1px solid #e6d8cd; border-radius: 999px;
  font-size: .95rem; outline: none;
}
.chat-form input:focus { border-color: var(--pink-deep); }
.chat-form button {
  background: var(--pink-deep); color: #fff; border: none; width: 42px; border-radius: 50%;
  font-size: 1rem; cursor: pointer;
}

@media (max-width: 560px) {
  .supply-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .chat-toggle-text { display: none; }
}
