/* Red Martian Cat Care: app styles.
   Palette from the approved artwork: night navy, warm ivory, coral, lavender, mint.
   Rich illustrated scene on sign-in; quiet ivory panels on a navy shell inside the app.
   Mobile first; desktop (1000px+) gets a sidebar. */
:root {
  --navy: #18283E; --navy-2: #22365A; --navy-3: #2F4670; --navy-ink: #C9D2E3;
  --ivory: #FFF4DD; --page: #FBF4E8; --paper: #FFFDF8;
  --coral: #F08069; --coral-hover: #EA6E55; --coral-dark: #B9452F; --coral-soft: #FCE4DC;
  --lavender: #B6ACE2; --lav-soft: #EEEAFB; --lav-dark: #5B4FA0;
  --mint: #B9D7CB; --mint-soft: #E5F1EB; --mint-dark: #2C6B57;
  --gold: #F2C14E; --gold-soft: #FFF0C9;
  --ink: #1E2A3D; --muted: #5C6578; --line: #EDE2CE;
  --radius: 22px; --radius-sm: 14px;
  --lift: 0 1px 2px rgba(24, 40, 62, .05), 0 10px 26px rgba(24, 40, 62, .07);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: 268px;
  /* names used by older markup */
  --space: var(--navy); --mars: var(--coral); --mars-dark: var(--coral-dark); --mars-soft: var(--coral-soft);
  --teal: #3E8E73; --teal-dark: var(--mint-dark); --teal-soft: var(--mint-soft); --moon: var(--page);
  --red: var(--coral); --red-dark: var(--coral-dark); --red-soft: var(--coral-soft);
  --good: #3E8E73; --good-soft: var(--mint-soft); --bad: var(--coral); --blue-soft: var(--lav-soft); --cream: var(--page);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--coral-dark); }
h1, h2, h3 { font-family: var(--font); color: var(--navy); line-height: 1.15; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.06rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; }
.noscript { padding: 24px; text-align: center; }
.u-mt { margin-top: 12px; } .u-sp { height: 14px; }
.logo { display: block; }

/* ---------- Motion ---------- */
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes drift { 50% { transform: translate(8px, -10px); } }
@keyframes twinkle { 50% { opacity: .15; } }
@keyframes comet { 0% { transform: translate(0, 0) rotate(-20deg); opacity: 0; } 3% { opacity: 1; } 12% { transform: translate(70vw, -24vh) rotate(-20deg); opacity: 0; } 100% { opacity: 0; } }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-22px) rotate(-4deg); } 55% { transform: translateY(0) rotate(3deg); } 75% { transform: translateY(-8px) rotate(0); } }
@keyframes ground { 50% { transform: translateX(-14px); } }
/* "Pause animation" and the system reduce-motion setting both stop all decorative motion. */
.still *, .still *::before, .still *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-toggle { display: none; }
}

/* Thought bubbles: puffy clouds with real text */
.bubble { position: relative; background: #fff; color: var(--navy); border-radius: 999px; padding: 14px 24px; font-weight: 800; line-height: 1.3;
  box-shadow: 0 12px 30px rgba(8, 16, 30, .28); transition: opacity .3s, transform .3s; max-width: 300px; isolation: isolate; }
