/* Click & Clean — public site styles */
:root {
  --brand: #0b6e69;
  --brand-dark: #084c48;
  --brand-deep: #06302d;
  --brand-soft: #e3f2f0;
  --brand-tint: #f1f8f7;
  --accent: #f4b740;
  --accent-dark: #d99a1c;
  --ink: #12201f;
  --ink-soft: #3d4f4d;
  --muted: #64716f;
  --line: #d7e3e1;
  --bg: #fbfdfc;
  --white: #fff;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --success: #1c7c4a;
  --success-soft: #e6f4ec;
  --warning-soft: #fff6e0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(6, 48, 45, .06), 0 8px 24px rgba(6, 48, 45, .07);
  --shadow-lg: 0 18px 50px rgba(6, 48, 45, .14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--brand-deep); }
.btn-accent:hover { background: var(--accent-dark); color: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-light { background: var(--white); color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: .55em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 253, 252, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.brand-name .amp { color: var(--brand); }
.brand-light { color: var(--white); }
.brand-light .brand-name { color: var(--white); }
.brand-light .amp { color: var(--accent); }
.nav-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ''; transition: transform .2s; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.brand-name { white-space: nowrap; }
/* Phones and tablets: the menu opens as a panel under the header. */
.site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; max-height: calc(100vh - 68px); overflow-y: auto; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 14px 16px 20px; }
.site-nav.open { display: block; }
.nav-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--brand-tint); color: var(--brand-dark); }
.nav-link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.nav-link:focus-visible, .nav-menu-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav-menu-btn { pointer-events: none; padding-bottom: 6px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.nav-menu-btn .chev { display: none; }
.nav-menu { display: grid; gap: 4px; margin-bottom: 8px; }
.nav-menu-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; transition: background .15s, border-color .15s; }
.nav-menu-link:hover { background: var(--brand-tint); border-color: var(--brand-soft); }
.nav-menu-link[aria-current="page"] { background: var(--brand-soft); border-color: var(--brand-soft); }
.nm-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.nm-icon svg { width: 20px; height: 20px; }
.nm-title { display: block; font-weight: 700; font-size: .98rem; line-height: 1.25; }
.nm-sub { display: block; color: var(--muted); font-size: .84rem; line-height: 1.3; }
.nav-cta { width: 100%; white-space: nowrap; }
/* Desktop: pill buttons in a row, services in a drop-down. */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; align-items: center; gap: 14px; max-height: none; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-list { display: flex; align-items: center; gap: 4px; margin: 0; }
  .nav-item { position: relative; }
  .nav-link { width: auto; padding: 9px 16px; border-radius: 999px; font-size: .95rem; font-weight: 600; }
  .nav-menu-btn { pointer-events: auto; padding: 9px 14px 9px 16px; color: var(--ink); font-size: .95rem; text-transform: none; letter-spacing: 0; }
  .nav-menu-btn .chev { display: block; width: 12px; height: 12px; transition: transform .2s; }
  .has-menu.open .nav-menu-btn, .has-menu:has([aria-current="page"]) .nav-menu-btn { background: var(--brand-soft); color: var(--brand-dark); }
  .has-menu.open .chev { transform: rotate(180deg); }
  .nav-menu { display: none; position: absolute; top: 100%; left: -8px; width: 340px; margin: 0; padding: 8px; padding-top: 14px; background: transparent; }
  .nav-menu::before { content: ''; position: absolute; inset: 8px 0 0; z-index: -1; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
  .has-menu.open .nav-menu { display: grid; }
  .nav-menu-link { border-color: transparent; }
  .nav-cta { width: auto; padding-inline: 22px; }
}
@media (min-width: 900px) and (hover: hover) {
  .has-menu:hover .nav-menu { display: grid; }
  .has-menu:hover .chev { transform: rotate(180deg); }
}

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-tint { background: var(--brand-tint); }
.section-brand { background: var(--brand-deep); color: var(--white); }
.section-brand a { color: var(--accent); }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-brand .section-head p { color: #c7dedb; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: radial-gradient(1200px 500px at 85% -10%, #d6efec 0%, transparent 60%), linear-gradient(180deg, var(--brand-tint), var(--bg)); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.trust-strip li { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.2 13.6 4.6 10l1.3-1.3 2.3 2.3 5.9-5.9 1.3 1.3z'/%3E%3C/svg%3E") center/14px no-repeat; flex: none; }
.page-hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--brand-tint), var(--bg)); }
.page-hero .lead { max-width: 680px; }

