/* Website Care page (draft, 2026-12-02). The monthly-visit hero: copy | five edit keys + a 30-minute meter | an
   example site where Jingle runs the monthly check and makes the edits. Shares the keycaps, the light sections, the
   audit band and the How it works rows with ../website-redesign/redesign.css. Motion: care.js header. */

/* ================= hero ================= */
.vc { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.1fr); }
.vc-keys .key { grid-template-columns: 3.1rem 1fr auto; }
.vc-min { font: 400 var(--text-2xs)/1 var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--color-mute); white-space: nowrap; }
.key[aria-pressed="true"] .vc-min { color: var(--color-accent); }
/* the fifth key is not a small edit: a dashed cap that never stays down */
.vc-big .cap { background: transparent; color: var(--color-snow); box-shadow: inset 0 0 0 1.5px oklch(60% 0.006 265); transform: none; }
.vc-big .cap::after { display: none; }
@media (hover: hover) and (pointer: fine) { .vc-big:hover .cap { transform: none; box-shadow: inset 0 0 0 1.5px var(--color-snow); } }
.vc-big:active .cap { transform: scale(0.96); box-shadow: inset 0 0 0 1.5px var(--color-snow); }

/* the meter: 30 one-minute cells */
.vc-meter { margin-top: var(--space-lg); }
.vc-bar { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 0.9rem; }
.vc-bar i { border-radius: 2px; background: oklch(28% 0.004 265); transition: background-color 200ms var(--ease-out); transition-delay: var(--d, 0ms); }
.vc-bar i.on { background: var(--color-lilac); }
.vc-meter-t { margin: var(--space-xs) 0 0; font: 400 var(--text-xs)/1.4 var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--color-mute); }
.vc-meter-t span { color: var(--color-snow); }
.vc .verdict { margin-top: var(--space-md); min-height: 7rem; }

/* ================= the example site ================= */
.vc-stage { position: relative; width: 100%; max-width: 540px; justify-self: center; }
.vc-tag { display: flex; justify-content: space-between; margin: 0 0 var(--space-xs); font: 400 var(--text-xs)/1 var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--color-mute); }
.vc-tag span:last-child { color: var(--color-accent); }
.vc-tag { gap: var(--space-sm); }
.vc-card { position: relative; container-type: inline-size; aspect-ratio: 5 / 5.6; border-radius: 1.2rem; background: #f5f7fa; color: #16181e; overflow: clip;
  box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.08), 0 2.2rem 4rem oklch(0% 0 0 / 0.5); }
.vc-note { margin: var(--space-sm) 0 0; font: 400 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--color-mute); }
.vc-replay { margin-top: var(--space-2xs); }

