/*
 * Landing v3: tokens, shared components and the nav + footer chrome
 * (docs/landing-redesign-spec.md §2, slice R0).
 *
 * Plain CSS, no Tailwind: the auth pages and the public help pages load this too, and
 * neither has Tailwind. The help pages INLINE the chrome part of this file (build-kb.mjs)
 * because kb-publish can ship help/ before a release ships css/.
 *
 * Dots and badges only, never a fill behind text: coral = reminders and messages,
 * amber = waitlist, mint = payments, lavender = portal and report cards, blue = booking.
 */

:root {
    --woof-blue: #18a0fb;
    --woof-blue-ink: #0d8ae6;   /* links and kickers: the blue that passes 4.5:1 on white at small sizes */
    --woof-blue-deep: #0369a1;
    --woof-ink: #1a1a2e;
    --woof-cream: #fafbfc;
    --woof-sky: #e0f2fe;
    --woof-text: #111827;
    --woof-text-2: #374151;
    --woof-text-3: #6b7280;
    --woof-line: #e5e7eb;
    --dot-coral: #F97066;
    --dot-amber: #F5B82E;
    --dot-mint: #34C98B;
    --dot-lav: #8B7CF6;
    --woof-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Components (spec §2): CSS classes, no JS ─────────────────────────────── */

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--woof-blue); flex: 0 0 auto; }
.dot-blue { background: var(--woof-blue); }
.dot-coral { background: var(--dot-coral); }
.dot-amber { background: var(--dot-amber); }
.dot-mint { background: var(--dot-mint); }
.dot-lav { background: var(--dot-lav); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--woof-line); font-size: 13px; font-weight: 700; color: var(--woof-text); line-height: 1.2; }
.pill-sky { background: var(--woof-sky); border-color: var(--woof-sky); color: var(--woof-blue-deep); }

.kick { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--woof-blue-ink); }

.frame { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--woof-line); box-shadow: 0 30px 60px -36px rgba(17, 24, 39, .35); }
.frame img, .frame video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.phone { border-radius: 34px; overflow: hidden; background: #fff; border: 7px solid #fff; box-shadow: 0 0 0 1px #d1d5db, 0 30px 60px -30px rgba(17, 24, 39, .4); }
.phone img, .phone video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.card { box-sizing: border-box; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--woof-line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--woof-text); }
.card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #4b5563; }
@media (max-width: 640px) { .card { padding: 18px; } }

.chk { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--woof-text); }
.chk > span:first-child { width: 22px; height: 22px; border-radius: 50%; background: var(--woof-sky); color: var(--woof-blue-ink); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 auto; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */

.wv-nav, .wv-nav *, .wv-foot, .wv-foot * { box-sizing: border-box; }
.wv-nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--woof-line); font-family: var(--woof-font); -webkit-font-smoothing: antialiased; }
/* Landing pages mount the nav into #root, which is only as tall as the nav, so sticky would
   never stick there: those pages keep the fixed bar their bodies are padded for. */
.wv-nav.wv-fixed { position: fixed; left: 0; right: 0; }
.wv-bar { max-width: 1296px; margin: 0 auto; height: 72px; padding: 0 32px; display: flex; align-items: center; gap: 36px; }
.wv-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--woof-text); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.wv-brand img { width: 34px; height: 34px; display: block; }
.wv-brand small { font-size: 13px; font-weight: 600; color: var(--woof-text-3); margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--woof-line); letter-spacing: 0; }

.wv-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.wv-links > li { position: relative; }
.wv-top { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--woof-text-2); font: 600 15px var(--woof-font); text-decoration: none; cursor: pointer; }
.wv-top:hover, .wv-top[aria-expanded="true"], .wv-top[aria-current="page"] { color: var(--woof-blue-ink); }
.wv-top:focus-visible, .wv-menu a:focus-visible, .wv-right a:focus-visible, .wv-burger:focus-visible { outline: 2px solid var(--woof-blue); outline-offset: 2px; }
.wv-top svg { width: 16px; height: 16px; transition: transform .15s ease; }
.wv-top[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Left-aligned under its button: centred, the 740px Products menu ran off the left edge at 1280. */
.wv-menu { display: none; position: absolute; top: 100%; left: -8px; padding-top: 10px; }
.wv-menu-inner { background: #fff; border: 1px solid var(--woof-line); border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(17, 24, 39, .3); padding: 20px; animation: wvDrop .14s ease-out; }
li[data-open] > .wv-menu { display: block; }
@media (hover: hover) and (pointer: fine) { li.wv-has-menu:hover > .wv-menu { display: block; } }
@keyframes wvDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.wv-mega { display: grid; grid-template-columns: repeat(3, 220px); gap: 8px 20px; }
.wv-col h3 { margin: 4px 10px 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--woof-text-3); display: flex; align-items: center; gap: 8px; }
.wv-col h3 .dot { width: 8px; height: 8px; }
.wv-menu ul { margin: 0; padding: 0; list-style: none; }
.wv-menu a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--woof-text); font-size: 14.5px; font-weight: 600; text-decoration: none; line-height: 1.3; }
.wv-menu a:hover { background: var(--woof-sky); color: var(--woof-blue-deep); }
.wv-menu a span { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--woof-text-3); }
.wv-menu-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.wv-menu-foot a { display: inline-block; color: var(--woof-blue-ink); font-weight: 700; }
.wv-rows { width: 380px; }
.wv-rows li + li.wv-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid #f1f5f9; }
.wv-small { width: 220px; }

