/* Splash Squad site: the app's own palette (PressureWash/UI/Theme.swift) and its toon cards and buttons.
   Everything is served from this site: no fonts, scripts or images from anywhere else. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 1000;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --ink: #1a1233;
  --ink-dim: rgba(26, 18, 51, 0.7);
  --paper: #fff7e0;
  --paper-dim: #ede0c2;
  --teal: #21c2c7;
  --teal-deep: #0e7785;
  --pink: #ff73b3;
  --yellow: #ffd138;
  --purple: #8c61d9;
  --sky: #5cadff;
  --leaf: #4dc766;
  --line: 3px;
  --gutter: 16px;
  /* SF Rounded on Apple devices (the app's font), Nunito everywhere else, then colour emoji */
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --outline: 0.075em 0 0 var(--ink), 0.071em 0.023em 0 var(--ink), 0.061em 0.044em 0 var(--ink), 0.044em 0.061em 0 var(--ink),
    0.023em 0.071em 0 var(--ink), 0 0.075em 0 var(--ink), -0.023em 0.071em 0 var(--ink), -0.044em 0.061em 0 var(--ink),
    -0.061em 0.044em 0 var(--ink), -0.071em 0.023em 0 var(--ink), -0.075em 0 0 var(--ink), -0.071em -0.023em 0 var(--ink),
    -0.061em -0.044em 0 var(--ink), -0.044em -0.061em 0 var(--ink), -0.023em -0.071em 0 var(--ink), 0 -0.075em 0 var(--ink),
    0.023em -0.071em 0 var(--ink), 0.044em -0.061em 0 var(--ink), 0.061em -0.044em 0 var(--ink), 0.071em -0.023em 0 var(--ink),
    0.04em 0 0 var(--ink), 0.035em 0.02em 0 var(--ink), 0.02em 0.035em 0 var(--ink), 0 0.04em 0 var(--ink),
    -0.02em 0.035em 0 var(--ink), -0.035em 0.02em 0 var(--ink), -0.04em 0 0 var(--ink), -0.035em -0.02em 0 var(--ink),
    -0.02em -0.035em 0 var(--ink), 0 -0.04em 0 var(--ink), 0.02em -0.035em 0 var(--ink), 0.035em -0.02em 0 var(--ink),
    0 0.14em 0 var(--ink);
  color-scheme: only light;
}
@supports (padding: max(0px)) {
  :root { --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-width: 300px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--round);
  font-weight: 600;
  font-size: 17px;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column; min-height: 100vh; /* the footer stays at the bottom of short pages */
}
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--teal-deep); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus { outline: 3px solid var(--purple); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 900; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--yellow); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 12px; padding: 8px 14px;
}
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1112px; margin: 0 auto;
  padding: 16px var(--gutter);
  padding-top: max(16px, env(safe-area-inset-top));
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: var(--line) solid var(--ink); margin-right: 10px; background: var(--paper); }
.bar nav { display: flex; }
.bar nav a {
  margin-left: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 15px; line-height: 1.4;
  padding: 6px 14px; border-radius: 999px; border: var(--line) solid var(--ink); background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
}
.bar nav a[aria-current="page"] { background: var(--yellow); }

/* ---------- hero with the 3D scene ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--sky);
  background-image: radial-gradient(120% 90% at 50% 0%, #c4e8ff 0%, #8fd0ff 45%, var(--sky) 100%);
}
.hero canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 0.8s ease;
  touch-action: pan-y;
}
.hero canvas.ready { opacity: 1; }
.hero .copy {
  position: relative; z-index: 2; pointer-events: none;
  max-width: 1112px; margin: 0 auto; padding: 100px var(--gutter) 56px;
}
.hero.big { min-height: 640px; min-height: min(780px, 100vh); display: flex; align-items: flex-end; }
@supports (min-height: 100svh) { .hero.big { min-height: min(780px, 100svh); } }
.hero.big .copy { width: 100%; padding-bottom: 64px; }
.hero.small { min-height: 340px; }
.hero.small .copy { padding-top: 112px; }
.hero .copy a, .hero .copy .button { pointer-events: auto; }

h1, h2, h3 { font-family: var(--round); font-weight: 900; line-height: 1.1; margin: 0; }
.toon-title {
  font-size: 64px;
  font-size: clamp(48px, 11vw, 108px);
  line-height: 1.02;
  color: #fff;
  text-shadow: var(--outline);
  letter-spacing: 0.01em;
  padding: 0.08em 0.08em 0.16em;
  margin-left: -0.08em;
  transform: rotate(-2deg);
  transform-origin: left bottom;
}
.hero.small .toon-title { font-size: 48px; font-size: clamp(40px, 9vw, 76px); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-weight: 900; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5;
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: 999px; padding: 4px 14px;
  box-shadow: 0 3px 0 var(--ink);
}
.tagline {
  margin: 14px 0 0; max-width: 24em;
  font-size: 21px; font-size: clamp(19px, 3vw, 25px); line-height: 1.4; font-weight: 800; color: var(--ink);
}

.button {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 900; font-size: 19px; line-height: 1.3; color: var(--ink);
  background: var(--yellow); border: var(--line) solid var(--ink); border-radius: 20px;
  padding: 13px 24px; box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
  -webkit-user-select: none; user-select: none;
}
.button:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ink); }
.button.paper { background: var(--paper); }
.buttons { display: flex; flex-wrap: wrap; margin: 24px -7px 0; }
.buttons .button { margin: 0 7px 12px; }

/* water edge under the hero */
.wave { display: block; width: 100%; height: 40px; margin-top: -1px; }
.hint { margin: 6px 0 0; font-weight: 800; font-size: 15px; color: var(--ink); opacity: 0.8; }