.bubble::before, .bubble::after { content: ""; position: absolute; background: #fff; border-radius: 50%; z-index: -1; }
.bubble::before { width: 46%; height: 70%; left: 12%; top: -26%; }
.bubble::after { width: 34%; height: 62%; right: 14%; top: -18%; }
.bubble.swap { opacity: 0; transform: translateY(6px) scale(.97); }
.bubble-text { position: relative; }
.bubble-dot { position: absolute; background: #fff; border-radius: 50%; box-shadow: 0 6px 14px rgba(8, 16, 30, .22); }
.bubble-dot.d1 { width: 16px; height: 16px; left: 40px; bottom: -16px; }
.bubble-dot.d2 { width: 9px; height: 9px; left: 28px; bottom: -30px; }
.bubble.big { font-size: 1.12rem; padding: 18px 28px; }

/* Stars */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stars circle { fill: #FFF4DD; }
.tw0 { animation: twinkle 3.1s ease-in-out infinite; }
.tw1 { animation: twinkle 4.3s ease-in-out infinite .8s; opacity: .7; }
.tw2 { animation: twinkle 5.7s ease-in-out infinite 1.6s; opacity: .45; }

/* ---------- Boot ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); font-weight: 700; }
.boot img { width: 96px; height: auto; animation: float 2.4s ease-in-out infinite; }

/* ---------- Sign-in: night sky over Mars ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(400px, .75fr); }
.scene { position: relative; overflow: hidden; color: var(--ivory); padding: 44px 52px; min-height: 100svh;
  background: radial-gradient(90% 55% at 70% 100%, rgba(240, 128, 105, .38) 0%, rgba(240, 128, 105, 0) 60%),
              radial-gradient(60% 50% at 0% 0%, rgba(182, 172, 226, .22) 0%, rgba(182, 172, 226, 0) 60%),
              linear-gradient(175deg, #0F1A2C 0%, var(--navy) 55%, #2A3B5E 100%); }
.scene .stars { height: 70%; }
.comet { position: absolute; top: 16%; left: -8%; width: 150px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 244, 221, 0), #FFF4DD); opacity: 0; animation: comet 11s linear infinite 2s; }
.moon { position: absolute; top: 9%; right: 9%; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset -12px 4px 0 0 #FFE7B8; filter: drop-shadow(0 0 14px rgba(255, 231, 184, .55)); transform: rotate(-20deg); }
.ringed { position: absolute; top: 13%; left: 60%; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFB49F, var(--coral) 55%, #B9452F); animation: drift 12s ease-in-out infinite; }
.ringed::after { content: ""; position: absolute; left: -16px; right: -16px; top: 13px; height: 8px; border-radius: 50%; border: 2px solid #FFD8C8; transform: rotate(-16deg); }
.scene-ground { position: absolute; left: -3%; bottom: -2px; width: 106%; height: auto; pointer-events: none; animation: ground 26s ease-in-out infinite; }
.scene-copy { position: relative; z-index: 3; max-width: 640px; }
.brandline { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ivory); margin-bottom: 40px; font-size: 1.05rem; }
.brandline .logo { width: 48px; height: 48px; }
.scene h1 { color: var(--ivory); font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1.03; letter-spacing: -.02em; margin-bottom: 16px; max-width: 13ch; text-shadow: 0 4px 24px rgba(8, 16, 30, .45); }
.scene p { color: var(--navy-ink); font-size: 1.1rem; max-width: 36ch; }
.hero-cat { position: absolute; z-index: 2; right: 7%; bottom: 8%; display: flex; flex-direction: column; align-items: flex-end; gap: 34px; }
.hero-cat .bubble { margin-right: 0; max-width: 280px; }
.hero-cat .bubble .d1 { left: auto; right: 64px; } .hero-cat .bubble .d2 { left: auto; right: 82px; }
.perch { width: clamp(270px, 28vw, 420px); animation: float 6s ease-in-out infinite; }
.perch .mascot { width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 30px rgba(8, 16, 30, .45)); transition: transform .35s ease; }
.scene.look .perch .mascot { transform: rotate(4deg) translateX(8px); }
.scene.happy .perch .mascot { animation: hop .9s ease; }
.motion-toggle { position: absolute; z-index: 4; left: 52px; bottom: 22px; background: rgba(24, 40, 62, .7); color: var(--ivory); border: 1px solid rgba(255, 244, 221, .35); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .82rem; cursor: pointer; backdrop-filter: blur(4px); }
.motion-toggle:hover { background: var(--navy); }

.auth-panel { display: grid; place-items: center; padding: 40px 36px; background: var(--ivory); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h2 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-box > .muted { margin-bottom: 22px; }
.auth-box .card { padding: 22px; background: var(--paper); }
.perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.perk-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--coral-soft); }
.perks li:nth-child(2) .perk-ico { background: var(--mint-soft); }
.perks li:nth-child(3) .perk-ico { background: var(--lav-soft); }
.auth-foot { margin-top: 18px; font-size: .88rem; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--muted); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: 999px; min-height: 50px; font-weight: 800; color: var(--navy); cursor: pointer; font-family: var(--font); transition: border-color .15s, box-shadow .15s; }
.gbtn:hover { border-color: var(--navy); box-shadow: 0 4px 14px rgba(24, 40, 62, .1); }
.provider-icon { width: 20px; height: 20px; flex: none; }
.agree { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin-bottom: 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--page); font-size: .92rem; line-height: 1.45; }
.agree input { width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0; accent-color: var(--coral-dark); cursor: pointer; }
.agree label { cursor: pointer; }
.agree a { font-weight: 800; }
.agree.shake { animation: shake .4s ease-in-out; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.agree.invalid { border-color: var(--coral); background: var(--coral-soft); }
.auth .linkbtn { margin-top: 8px; }

@media (min-width: 961px) and (max-width: 1280px) {
  .scene p { max-width: 30ch; }
  .hero-cat { right: 4%; }
  .perch { width: 250px; }
  .hero-cat .bubble.big { max-width: 220px; font-size: 1rem; padding: 14px 20px; }
}
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .scene { min-height: 500px; padding: 24px 20px 28px; }
  .scene .stars { height: 75%; }
  .brandline { margin-bottom: 18px; }
  .brandline .logo { width: 40px; height: 40px; }
  .scene h1 { font-size: 1.85rem; max-width: 12ch; }
  .scene p { display: none; }
  .scene-ground { width: 150%; left: -25%; }
  .hero-cat { right: 4%; bottom: 7%; gap: 26px; align-items: flex-end; }
  .perch { width: 178px; }
  .hero-cat .bubble { margin-left: 0; margin-right: 56px; font-size: .92rem; padding: 12px 18px; max-width: 210px; }
  .hero-cat .bubble .d1 { left: auto; right: 30px; } .hero-cat .bubble .d2 { left: auto; right: 18px; }
  .moon { width: 32px; height: 32px; top: 22px; right: 22px; box-shadow: inset -8px 3px 0 0 #FFE7B8; }
  .ringed { display: none; }
  .motion-toggle { left: 16px; bottom: 14px; }
  .auth-panel { padding: 24px 16px 40px; place-items: start center; }
}
@media (max-width: 380px) { .hero-cat .bubble { max-width: 170px; } .scene h1 { font-size: 1.7rem; } .perch { width: 160px; } }

/* ---------- App shell ---------- */
.shell { min-height: 100vh; }
.side { display: none; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: var(--ivory); padding: calc(10px + env(safe-area-inset-top)) 12px 10px; display: flex; align-items: center; gap: 8px; }
.topbar .title { flex: 1; font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .logo { width: 36px; height: 36px; }
.iconbtn { background: transparent; border: 0; color: var(--ivory); font-size: 1.3rem; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; text-decoration: none; flex: none; }
.iconbtn:hover, .iconbtn:focus-visible { background: rgba(255, 244, 221, .12); }
.page { padding: 16px; }

/* Header band: the night sky with the kitten and its tip */
.band { position: relative; overflow: hidden; color: var(--ivory); padding: 20px 16px 22px;
  background: radial-gradient(60% 120% at 85% 120%, rgba(240, 128, 105, .35) 0%, rgba(240, 128, 105, 0) 65%),
              linear-gradient(170deg, #0F1A2C 0%, var(--navy) 60%, #22365A 100%); }
.band .stars { opacity: .9; }
.band-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.band-text { flex: 1; min-width: 0; }
.band h1 { color: var(--ivory); font-size: 1.6rem; margin: 0 0 4px; }
.band .sub { color: var(--navy-ink); margin: 0; font-weight: 600; }
.band .chips { margin-top: 8px; }
.band-cat { position: relative; flex: none; align-self: flex-end; margin-bottom: -22px; }
.band-cat .mascot { width: 104px; height: auto; display: block; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(8, 16, 30, .4)); }
.band-tip { position: relative; z-index: 1; margin-top: 18px; }
.band-tip .bubble { max-width: none; font-size: .92rem; padding: 11px 18px; border-radius: 18px; }
.band-tip .bubble::before, .band-tip .bubble::after { display: none; }
.band-tip .bubble .d1 { left: auto; right: 40px; bottom: auto; top: -12px; width: 12px; height: 12px; }
.band-tip .bubble .d2 { left: auto; right: 30px; bottom: auto; top: -24px; width: 7px; height: 7px; }
.band .avatar { width: 64px; height: 64px; font-size: 1.8rem; box-shadow: 0 0 0 4px rgba(255, 244, 221, .25); }

/* Sidebar (desktop) */
@media (min-width: 1000px) {
  .shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
  .topbar { display: none; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: linear-gradient(180deg, var(--navy) 0%, #132036 100%); color: var(--ivory); padding: 24px 14px 18px; }
  .side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 24px; text-decoration: none; color: var(--ivory); }
  .side-brand .logo { width: 50px; height: 50px; }
  .side-brand b { display: block; font-size: 1.08rem; line-height: 1.1; }
  .side-brand span { display: block; font-size: .86rem; color: var(--navy-ink); font-weight: 600; }
  .side-label { font-size: .8rem; font-weight: 800; color: #93A0B8; padding: 18px 12px 8px; }
  .side a.nav { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; color: #E6EAF2; text-decoration: none; font-weight: 700; }
  .side a.nav:hover { background: rgba(255, 244, 221, .07); }
  .side a.nav.on { background: var(--coral); color: var(--navy); }
  .side a.nav.on .nav-ico { background: rgba(24, 40, 62, .12); }
  .side .nav-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 244, 221, .08); flex: none; font-size: 1rem; }
  .side .avatar { width: 34px; height: 34px; font-size: .95rem; }
  .side a.nav.add { color: var(--lavender); }
  .side a.nav.add .nav-ico { border: 2px dashed rgba(182, 172, 226, .6); background: transparent; }
  .side-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 6px; }
  .side-plan { margin: 0 4px 6px; padding: 12px 14px; border-radius: 16px; background: rgba(185, 215, 203, .14); font-size: .86rem; color: var(--navy-ink); }
  .side-plan b { display: block; color: var(--ivory); font-size: .95rem; }
  .side .signout { background: none; border: 0; color: #93A0B8; font-weight: 700; text-align: left; padding: 8px 12px; cursor: pointer; border-radius: 12px; }
  .side .signout:hover { color: var(--ivory); background: rgba(255, 244, 221, .07); }
  .band { padding: 30px 40px 32px; min-height: 176px; }
  .band h1 { font-size: 2.2rem; }
  .band-cat { margin-bottom: -34px; }
  .band-cat .mascot { width: 168px; }
  .band-inner { gap: 24px; }
  .band-tip { position: absolute; right: 214px; top: 50%; transform: translateY(-50%); margin: 0; max-width: 400px; z-index: 2; }
  .band-tip .bubble .d1 { right: -14px; top: 50%; margin-top: -6px; }
  .band-tip .bubble .d2 { right: -28px; top: 50%; margin-top: 4px; }
  .band.has-tip .band-text { padding-right: 460px; }
  .band .avatar { width: 84px; height: 84px; font-size: 2.3rem; }
  .page { padding: 28px 40px 48px; max-width: 1240px; }
}
@media (min-width: 1000px) and (max-width: 1240px) {
  .band-tip { max-width: 250px; }
  .band.has-tip .band-text { padding-right: 300px; }
}

/* ---------- Cards and lists ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--lift); }
.card h2, .card h3 { margin-top: 0; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-title h3 { margin: 0; flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.list .meta { color: var(--muted); font-size: .86rem; }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; }

/* Buttons: coral with navy text (readable contrast) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--coral); color: var(--navy); border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 800; cursor: pointer; text-decoration: none; min-height: 48px; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 6px 16px rgba(240, 128, 105, .3); }
.btn:hover { background: var(--coral-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.btn.ghost:hover { background: var(--navy); color: var(--ivory); }
.btn.light { background: var(--lav-soft); color: var(--navy); border: 2px solid transparent; box-shadow: none; }
.btn.light:hover { border-color: var(--lavender); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn.danger { background: transparent; color: var(--coral-dark); border: 2px solid var(--coral); box-shadow: none; }
.linkbtn { background: none; border: 0; color: var(--coral-dark); font-weight: 800; cursor: pointer; padding: 4px; text-decoration: underline; }

/* Forms */
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 800; color: var(--navy); font-size: .94rem; margin-bottom: 7px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; min-height: 48px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 4px rgba(182, 172, 226, .3); }
.inline { display: flex; gap: 12px; } .inline > * { flex: 1; min-width: 0; }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; background: #fff; }
.check:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); }
.check input { accent-color: var(--coral-dark); width: 18px; height: 18px; }
.seg { display: flex; background: var(--lav-soft); border-radius: 999px; padding: 4px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--navy); color: var(--ivory); }
.error { background: var(--coral-soft); color: var(--coral-dark); border-radius: var(--radius-sm); padding: 11px 14px; font-weight: 700; margin-bottom: 12px; }
.success { background: var(--mint-soft); color: var(--mint-dark); border-radius: var(--radius-sm); padding: 11px 14px; font-weight: 700; margin-bottom: 12px; }

/* Banners */
.banner { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.banner.trial { background: var(--mint-soft); color: var(--mint-dark); }
.banner.ended { background: var(--coral-soft); color: var(--coral-dark); }
.banner.paid { background: var(--mint-soft); color: var(--mint-dark); }

/* Avatars (users' own cats keep their initials) and chips */
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; flex: none; font-weight: 800; color: var(--navy); background: var(--coral); }
.avatar.c1 { background: linear-gradient(135deg, #F7A08D, var(--coral)); }
.avatar.c2 { background: linear-gradient(135deg, #D2CBF2, var(--lavender)); }
.avatar.c3 { background: linear-gradient(135deg, #D6EAE1, var(--mint)); }
.avatar.c4 { background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: var(--ivory); }
.avatar.c5 { background: linear-gradient(135deg, #FBDC8E, var(--gold)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: .76rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; background: var(--lav-soft); color: var(--navy); }
.chip.ckd { background: var(--coral-soft); color: var(--coral-dark); }
.chip.senior { background: var(--mint-soft); color: var(--mint-dark); }
.chip.kitten { background: var(--lav-soft); color: var(--lav-dark); }
.chip.done { background: var(--mint-soft); color: var(--mint-dark); }
.chip.pending { background: var(--gold-soft); color: #6E5200; }
.band .chip { background: rgba(255, 244, 221, .14); color: var(--ivory); }

/* Home: cat cards */
.home-grid { display: grid; gap: 16px; }
.cats { display: grid; gap: 14px; }
.catcard { position: relative; display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; box-shadow: var(--lift); transition: transform .15s, box-shadow .15s; }
.catcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(24, 40, 62, .06), 0 14px 32px rgba(24, 40, 62, .1); }
.catcard .name { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.catcard .go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lav-soft); color: var(--navy); font-size: 1.3rem; flex: none; }
.addcat { border: 2px dashed var(--lavender); background: transparent; box-shadow: none; justify-content: center; color: var(--lav-dark); font-weight: 800; min-height: 86px; }
.addcat:hover { border-color: var(--lav-dark); }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 12px; }
.section-title h2 { margin: 0; flex: 1; }
.welcome { display: grid; gap: 18px; align-items: center; text-align: center; padding: 30px 20px; }
.welcome .mascot { width: 170px; height: auto; margin: 0 auto; animation: float 6s ease-in-out infinite; }
.steps { display: grid; gap: 12px; margin-top: 4px; text-align: left; }
.step { display: flex; gap: 12px; align-items: flex-start; background: var(--page); border-radius: var(--radius-sm); padding: 14px; }
.step .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--ivory); font-weight: 800; flex: none; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .cats { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .catcard { flex-direction: column; align-items: flex-start; padding: 22px; min-height: 196px; }
  .catcard .avatar { width: 64px; height: 64px; font-size: 1.8rem; }
  .catcard .go { position: absolute; right: 18px; top: 18px; }
  .addcat { align-items: center; min-height: 196px; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 28px; }
  .welcome { grid-template-columns: 220px 1fr; text-align: left; padding: 36px; }
  .welcome .mascot { width: 210px; }
}

/* Tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: 62px; z-index: 15; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 15px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 800; font-size: .92rem; }
.tabs a:hover { background: var(--lav-soft); color: var(--navy); }
.tabs a.on { background: var(--navy); color: var(--ivory); }
@media (min-width: 1000px) { .tabs { top: 0; padding: 12px 40px; } }

/* Cat view layouts */
.view { display: block; }
@media (min-width: 1000px) {
  .two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .view-records .groups, .view-food { columns: 2; column-gap: 20px; }
  .view-records .groups .card, .view-food > .card { break-inside: avoid; }
  .view-calendar .two-col { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); }
  .view-records > .btn.block { width: auto; }
  .view-checkin form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .view-checkin form > div:first-child, .view-checkin form > .wide, .view-checkin form > .btn, .view-checkin form > p { grid-column: 1 / -1; }
  .view-checkin form > .btn { justify-self: start; width: auto; min-width: 260px; }
  .view-summary .card { max-width: 900px; }
  .view-calendar .cal-grid { gap: 10px; }
  .view-calendar .cal-day { aspect-ratio: auto; height: 68px; font-size: 1.05rem; border-radius: 14px; }
}

/* Info rows */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 700; }
.pill { display: inline-block; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--lav-soft); color: var(--navy); }
.pill.due { background: var(--gold-soft); color: #6E5200; } .pill.overdue { background: var(--coral-soft); color: var(--coral-dark); } .pill.done { background: var(--mint-soft); color: var(--mint-dark); }
.kind-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lav-soft); flex: none; font-size: 1.1rem; }

/* Today call to action */
.today-cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, var(--coral) 0%, #F59A82 100%); color: var(--navy); text-decoration: none; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 10px 26px rgba(240, 128, 105, .32); }
.today-cta::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -40px; top: -70px; background: rgba(255, 255, 255, .18); }
.today-cta .grow { display: flex; flex-direction: column; }
.today-cta strong { font-size: 1.12rem; }
.today-cta .big { font-size: 1.7rem; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .3); flex: none; }
.today-cta.done { background: linear-gradient(120deg, var(--mint) 0%, #CFE6DC 100%); box-shadow: 0 10px 26px rgba(62, 142, 115, .2); }

/* Charts */
.chart { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--coral); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--coral-dark); }
.chart text { font-size: 15px; fill: var(--muted); font-family: var(--font); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--navy); color: var(--ivory); padding: 11px 20px; border-radius: 999px; font-weight: 700; z-index: 50; box-shadow: 0 10px 30px rgba(24, 40, 62, .3); max-width: calc(100% - 32px); }
@media (min-width: 1000px) { .toast { left: calc(50% + var(--side) / 2); } }

