/* GhostGram Labs — one weird person's corner of the web */
:root {
  --bg: #faf6ee;
  --surface: #fffdf8;
  --ink: #1c1a17;
  --muted: #67615a;
  --line: #e3ddd1;
  --accent: #4338ca;
  --tint: #e9e7fb;
  --pb-accent: #b45309;
  --pb-tint: #fbeeda;
  --ds-accent: #0e7490;
  --ds-tint: #ddf1f6;
  --sa-accent: #6d28d9;
  --sa-tint: #efe6fc;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-quirk: "Fraunces", Georgia, serif;
}

.theme-pettibox { --accent: var(--pb-accent); --tint: var(--pb-tint); }
.theme-directserve { --accent: var(--ds-accent); --tint: var(--ds-tint); }
.theme-speakalert { --accent: var(--sa-accent); --tint: var(--sa-tint); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bg); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.bg-glow { display: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  border: 2px solid var(--ink);
  transform: rotate(-4deg);
  transition: transform 0.2s;
}

.brand:hover .brand-mark { transform: rotate(4deg); }

.brand-mark svg { width: 20px; height: 20px; }

.nav-links { display: flex; gap: 24px; align-items: center; }

.nav-links a {
  font-family: var(--font-display);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}

.nav-links a:hover { border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; position: relative; }

