/* Best Paint website. Cartoon style taken from the logo: paint yellow, navy outlines, white; flat fills, hard shadows. */
@font-face { font-family: "Baloo 2"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/baloo2-800.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400 800; font-style: normal; font-display: swap; src: url("/fonts/nunito-var.woff2") format("woff2"); }

:root {
  --yellow: #FDBC00; --yellow-soft: #FFE48A; --cream: #FFF6D6;
  --navy: #0A1432; --navy-2: #16234F; --ink: #0A1432; --text: #27304D; --white: #fff;
  --line: 3px solid var(--navy); --shadow: 6px 6px 0 var(--navy); --shadow-y: 6px 6px 0 var(--yellow);
  --r: 20px; --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); font-weight: 700; }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .cta-h { font-family: var(--display); font-weight: 800; color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* buttons: press down into their shadow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1;
  padding: .85rem 1.4rem .75rem; background: var(--yellow); color: var(--navy); border: var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--navy);
  text-decoration: none; cursor: pointer; transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .15s; }
.btn:hover { background: #FFCB2E; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--navy); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--navy); }
.btn.ghost { background: var(--white); }
.btn.ghost:hover { background: var(--cream); }
.btns { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.4rem; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 4px solid var(--yellow); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.brand img { width: 212px; height: auto; }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav li a { display: block; padding: .5rem .65rem; color: var(--white); text-decoration: none; font-weight: 800; font-size: .98rem; border-radius: 999px; transition: background .15s, color .15s; }
.nav li a:hover, .nav li a[aria-current] { background: var(--yellow); color: var(--navy); }
.top .btn { box-shadow: 4px 4px 0 rgba(255, 255, 255, .28); font-size: 1rem; padding: .7rem 1.1rem .6rem; }
.top .btn:active { box-shadow: 0 0 0 transparent; }
.menu { display: none; width: 48px; height: 48px; background: var(--yellow); border: var(--line); border-radius: 14px; padding: 11px 10px; cursor: pointer; }
.menu span:not(.sr) { display: block; height: 4px; background: var(--navy); border-radius: 4px; margin: 0 0 5px; transition: transform .2s var(--ease), opacity .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* hero */
.hero { position: relative; background: var(--navy); color: var(--white); padding: 2.6rem 0 5.2rem;
  background-image: radial-gradient(rgba(253, 188, 0, .16) 2px, transparent 2.5px); background-size: 22px 22px; }
.hero-big { padding-top: 3.4rem; }
.hero-in { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--white); text-wrap: balance; line-height: 1.16; }
.hero .lead { font-size: 1.16rem; max-width: 62ch; color: #E8ECF8; }
.hero .lead a, .hero .lead strong { color: var(--yellow); }
.updated { font-size: .95rem; color: #C9D1EA; font-weight: 700; }
.mark { color: var(--yellow); padding-bottom: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 0 .09em; animation: paint .9s .25s var(--ease) forwards; }
@keyframes paint { to { background-size: 100% .09em; } }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .92rem; font-weight: 700; margin-bottom: 1rem; color: #C9D1EA; }
.crumbs a { color: var(--white); }
.hero-art { position: relative; width: clamp(220px, 27vw, 330px); }
.hero-art .roller { filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, .35)); animation: bob 5s ease-in-out infinite; transform-origin: 50% 90%; }
/* Mr. Roller: the body picture with the live face drawn over it */
.roller { position: relative; display: block; line-height: 0; }
.roller-btn { background: none; border: 0; padding: 0; cursor: pointer; width: 100%; }
.roller-stage { position: relative; transform-origin: 50% 85%; transition: transform .5s var(--ease); }
.roller img { display: block; width: 100%; height: auto; }
.roller-face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.roller-cheer .roller-stage { animation: cheer .55s var(--ease) 3; }
@keyframes cheer { 0%, 100% { translate: 0 0; } 45% { translate: 0 -7%; } }
/* head only, for small places where the whole figure would make the face too small to read */
.roller.head { aspect-ratio: 470 / 390; overflow: hidden; border-radius: 0; }
.roller.head .roller-stage { position: absolute; width: 109.36%; left: -4.26%; top: -13.8%; }
@keyframes bob { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg) translateY(-6px); } }
.bubble { position: absolute; left: -32%; top: 2%; z-index: 2; margin: 0; background: var(--white); color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.1;
  padding: .7rem 1rem .6rem; border: var(--line); border-radius: 22px; box-shadow: 4px 4px 0 var(--yellow); transform: rotate(-6deg); }
.bubble::after { content: ""; position: absolute; right: 18px; bottom: -15px; width: 22px; height: 22px; background: var(--white); border-right: var(--line); border-bottom: var(--line); transform: rotate(35deg) skew(10deg); }
.hero-sticker { width: 150px; height: 150px; background: var(--yellow); border: 4px solid var(--white); border-radius: 36px; display: grid; place-items: center; transform: rotate(6deg); box-shadow: 8px 8px 0 rgba(0, 0, 0, .35); }
.hero-sticker .ico { width: 92px; height: 92px; }
.hero .btn { box-shadow: 4px 4px 0 rgba(255, 255, 255, .3); }
.hero .btn:active { box-shadow: 0 0 0 transparent; }
.drips { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; fill: var(--navy); transform: translateY(99%); z-index: 2; pointer-events: none; }

