/* Sipwell: a warm editorial water journal. Ivory paper, ink, soft mint, peach and butter cards, Space Grotesk. */

.sipwell {
  --ink-bg: #f5f4f1;
  --deck: #ffffff;
  --raised: #f0f5f1;
  --rule: #e6e8e3;
  --text: #171a18;
  --muted: #626b65;
  --accent: #4c8b80;
  --accent-text: #326f65;
  --panel: #d7eeea;
  --peach: #fff0e4;
  --butter: #f2f3dd;
  --ember: #cb805a;
  --gold: #a78543;
  --dew-top: #eaf1f0;
  --dew-bottom: #c2d8d4;
  --dew-rim: #447d73;
  background: var(--ink-bg);
  color: var(--text);
  font: 400 18px/1.55 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -.01em;
  transition: --accent .6s;
}
.sipwell * { transition-property: background-color, color, border-color, fill, stroke; transition-duration: .5s; transition-timing-function: ease; }
.sipwell .dew-btn, .sipwell .dew-btn *, .sipwell [data-reveal], .sipwell .bar i, .sipwell .card, .sipwell .keepsakes img, .sipwell .swatches button { transition-property: all; }

.label { font-weight: 600; font-size: 14px; letter-spacing: .02em; color: var(--accent-text); display: inline-flex; align-items: center; gap: .5rem; }
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.label.light { color: #b5ebd5; }
.display { font-weight: 700; font-size: clamp(3rem, 8.4vw, 7rem); line-height: .94; letter-spacing: -.055em; }
.display.center { text-align: center; }
.display.light { color: #f4f1e7; }
.h2 { font-weight: 700; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.045em; margin-top: .9rem; }
.accent { color: var(--accent); }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 32rem; margin-top: 1.1rem; }
.store-btn { --bg: var(--text); --fg: var(--ink-bg); border-radius: 16px; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: .9rem clamp(1.2rem, 4vw, 3rem); background: color-mix(in srgb, var(--ink-bg) 92%, transparent); border-bottom: 1px solid var(--rule);
}
.masthead a { text-decoration: none; }
.mh-back { font-weight: 500; color: var(--muted); font-size: 15px; }
.mh-back:hover { color: var(--text); }
.mh-name { font-weight: 700; font-size: 1.35rem; letter-spacing: -.05em; }
.mh-nav { justify-self: end; display: flex; gap: clamp(.8rem, 2vw, 1.6rem); font-weight: 500; font-size: 15px; }
.mh-nav a:hover { color: var(--accent-text); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; max-width: 1280px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 3rem) clamp(4rem, 8vw, 7rem); }
.display { margin: 1.2rem 0 1.6rem; }
.hero-lede { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 30rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 2.2rem; }
.facts { display: flex; gap: .4rem; }
.facts li { padding: .35rem .75rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--deck); }