.vs { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto auto 1fr auto; padding: 5cqw 5.5cqw 4.5cqw; font: 400 2.9cqw/1.4 Fraunces, Georgia, serif; }
.vs-nav { display: flex; align-items: center; gap: 4cqw; font: 800 3.6cqw/1 "Bricolage Grotesque", sans-serif; }
.vs-links { position: relative; display: flex; gap: 3.4cqw; margin-left: auto; font: 400 2.5cqw/1 "Fragment Mono", monospace; letter-spacing: 0.04em; color: #4a4f5c; }
.vs-book { white-space: nowrap; padding: 2.2cqw 3cqw; border-radius: 99px; background: #ff71bb; font: 400 2.3cqw/1 "Fragment Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.vs-ghost { position: absolute; left: 0; top: calc(100% + 2cqw); white-space: nowrap; background: #f5f7fa; padding: 1.2cqw 2cqw; border-radius: 99px; box-shadow: inset 0 0 0 1px #3c5cdd; color: #3c5cdd; animation: ghost 1.6s var(--ease-out) both; }
@keyframes ghost { 0% { opacity: 0; transform: translateY(-4px); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* the holiday notice opens in place (a grid row, the one sanctioned size change) */
.vs-notice { display: grid; grid-template-rows: 0fr; margin: 0; transition: grid-template-rows 360ms var(--ease-out), margin 360ms var(--ease-out); }
.vs-notice > span { overflow: hidden; }
.vs-notice b { display: block; margin-top: 3.4cqw; padding: 2.4cqw 3cqw; border-radius: 2.4cqw; background: #16181e; color: #f5f7fa; font: 400 2.5cqw/1.35 "Fragment Mono", monospace; letter-spacing: 0.02em; }
.e-notice .vs-notice { grid-template-rows: 1fr; }

.vs-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; align-items: end; margin-top: 6cqw; }
.vs-h { margin: 0; font: 800 9.2cqw/0.9 "Bricolage Grotesque", sans-serif; font-variation-settings: "wdth" 78; text-transform: uppercase; }
.vs-p { margin: 2.6cqw 0 0; color: #3a3f4c; }
.vs-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 2.6cqw; overflow: hidden; background: linear-gradient(160deg, #9fb4d8, #3c5cdd); }
.vs-photo::after { content: ""; position: absolute; left: 20%; bottom: -6%; width: 60%; height: 66%; border-radius: 50% 50% 0 0; background: #23306e; }
/* the swapped photo: a pink-gel scene fades in over the cobalt one */
.vs-photo i { position: absolute; inset: 0; z-index: 1; background: linear-gradient(200deg, #ffc2e2, #ff71bb); opacity: 0; transition: opacity 420ms var(--ease-out); }
.vs-photo i::after { content: ""; position: absolute; right: 14%; bottom: -8%; width: 46%; height: 72%; border-radius: 40% 40% 0 0; background: #8a2a5e; }
.e-photo .vs-photo i { opacity: 1; }

.vs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; margin-top: 6cqw; align-content: start; }
.vs-cols h3 { margin: 0 0 2cqw; font: 800 3.4cqw/1 "Bricolage Grotesque", sans-serif; text-transform: uppercase; }
.vs-dl { display: grid; grid-template-columns: 1fr auto; gap: 1.6cqw 3cqw; margin: 0; font-size: 2.7cqw; }
.vs-dl dt { color: #4a4f5c; }
.vs-dl dd { margin: 0; text-align: right; font-family: "Fragment Mono", monospace; font-size: 2.5cqw; }
.vs-new { display: none; }
.e-hours [data-spot="hours"] .vs-old, .e-price [data-spot="price"] .vs-old { display: none; }
.e-hours [data-spot="hours"] .vs-new, .e-price [data-spot="price"] .vs-new { display: inline; }
.vs-foot { display: flex; gap: 4cqw; margin: 0; padding-top: 3cqw; border-top: 1px solid #d9dde4; font: 400 2.4cqw/1 "Fragment Mono", monospace; letter-spacing: 0.04em; color: #4a4f5c; }

/* a changed value flashes pink gel, then settles */
.vs-flash { animation: flash 1.2s var(--ease-out); border-radius: 0.6cqw; }
@keyframes flash { 0%, 35% { background: #ffc2e2; box-shadow: 0 0 0 1cqw #ffc2e2; } 100% { background: transparent; box-shadow: 0 0 0 1cqw transparent; } }

/* ---- the check: three chips under the card tick in turn; the caption is the line above the card ---- */
.vc-checks { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: var(--space-sm) 0 0; padding: 0; list-style: none; }
.vc-checks li { display: inline-flex; align-items: center; gap: 0.55em; padding: 0.55em 0.9em; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--color-rule-dark); font: 400 var(--text-2xs)/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mute); transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.vc-checks li::before { content: ""; width: 0.7em; height: 0.38em; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-25%) rotate(-45deg) scale(0); transition: transform 240ms var(--ease-out); }
.vc-checks li.ok { color: var(--color-snow); background: var(--color-night-2); box-shadow: inset 0 0 0 1px oklch(40% 0.004 265); }
.vc-checks li.ok::before { color: var(--color-lilac); transform: translateY(-25%) rotate(-45deg) scale(1); }

/* ---- Jingle: placed by care.js (his feet are the box's bottom centre) ---- */
.vc-jg { position: absolute; z-index: 4; left: 0; top: 0; width: 15cqw; pointer-events: none; opacity: 0; }
.vc-jg.is-on { opacity: 1; }
.vc-jg svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 100%; }
.vc-jg .jg-tada { display: none; }
.vc-jg.tada .jg-rest { display: none; } .vc-jg.tada .jg-tada { display: block; }
.vc-jg.idle .jg-rest { animation: breathe 2.6s var(--ease-in-out) infinite; }
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.02, 0.975); } }
.is-paused .vc-jg.idle .jg-rest { animation-play-state: paused; }

/* ================= covers: three cards (dark page throughout, owner 2026-12-02) ================= */
.cv { background: var(--color-night); color: var(--color-snow); border-top: 1px solid var(--color-rule-dark); }
.cv ::selection { background: var(--color-lilac); color: var(--color-ink); }
.cv .rr-note { color: oklch(78% 0.006 265); }
.cv-cards { max-width: 78rem; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(var(--space-sm), 2vw, var(--space-md)); }
.cv-card { background: var(--color-night-2); box-shadow: inset 0 0 0 1px var(--color-rule-dark); }
.cv-card .rr-body { color: oklch(80% 0.006 265); }
.cv-card .rr-name { font-size: clamp(1.6rem, 2.3vw, 2.2rem); }
.cv-card-pink { background: var(--color-lilac); box-shadow: none; }
.cv-card-pink .rr-body { color: oklch(22% 0.02 350); }
.cv-card-cobalt { background: var(--color-cobalt); color: var(--color-snow); box-shadow: none; }
.cv-card-cobalt .rr-body { color: oklch(92% 0.02 268); }
.cv-art { height: 5.5rem; display: flex; align-items: center; gap: 0.6rem; }
/* checks: three ticks draw on in turn */
.cv-art-check i { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--color-snow); position: relative; }
.cv-art-check i::after { content: ""; position: absolute; left: 0.78rem; top: 0.72rem; width: 1rem; height: 0.55rem; border: solid var(--color-lilac); border-width: 0 0 3px 3px; transform: rotate(-45deg) scale(0); transition: transform 260ms var(--ease-out); }
.cv-card.is-in .cv-art-check i::after { transform: rotate(-45deg) scale(1); }
.cv-card.is-in .cv-art-check i:nth-child(2)::after { transition-delay: 90ms; } .cv-card.is-in .cv-art-check i:nth-child(3)::after { transition-delay: 180ms; }
/* edits: a 30-minute bar fills part way (an example, like the hero) */
.cv-art-meter i { width: 100%; max-width: 15rem; height: 1rem; border-radius: 99px; background: oklch(100% 0 0 / 0.45); overflow: hidden; }
.cv-art-meter i::after { content: ""; display: block; height: 100%; width: 60%; border-radius: inherit; background: var(--color-ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 700ms var(--ease-out); }
.cv-card.is-in .cv-art-meter i::after { transform: none; }
/* restore: the last working version slides back over the broken one */
.cv-art-restore { position: relative; }
.cv-art-restore i { position: absolute; left: 0; top: 0.5rem; width: 3.6rem; height: 4.5rem; border-radius: 0.4rem; background: oklch(100% 0 0 / 0.25); box-shadow: inset 0 0 0 1.5px oklch(100% 0 0 / 0.6); }
.cv-art-restore i:last-child { background: var(--color-snow); box-shadow: none; transform: translateX(4.6rem); transition: transform 520ms var(--ease-in-out) 150ms; }
.cv-art-restore i:last-child::before { content: ""; position: absolute; inset: 0.55rem 0.55rem auto; height: 1rem; border-radius: 0.2rem; background: var(--color-lilac); }
.cv-card.is-in .cv-art-restore i:last-child { transform: none; }

/* ================= which sites it's for ================= */
.ws { background: var(--color-night); color: var(--color-snow); padding: 0 clamp(var(--space-sm), 5vw, var(--space-3xl)) clamp(5rem, 13svh, 8.5rem); }
.ws .rr-title { padding-top: clamp(4rem, 10svh, 6.5rem); border-top: 1px solid var(--color-rule-dark); max-width: 78rem; }
.ws-rows { max-width: 78rem; margin: 0 auto; border-bottom: 1px solid var(--color-rule-dark); }
.ws-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-md) var(--space-xl); padding: var(--space-lg) 0; border-top: 1px solid var(--color-rule-dark); }
.ws-row dt { font: 800 clamp(1.3rem, 2vw, 1.9rem)/1.05 var(--font-display); text-transform: uppercase; font-variation-settings: "wdth" var(--display-wdth); letter-spacing: var(--tracking-display); }
.ws-row dd { margin: 0; font: 400 clamp(1.05rem, 1.35vw, 1.25rem)/1.5 var(--font-serif); color: oklch(80% 0.006 265); }
.ws-row a { color: var(--color-snow); text-decoration-color: var(--color-lilac); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

@media (max-width: 900px) {
  .cv-cards { grid-template-columns: 1fr; }
  .ws-row { grid-template-columns: 1fr; }
}
/* small screens: the example site sits between the question and the keys, so a tap and its effect show together */
@media (max-width: 1000px) {
  .vc { grid-template-columns: 1fr; }
  .vc-keys { display: contents; }
  .vc-keys h2 { order: 1; margin: var(--space-lg) 0 0; }
  .vc-stage { order: 2; max-width: min(330px, 84vw); }
  .vc-checks { margin-top: var(--space-xs); }
  .vc-note, .vc-replay { font-size: var(--text-2xs); }
  .vc-keys ul { order: 3; }
  .vc-meter { order: 4; margin-top: 0; }
  .vc .verdict { order: 5; margin-top: 0; }
}
/* reduced motion: edits still apply and captions still show; Jingle fades between spots instead of hopping */
@media (prefers-reduced-motion: reduce) {
  .vs-notice, .vs-photo i, .vc-bar i, .cv-art i, .cv-art i::after { transition: none !important; }
  .vs-flash, .vs-ghost, .vc-jg.idle .jg-rest { animation: none; }
  .vc-checks li, .vc-checks li::before { transition: none; }
}