.wv-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wv-login { padding: 0 12px; color: var(--woof-text-2); font: 600 15px var(--woof-font); text-decoration: none; white-space: nowrap; }
.wv-login:hover { color: var(--woof-blue-ink); }
.wv-cta { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 14px; background: var(--woof-blue); color: #fff !important; font: 700 15px var(--woof-font); text-decoration: none; white-space: nowrap; }
.wv-cta:hover { background: var(--woof-blue-ink); }

/* Phone menu: <details>, so it opens with no JS (the help pages have none to spare). */
.wv-mobile { display: none; }
.wv-burger { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.wv-burger::-webkit-details-marker { display: none; }
.wv-burger svg { width: 22px; height: 22px; }
.wv-burger .wv-x { display: none; }
.wv-mobile[open] .wv-burger .wv-x { display: block; }
.wv-mobile[open] .wv-burger .wv-ham { display: none; }
.wv-sheet { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 64px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--woof-line); box-shadow: 0 24px 40px -24px rgba(17, 24, 39, .3); padding: 8px 16px 20px; }
.wv-sheet details { border-bottom: 1px solid #f1f5f9; }
.wv-sheet summary, .wv-sheet > a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--woof-text); font-size: 17px; font-weight: 700; text-decoration: none; list-style: none; cursor: pointer; }
.wv-sheet > a { border-bottom: 1px solid #f1f5f9; }
.wv-sheet summary::-webkit-details-marker { display: none; }
.wv-sheet summary svg { width: 18px; height: 18px; color: var(--woof-text-3); transition: transform .15s ease; }
.wv-sheet details[open] > summary svg { transform: rotate(180deg); }
.wv-sheet h3 { margin: 10px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--woof-text-3); display: flex; align-items: center; gap: 8px; }
.wv-sheet h3 .dot { width: 8px; height: 8px; }
.wv-sheet ul { margin: 0 0 10px; padding: 0; list-style: none; }
.wv-sheet ul a { display: block; padding: 9px 0; color: var(--woof-text-2); font-size: 15px; font-weight: 600; text-decoration: none; }
.wv-sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.wv-sheet-actions .wv-cta { height: 50px; }
.wv-sheet-actions .wv-login { display: flex; align-items: center; justify-content: center; height: 50px; border: 1px solid var(--woof-line); border-radius: 14px; }

@media (max-width: 960px) {
    .wv-bar { height: 64px; padding: 0 16px; gap: 12px; }
    .wv-brand { font-size: 20px; }
    .wv-brand img { width: 30px; height: 30px; }
    .wv-links, .wv-right > .wv-login { display: none; }
    .wv-right > .wv-cta { height: 38px; padding: 0 14px; font-size: 14px; }
    .wv-mobile { display: block; }
}
@media (max-width: 480px) { .wv-brand small { display: none; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.wv-foot { background: var(--woof-ink); color: #9ca3af; font-family: var(--woof-font); -webkit-font-smoothing: antialiased; }
.wv-foot-in { max-width: 1296px; margin: 0 auto; padding: 56px 32px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.wv-foot .wv-brand { color: #fff; }
.wv-foot-blurb { margin: 12px 0 0; max-width: 300px; font-size: 14px; line-height: 1.6; color: #9ca3af; }
.wv-foot h2 { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.wv-foot ul { margin: 0; padding: 0; list-style: none; }
.wv-foot ul a { display: block; color: #9ca3af; text-decoration: none; font-size: 14px; line-height: 2; }
.wv-foot a:hover { color: #fff; }
.wv-legal { margin-top: 24px; font-size: 12px; color: #9ca3af; }
.wv-legal a { color: #9ca3af; text-decoration: none; }
@media (max-width: 960px) {
    .wv-foot-in { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 32px 16px; }
    .wv-foot-brand { grid-column: span 2; }
}

/* Every animation shows its final frame (spec §1.6). */
@media (prefers-reduced-motion: reduce) {
    .wv-menu-inner { animation: none; }
    .wv-top svg, .wv-sheet summary svg { transition: none; }
}

/* ── Auth pages that opt into the chrome (_auth-header chrome=true) ─────────
   The auth layout is a 100vh app shell; with the nav above it the page scrolls as a
   whole and the footer sits below the form. */
body.auth-body.wv-chrome { overflow: auto; }
body.wv-chrome .auth-layout { min-height: calc(100vh - 72px); }
body.wv-chrome .auth-panel-form { height: auto; min-height: calc(100vh - 72px); overflow: visible; }
body.wv-chrome .auth-header-minimal, body.wv-chrome .auth-footer-minimal { display: none; }
@media (max-width: 960px) {
    body.wv-chrome .auth-layout, body.wv-chrome .auth-panel-form { min-height: calc(100vh - 64px); }
}
body.wv-chrome > #wv-nav-mount { position: sticky; top: 0; z-index: 50; }