.glass-card {
  position: relative; display: grid; justify-items: center; gap: .9rem; padding: 1.4rem 1.6rem 1.6rem; border-radius: 32px;
  background: var(--deck); box-shadow: 0 1px 0 var(--rule), 0 40px 80px -50px rgba(23, 26, 24, .45);
}
.gc-top { width: 100%; display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.gc-day { font-weight: 700; color: var(--text); }
.gc-streak b { color: color-mix(in srgb, var(--ember) 72%, #3a1a08); }
.dew-btn { position: relative; width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 55%, var(--panel) 0 58%, transparent 59%); touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.dew { width: 100%; height: 100%; overflow: visible; }
.dw-top { stop-color: var(--dew-top); } .dw-bottom { stop-color: var(--dew-bottom); }
.dw-shadow { fill: #000; opacity: .08; }
.dw-rim { stroke: var(--dew-rim); }
.dw-water { fill: var(--accent); fill-opacity: .58; }
.dw-cheek { fill: #ff9c8a; opacity: .5; transition: opacity .4s; }
.dw-hop { transform-box: fill-box; transform-origin: 50% 100%; }
.dew-btn.sip .dw-hop { animation: gulp .5s cubic-bezier(.3, 1.6, .5, 1); }
.dew-btn.pouring .dw-hop { animation: wobble .35s ease-in-out infinite alternate; }
.dew-btn.done .dw-hop { animation: hop 1s cubic-bezier(.3, 1.4, .5, 1) 2; }
@keyframes gulp { 0% { transform: scale(1.08, .9); } 60% { transform: scale(.97, 1.04); } 100% { transform: none; } }
@keyframes wobble { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes hop { 0% { transform: scale(1.1, .88); } 40% { transform: translateY(-.08px) scale(.95, 1.06); } 70% { transform: scale(1.05, .95); } 100% { transform: none; } }
.dw-eyes-open { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.dw-eyes-happy, .dw-sparkles { opacity: 0; }
.dew-btn.happy .dw-eyes-open { opacity: 0; }
.dew-btn.happy .dw-eyes-happy, .dew-btn.happy .dw-sparkles { opacity: 1; }
.dew-btn.happy .dw-cheek { opacity: .9; }
.dw-sparkles path { transform-box: fill-box; transform-origin: center; animation: twinkle 1.4s ease-in-out infinite; }
.dw-sparkles path:nth-child(2) { animation-delay: -.5s; } .dw-sparkles path:nth-child(3) { animation-delay: -.9s; }
@keyframes twinkle { 50% { transform: scale(.4) rotate(30deg); } }
.bubble {
  position: absolute; top: 2%; right: -6%; padding: .55rem .9rem; border-radius: 18px 18px 18px 4px; background: var(--text); color: var(--ink-bg);
  font-weight: 600; font-size: 14px; white-space: nowrap; animation: bubble-bob 3s ease-in-out infinite;
}
@keyframes bubble-bob { 50% { transform: translateY(-5px); } }
.bubble.pop { animation: bubble-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bubble-pop { from { transform: scale(.6); opacity: 0; } }
.gc-amount { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gc-amount b { font-size: 2.6rem; color: var(--text); letter-spacing: -.05em; margin-right: .2rem; }
.gc-bar { width: 100%; height: 12px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.gc-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .6s cubic-bezier(.3, 1.3, .5, 1), background-color .5s; }
.gc-pours { display: flex; gap: .5rem; }
.gc-pours button { padding: .6rem 1rem; border-radius: 999px; background: var(--raised); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.gc-pours button.main { background: var(--text); color: var(--ink-bg); padding-inline: 1.3rem; }
.gc-pours button:active { transform: scale(.94); }
.gc-hint { font-size: 13px; color: var(--muted); }
.drop { position: absolute; width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--accent); opacity: .7; pointer-events: none; }

/* ---------- Features ---------- */
.features { max-width: 1280px; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 3rem); }
.sec-head { margin-bottom: 3rem; }
.sec-head.center { text-align: center; display: grid; justify-items: center; }
.sec-head.center .lede { margin-inline: auto; }
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { position: relative; overflow: hidden; padding: 1.8rem; border-radius: 26px; min-height: 340px; }
.card:hover { transform: translateY(-4px); }
.card.mint { background: var(--panel); }
.card.peach { background: var(--peach); }
.card.butter { background: var(--butter); }
.card.white { background: var(--deck); box-shadow: 0 1px 0 var(--rule); }
.span-2 { grid-column: span 2; }
.num { font-weight: 700; font-size: 14px; color: var(--accent-text); margin-bottom: 2.2rem; font-variant-numeric: tabular-nums; }
.card h3 { font-weight: 700; font-size: 1.7rem; line-height: 1.05; letter-spacing: -.04em; margin-bottom: .6rem; max-width: 18rem; }
.card > p:not(.num) { color: var(--muted); max-width: 22rem; position: relative; z-index: 1; }
.card-flasks { position: absolute; right: -2%; bottom: -14%; width: 52%; max-width: 380px; transform: rotate(-4deg); transition: transform .8s cubic-bezier(.3, 1.4, .5, 1) !important; }
.card.mint:hover .card-flasks { transform: rotate(0) translateY(-10px) scale(1.03); }
.notif { margin-top: 1.4rem; padding: .9rem 1rem; border-radius: 20px; background: rgba(255, 255, 255, .85); box-shadow: 0 12px 30px -16px rgba(23, 26, 24, .35); font-size: 14px; line-height: 1.4; transform: rotate(-2deg); }
.card.peach:hover .notif { transform: rotate(0) translateY(-4px); transition: transform .5s; }
.notif-head { display: flex; align-items: center; gap: .45rem; font-size: 12px; color: var(--muted); margin-bottom: .4rem; }
.notif-head img { width: 20px; height: 20px; border-radius: 5px; }
.notif-head span { margin-left: auto; }
.notif-actions { display: flex; gap: .4rem; margin-top: .7rem; }
.notif-actions span { flex: 1; text-align: center; padding: .4rem 0; border-radius: 10px; background: var(--raised); font-weight: 600; font-size: 12.5px; }
.notif-actions span:first-child { background: var(--accent); color: #fff; }
.chart { display: flex; align-items: flex-end; gap: 6%; height: 150px; margin-top: 1.6rem; }
.bar { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .4rem; cursor: default; }
.bar i { width: 100%; height: calc(var(--h) * 82%); border-radius: 10px; background: color-mix(in srgb, var(--accent) 45%, #fff); transform-origin: bottom; transform: scaleY(0); transition: transform 1s cubic-bezier(.3, 1.3, .5, 1) !important; }
.chart.in .bar i { transform: scaleY(1); }
.bar:nth-child(2) i { transition-delay: .06s !important; } .bar:nth-child(3) i { transition-delay: .12s !important; } .bar:nth-child(4) i { transition-delay: .18s !important; }
.bar:nth-child(5) i { transition-delay: .24s !important; } .bar:nth-child(6) i { transition-delay: .3s !important; } .bar:nth-child(7) i { transition-delay: .36s !important; }
.bar.today i { background: var(--accent); }
.bar span { font-size: 12px; color: var(--muted); font-weight: 600; }
.bar:hover i { background: var(--accent); }
.bar::before { content: attr(data-v); position: absolute; top: -1.2rem; font-size: 12px; font-weight: 700; color: var(--accent-text); opacity: 0; transform: translateY(4px); transition: all .25s; white-space: nowrap; }
.bar:hover::before { opacity: 1; transform: none; }
.widgets { display: grid; grid-template-columns: 1fr auto auto; gap: 1.4rem; align-items: center; min-height: 0; }
.widget { display: flex; align-items: center; gap: .8rem; width: 230px; height: 112px; padding: 1rem; border-radius: 26px; background: var(--panel); box-shadow: 0 16px 30px -20px rgba(23, 26, 24, .4); transform: rotate(2deg); }
.widget svg { width: 76px; flex: none; }
.widget b { display: block; font-size: 1.6rem; letter-spacing: -.05em; line-height: 1; }
.widget small { display: block; color: var(--muted); font-size: 12px; }
.w-btn { display: inline-block; margin-top: .45rem; padding: .3rem .65rem; border-radius: 999px; background: var(--text); color: var(--ink-bg); font-size: 12px; font-weight: 600; }
.widget.small { width: 112px; justify-content: center; background: var(--text); transform: rotate(-3deg); }
.ring { --p: .7; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 360deg), rgba(255, 255, 255, .15) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); position: relative; }
.widget.small b { position: absolute; inset: 0; display: grid; place-items: center; color: #f4f1e7; font-size: 1rem; letter-spacing: -.03em; }
.widget.small { position: relative; }
.md-body { fill: var(--dew-top); }
.md-water { fill: var(--accent); fill-opacity: .58; }
.md-rim { stroke: var(--dew-rim); }

/* ---------- Colours ---------- */
.colours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: 1280px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 3rem); }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2rem; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--ink-bg), 0 0 0 4px transparent; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink-bg), 0 0 0 6px var(--c); transform: scale(1.06); }
.sw-sep { width: 1px; height: 30px; background: var(--rule); margin: 0 .3rem; }
.sw-note { font-size: 14px; color: var(--muted); margin-top: 1.2rem; }
.col-art { position: relative; height: 420px; }
.mini-phone { position: absolute; width: 210px; height: 400px; border-radius: 38px; padding: 1.4rem 1.2rem; display: grid; justify-items: center; align-content: center; gap: .6rem; box-shadow: 0 30px 60px -30px rgba(23, 26, 24, .5); border: 6px solid #1d201e; }
.mini-phone svg { width: 130px; }
.mini-phone b { font-size: 2rem; letter-spacing: -.05em; }
.mp-bar { width: 80%; height: 9px; border-radius: 9px; background: rgba(127, 127, 127, .2); overflow: hidden; }
.mp-bar i { display: block; width: 60%; height: 100%; background: var(--accent); }
.mini-phone.light { left: 8%; top: 0; background: var(--ink-bg); transform: rotate(-5deg); }
.mini-phone.dark { right: 8%; top: 18px; background: color-mix(in srgb, #111312 84%, var(--panel)); color: #f4f1e7; transform: rotate(5deg); }

/* ---------- Badges ---------- */
.badges { max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 3rem); }
.keepsakes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; }
.keepsakes li { aspect-ratio: 1; border-radius: 26px; background: var(--deck); box-shadow: 0 1px 0 var(--rule); display: grid; place-items: center; padding: 10%; }
.keepsakes li:nth-child(3n+1) { background: var(--panel); } .keepsakes li:nth-child(3n+2) { background: var(--peach); } .keepsakes li:nth-child(3n) { background: var(--butter); }
.keepsakes img { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) !important; }
.keepsakes li:hover img { transform: scale(1.12) rotate(-6deg); }

/* ---------- Private ---------- */
.private { background: #171a18; color: #f4f1e7; }
.priv-inner { max-width: 1280px; margin: 0 auto; padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 5vw, 3rem); }
.priv-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; margin-top: 3.5rem; border-top: 1px solid rgba(244, 241, 231, .2); padding-top: 2.2rem; }
.priv-list li { color: #c2c6c3; font-size: 1rem; }
.priv-list b { display: block; color: #f4f1e7; font-size: 1.2rem; margin-bottom: .3rem; }

/* ---------- Plus ---------- */
.plus { max-width: 1280px; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 3rem); }
.plus-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 34px; background: linear-gradient(140deg, var(--panel), var(--peach) 70%, var(--butter)); }
.plus-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-content: center; }
.plus-list li { padding: 1rem 1.1rem; border-radius: 18px; background: rgba(255, 255, 255, .7); font-size: 14px; color: var(--muted); }
.plus-list b { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: .15rem; }

/* ---------- Final ---------- */
.final { display: grid; justify-items: center; gap: 1.6rem; text-align: center; padding: clamp(4rem, 9vw, 8rem) 1.2rem; }
.final-dew { width: 120px; animation: dew-float 3.4s ease-in-out infinite; }
@keyframes dew-float { 50% { transform: translateY(-12px) rotate(3deg); } }
.disclaimer { font-size: 13px; color: var(--muted); max-width: 26rem; }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding: 1.6rem clamp(1.2rem, 5vw, 3rem) 3rem; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.foot a { color: var(--text); }
.foot nav { display: flex; gap: 1.4rem; }
.foot nav a { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero, .colours, .plus-card { grid-template-columns: minmax(0, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: 1 / -1; }
  .widgets { grid-template-columns: 1fr auto; }
  .widget.small { display: none; }
  .keepsakes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .priv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .masthead { grid-template-columns: auto 1fr; }
  .mh-name { display: none; }
  .mh-nav a:not(:last-child) { display: none; }
  .bento-grid { grid-template-columns: minmax(0, 1fr); }
  .widgets { grid-template-columns: minmax(0, 1fr); }
  .card-flasks { position: relative; width: 70%; margin: 1rem 0 -3rem auto; right: auto; bottom: auto; }
  .keepsakes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
  .priv-list, .plus-list { grid-template-columns: minmax(0, 1fr); }
  .bubble { right: 0; }
  .col-art { height: 360px; }
  .mini-phone { width: 170px; height: 330px; }
  .mini-phone svg { width: 100px; }
}

/* ============ Real screens from the app ============ */
.screens { max-width: 1280px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 3rem) clamp(2rem, 4vw, 3rem); }
.phone-fan { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1.2rem, 4vw, 3.4rem); }
.phone-fan li { flex: 0 1 300px; min-width: 0; }
.phone-fan figure { display: grid; gap: 1.2rem; }
.phone {
  padding: 9px; border-radius: 52px; background: #171a18;
  box-shadow: inset 0 0 0 1.5px #3a403c, 0 2px 0 #0004, 0 44px 70px -38px rgba(23, 50, 44, .55);
  transition: transform .6s cubic-bezier(.3, 1.5, .5, 1), box-shadow .6s;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 43px; }
.phone-fan li:nth-child(1) .phone { transform: rotate(-5deg) translate(12px, 3.2rem); }
.phone-fan li:nth-child(3) .phone { transform: rotate(5deg) translate(-12px, 3.2rem); }
.phone-fan li:nth-child(2) { position: relative; z-index: 1; }
.phone-fan li:hover .phone { transform: translateY(-.6rem) rotate(0); box-shadow: inset 0 0 0 1.5px #3a403c, 0 60px 80px -40px rgba(23, 50, 44, .6); }
.phone-fan figcaption { font-size: 15px; color: var(--muted); text-align: center; max-width: 16rem; margin: 0 auto; }
.phone-fan li:nth-child(odd) figcaption { margin-top: 3.2rem; }
.phone-fan figcaption b { display: block; color: var(--text); font-size: 17px; margin-bottom: .15rem; }

@media (max-width: 760px) {
  .phone-fan { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * clamp(1.2rem, 5vw, 3rem)); padding: .5rem clamp(1.2rem, 5vw, 3rem) 1.5rem; scrollbar-width: none; }
  .phone-fan::-webkit-scrollbar { display: none; }
  .phone-fan li { flex: 0 0 68vw; scroll-snap-align: center; }
  .phone-fan li:nth-child(n) .phone { transform: none; }
  .phone-fan li:nth-child(odd) figcaption { margin-top: 0; }
  .phone-fan li:nth-child(2) { order: -1; }
  .phone { border-radius: 40px; padding: 7px; }
  .phone img { border-radius: 33px; }
}
@media (prefers-reduced-motion: reduce) { .phone { transition: none; } }

/* ============ Story, ribbon and light/dark (shared styles in /assets/css/story.css) ============ */
.sipwell { --st-ink: var(--text); --st-soft: var(--muted); --st-accent: var(--accent-text); --st-bg: var(--ink-bg); --st-frame: #171a18; --st-hi: var(--panel); }
.ribbon { margin-top: clamp(2rem, 5vw, 4rem); }
.lights { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 5vw, 3rem); }
.lights .compare { justify-self: center; }
@media (max-width: 760px) {
  .lights { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .lights .label { justify-content: center; }
  .lights .lede { margin-inline: auto; }
}