/* icons */
.ico { width: 56px; height: 56px; fill: none; stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .f { fill: var(--yellow); } .ico .w { fill: var(--white); }

/* sections */
.sec { padding: 4.6rem 0 3.6rem; position: relative; }
.sec.cream { background: var(--cream); }
.sec.navy { background: var(--navy); color: var(--white); padding: 3.6rem 0; }
.sec h2 { max-width: 24ch; text-wrap: balance; }
.sec h2::after { content: ""; display: block; width: 84px; height: 10px; border-radius: 999px; background: var(--yellow); border: 2.5px solid var(--navy); margin-top: .45rem; transform: rotate(-1.5deg); }
.intro { font-size: 1.12rem; max-width: 66ch; }
.prose { max-width: 72ch; }
.note { font-size: .96rem; max-width: 72ch; margin-top: 1rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding: .15rem 0 .15rem 2.3rem; margin-bottom: .45rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%230A1432' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 100%; }

/* cards: swatch tiles */
.cards { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.card { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.4rem 1.3rem 1.2rem; display: flex; flex-direction: column;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.card:nth-child(odd) { rotate: -.6deg; } .card:nth-child(even) { rotate: .5deg; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--navy); }
.card .ico { margin-bottom: .8rem; }
.card p { flex: 1; }
.more { text-decoration: none; display: inline-block; background: var(--yellow-soft); border: 2.5px solid var(--navy); border-radius: 999px; padding: .32rem .85rem; font-size: .95rem; align-self: flex-start; transition: background .15s; }
.more:hover { background: var(--yellow); }

/* steps */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: s; }
.steps li { position: relative; background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow-y); padding: 2.1rem 1.3rem 1.1rem; }
.sec.cream .steps li { box-shadow: var(--shadow); }
.num { position: absolute; top: -1.3rem; left: 1.1rem; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--yellow); border: var(--line); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--navy); line-height: 1; padding-top: .12em; rotate: -8deg; }
.steps .ico { margin-bottom: .6rem; }

/* questions */
.faq { max-width: 820px; margin-top: 1.6rem; display: grid; gap: .9rem; }
.faq details { background: var(--white); border: var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--navy); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3.2rem 1rem 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.15rem; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; translate: 0 -50%; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--navy);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1; transition: rotate .2s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 1.2rem 1.1rem; margin: 0; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: .8rem 1rem; vertical-align: top; border-bottom: 2px solid #E6E9F2; }
thead th { background: var(--yellow); color: var(--navy); font-family: var(--display); font-size: 1.08rem; border-bottom: var(--line); }
tbody th { color: var(--navy); font-weight: 800; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* closing band */
.cta { display: flex; align-items: center; gap: 2rem; }
.cta .roller { width: 120px; flex: none; rotate: -6deg; }
.cta-h { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: .3em; }
.sec.navy p { color: #E8ECF8; margin: 0; max-width: 56ch; }
.sec.navy .btn { box-shadow: 4px 4px 0 rgba(255, 255, 255, .3); }
.sec.navy .btn:active { box-shadow: 0 0 0 transparent; }

/* business details */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.6rem 0 0; }
.facts div { background: var(--white); border: var(--line); border-radius: 16px; padding: .8rem 1rem; box-shadow: 4px 4px 0 var(--yellow); }
.sec.cream .facts div { box-shadow: 4px 4px 0 var(--navy); }
.facts dt { font-size: .82rem; font-weight: 800; color: #55608A; }
.facts dd { margin: 0; font-weight: 800; color: var(--navy); font-size: 1.08rem; overflow-wrap: anywhere; }

/* forms */
.form { max-width: 760px; margin-top: 1.6rem; background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.5rem; display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 800; color: var(--navy); font-size: .98rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 600; color: var(--navy); padding: .7rem .8rem; border: 2.5px solid var(--navy); border-radius: 12px; background: #FFFDF5; width: 100%; min-height: 48px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; box-shadow: 0 0 0 4px var(--yellow); }
.form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-weight: 800; min-height: 1.5em; }
.form-msg.bad { color: #B3261E; }
.form-msg.good { color: var(--navy); background: var(--yellow-soft); border: 2.5px solid var(--navy); border-radius: 12px; padding: .7rem .9rem; }
.small { font-size: .9rem; margin: 0; }

/* footer */
.foot { background: var(--navy); color: #D9DEEE; padding: 3.2rem 0 1.4rem; border-top: 6px solid var(--yellow); }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.foot-brand img { width: 210px; margin-bottom: .8rem; }
.foot a { color: var(--white); font-weight: 700; text-decoration: none; }
.foot a:hover { color: var(--yellow); text-decoration: underline; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.f-h { font-family: var(--display); font-weight: 800; color: var(--yellow); font-size: 1.15rem; margin-bottom: .6rem; }
.legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 2px solid rgba(255, 255, 255, .18); font-size: .92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.legal p { margin: 0; }

/* appear once on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu { display: block; }
  .nav { position: fixed; inset: 88px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; gap: .8rem; border-bottom: 4px solid var(--yellow);
    transform: translateY(-130%); visibility: hidden; transition: transform .28s var(--ease), visibility .28s; max-height: calc(100dvh - 88px); overflow: auto; }
  .nav.open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav li a { font-size: 1.15rem; padding: .7rem .9rem; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .hero { padding: 1.8rem 0 4.2rem; }
  .hero-in { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-art { width: 190px; margin: 0 auto; order: -1; padding-top: 3.2rem; }
  .bubble { left: 50%; top: 0; translate: -50% 0; white-space: nowrap; font-size: 1rem; }
  .bubble::after { right: calc(50% - 11px); }
  .hero-sticker { display: none; }
  .sec { padding: 3.6rem 0 2.8rem; }
  .form .row { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cta .roller { width: 84px; }
  .btns .btn { flex: 1 1 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .card:nth-child(n) { rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mark { background-size: 100% .09em; }
  .js .reveal { opacity: 1; transform: none; }
}