/* Price-check card in hero */
.quick-quote { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--line); }
.quick-quote h2 { font-size: 1.3rem; margin-bottom: 4px; }
.quick-quote .qq-price { font-size: 2.4rem; font-weight: 800; color: var(--brand-dark); letter-spacing: -.03em; line-height: 1; margin: 18px 0 4px; }
.quick-quote .qq-note { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; } /* lets wide content (e.g. a price table) scroll in its box instead of widening the page */
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.service-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.service-card .from { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--brand-dark); }
.service-card .from strong { font-size: 1.5rem; }
.icon-badge { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.icon-badge svg { width: 24px; height: 24px; }
.steps { counter-reset: step; }
.step { position: relative; padding-top: 54px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--white); font-weight: 800; display: flex; align-items: center; justify-content: center; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230b6e69'%3E%3Cpath d='M8.2 13.6 4.6 10l1.3-1.3 2.3 2.3 5.9-5.9 1.3 1.3z'/%3E%3C/svg%3E") center/15px no-repeat; }
@media (min-width: 720px) { .checklist.cols-2 { grid-template-columns: 1fr 1fr; } }
.crosslist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-soft); }
.crosslist li::before { content: '–  '; color: var(--muted); }

.callout { border-radius: var(--radius); padding: 22px 24px; background: var(--brand-soft); border: 1px solid #bfe0dc; }
.callout-accent { background: var(--warning-soft); border-color: #f1d79a; }
.callout h3 { margin-bottom: .3em; }
.banner { background: var(--brand); color: var(--white); border-radius: 20px; padding: 32px; display: grid; gap: 18px; align-items: center; }
.banner h2, .banner h3 { color: var(--white); margin: 0; }
.banner p { margin: 0; color: #d4ecea; }
@media (min-width: 820px) { .banner { grid-template-columns: 1fr auto; padding: 36px 44px; } }

/* Price tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
table.price-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
table.price-table:has(th:nth-child(3)) { min-width: 460px; } /* the 4-column regular table scrolls on phones */
.price-table th, .price-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--brand-tint); }
.price-table thead th { background: var(--brand-tint); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.price-table td.num, .price-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .highlight { color: var(--brand-dark); font-weight: 700; }
.pill { display: inline-block; padding: .2em .65em; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--brand-soft); color: var(--brand-dark); }
.pill-accent { background: #fdecc5; color: #7a5300; }

/* FAQ accordion */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); font-weight: 600; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 18px 16px; color: var(--ink-soft); }

