.candy-page {
  --ink: #22154b;
  --slate: #4c4267;
  --cobalt: #5126ad;
  --green: #126e68;
  --line: #e0d9ef;
  --pale: #f7f4ff;
  --night-deep: #291655;
  --aqua: #c8fbf5;
  --lime: #e0fba6;
  background: #fdfcff;
}

.candy-page .site-header { border-color: #e6ddef; }
.candy-page .wordmark span { color: #147976; }
.candy-page .button { border-radius: 1.1rem; }
.candy-page .button:hover { background: #3c188f; }
.candy-page .button-outline { border-color: #aa99d1; color: var(--ink); background: #ffffff93; }
.candy-page .button-outline:hover { background: #fff; border-color: #7659b7; }
.candy-page section[id], .candy-page article[id] { scroll-margin-block-start: 1.3rem; }
.candy-page figure { min-width: 0; margin: 0; }
.candy-page h2 { font-size: clamp(2.4rem, 4.75vw, 4.7rem); font-weight: 760; line-height: 1.02; letter-spacing: -.066em; }
.candy-page h3 { font-weight: 760; letter-spacing: -.045em; line-height: 1.16; }
.candy-page a:focus-visible, .candy-page button:focus-visible { outline-color: #6838cc; }
.fact-link { color: #482694; font-size: .9rem; font-weight: 760; }
.fact-link:hover, .hero-learn:hover { text-decoration-thickness: .15em; }

.hero { overflow: clip; padding-block: clamp(2rem, 4vw, 4.4rem) clamp(2.8rem, 5.7vw, 5.8rem); background: radial-gradient(ellipse at 0% 70%, #d7fff1 0%, transparent 57%), radial-gradient(ellipse at 92% 0%, #ead5ff 0%, transparent 63%), linear-gradient(128deg, #f5faff, #f3ecff 70%, #dcfbfa); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(1.5rem, 4.8vw, 5rem); align-items: center; }
.hero-copy { padding-block: 1rem; }
.hero h1 { font-size: clamp(3.1rem, 6.2vw, 5.8rem); font-weight: 760; letter-spacing: -.075em; line-height: .94; }
.hero h1 span { color: #5932a1; }
.hero-description { max-width: 30rem; margin-block: 1.42rem 1.5rem; color: var(--slate); font-size: clamp(1.04rem, 1.65vw, 1.22rem); }
.hero-description strong { color: var(--ink); }
.hero-learn { display: inline-block; margin-top: 1.05rem; color: #43258b; font-size: .93rem; font-weight: 720; }
.hero-figure { color: #483670; }
.hero-art { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.18; min-height: 26rem; overflow: hidden; border-radius: 3.1rem 6rem 3.1rem 3.1rem; border: .25rem solid #fff9; background: #6ad7ea url("assets/candy-hero.webp") center / cover no-repeat; box-shadow: 0 1.8rem 3.6rem #613aa62b, inset 0 0 2.7rem #3922b350; }
.hero-art::after { content: ""; position: absolute; left: 50%; bottom: 19%; z-index: 1; width: 37%; height: 1.45rem; transform: translateX(-50%); border-radius: 50%; background: #23458a64; filter: blur(.7rem); }
.hero-art img { position: absolute; z-index: 2; left: 50%; bottom: 20%; height: 76%; width: auto; max-width: 62%; transform: translateX(-50%); object-fit: contain; object-position: center bottom; filter: drop-shadow(.4rem .7rem .85rem #17278560); }
.hero-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: .45rem 1rem; flex-wrap: wrap; margin-top: .7rem; padding-inline: .3rem; font-size: .89rem; }
.hero-figure figcaption strong { color: var(--ink); font-weight: 790; }
.hero-figure figcaption span { color: var(--slate); }
.motion-toggle { min-height: 2.6rem; border: 1px solid #c2afeb; border-radius: .8rem; background: #fff8; color: #472388; padding: .38rem .75rem; font-size: .83rem; font-weight: 720; cursor: pointer; }
.motion-toggle:hover { background: #fff; }
.bubble { position: absolute; z-index: 3; aspect-ratio: 1; border: 1px solid #fff9; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fffc 0, transparent 20%), radial-gradient(circle at 70% 80%, #c6ffb459, #d8c2f733 49%, #d9fffab3 100%); box-shadow: inset 0 0 1rem #fff9, 0 .35rem 1rem #4b3fab45; pointer-events: none; }
.bubble-one { top: 17%; left: 12%; width: 12%; }
.bubble-two { top: 35%; right: 12%; width: 9%; }
.bubble-three { bottom: 10%; left: 15%; width: 6%; }
.motion-ready .hero-art img { animation: product-float 5s ease-in-out infinite; }
.motion-ready .bubble { animation: bubble-drift 6.4s ease-in-out infinite; }
.motion-ready .bubble-two { animation-delay: -2.5s; animation-duration: 7.1s; }
.motion-ready .bubble-three { animation-delay: -4.2s; }
.motion-ready .hero-copy { animation: hero-in .58s ease-out both; }
.motion-paused .hero-art img, .motion-paused .bubble { animation-play-state: paused; }
@keyframes product-float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -.7rem); } }
@keyframes bubble-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(.42rem, -.9rem) scale(1.09); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(.65rem); } to { opacity: 1; transform: none; } }

.health { padding-block: clamp(3.3rem, 7vw, 7rem); }
.health-heading { display: grid; justify-items: center; gap: .8rem; margin: 0 auto clamp(1.35rem, 3vw, 2.25rem); text-align: center; }
.health-heading .eyebrow { margin: 0; padding: .36rem .8rem; border-radius: 2rem; background: #fff1a7; color: #53288c; }
.health-heading h2 span { color: #6230b4; }
.health-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr) minmax(0, 1fr);
  grid-template-areas: "facts-left glass facts-right";
  gap: clamp(.65rem, 1.5vw, 1.15rem);
  padding: clamp(.65rem, 1.55vw, 1.15rem);
  border: 1px solid #dfd2f5;
  border-radius: clamp(1.45rem, 3vw, 2.35rem);
  background: radial-gradient(ellipse at 48% 7%, #fff6c2 0%, transparent 55%), linear-gradient(140deg, #eee3ff, #d5f9ff 80%, #e5f8ce);
}
.fact-stack { display: grid; gap: clamp(.65rem, 1.5vw, 1.15rem); }
.fact-left { grid-area: facts-left; }
.fact-right { grid-area: facts-right; }
.fact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: .55rem .72rem;
  padding: clamp(.9rem, 1.65vw, 1.3rem);
  border: 1px solid #e7dcf6;
  border-inline-start: .24rem solid #9e68e9;
  border-radius: 1.15rem;
  background: #fffc;
  box-shadow: 0 .3rem .8rem #4d368814;
}
.fact-card:nth-child(2) { border-inline-start-color: #35b5b7; }
.fact-card:nth-child(3) { border-inline-start-color: #81b74e; }
.fact-card h3, .health-summary h3 { font-size: clamp(1.18rem, 1.7vw, 1.48rem); }
.fact-card h3 { align-self: center; }
.fact-card p, .health-summary p { color: var(--slate); line-height: 1.5; }
.fact-card p, .fact-card .fact-link { grid-column: 1 / -1; }
.fact-card .fact-link { justify-self: start; }
.fact-icon {
  inline-size: clamp(3.75rem, 5.65vw, 4.7rem);
  aspect-ratio: 1;
  border: 1px solid #fff9;
  border-radius: 1.1rem;
  background: #30204c url("assets/candy-fact-icons.webp") no-repeat;
  background-size: 300% 200%;
  box-shadow: 0 .32rem .7rem #4e33833b;
}
.fact-icon-gauge { background-position: 0 0; }
.fact-icon-droplets { background-position: 50% 0; }
.fact-icon-temperature { background-position: 100% 0; }
.fact-icon-balance { background-position: 0 100%; }
.fact-icon-lab { background-position: 50% 100%; }
.fact-icon-chat { background-position: 100% 100%; }
.health-visual { position: relative; grid-area: glass; min-height: 22rem; overflow: hidden; border-radius: 1.25rem; background: #d4f3ff; }
.health-visual > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.health-summary { display: grid; grid-template-columns: minmax(0, .67fr) minmax(0, 1.33fr); gap: .85rem; margin-top: .85rem; }
.health-summary > div { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: clamp(1rem, 2.2vw, 1.5rem); border: 1px solid #e7dcf6; border-radius: 1.3rem; background: #f5eeff; }
.health-summary .water-guide { border-color: #e5dcab; background: #fff8d9; }
.water-guide strong { color: #5631a6; font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1; letter-spacing: -.07em; }
.water-guide strong span { font-size: .44em; letter-spacing: 0; }

.stories { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3.7rem, 7vw, 6.65rem); color: #fff; background: radial-gradient(ellipse at 90% -8%, #3d8fbe 2%, transparent 56%), linear-gradient(132deg, #351470, #25174e 73%, #173d69); }
.stories-inner { position: relative; }
.stories .eyebrow { color: #b1f1e1; }
.stories h2 { max-width: 50rem; }
.story { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 1rem; margin-top: 1.75rem; }
.story-quote, .story-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .9rem; padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: 1.4rem; }
.story-quote { color: #231744; background: linear-gradient(140deg, #e4fff2, #ddf8aa 82%); }
.story-quote blockquote { margin: 0; font-size: clamp(2rem, 4vw, 3.65rem); font-weight: 770; line-height: 1.05; letter-spacing: -.06em; }
.story-quote figcaption { color: #3e4d3c; font-weight: 730; }
.story-body { border: 1px solid #e6daff4f; background: #c5b4f123; color: #f4efff; }
.story-unboxing { margin-top: 1rem; }
.story-unboxing p { max-width: 44rem; }
.story-unboxing h3 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.story-context { color: #b1f1e1; font-size: .9rem; font-weight: 730; }
.story-body .button { margin-top: .25rem; color: #29174e; background: #e0fba6; }
.story-body .button:hover { color: #29174e; background: #ecffbd; }
.stories a:focus-visible { outline-color: #e0fba6; }

.offers { padding-block: clamp(3.5rem, 7vw, 7rem); }
.offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; margin-top: 1.65rem; }
.offer { overflow: hidden; min-width: 0; border: 1px solid #ded5f1; border-radius: 1.8rem; }
.water-card { background: #f2ebff; }
.machine-card { background: #eaf8ea; border-color: #d4e9d8; }
.offer-art { position: relative; min-height: 0; aspect-ratio: 1.98; overflow: hidden; }
.offer-water img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.offer-machine { background: #b8e8d7 url("assets/candy-machine.webp") center / cover no-repeat; }
.offer-machine img { position: absolute; height: 80%; width: auto; max-width: 50%; left: 50%; bottom: 13%; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(.32rem .45rem .65rem #244f7870); }
.offer-copy { padding: clamp(1.3rem, 3vw, 2.1rem); }
.offer-copy h3 { font-size: clamp(1.55rem, 3.2vw, 2.45rem); }
.offer-copy p { margin-block: .58rem 1rem; color: var(--slate); }
.preview-note { margin-top: .85rem; color: var(--slate); font-size: .91rem; }

.demo { padding-block: clamp(3.35rem, 6vw, 5.7rem); background: linear-gradient(122deg, #e7fcf5, #f7eeff); }
.demo-inner { display: grid; grid-template-columns: .87fr 1.13fr; gap: 1.1rem clamp(1.4rem, 4vw, 4rem); align-items: start; }
.demo-inner .button { justify-self: start; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: 0; margin: 0; list-style: none; }
.steps li { padding: .75rem .8rem; border: 1px solid #d5c8ee; border-radius: 1.05rem; background: #ffffff9c; }
.steps strong { display: block; margin-block: .45rem .3rem; }
.steps p { color: var(--slate); line-height: 1.48; font-size: .9rem; }
.step-index { display: inline-grid; width: 1.8rem; aspect-ratio: 1; place-items: center; border-radius: 50%; font-size: .83rem; font-weight: 800; color: #40207c; background: #e6d9ff; }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; padding-block: clamp(3.5rem, 7vw, 7rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; cursor: pointer; padding: 1rem 2.15rem 1rem .1rem; font-weight: 760; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: .65rem; right: .35rem; color: #6844a7; font-size: 1.45rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 40rem; padding: 0 1rem 1rem .1rem; color: var(--slate); }
.order-banner { padding-block: 2.5rem; color: #29174e; background: linear-gradient(110deg, #d6c2ff, #bef8f3 68%, #ddf9a8); }
.order-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.footer { padding-block: 1.5rem; background: #241447; color: #f0e8ff; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.55rem; }
.footer .wordmark { margin-inline-end: auto; color: #fff; }
.footer .wordmark span { color: #c7f7b0; }
.footer .wordmark small { color: #e7d9fc; }
.footer a:not(.wordmark) { font-weight: 650; font-size: .91rem; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 58rem) {
  .hero-art { min-height: 21rem; border-radius: 2.1rem 4rem 2.1rem 2.1rem; }
  .health-board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "glass glass" "facts-left facts-right"; }
  .fact-stack { grid-template-rows: repeat(3, 1fr); }
  .health-visual { min-height: 0; height: clamp(16rem, 49vw, 26rem); }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: auto 1fr; gap: .15rem .62rem; }
  .steps strong { margin: 0; }
  .steps li p { grid-column: 2; }
  .step-index { grid-row: span 2; }
}
@media (43rem < width <= 58rem) {
  .health-visual { background: radial-gradient(ellipse at 68% 13%, #fff7bb, transparent 50%), linear-gradient(120deg, #b07aee, #d0f8ff 66%, #abddf7); }
  .health-visual > img { right: auto; left: 50%; width: min(100%, 27rem); transform: translateX(-50%); }
}
@media (max-width: 43rem) {
  .hero-grid, .health-board, .health-summary, .offers-grid, .demo-inner, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(2.85rem, 11vw, 4.75rem); }
  .hero-description { margin-block: 1rem 1.15rem; }
  .hero-art { min-height: 0; aspect-ratio: 1.18; border-radius: 1.45rem 2.6rem 1.45rem 1.45rem; }
  .hero-art img { height: 74%; }
  .hero .actions .button { padding-inline: .88rem; }
  .health-board { grid-template-areas: "glass" "facts-left" "facts-right"; }
  .fact-stack { grid-template-rows: none; }
  .health-visual { height: clamp(16rem, 78vw, 24rem); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .order-banner-inner { flex-wrap: wrap; }
  .footer .wordmark { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .hero-art img, .motion-ready .bubble, .motion-ready .hero-copy { animation: none; }
}