/* Checklist (kitten) */
.todo { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: .8rem; }
.todo.done .tick { background: var(--good); border-color: var(--good); color: #fff; }

/* Choice chips (check-in, foods) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { flex: 1 1 auto; min-width: 84px; min-height: 48px; border: 2px solid var(--line); background: #fff; color: var(--navy); border-radius: var(--radius-sm); font-weight: 800; padding: 8px 12px; cursor: pointer; transition: background .12s, border-color .12s; }
.choice:hover { border-color: var(--lavender); }
.choice[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.sites { display: grid; grid-template-columns: repeat(2, 1fr); }
.sites .choice[data-v="scruff"] { grid-column: 1 / -1; }
.fluid-detail { margin-top: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--lav-soft); }
.fluid-detail .field:last-child { margin-bottom: 0; }

/* Calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0; }
.cal-head { text-align: center; font-size: .78rem; font-weight: 800; color: var(--muted); }
.cal-day { aspect-ratio: 1; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: .92rem; text-decoration: none; color: var(--navy); background: #F2EADB; transition: transform .12s; }
a.cal-day:hover { transform: scale(1.06); }
.cal-day.good { background: var(--good); color: #fff; }
.cal-day.okay { background: var(--gold); color: var(--navy); }
.cal-day.rough { background: var(--coral); color: var(--navy); }
.cal-day.future { background: transparent; color: #C9BFAE; }
.cal-day.is-today { outline: 3px solid var(--navy); outline-offset: 2px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.cal-legend .lg::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; background: #F2EADB; }
.cal-legend .good::before { background: var(--good); } .cal-legend .okay::before { background: var(--gold); } .cal-legend .rough::before { background: var(--coral); }
.btn-spacer { width: 44px; }
.stat-dot { width: 14px; height: 14px; border-radius: 5px; margin-top: 4px; flex: none; background: #F2EADB; }
.stat-dot.good { background: var(--good); } .stat-dot.okay { background: var(--gold); } .stat-dot.rough { background: var(--coral); }
.stat-n { font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.band .btn.light.band-edit { margin-top: 12px; background: rgba(255, 244, 221, .12); color: var(--ivory); border-color: rgba(255, 244, 221, .3); }
.band .btn.light.band-edit:hover { background: rgba(255, 244, 221, .22); }
@media (max-width: 999px) { .band-edit { display: none !important; } }

/* Foods and labs */
select.mini { width: auto; min-height: 36px; padding: 4px 8px; font-size: .85rem; }
.unit-fixed { display: grid; place-items: center; font-weight: 700; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius-sm); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.lab-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.lab-table th, .lab-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.lab-table th { color: var(--muted); font-size: .8rem; }

/* Vet summary */
.summary .sum-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 2px solid var(--navy); margin-bottom: 12px; }
.sum-section { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.sum-section h3 { font-size: 1rem; }
ul.plain { margin: 0; padding-left: 18px; } ul.plain li { margin-bottom: 4px; }
.sum-foot { margin-top: 16px; }

@media print {
  body { background: #fff; }
  .topbar, .tabs, .noprint, .toast, .side, .band { display: none !important; }
  .shell { display: block; }
  .page { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .summary { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}

/* Cozy orbit refinement: keep the illustration rich and the care controls quiet. */
:root { --radius: 24px; --side: 252px; }
:focus-visible { outline: 3px solid #7963b2; outline-offset: 3px; }
.scene { display: flex; flex-direction: column; min-height: 100svh; padding: 36px clamp(28px,4vw,64px) 0; }
.scene-copy { flex: none; }
.scene h1 { font-size: clamp(2.4rem,3.5vw,3.65rem); max-width: 17ch; letter-spacing: -.035em; }
.scene p { max-width: 42ch; }
.scene .brandline { margin-bottom: 30px; }
.hero-cat { position: relative; right: auto; bottom: auto; align-self: flex-end; margin: 44px 0 50px; flex: 1; justify-content: flex-end; gap: 24px; }
.perch { position: relative; width: clamp(280px,27vw,420px); }
.perch::before { content: ""; position: absolute; inset: 4% -8% 15%; border: 1px solid rgba(255,221,181,.5); border-radius: 50%; transform: rotate(-24deg); box-shadow: 0 0 28px rgba(255,211,155,.06); }
.perch::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #ffdfb1; box-shadow: 0 0 16px #efb584; left: 3%; top: 20%; }
.scene .mascot { position: relative; z-index: 1; }
.scene-ground { z-index: 1; }
.hero-cat .bubble { z-index: 2; margin-right: 8%; }
.bubble, .bubble::before, .bubble::after, .bubble-dot { background: #fff4dd; }
.scene .bubble { box-shadow: 0 8px 32px #08101e38, inset 0 -6px 18px #efd3bd55; }
.bubble.big { font-size: 1rem; }
.auth-panel { background: radial-gradient(ellipse at 100% 0%,#eee7f5,transparent 55%),#fff4dd; }
.auth-box { max-width: 440px; }
.auth-box h2 { font-size: clamp(1.9rem,2.3vw,2.35rem); letter-spacing: -.025em; }
.auth-box .card { padding: 26px; box-shadow: 0 14px 45px #18283e0b; }
.agree { border-width: 1px; }
.gbtn { border-width: 1px; }
.field input, .field select, .field textarea { border-width: 1px; }
.band .stars { opacity: .4; }
.band h1 { letter-spacing: -.025em; }
.band-tip .bubble { box-shadow: none; }
.band-cat .mascot { animation-duration: 9s; }
.catcard .name, .band-text { overflow-wrap: anywhere; }
.side-plan { border: 1px solid #fff4dd1a; }
.side .signout, .side-label { color: #b9c7dc; }
.card, .catcard { box-shadow: 0 2px 3px #18283e03,0 12px 32px #18283e08; }
.catcard { background: linear-gradient(135deg,#fffdf8,#fffaf3); }
.catcard.addcat { background: transparent; box-shadow: none; }
.catcard .go { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--lav-soft); flex: none; }
.btn.small { min-height: 40px; }
.app-motion { position: fixed; left: auto; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; background: #18283e; }
.page { padding-bottom: 78px; }
@media (min-width: 1000px) {
  .band { border-radius: 0 0 28px 28px; }
  .page { max-width: 1500px; }
}
@media (min-width: 1000px) and (max-width: 1350px) {
  .band.has-tip .band-text { padding-right: 0; }
  .band-tip { position: relative; right: auto; top: auto; transform: none; margin-top: 22px; max-width: none; }
  .band-tip .bubble .d1 { top: -12px; right: 40px; margin-top: 0; }
  .band-tip .bubble .d2 { top: -24px; right: 30px; margin-top: 0; }
}
@media (max-width: 960px) {
  .scene { min-height: 360px; padding: 24px; }
  .scene-copy { max-width: 60%; }
  .scene .brandline { white-space: nowrap; margin-bottom: 24px; font-size: .95rem; }
  .scene h1 { font-size: clamp(1.7rem,4vw,2.5rem); max-width: 15ch; }
  .scene p { display: none; }
  .hero-cat { position: absolute; right: 4%; bottom: 20px; margin: 0; gap: 22px; }
  .perch { width: 200px; }
  .hero-cat .bubble { margin: 0 6px 0 0; max-width: 185px; font-size: .8rem; padding: 12px 18px; }
  .scene-ground { width: 110%; left: -5%; }
  .auth-panel { padding: 28px 20px 40px; }
}
@media (max-width: 520px) {
  .scene { min-height: 360px; padding: 20px; }
  .scene-copy { max-width: 100%; }
  .scene .brandline { font-size: .86rem; margin-bottom: 16px; gap: 8px; }
  .scene .brandline .logo { width: 34px; height: 34px; }
  .scene h1 { font-size: 1.8rem; max-width: 16ch; }
  .hero-cat { right: 10px; bottom: 14px; }
  .perch { width: 148px; }
  .hero-cat .bubble { position: absolute; right: 145px; bottom: 30px; width: 132px; max-width: 132px; margin: 0; padding: 12px; font-size: .75rem; }
  .hero-cat .bubble .d1 { left: auto; right: -10px; bottom: 28px; width: 10px; height: 10px; }
  .hero-cat .bubble .d2 { left: auto; right: -22px; bottom: 19px; width: 6px; height: 6px; }
  .scene-ground { width: 145%; left: -22%; }
  .scene .motion-toggle { font-size: .7rem; bottom: 8px; padding: 5px 10px; }
  .moon { width: 22px; height: 22px; top: 25px; right: 14px; }
  .auth-box .card { padding: 20px; }
  .auth-panel { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion-toggle { display: none !important; }
}
@media print { .motion-toggle { display: none !important; } }

/* Viewport-aware sign-in: text and form stay in normal flow; never crop controls. */
.scene h1 { max-width: none; line-height: 1.13; text-wrap: balance; }
.scene h1 > span { display: block; }
.scene h1 .tagline-second { color: #ffaf98; margin-top: .12em; }
.scene .scene-description { margin-top: 22px; line-height: 1.7; max-width: none; font-size: 1rem; }
.scene-description > span { display: block; }
@media (min-width: 961px) {
  .scene { padding: 28px clamp(24px,3vw,52px) 0; }
  .scene-copy { max-width: none; }
  .scene .brandline { margin-bottom: 26px; }
  .scene h1 { font-size: clamp(1.5rem,2.55vw,3rem); margin-bottom: 0; }
  .hero-cat { margin: 28px 4% 38px; gap: 26px; }
  .perch { width: clamp(185px,30svh,350px); }
  .hero-cat .bubble { max-width: 245px; }
  .scene-ground { max-height: 30%; object-fit: cover; object-position: bottom; }
  .auth-panel { padding: 28px clamp(24px,2.5vw,40px); }
  .auth-box h2 { font-size: clamp(1.75rem,2vw,2.1rem); }
  .auth-box > .muted { margin-bottom: 18px; }
  .auth-box .card { padding: 22px; }
  .scene::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #ffdc9e; box-shadow: 0 0 18px #ffd399, 100px 90px 0 -1px #fff4dd, -50px 135px 0 -1px #ffaf98; left: 22%; top: 58%; pointer-events: none; }
}
@media (min-width: 961px) and (max-height: 800px) {
  .scene { padding-top: 20px; }
  .scene .brandline { margin-bottom: 18px; }
  .scene .brandline .logo { width: 40px; height: 40px; }
  .scene .scene-description { margin-top: 16px; font-size: .94rem; line-height: 1.6; }
  .hero-cat { margin-top: 24px; margin-bottom: 34px; gap: 20px; }
  .perch { width: clamp(180px,28svh,224px); }
  .auth-panel { padding-block: 18px; }
  .auth-box h2 { font-size: 1.75rem; }
  .auth-box > .muted { font-size: .94rem; line-height: 1.5; margin-bottom: 14px; }
  .auth-box .card { padding: 18px; margin-bottom: 12px; }
  .auth-box .agree { font-size: .86rem; padding: 10px; margin-bottom: 12px; }
  .auth-box .divider { margin-block: 12px; }
  .auth-box .field { margin-bottom: 12px; }
  .auth-box .perks { margin-top: 14px; gap: 8px; }
  .auth-box .perks li { font-size: .86rem; }
  .auth-box .perk-ico { width: 30px; height: 30px; }
  .auth-box .auth-foot { margin-top: 14px; font-size: .82rem; }
}
@media (max-width: 960px) {
  .scene h1 { max-width: 19ch; }
  .scene .scene-description { display: none; }
}

/* Reference scene: readable text, larger character and three illustrated care paths. */
.scene { isolation: isolate; }
.scene-brand { position: relative; z-index: 5; }
.scene-copy { z-index: 4; }
.scene .scene-description { margin-top: 28px; }
.scene-ground { max-height: none; object-fit: contain; opacity: .95; }
.scene .hero-cat { z-index: 3; }
.scene .bubble { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; min-height: 64px; height: auto; text-align: center; }
.scene .bubble-text { display: block; }
.sky-planet { position: absolute; pointer-events: none; border-radius: 50%; z-index: 0; }
.earth { width: 14px; height: 14px; top: 12%; right: 12%; background: radial-gradient(circle at 30% 30%,#d3f3e7,#578da9 45%,#15283e 85%); box-shadow: 0 0 15px #c9e9ff44; }
.jupiter { width: 23px; height: 23px; top: 30%; left: 7%; background: repeating-linear-gradient(170deg,#dfc4a0 0 4px,#9c7863 5px 7px,#f0d8b8 8px 10px); box-shadow: inset -8px -2px 10px #102139bb; }
.shooting-star { position: absolute; width: 105px; height: 2px; pointer-events: none; opacity: 0; z-index: 0; background: linear-gradient(90deg,transparent,#fff3cf); border-radius: 50%; animation: sky-shoot 13s linear infinite; }
.shooting-1 { top: 10%; left: 15%; animation-delay: 1s; }
.shooting-2 { top: 28%; left: 54%; animation-duration: 19s; animation-delay: 6s; }
.shooting-3 { top: 52%; left: 8%; animation-duration: 23s; animation-delay: 11s; }
.shooting-4 { top: 7%; left: 65%; animation-duration: 29s; animation-delay: 17s; }
@keyframes sky-shoot { 0%,2% { opacity: 0; transform: translate(-90px,-45px) rotate(26deg); } 3% { opacity: .8; } 8% { opacity: 0; transform: translate(230px,110px) rotate(26deg); } 100% { opacity: 0; transform: translate(230px,110px) rotate(26deg); } }
.perch .blink-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; opacity: 0; pointer-events: none; }
.blink-ready .blink-frame { animation: cat-blink 7.7s steps(1,end) infinite; }
@keyframes cat-blink { 0%,93%,97%,100% { opacity: 0; } 94%,96% { opacity: 1; } }
.care-paths { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.care-path { display: grid; grid-template-columns: minmax(0,1fr) auto; border-radius: 18px; background: #eee8fa; padding: 8px 10px 12px; color: #18283e; font-size: .86rem; font-weight: 800; text-decoration: none; box-shadow: 0 8px 25px #08101e22; border: 1px solid #fff5; }
.care-path img { width: 100%; height: 80px; object-fit: contain; grid-column: 1/-1; }
.care-path > span { align-self: center; }
.care-senior { background: #e1efe7; }
.care-kidney { background: #f8e8df; }
.care-arrow { margin-left: 4px; }
.care-path:hover { box-shadow: 0 8px 28px #08101e55; }
.scene .motion-toggle { bottom: 10px; left: 24px; }
@media (min-width: 961px) {
  .scene { padding: 24px clamp(20px,2.5vw,42px) 44px; display: block; min-height: 100svh; }
  .scene .scene-brand { margin: 0; }
  .scene-copy { position: absolute; top: clamp(110px,19svh,200px); left: clamp(20px,2.5vw,42px); width: 50%; }
  .scene h1 { font-size: clamp(1.55rem,2.3vw,2.75rem); line-height: 1.15; }
  .scene h1 .tagline-second { margin-top: .22em; }
  .scene .scene-description { font-size: clamp(.86rem,1.1vw,1.03rem); line-height: 1.7; margin-top: 28px; }
  .scene-description > span { display: inline; }
  .scene .hero-cat { position: absolute; right: 3%; bottom: 170px; margin: 0; width: min(41svh,41%); display: block; }
  .scene .perch { width: 100%; }
  .scene .hero-cat .bubble { position: relative; margin: 0 0 28px auto; width: 190px; max-width: 100%; font-size: .8rem; padding: 12px 16px; }
  .scene-ground { width: 112%; left: -6%; bottom: 110px; height: auto; max-height: 44%; object-fit: fill; }
  .care-paths { position: absolute; bottom: 46px; left: clamp(20px,2.5vw,42px); right: clamp(20px,2.5vw,42px); }
  .care-path img { height: clamp(65px,10svh,100px); }
  .scene::after { top: 48%; left: 34%; }
}
@media (min-width: 961px) and (max-width: 1150px) {
  .scene-copy { width: 58%; top: 105px; }
  .scene .scene-description { font-size: .84rem; }
  .scene .hero-cat { width: 36%; bottom: 158px; }
  .scene .hero-cat .bubble { width: 150px; font-size: .72rem; }
  .care-path { font-size: .73rem; padding-inline: 6px; }
}
@media (max-width: 960px) {
  .scene { display: flex; min-height: 0; padding: 24px 20px 48px; }
  .scene .scene-brand { margin-bottom: 42px; }
  .scene-copy { position: relative; width: 100%; max-width: none; }
  .scene h1 { max-width: none; font-size: clamp(1.7rem,4.6vw,2.7rem); }
  .scene .scene-description { display: block; font-size: .9rem; margin-top: 24px; max-width: 48ch; }
  .scene-description > span { display: inline; }
  .scene .hero-cat { position: relative; right: auto; bottom: auto; width: min(300px,75%); align-self: flex-end; margin: 36px 0 18px; display: block; }
  .scene .perch { width: 100%; }
  .scene .hero-cat .bubble { position: relative; right: auto; bottom: auto; width: 185px; max-width: 100%; margin: 0 auto 28px; padding: 12px 16px; font-size: .8rem; }
  .scene .hero-cat .bubble .d1 { right: 28px; bottom: -16px; }
  .scene .hero-cat .bubble .d2 { right: 18px; bottom: -29px; }
  .scene-ground { bottom: 150px; width: 135%; left: -17%; height: auto; max-height: none; }
  .care-paths { width: 100%; gap: 8px; margin-top: 10px; }
  .care-path { font-size: .73rem; padding: 6px 6px 10px; }
  .care-path img { height: 66px; }
}
@media (max-width: 370px) {
  .care-paths { gap: 5px; }
  .care-path { font-size: .65rem; }
  .care-path img { height: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  .blink-ready .blink-frame { animation: none !important; opacity: 0; }
  .shooting-star { animation: none !important; opacity: 0; }
}
.still .blink-frame { opacity: 0 !important; }