/* Area chips */
.area-list { display: grid; gap: 12px; }
@media (min-width: 720px) { .area-list { grid-template-columns: repeat(2, 1fr); } }
.area-item { display: flex; gap: 14px; align-items: baseline; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.area-code { font-weight: 800; color: var(--brand); min-width: 48px; }

/* Forms */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .85rem; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; font-size: 1rem; padding: .75em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 110, 105, .14); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .87rem; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-note { font-size: .85rem; color: var(--muted); }
.alert { border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-info { background: var(--brand-soft); color: var(--brand-deep); }

/* Footer */
.site-footer { background: var(--brand-deep); color: #c7dedb; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #e9f5f3; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-h { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-tag { margin-top: 14px; max-width: 320px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links .link-button { color: #e9f5f3; text-decoration: none; }
.staff-link { opacity: .7; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; }
.cookie-inner { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 20px; display: grid; gap: 14px; }
.cookie-inner p { margin: 0; font-size: .92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Demo notice */
.demo-ribbon { background: #fff4d6; color: #6b4a00; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px; }

/* Utilities */
.stack > * + * { margin-top: 16px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: var(--ink-soft); }
.draft-note { background: var(--warning-soft); border: 1px dashed #e0b94d; padding: 12px 16px; border-radius: 10px; font-size: .9rem; color: #6b4a00; }

/* Marketing page additions */
[hidden] { display: none !important; }
.hero-actions .muted { align-self: center; }
.price-table caption { caption-side: top; }
.crosslist strong { color: var(--brand-dark); }
.card .crosslist { margin-bottom: 0; }

/* Postcode checker */
.pc-check { display: grid; gap: 10px; }
.pc-check .pc-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pc-check .pc-row .input { flex: 1 1 200px; }
.pc-result:empty { display: none; }
.pc-box { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); background: var(--white); }
.pc-box strong { display: block; margin-bottom: 4px; }
.pc-box p { margin: 0 0 12px; color: var(--ink-soft); }
.pc-box .pc-waitlist .input { flex: 1 1 200px; }
.pc-ok { background: var(--success-soft); border-color: #b9dfc8; }
.pc-info { background: var(--brand-soft); border-color: #bfe0dc; }
.pc-warn { background: var(--warning-soft); border-color: #f1d79a; }
.pc-error { background: var(--danger-soft); border-color: #f3c3be; color: var(--danger); font-weight: 600; }
.coverage-card { max-width: 640px; }

/* ---------- Sparkle the mascot (assets/js/mascot.js): the logo's sparkle with a friendly face ---------- */
.mascot { display: block; overflow: visible; }
.mascot .m-body { transform-box: view-box; transform-origin: 44px 60px; animation: m-float 3s ease-in-out infinite; }
.mascot .m-shadow { transform-box: fill-box; transform-origin: center; animation: m-shadow 3s ease-in-out infinite; }
.mascot .m-eyes { transform-box: view-box; transform-origin: 44px 42px; animation: m-blink 4.5s infinite; }
.mascot .m-twinkle { transform-box: fill-box; transform-origin: center; animation: m-twinkle 2.4s ease-in-out infinite; }
.mascot .m-twinkle-2 { animation-delay: 1.2s; }
.mascot .m-dot { transform-box: fill-box; transform-origin: center; animation: m-dot 3s ease-in-out infinite .6s; }
.mascot .m-mouth-idle, .mascot .m-mouth-talk { transition: opacity .1s; }
.mascot .m-mouth-talk { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-talking .mascot .m-mouth-idle { opacity: 0; }
.is-talking .mascot .m-mouth-talk { opacity: 1; animation: m-talk .17s ease-in-out infinite alternate; }
.is-talking .mascot .m-body { animation: m-chatter .6s ease-in-out infinite; }
.is-walking .mascot .m-body { animation: m-glide .45s ease-in-out infinite alternate; }
.is-waving .mascot .m-body { animation: m-wobble .55s ease-in-out infinite alternate; }
.is-waving.is-talking .mascot .m-body { animation: m-wobble .55s ease-in-out infinite alternate; }
.is-mopping .mascot .m-body { animation: m-busy .4s ease-in-out infinite alternate; }
.is-sleepy .mascot { filter: grayscale(1); opacity: .6; }
.is-sleepy .mascot * { animation: none !important; }
.is-sleepy .mascot .m-eyes { transform: scaleY(.15); }
@keyframes m-float { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-5px) scale(1.02, .98); } }
@keyframes m-shadow { 0%, 100% { transform: scaleX(1); opacity: .12; } 50% { transform: scaleX(.8); opacity: .07; } }
@keyframes m-chatter { 0%, 100% { transform: translateY(-2px) rotate(0); } 25% { transform: translateY(-3px) rotate(-3deg); } 75% { transform: translateY(-1px) rotate(3deg); } }
@keyframes m-glide { from { transform: translateY(-4px) rotate(-6deg); } to { transform: translateY(-1px) rotate(6deg); } }
@keyframes m-wobble { from { transform: translateY(-3px) rotate(-9deg); } to { transform: translateY(-1px) rotate(9deg); } }
@keyframes m-busy { from { transform: rotate(-12deg) scale(1.02); } to { transform: rotate(12deg) scale(.98); } }
@keyframes m-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes m-twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .6; } 50% { transform: scale(1.15) rotate(30deg); opacity: 1; } }
@keyframes m-dot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes m-talk { from { transform: scaleY(.3); } to { transform: scaleY(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .mascot * { animation: none !important; }
  .is-talking .mascot .m-mouth-idle { opacity: 1; } .is-talking .mascot .m-mouth-talk { opacity: 0; }
}

/* ---------- Splash screen (assets/js/splash.js): Sparkle says hello once per visit ---------- */
html.splash body { overflow: hidden; }
/* Covers the page from the first paint; fades by itself if the script never runs. */
html.splash::after { content: ''; position: fixed; inset: 0; z-index: 9998; background: radial-gradient(circle at 50% 40%, #ffffff 0, var(--brand-tint) 45%, var(--brand-soft) 100%); animation: splash-fallback .4s ease 6s forwards; }
@keyframes splash-fallback { to { opacity: 0; visibility: hidden; } }
.splash-screen { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 40%, #ffffff 0, var(--brand-tint) 45%, var(--brand-soft) 100%); transition: opacity .4s ease, transform .4s ease; }
.splash-screen.is-leaving { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 420px; }
.splash-bubble { position: relative; min-height: 3.2em; padding: 12px 18px; margin-bottom: 14px; background: var(--white); border: 1px solid var(--brand-soft); border-radius: 16px; box-shadow: var(--shadow); font-weight: 700; font-size: 1.05rem; color: var(--brand-deep); opacity: 0; animation: splash-fade .3s ease .45s forwards; }
.splash-bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; background: var(--white); border-right: 1px solid var(--brand-soft); border-bottom: 1px solid var(--brand-soft); transform: translateX(-50%) rotate(45deg); }
.splash-mascot { width: 156px; animation: splash-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.splash-mascot .mascot { width: 100%; height: auto; }
.splash-word { margin-top: 10px; font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; color: var(--brand-deep); opacity: 0; animation: splash-rise .4s ease .3s forwards; }
.splash-word .amp { color: var(--accent-dark); }
.splash-tag { margin-top: 2px; color: var(--muted); font-size: .95rem; opacity: 0; animation: splash-rise .4s ease .45s forwards; }
.splash-skip { position: absolute; right: 18px; bottom: 18px; background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
@keyframes splash-pop { from { opacity: 0; transform: translateY(30px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes splash-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes splash-fade { to { opacity: 1; } }

/* Speech bubbles type their text over an invisible copy of the full sentence, so they don't grow letter by letter. */
.speech-ghost, .speech-text { grid-area: 1 / 1; }
.speech-ghost { visibility: hidden; }
.splash-bubble, .bot-bubble { display: grid; }
