@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #f7f5f0;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e2d9;
  --card: #ffffff;
  --lavender: #c9b8f0;
  --pink: #f6a6c1;
  --yellow: #f6e27a;
  --sky: #bcd4e6;
  --mint: #bfe3cf;
  --peach: #f9c9a8;
  --coral: #e8664f;
  --dark: #2b2b2b;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --shadow: 0 12px 32px rgba(40, 30, 10, 0.09);
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.big { padding: 16px 28px; font-size: 17px; }

/* ---------- Top bar + sticky nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; text-decoration: none; font-size: 15px; white-space: nowrap; }
.brand .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--coral); display: inline-block; }
.pills {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding: 2px;
}
.pills::-webkit-scrollbar { display: none; }
.pills a {
  flex: 0 0 auto;
  font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid transparent;
  color: var(--muted);
  transition: all .2s var(--ease);
}
.pills a:hover { color: var(--ink); background: #fff; }
.pills a.active { color: var(--ink); background: #fff; border-color: var(--ink); }
.topbar form { margin: 0; }
@media (max-width: 720px) {
  .topbar .row { flex-wrap: wrap; }
  .pills { order: 3; width: 100%; margin: 0 -20px; padding: 0 20px 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 56px 0 56px; overflow: hidden;
  min-height: 60vh; display: grid; place-items: center;
}
.hero .wrap { position: relative; z-index: 2; will-change: transform, opacity; }
.hero .sticker { will-change: transform; }
.pill {
  display: inline-block;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; background: #fff;
}
.hero h1 {
  font-size: clamp(56px, 12vw, 120px);
  line-height: .9; letter-spacing: -.045em; font-weight: 900;
  margin: 20px 0 18px;
}
.hero h1 .line { display: block; overflow: hidden; padding: 0 .08em .14em; margin-bottom: -.14em; }
.hero h1 .line span { display: inline-block; }
.hero .lede { max-width: 520px; margin: 0 auto 26px; color: var(--muted); font-size: 18px; }
.hero .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Hero reveal choreography */
.hero .pill, .hero .lede, .hero .actions { opacity: 0; transform: translateY(14px); }
.hero h1 .line span { transform: translateY(110%); }
.ready .hero .pill { animation: rise .7s var(--ease) .1s forwards; }
.ready .hero h1 .line:nth-child(1) span { animation: lift .9s var(--ease) .25s forwards; }
.ready .hero h1 .line:nth-child(2) span { animation: lift .9s var(--ease) .38s forwards; }
.ready .hero .lede { animation: rise .7s var(--ease) .7s forwards; }
.ready .hero .actions { animation: rise .7s var(--ease) .85s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes lift { to { transform: translateY(0); } }

/* ---------- Stickers ---------- */
.stickers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sticker {
  position: absolute;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.14));
  opacity: 0; transform: scale(.4) rotate(var(--r, 0deg));
  will-change: transform;
}
.ready .sticker { animation: pop .8s var(--ease) forwards; animation-delay: calc(.5s + var(--i, 0) * .08s); }
@keyframes pop { to { opacity: 1; transform: translateY(var(--sy, 0px)) scale(1) rotate(var(--r, 0deg)); } }
.sticker .inner { animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.9s); display: block; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 640px) { .sticker.hide-sm { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section h2 {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -.035em; font-weight: 900; line-height: 1;
  margin: 0 0 8px; text-align: center;
}
.section .sub { text-align: center; color: var(--muted); font-size: 17px; margin: 0 auto 22px; max-width: 540px; }

/* Scroll reveal: 3D tilt-in, staggered by --d */
.section, .band { perspective: 1200px; overflow-x: clip; }
.reveal {
  opacity: 0;
  transform: translateY(44px) rotateX(10deg) scale(.96);
  transform-origin: 50% 100%;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.from-left { transform: translateX(-60px) rotateY(8deg); }
.reveal.from-right { transform: translateX(60px) rotateY(-8deg); }
.reveal.from-left.in, .reveal.from-right.in { transform: none; }

/* Headline letter rise */
h2.split { overflow: hidden; padding: 0 .1em .2em; margin-bottom: calc(8px - .2em); }
h2.split .ch { display: inline-block; transform: translateY(110%); transition: transform .7s var(--ease); transition-delay: calc(var(--n) * .03s); }
h2.split.in .ch { transform: none; }
h2.split .sp { display: inline-block; width: .28em; }

/* Progress bar */
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--coral); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: #fff; border-radius: var(--r-md); padding: 22px 20px;
  box-shadow: var(--shadow); text-align: center;
  border-top: 6px solid var(--c, var(--lavender));
}
.stat .n { font-size: 44px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.stat .n small { font-size: 22px; font-weight: 800; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 6px; font-weight: 500; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Bento grid ---------- */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  border-radius: var(--r-md); padding: 26px;
  background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.card h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.card .icon { font-size: 30px; line-height: 1; }
.card p, .card li { margin: 0; font-size: 15.5px; }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.card b { font-weight: 700; }
.card .note { font-size: 13.5px; color: inherit; opacity: .75; background: rgba(255,255,255,.55); border-radius: 10px; padding: 10px 12px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.lavender { background: var(--lavender); }
.pink { background: var(--pink); }
.yellow { background: var(--yellow); }
.sky { background: var(--sky); }
.mint { background: var(--mint); }
.peach { background: var(--peach); }
@media (max-width: 820px) { .span-2, .span-3, .span-4 { grid-column: span 3; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; } }

/* Steps (true sequence) */
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: #fff; border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c, var(--sky)); display: grid; place-items: center;
  font-weight: 900; font-size: 18px;
}
.step h4 { margin: 0 0 3px; font-size: 17px; font-weight: 800; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

/* Checklist */
.check { display: grid; gap: 8px; }
.check label {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.6); border-radius: 12px; padding: 12px 14px;
  cursor: pointer; font-weight: 600; font-size: 15px;
  transition: background .2s;
}
.check label:has(input:checked) { background: #fff; text-decoration: line-through; color: var(--muted); }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }

/* Code chip */
.code {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px;
  font-weight: 800; font-size: 20px; letter-spacing: .08em;
  border: none; cursor: pointer;
}
.code small { font-size: 12px; letter-spacing: 0; opacity: .75; font-weight: 600; }

/* ---------- Bands ---------- */
.band { padding: 56px 0; position: relative; overflow: hidden; }
.band.lavender { background: var(--lavender); }
.band.coral { background: var(--coral); color: #fff; }
.band.dark { background: var(--dark); color: #fff; }
.band h2 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -.035em; font-weight: 900; line-height: 1; margin: 0 0 10px; text-align: center; }
.band .sub { text-align: center; font-size: 17px; margin: 0 auto 22px; max-width: 520px; opacity: .85; }
.band .float { position: absolute; pointer-events: none; opacity: .55; will-change: transform; }
.band .blob { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }

/* Medical tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; }
.tile { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow); }
.tile .icon { font-size: 28px; }
.tile h4 { margin: 8px 0 4px; font-size: 17px; font-weight: 800; }
.tile p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tile.alert { background: var(--ink); color: #fff; }
.tile.alert p { color: rgba(255,255,255,.85); }

/* Where things are: "house map" list */
.map { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.spot {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center;
  background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
}
.spot .icon { font-size: 26px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--c, var(--mint)); }
.spot b { display: block; font-size: 15.5px; }
.spot span { font-size: 14px; color: var(--muted); }

/* Contacts */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.contact { background: #fff; color: var(--ink); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.contact .role { font-size: 13px; color: var(--muted); font-weight: 600; }
.contact .name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.contact .where { font-size: 13.5px; color: var(--muted); }
.contact a.call {
  margin-top: 12px; align-self: flex-start;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 999px;
}
.contact.urgent { background: var(--coral); color: #fff; }
.contact.urgent .role, .contact.urgent .where { color: rgba(255,255,255,.85); }
.contact.urgent a.call { background: #fff; color: var(--coral); }
.contact.first { background: var(--pink); }

/* Footer */
footer { background: var(--dark); color: #fff; padding: 60px 0 32px; overflow-x: clip; }
footer .foot { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: end; }
footer .big { font-size: clamp(34px, 5vw, 52px); font-weight: 900; letter-spacing: -.035em; line-height: 1; margin: 0 0 10px; }
footer small { color: rgba(255,255,255,.6); font-size: 14px; }
@media (max-width: 640px) { footer .foot { grid-template-columns: 1fr; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; z-index: 99;
  transition: all .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; padding: 20px; }
.login-card {
  position: relative; z-index: 2; background: #fff; border-radius: var(--r-lg);
  padding: 44px 36px; width: 100%; max-width: 400px; box-shadow: var(--shadow); text-align: center;
}
.login-card h1 { font-size: 44px; font-weight: 900; letter-spacing: -.04em; line-height: .95; margin: 14px 0 8px; }
.login-card p { color: var(--muted); margin: 0 0 22px; }
.login-card input {
  width: 100%; font: inherit; font-size: 18px; padding: 15px 16px;
  border-radius: 14px; border: 2px solid var(--line); background: var(--bg);
  outline: none; margin-bottom: 12px; text-align: center;
}
.login-card input:focus { border-color: var(--ink); }
.login-card .btn { width: 100%; justify-content: center; padding: 15px; font-size: 16px; }
.error { background: #ffe3dd; color: #9a2b1a; border-radius: 12px; padding: 10px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.shake { animation: shake .5s; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .pill, .hero .lede, .hero .actions, .sticker { opacity: 1; transform: none; }
  .hero h1 .line span { transform: none; }
  .reveal, .reveal.from-left, .reveal.from-right { opacity: 1; transform: none; }
  h2.split .ch { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Phone polish ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 24px; }
  .section { padding: 36px 0; }
  .band { padding: 48px 0; }
  .card { padding: 22px; }
  .hero { min-height: 0; padding: 36px 0 44px; }
  .hero h1 { font-size: clamp(56px, 19vw, 80px); }
  .hero .lede { font-size: 16.5px; max-width: 320px; }
  .hero .actions { flex-direction: column; align-items: center; }
  .hero .actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  /* Stickers: only four, smaller, tucked into the corners away from the text */
  .sticker { display: none; }
  .sticker.corner.tl, .sticker.corner.tr { display: block; }
  .sticker.corner svg { width: 60px; height: auto; }
  .sticker.corner.tl { top: 2px !important; left: 6px !important; }
  .sticker.corner.tr { top: 8px !important; right: 6px !important; left: auto !important; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: clamp(52px, 17vw, 72px); }
  .topbar .row { padding: 14px 24px 0; }
  .pills { padding: 6px 24px 12px; margin: 0 -24px; }
  .topbar .btn.ghost { padding: 8px 14px; font-size: 14px; }
  .pills a { font-size: 14px; padding: 8px 14px; }
  .stat .n { font-size: 38px; }
  .contact a.call { align-self: stretch; text-align: center; padding: 13px; font-size: 16px; }
  .step { grid-template-columns: 40px 1fr; padding: 14px 16px; }
  .step::before { width: 40px; height: 40px; font-size: 16px; }
}

/* ---------- Right now ---------- */
.now {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 22px 26px;
  box-shadow: var(--shadow);
}
.now-time { font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1; padding-right: 20px; border-right: 2px solid rgba(255,255,255,.2); }
.now-head { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.now-body { font-size: 15.5px; color: rgba(255,255,255,.78); margin-top: 3px; }
.now .btn { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 640px) {
  .now { grid-template-columns: 1fr; gap: 12px; padding: 20px 22px; }
  .now-time { border-right: none; padding-right: 0; font-size: 28px; }
  .now .btn { justify-content: center; }
}

/* ---------- Quick call ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: var(--coral); color: #fff; font-size: 26px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(232,102,79,.45);
  transition: transform .2s var(--ease);
}
.fab:hover { transform: scale(1.06); }
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.sheet-card {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: min(100%, 480px); background: #fff; color: var(--ink);
  border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  display: grid; gap: 10px; transition: transform .3s var(--ease);
}
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-card { transform: translate(-50%, 0); }
.sheet-title { font-size: 20px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 4px; }
.sheet-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; font-weight: 700; font-size: 18px;
  background: var(--bg); border-radius: 14px; padding: 16px 16px;
}
.sheet-row .who-chip { font-weight: 800; font-size: 14px; padding: 5px 12px; border-radius: 999px; }
.sheet-row.urgent { background: var(--coral); color: #fff; }
.sheet-row.urgent .who-chip { background: #fff; color: var(--coral); }
.sheet .btn { justify-content: center; margin-top: 4px; }
.lavender.who-chip { background: var(--lavender); } .mint.who-chip { background: var(--mint); } .sky.who-chip { background: var(--sky); }

/* ---------- Bigger text on phones ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .card p, .card li { font-size: 17px; }
  .card h3 { font-size: 23px; }
  .step p, .tile p, .spot span { font-size: 16px; }
  .section .sub, .band .sub { font-size: 17.5px; }
}

/* ---------- Night mode (auto after 7pm) ---------- */
body.night { --bg: #1f1d1a; --ink: #f3efe7; --muted: #c9c3b8; --line: #3a3732; --card: #2a2724; --shadow: 0 12px 32px rgba(0,0,0,.4); }
body.night .topbar { background: rgba(31,29,26,.85); }
body.night .pill, body.night .pills a.active { background: var(--card); }
body.night .card:not(.lavender):not(.pink):not(.yellow):not(.sky):not(.mint):not(.peach),
body.night .step, body.night .spot, body.night .tile, body.night .contact, body.night .stat { background: var(--card); }
body.night .lavender, body.night .pink, body.night .yellow, body.night .sky, body.night .mint, body.night .peach { color: #1a1a1a; }
body.night .card.lavender, body.night .card.pink, body.night .card.yellow, body.night .card.sky, body.night .card.mint, body.night .card.peach { filter: saturate(.85) brightness(.92); }
body.night .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
body.night .btn.ghost { background: transparent; color: var(--ink); }
body.night .now { background: var(--card); }
body.night .band.lavender { background: #5b4e86; color: #fff; }
body.night .band.coral { background: #a7452f; }
body.night .tile.alert { background: #000; }
body.night .contact.first { background: #c986a4; }
body.night .contact a.call { background: var(--ink); color: var(--bg); }
body.night .sheet-card { background: var(--card); }
body.night .sheet-row { background: var(--bg); }
body.night .sheet-row.urgent { background: var(--coral); color: #fff; }

body.night .step::before { color: #1a1a1a; }
body.night .stat .l, body.night .contact .role, body.night .contact .where, body.night .spot span { color: var(--muted); }
body.night footer small { color: rgba(255,255,255,.7); }

body.night .step::before { color: #1a1a1a; }
body.night .stat .l, body.night .contact .role, body.night .contact .where, body.night .spot span { color: var(--muted); }
body.night footer small { color: rgba(255,255,255,.7); }

/* ---------- Designer pass ---------- */
/* Coral primary button */
.btn.coral { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(232,102,79,.35); }

/* Footer sign-off */
footer .signoff { max-width: 420px; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.85); margin: 14px 0 8px; }
footer .signed { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; }

/* Warmer night mode */
body.night { --bg: #15171f; --ink: #f1ede4; --muted: #b6b2aa; --line: #2b2e3a; --card: #1e2130; --shadow: 0 12px 32px rgba(0,0,0,.45); }
body.night .topbar { background: rgba(21,23,31,.85); }
body.night .card.lavender, body.night .card.pink, body.night .card.yellow, body.night .card.sky, body.night .card.mint, body.night .card.peach { filter: saturate(.8) brightness(.88); }
body.night .stat { border-top-color: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 12px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); }
body.night .now { background: linear-gradient(160deg, #262a3b, #1a1d2a); box-shadow: 0 0 40px rgba(201,184,240,.12), var(--shadow); }
body.night .band.lavender { background: #4a4270; }
body.night .band.coral { background: #8f3d2c; }
body.night .fab { box-shadow: 0 0 30px rgba(232,102,79,.5), 0 10px 26px rgba(0,0,0,.4); }
body.night .sticker { filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)) brightness(.9); }
body.night .btn.coral { background: #d85d47; border-color: #d85d47; color: #fff; }
body.night .code { background: #000; color: #fff; }
body.night footer { background: #0f1017; }
body.night .tile.alert { background: #000; }

/* ---------- Desktop margin graphics ---------- */
.section { position: relative; }
.deco { display: none; }
@media (min-width: 1100px) {
  .deco { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
  .section > .wrap, .band > .wrap { position: relative; z-index: 1; }
  .deco .blob { position: absolute; border-radius: 50%; background: var(--c); opacity: .45; filter: blur(2px); will-change: transform; }
  .deco .outline {
    position: absolute; color: var(--c); opacity: .9; width: 120px; will-change: transform;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.08));
  }
  .deco .outline svg { width: 100%; height: auto; transform: rotate(var(--r, 0deg)); }
  body.night .deco .blob { opacity: .22; }
  body.night .deco .outline { opacity: .6; }
}

/* ---------- Band transitions ---------- */
.band {
  border-radius: 32px;
  width: calc(100% - 32px); max-width: 1200px; margin: 12px auto;
  padding: 56px 0;
}
.band > .blob { filter: blur(40px); opacity: .55; }
body.night .band > .blob { opacity: .35; }
.band .deco .outline { opacity: .7; }
@media (max-width: 820px) {
  .band { border-radius: 26px; width: calc(100% - 24px); margin: 8px auto; padding: 44px 0; }
  .band > .blob { display: none; }
}
@media (max-width: 640px) {
  .band { width: calc(100% - 20px); padding: 40px 0; }
  .band .wrap { padding: 0 20px; }
}
footer .foot { display: block; text-align: center; }
footer .big { margin-bottom: 6px; }
footer .signed { margin: 0; color: rgba(255,255,255,.7); font-weight: 600; font-size: 17px; }


/* ---------- Color pools (CSS radial gradients, no filters) ---------- */
body { position: relative; }
.pools { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.pool {
  position: absolute; display: block; border-radius: 50%;
  width: var(--s, 60vw); height: var(--s, 60vw);
  background: radial-gradient(closest-side, var(--c) 0%, transparent 100%);
  opacity: var(--o, .55);
  animation: pooldrift var(--d, 26s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
@keyframes pooldrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(var(--dx, 6vw), var(--dy, -4vw)) scale(1.08); }
  100% { transform: translate(calc(var(--dx, 6vw) * -.6), var(--dy2, 5vw)) scale(.96); }
}

/* Behind the top of the page */
.skywrap {
  position: absolute; top: 0; left: 0; right: 0; height: 140vh; max-height: 1300px;
  pointer-events: none; z-index: 0; overflow: hidden; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent 60px, #000 220px, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 60px, #000 220px, #000 55%, transparent 100%);
}
.hero-pools .p1 { --c: #f9c9a8; --s: 70vw; --o: .6; left: -22vw; top: -8vw;  --d: 30s; --dx: 8vw;  --dy: 5vw;  --dy2: -3vw; }
.hero-pools .p2 { --c: #c9b8f0; --s: 64vw; --o: .55; right: -20vw; top: 2vw; --d: 36s; --dx: -7vw; --dy: 6vw;  --dy2: -4vw; --delay: -12s; }
.hero-pools .p3 { --c: #bcd4e6; --s: 56vw; --o: .5;  left: 28vw; top: 30vw;  --d: 28s; --dx: 5vw;  --dy: -6vw; --dy2: 4vw;  --delay: -20s; }
body.night .hero-pools .p1 { --c: #6a3fb8; --o: .35; }
body.night .hero-pools .p2 { --c: #2f4fb0; --o: .35; }
body.night .hero-pools .p3 { --c: #a83a7c; --o: .28; }

.hero { background: transparent; }
.hero .stickers { z-index: 1; }
.hero .wrap { z-index: 2; }
.topbar { z-index: 50; }
.section, .band, footer { position: relative; z-index: 1; }

/* Right-now card and bands */
.now, .band { position: relative; overflow: hidden; }
.now > *:not(.pools) { position: relative; z-index: 1; }
.band > .wrap { position: relative; z-index: 1; }
.band > .blob { display: none; }
.now-pools .p1 { --c: #c9b8f0; --s: 60%; --o: .35; left: -15%; top: -60%; --d: 22s; --dx: 10%; --dy: 10%; --dy2: -8%; }
.now-pools .p2 { --c: #f6a6c1; --s: 55%; --o: .3;  right: -10%; top: -40%; --d: 26s; --dx: -8%; --dy: 12%; --dy2: -6%; --delay: -9s; }
.now-pools .p3 { --c: #e8664f; --s: 45%; --o: .25; left: 40%; top: 20%;  --d: 24s; --dx: 6%;  --dy: -10%; --dy2: 8%; --delay: -15s; }
body.night .now-pools .p1 { --c: #7c4fe0; --o: .35; } body.night .now-pools .p2 { --c: #d14a86; --o: .3; } body.night .now-pools .p3 { --c: #e8664f; --o: .22; }
.lav-pools .p1 { --c: #f6a6c1; --s: 55%; --o: .55; left: -15%; top: -30%; --d: 28s; --dx: 8%; --dy: 10%; --dy2: -6%; }
.lav-pools .p2 { --c: #bcd4e6; --s: 50%; --o: .5;  right: -12%; top: 10%; --d: 32s; --dx: -7%; --dy: -10%; --dy2: 8%; --delay: -14s; }
.lav-pools .p3 { --c: #ffffff; --s: 40%; --o: .35; left: 35%; bottom: -30%; --d: 26s; --dx: 5%; --dy: -8%; --dy2: 6%; --delay: -20s; }
body.night .lav-pools .p1 { --c: #c04a93; --o: .4; } body.night .lav-pools .p2 { --c: #4a6ad6; --o: .4; } body.night .lav-pools .p3 { --c: #b89cf5; --o: .25; }
.coral-pools .p1 { --c: #f6e27a; --s: 55%; --o: .5; left: -15%; top: -30%; --d: 28s; --dx: 8%; --dy: 10%; --dy2: -6%; }
.coral-pools .p2 { --c: #f9c9a8; --s: 50%; --o: .5; right: -12%; top: 0;    --d: 32s; --dx: -7%; --dy: -10%; --dy2: 8%; --delay: -14s; }
.coral-pools .p3 { --c: #f6a6c1; --s: 40%; --o: .4; left: 40%; bottom: -30%; --d: 26s; --dx: 5%; --dy: -8%; --dy2: 6%; --delay: -20s; }
body.night .coral-pools .p1 { --c: #f0a040; --o: .35; } body.night .coral-pools .p2 { --c: #ff8c5a; --o: .35; } body.night .coral-pools .p3 { --c: #d04a6a; --o: .3; }

@media (max-width: 640px) {
  .skywrap { height: 110vh; }
  .hero-pools .p1, .hero-pools .p2, .hero-pools .p3 { --s: 110vw; }
}
@media (prefers-reduced-motion: reduce) { .pool { animation: none; } }
.login-card .back { display: block; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; margin: -10px 0 14px; }
.login-card .back:hover { color: var(--ink); }
.login-logo { width: 96px; height: auto; display: block; margin: 0 auto 6px; filter: drop-shadow(0 10px 24px rgba(140,110,255,.35)); }
.login-card h1 { font-size: 34px; }