/* ---------- content ---------- */
main { display: block; max-width: 792px; margin: 0 auto; padding: 24px var(--gutter) 56px; }
main.wide { max-width: 1112px; }
.card {
  background: #fff; border: var(--line) solid var(--ink); border-radius: 22px;
  padding: 22px 22px 18px; margin: 0 0 22px; box-shadow: 0 6px 0 var(--ink);
}
.card h2 { font-size: 24px; margin-bottom: 8px; display: flex; align-items: center; }
.card p { margin: 8px 0; }
.card ul { margin: 8px 0; padding-left: 22px; }
.dot {
  flex: none; width: 38px; height: 38px; margin-right: 12px; border-radius: 50%; border: var(--line) solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
  box-shadow: 0 3px 0 var(--ink);
}
.dot.teal { background: var(--teal); } .dot.pink { background: var(--pink); } .dot.yellow { background: var(--yellow); }
.dot.purple { background: var(--purple); } .dot.leaf { background: var(--leaf); } .dot.sky { background: var(--sky); }
.lead { font-size: 20px; font-weight: 800; line-height: 1.5; margin: 8px 0 26px; }
.meta { color: var(--ink-dim); font-weight: 700; font-size: 15px; margin: 0 0 22px; }

.big-yes { display: flex; flex-wrap: wrap; margin: 0 -6px 20px; padding: 0; list-style: none; }
.big-yes li {
  flex: 1 1 140px; margin: 0 6px 12px;
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px; padding: 14px 10px;
  text-align: center; font-weight: 900; line-height: 1.25; box-shadow: 0 4px 0 var(--ink);
}
.big-yes span { display: block; font-size: 28px; line-height: 1.2; margin-bottom: 6px; }

/* FAQ */
details { border-top: 2px dashed var(--paper-dim); padding: 10px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 900; font-size: 18px; line-height: 1.4; list-style: none; display: flex; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary::before { content: "+"; color: var(--teal-deep); font-size: 22px; width: 24px; flex: none; }
details[open] summary::before { content: "\2013"; }
details p { margin: 6px 0 4px 24px; }

.mail {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  background: var(--yellow); border: var(--line) solid var(--ink); border-radius: 22px; padding: 20px 22px 8px;
  box-shadow: 0 6px 0 var(--ink); margin-bottom: 26px;
}
.mail > div { margin: 0 16px 12px 0; }
.mail h2 { font-size: 24px; }
.mail p { margin: 4px 0 0; font-weight: 700; }
.mail .button { background: #fff; margin-bottom: 14px; max-width: 100%; overflow-wrap: anywhere; }

/* home page */
.features { display: flex; flex-wrap: wrap; margin: 10px -9px 30px; }
.features .card { flex: 1 1 260px; margin: 0 9px 18px; }
.features h3 { font-size: 21px; margin: 12px 0 4px; }
.features p { margin: 0; }
.section-title { font-size: 34px; font-size: clamp(28px, 6vw, 44px); margin: 30px 0 18px; text-align: center; }
.shots {
  display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px; margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.shots img {
  flex: none; width: 62vw; max-width: 240px; margin-right: 16px; scroll-snap-align: center;
  border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); background: var(--paper-dim);
}
.shots img:last-child { margin-right: 0; }
.shots img:nth-child(odd) { transform: rotate(-1.5deg); }
.shots img:nth-child(even) { transform: rotate(1.5deg); }
@media (min-width: 1100px) { .shots { justify-content: center; overflow: visible; } }

/* 404 */
.lost { text-align: center; }
.lost .buttons { justify-content: center; }

/* footer */
footer {
  background: var(--ink); color: var(--paper); text-align: center; font-weight: 700; font-size: 15px;
  padding: 30px var(--gutter) 40px;
  padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px));
}
footer a { color: var(--yellow); }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
footer nav a { margin: 0 10px 6px; }
footer small { display: block; margin-top: 8px; opacity: 0.75; font-size: 13px; }

/* hover effects only where there's a real pointer (no sticky hover after a tap) */
@media (hover: hover) and (pointer: fine) {
  .button:hover { color: var(--ink); transform: translateY(2px); box-shadow: 0 4px 0 var(--ink); }
  .bar nav a:hover { background: var(--yellow); }
  .features .card { transition: transform 0.18s, box-shadow 0.18s; }
  .features .card:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }
}

@media (max-width: 560px) {
  .bar nav a { padding: 5px 11px; font-size: 14px; margin-left: 6px; }
  .brand span { display: none; }
  .card { padding: 18px 16px 14px; }
  .card h2 { font-size: 21px; }
  .lead { font-size: 18px; }
}
@media (max-width: 340px) {
  .bar nav a { padding: 4px 8px; font-size: 13px; }
  .button { padding: 12px 18px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .features .card, .hero canvas { transition: none; }
}
@media (forced-colors: active) {
  .toon-title { text-shadow: none; }
  .card, .button, .eyebrow, .bar nav a, .dot, .big-yes li { box-shadow: none; }
}
@media print {
  .bar, .hero canvas, .wave, .buttons, .hint, .skip, .shots { display: none !important; }
  .hero { background: none; min-height: 0 !important; }
  .hero .copy { padding: 0 0 12px; }
  .toon-title { color: var(--ink); text-shadow: none; transform: none; font-size: 32pt; }
  body, footer { background: #fff; color: #000; }
  .card, .mail, .big-yes li { box-shadow: none; break-inside: avoid; }
  details > p { display: block; }
  footer a { color: #000; }
}