.page-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Cursor runner: a little man chasing the pointer ---------- */
.cursor-runner {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 31px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

.cursor-runner svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cursor-runner .head { fill: var(--ink); }

.cursor-runner line {
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.cursor-runner .arm { transform-box: view-box; transform-origin: 12px 11.5px; }
.cursor-runner .leg { transform-box: view-box; transform-origin: 12px 19px; }

/* weather outfits: umbrella in rain/thunder, beanie in snow, sunglasses when sunny,
   and a little lantern after dark */
.cursor-runner .umbrella,
.cursor-runner .beanie,
.cursor-runner .shades,
.cursor-runner .lantern { display: none; }

body.sky-night .cursor-runner .lantern { display: block; }

.cursor-runner .lantern line { stroke-width: 1.2; }

.cursor-runner .lantern rect {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 1.2;
}

.cursor-runner .lantern .flame {
  fill: #f6ba37;
  stroke: none;
  animation: gg-flicker 1.1s ease-in-out infinite;
}

.cursor-runner .lantern .lglow {
  fill: rgba(246, 186, 55, 0.16);
  stroke: none;
}

@keyframes gg-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

body.weather-rain .cursor-runner .umbrella,
body.weather-thunder .cursor-runner .umbrella { display: block; }

body.weather-snow .cursor-runner .beanie { display: block; }

body.weather-sunny .cursor-runner .shades { display: block; }

.cursor-runner .shades line { stroke-width: 1.3; }

.cursor-runner .shades circle {
  fill: var(--ink);
  stroke: none;
}

.cursor-runner .umbrella line { stroke-width: 1.8; }

.cursor-runner .umbrella .canopy {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 1.6;
}

.cursor-runner .beanie path {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 1.2;
}

.cursor-runner .beanie circle { fill: var(--ink); }

body.weather-rain .cursor-runner .a2,
body.weather-thunder .cursor-runner .a2 { display: none; } /* that hand is holding the umbrella */

.cursor-runner.moving svg { animation: gg-bob 0.36s ease-in-out infinite; }
.cursor-runner.moving .l1 { animation: gg-swing-big 0.36s linear infinite; }
.cursor-runner.moving .l2 { animation: gg-swing-big 0.36s linear infinite; animation-delay: -0.18s; }
.cursor-runner.moving .a1 { animation: gg-swing 0.36s linear infinite; animation-delay: -0.18s; }
.cursor-runner.moving .a2 { animation: gg-swing 0.36s linear infinite; }

@keyframes gg-swing-big {
  0%, 100% { transform: rotate(32deg); }
  50% { transform: rotate(-32deg); }
}

@keyframes gg-swing {
  0%, 100% { transform: rotate(22deg); }
  50% { transform: rotate(-22deg); }
}

@keyframes gg-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* sunbathing: he lies flat, one knee up, arms relaxed, snoozing */
.cursor-runner.sunbathe svg {
  transform: rotate(90deg) translateX(5px);
}

.cursor-runner.sunbathe .l1 { transform: rotate(38deg); } /* knee up */
.cursor-runner.sunbathe .l2 { transform: rotate(-6deg); }
.cursor-runner.sunbathe .a1 { transform: rotate(-30deg); }
.cursor-runner.sunbathe .a2 { transform: rotate(26deg); }

.cursor-runner.sunbathe::after {
  content: "z z z";
  position: absolute;
  bottom: 90%;
  left: 60%;
  font-family: var(--font-quirk);
  font-style: italic;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  animation: gg-zzz 2.6s ease-in-out infinite;
}

@keyframes gg-zzz {
  0% { opacity: 0; transform: translateY(5px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* hello & goodbye: Gram waves his free arm overhead */
.cursor-runner.wave-hi .a1,
.cursor-runner.wave-bye .a1 { animation: gg-wave 0.5s ease-in-out 3; }

@keyframes gg-wave {
  0%, 100% { transform: rotate(-150deg); }
  50% { transform: rotate(-205deg); }
}

.cursor-runner.wave-hi::after,
.cursor-runner.wave-bye::after {
  position: absolute;
  bottom: 115%;
  left: 70%;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 10px 10px 10px 2px;
  padding: 3px 9px;
  font-family: var(--font-quirk);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
  animation: gg-pop 0.25s ease-out;
}

.cursor-runner.wave-hi::after { content: "hi, I'm Gram!"; }

.cursor-runner.wave-bye::after { content: "bye, thanks for visiting!"; }

@keyframes gg-pop {
  0% { opacity: 0; transform: translateY(5px) scale(0.8); }
  100% { opacity: 1; }
}

/* morning stretch: arms overhead, up on the toes, a satisfied "ahh" */
.cursor-runner.stretch svg { animation: gg-stretch-body 3s ease-in-out infinite; }
.cursor-runner.stretch .a1 { animation: gg-stretch-arm1 3s ease-in-out infinite; }
.cursor-runner.stretch .a2 { animation: gg-stretch-arm2 3s ease-in-out infinite; }

@keyframes gg-stretch-arm1 {
  0%, 12%, 88%, 100% { transform: rotate(0deg); }
  40%, 65% { transform: rotate(160deg); }
}

@keyframes gg-stretch-arm2 {
  0%, 12%, 88%, 100% { transform: rotate(0deg); }
  40%, 65% { transform: rotate(-160deg); }
}

@keyframes gg-stretch-body {
  0%, 12%, 88%, 100% { transform: none; }
  40% { transform: translateY(-2px); }
  55% { transform: translateY(-2px) rotate(4deg); }
  65% { transform: translateY(-2px) rotate(-4deg); }
}

.cursor-runner.stretch::after {
  content: "ahh";
  position: absolute;
  bottom: 100%;
  left: 60%;
  font-family: var(--font-quirk);
  font-style: italic;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  animation: gg-zzz 3s ease-in-out infinite;
}

.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 999px;
  padding: 7px 18px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-1.6deg);
  margin-bottom: 30px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.8vw, 5.6rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
  max-width: 980px;
}

.grad {
  font-family: var(--font-quirk);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  text-decoration: underline wavy;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  padding: 11px 0;
  transform: rotate(-0.4deg) scale(1.02);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-right: 3rem;
}

@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .shots img, .app-card, .btn, .brand-mark { transition: none !important; transform: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.13s, box-shadow 0.13s;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

.btn-primary { background: var(--accent); color: #fff; }

.btn-ghost { background: var(--surface); color: var(--ink); }

.btn-play { background: var(--ink); color: var(--bg); box-shadow: 3px 3px 0 var(--accent); }

.btn-play:hover { box-shadow: 5px 5px 0 var(--accent); }

.btn-play:active { box-shadow: 2px 2px 0 var(--accent); }

.btn-play svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub { color: var(--muted); max-width: 620px; margin: 0 0 46px; }

/* ---------- App cards ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  counter-reset: app;
}

.app-card {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.18s, box-shadow 0.18s;
}

.app-card:nth-child(1) { background: var(--pb-tint); transform: rotate(-0.8deg); }
.app-card:nth-child(2) { background: var(--ds-tint); transform: rotate(0.6deg); }
.app-card:nth-child(3) { background: var(--sa-tint); transform: rotate(-0.4deg); }

.app-card:hover { transform: rotate(0deg) translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }

.app-card::before {
  counter-increment: app;
  content: "0" counter(app);
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-quirk);
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.14;
}

.app-icon {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.app-icon svg { width: 28px; height: 28px; }

.icon-pettibox { background: var(--pb-tint); color: var(--pb-accent); }
.icon-directserve { background: var(--ds-tint); color: var(--ds-accent); }
.icon-speakalert { background: var(--sa-tint); color: var(--sa-accent); }

.app-icon-img {
  background: var(--surface);
  border: 2px solid var(--ink);
  overflow: hidden;
  transform: rotate(-3deg);
}

.app-icon-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-card .app-tag {
  font-family: var(--font-quirk);
  font-style: italic;
  color: var(--ink);
  opacity: 0.75;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.app-card p.desc { color: var(--ink); opacity: 0.78; font-size: 0.94rem; margin-bottom: 18px; }

.app-card ul { list-style: none; margin-bottom: 26px; flex-grow: 1; }

.app-card ul li {
  padding-left: 26px;
  position: relative;
  color: var(--ink);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 9px;
}

.app-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.app-card:nth-child(1) ul li::before { color: var(--pb-accent); }
.app-card:nth-child(2) ul li::before { color: var(--ds-accent); }
.app-card:nth-child(3) ul li::before { color: var(--sa-accent); }

.card-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.card-actions .btn { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Value props ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.value {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 4px 4px 0 var(--ink);
}

.values-grid .value:nth-child(odd) { transform: rotate(0.5deg); }
.values-grid .value:nth-child(even) { transform: rotate(-0.5deg); }

.value .v-icon { color: var(--accent); margin-bottom: 14px; }

.value .v-icon svg { width: 24px; height: 24px; display: block; }

.value h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }

.value p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Feature grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 4px 4px 0 var(--ink);
}

.features-grid .feature:nth-child(3n+1) { transform: rotate(-0.4deg); }
.features-grid .feature:nth-child(3n+2) { transform: rotate(0.4deg); }

.feature .f-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  border: 2px solid var(--ink);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  transform: rotate(-3deg);
}

.feature .f-icon svg { width: 21px; height: 21px; }

.feature h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }

.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

.prose h2:first-child { margin-top: 0; }

.prose p { color: var(--muted); margin-bottom: 16px; }

.prose ul { color: var(--muted); margin: 0 0 16px 22px; }

.prose ul li { margin-bottom: 8px; }

.prose a { color: var(--accent); text-decoration-thickness: 2px; }

.prose strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; }

.faq details {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.faq details[open] { box-shadow: 3px 3px 0 var(--accent); }

.faq summary {
  cursor: pointer;
  padding: 17px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-quirk);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 0.93rem; max-width: 640px; }

.faq .faq-a a { color: var(--accent); }

/* ---------- Download band ---------- */
.download-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 22px;
  padding: 58px 40px;
  transform: rotate(-0.6deg);
  box-shadow: 10px 10px 0 var(--tint), 10px 10px 0 2px var(--ink);
}

.download-band > * { transform: rotate(0.6deg); }

.download-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.download-band p { color: rgba(250, 246, 238, 0.65); margin-bottom: 30px; max-width: 540px; }

.download-band .btn-play { background: var(--bg); color: var(--ink); border-color: var(--bg); box-shadow: 3px 3px 0 var(--accent); }

/* ---------- App detail hero ---------- */
.app-hero { padding: 76px 0 52px; position: relative; }

.app-hero .app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin-bottom: 26px;
  box-shadow: 4px 4px 0 var(--ink);
}

.app-hero .app-icon svg { width: 38px; height: 38px; }

.app-hero p.lead {
  max-width: 640px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.app-hero p.lead strong { color: var(--ink); }

.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }

.breadcrumb a:hover { color: var(--ink); }

/* ---------- Screenshot strip ---------- */
.shots-section { padding-top: 0; }

.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 16px 4px 24px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.shots img {
  width: 224px;
  max-width: 62vw;
  height: auto;
  flex-shrink: 0;
  border-radius: 16px;
  border: 2px solid var(--ink);
  scroll-snap-align: start;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.22s;
}

.shots img:nth-child(odd) { transform: rotate(-1.4deg); }
.shots img:nth-child(even) { transform: rotate(1.4deg); }
.shots img:hover { transform: rotate(0deg) translateY(-5px); }

/* ---------- Footer ---------- */
footer {
  border-top: 2px solid var(--ink);
  padding: 48px 0 40px;
  margin-top: 48px;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-inner .f-col h4 {
  font-family: var(--font-display);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-inner .f-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 9px;
}

.footer-inner .f-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Cookie consent banner ---------- */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  max-width: 400px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 18px 20px;
  z-index: 10000;
  transform: rotate(-0.5deg);
}

.consent p { font-size: 0.9rem; color: var(--muted); }

.consent p strong { color: var(--ink); }

.consent p a { color: var(--accent); }

.consent-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.consent-actions .btn { padding: 9px 16px; font-size: 0.84rem; cursor: pointer; }

@media (max-width: 480px) {
  .consent { left: 12px; right: 12px; max-width: none; }
}

/* ---------- Weather note sticker ---------- */
.wx-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  max-width: 270px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 14px;
  transform: rotate(0.8deg);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: transform 0.35s ease;
}

/* tucked away: the note slides off the right edge, leaving a little tab peeking out */
.wx-note.wx-hidden { transform: translateX(calc(100% + 22px)) rotate(0.8deg); }

.wx-note .wx-tab {
  position: absolute;
  left: -40px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  padding: 0;
  display: none;
  place-items: center;
}

.wx-note.wx-hidden .wx-tab { display: grid; }

.wx-note .wx-tab svg { width: 17px; height: 17px; display: block; }

.wx-note p { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }

.wx-note p strong { color: var(--accent); }

.wx-note .wx-sub {
  display: block;
  font-family: var(--font-quirk);
  font-style: italic;
  font-size: 0.78rem;
  margin-top: 4px;
}

.wx-note .wx-fix { color: var(--accent); }

/* weather and time-of-day button rows inside the note */
.wx-note .wx-skyrow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
  align-items: center;
}

.wx-note .wx-rowlab {
  width: 100%;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: -2px;
}

.wx-note .wx-skybtn {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.wx-note .wx-skybtn svg { width: 15px; height: 15px; display: block; }

.wx-note .wx-skybtn:hover { border-color: var(--ink); color: var(--ink); }

.wx-note .wx-skybtn.on {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 2px 2px 0 var(--accent);
}

.wx-note .wx-skylive {
  width: auto;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.wx-note .wx-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--muted);
  padding: 0;
  font-family: var(--font);
}

.wx-note .wx-close:hover { color: var(--ink); }

@media (max-width: 480px) {
  .wx-note { right: 12px; left: auto; bottom: 78px; max-width: 240px; }
}

/* ---------- Time-of-day skies (set by site.js from the visitor's clock) ---------- */
/* morning: bright golden sunshine, clearly different from the peachy evening */
body.sky-morning {
  --bg: #fcf4dd;
  --surface: #fffcf2;
  --line: #eaddba;
}

/* evening: dusky amber */
body.sky-evening {
  --bg: #f8ece3;
  --surface: #fff7ef;
  --line: #e9dac9;
}

/* night: lights off, moon on */
body.sky-night {
  --bg: #15141d;
  --surface: #1e1d29;
  --ink: #f2efe6;
  --muted: #a29d90;
  --line: #343241;
  --accent: #a5b4fc;
  --tint: #2b2a3e;
  --pb-accent: #f2a952;
  --pb-tint: #2f2317;
  --ds-accent: #6fd7ec;
  --ds-tint: #132e37;
  --sa-accent: #c7a9f9;
  --sa-tint: #281d3b;
}

/* keep the per-app accent on app pages at night (body.sky-night outranks .theme-*) */
body.sky-night.theme-pettibox { --accent: var(--pb-accent); --tint: var(--pb-tint); }
body.sky-night.theme-directserve { --accent: var(--ds-accent); --tint: var(--ds-tint); }
body.sky-night.theme-speakalert { --accent: var(--sa-accent); --tint: var(--sa-tint); }

/* the night accent is pastel, so dark text reads better on primary buttons */
body.sky-night .btn-primary { color: #15141d; }

/* the download band inverts at night (light card on dark page) — its copy must flip too */
body.sky-night .download-band p { color: rgba(21, 20, 29, 0.68); }

/* no sunglasses under a clear night sky */
body.sky-night .cursor-runner .shades { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
  .hero { padding: 56px 0 44px; }
  section { padding: 50px 0; }
  .download-band { padding: 44px 26px; }
  .app-card, .app-card:nth-child(n) { transform: none; }
}
