/* Rocco home page. Same palette as the store art; the other public pages keep using style.css. */
:root {
  --cream: #fff8e7;
  --butter: #ffe9a6;
  --sun: #ffc23d;
  --ink: #1a1c3b;
  --ink-muted: #5e6285;
  --primary: #5050e6;
  --primary-dark: #3a3ab8;
  --card: #ffffff;
  --line: #f1e3bd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { font-family: "Fredoka", system-ui, sans-serif; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(28px, 5vw, 40px); text-align: center; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub { text-align: center; color: var(--ink-muted); margin: 8px 0 0; }
.center { justify-content: center; text-align: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--primary); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 17px;
  box-shadow: 0 5px 0 var(--primary-dark);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 4px 0 var(--primary-dark); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--primary-dark); }
.btn.small { min-height: 42px; padding: 0 20px; font-size: 15px; box-shadow: 0 4px 0 var(--primary-dark); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, .gal:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.ghost { font-weight: 800; text-decoration: none; padding: 12px 6px; }
.badge img { height: 54px; width: auto; }

/* sticky top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 231, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 24px;
}
.brand img { border-radius: 9px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.top .link { display: none; font-weight: 800; font-size: 15px; color: var(--ink-muted); text-decoration: none; }
.top .link:hover { color: var(--primary); }

/* hero */
.hero { background: linear-gradient(180deg, #ffefba 0%, var(--cream) 100%); padding: 28px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.eyebrow { margin: 0 0 10px; font-weight: 800; color: var(--primary); letter-spacing: .02em; }
.hero h1 { font-size: clamp(40px, 9vw, 68px); }
.accent { color: var(--primary); }
.lead { font-size: clamp(18px, 2.6vw, 21px); color: var(--ink-muted); margin: 16px 0 0; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 26px 0 10px; }
.fine { margin: 0; font-size: 14px; color: var(--ink-muted); }
.strip { padding: 22px 0 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: 4px 14px; font-size: 14px; font-weight: 800;
}
.hero-art { justify-self: center; width: min(100%, 380px); display: block; }
.hero-art img {
  width: 100%; border-radius: 34px; border: 4px solid #fff;
  box-shadow: 0 26px 50px rgba(26, 28, 59, 0.18);
  transition: transform .2s ease;
}
.hero-art:hover img { transform: translateY(-3px) rotate(-.6deg); }

/* how it works: radio-driven tabs, no script */
.how { padding: 64px 0 56px; }
.steps { position: relative; display: grid; gap: 28px; margin-top: 32px; align-items: center; }
.tabs { display: grid; gap: 12px; }
.tab {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 16px 18px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.tab:hover { border-color: #cfcff7; transform: translateY(-1px); }
.tab .n {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--butter); font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 18px;
}
.tab b { display: block; font-family: "Fredoka", system-ui, sans-serif; font-size: 20px; line-height: 1.2; }
.tab .d { display: none; margin-top: 4px; color: var(--ink-muted); font-size: 15.5px; line-height: 1.5; }
#s1:checked ~ .tabs .t1 .d, #s2:checked ~ .tabs .t2 .d, #s3:checked ~ .tabs .t3 .d { display: block; }
.stage { display: grid; justify-items: center; }
.stage img {
  display: none; width: min(100%, 300px); border-radius: 30px;
  box-shadow: 0 24px 48px rgba(26, 28, 59, 0.18); animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#s1:checked ~ .tabs .t1, #s2:checked ~ .tabs .t2, #s3:checked ~ .tabs .t3 { border-color: var(--primary); background: #f1f1ff; }
#s1:checked ~ .tabs .t1 .n, #s2:checked ~ .tabs .t2 .n, #s3:checked ~ .tabs .t3 .n { background: var(--primary); color: #fff; }
#s1:checked ~ .stage .p1, #s2:checked ~ .stage .p2, #s3:checked ~ .stage .p3 { display: block; }
#s1:focus-visible ~ .tabs .t1, #s2:focus-visible ~ .tabs .t2, #s3:focus-visible ~ .tabs .t3 { outline: 3px solid var(--primary); outline-offset: 3px; }
.how .cta { margin-top: 36px; }

/* screenshot gallery */
.peek { padding: 24px 0 64px; }
.gal {
  display: flex; gap: 16px; list-style: none; margin: 24px 0 0; padding: 12px max(20px, calc((100% - 1040px) / 2)) 32px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scroll-padding: 0 20px;
}
.gal li { flex: 0 0 min(66vw, 250px); scroll-snap-align: center; }
.gal img { border-radius: 26px; box-shadow: 0 14px 30px rgba(26, 28, 59, 0.16); }

/* feature cards */
.why { padding: 24px 0 72px; }
.cards { display: grid; gap: 18px; margin-top: 32px; }
.card {
  background: #fff; border: 2px solid var(--line); border-radius: 26px; padding: 22px 22px 24px;
  display: grid; grid-template-columns: 96px 1fr; gap: 4px 18px; align-items: center;
}
.card img { grid-row: span 2; width: 96px; }
.card h3 { font-size: 21px; align-self: end; }
.card p { margin: 0; color: var(--ink-muted); font-size: 16px; line-height: 1.55; align-self: start; }

/* questions */
.faq { padding: 8px 0 72px; }
.faq h2 { margin-bottom: 24px; }
details { background: #fff; border: 2px solid var(--line); border-radius: 20px; margin: 12px 0; }
summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 19px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--butter);
  display: grid; place-items: center; font-size: 20px; line-height: 1; font-weight: 700;
}
details[open] summary::after { content: "\2212"; background: var(--primary); color: #fff; }
details p { margin: 0; padding: 0 20px 18px; color: var(--ink-muted); }

/* closing call to action */
.final { background: linear-gradient(180deg, #ffe28a 0%, var(--sun) 100%); padding: 48px 0; }
.final .wrap { display: grid; gap: 16px; justify-items: center; text-align: center; }
.final img:first-child { width: 150px; }
.final h2 { margin-bottom: 20px; }
.final .badge { display: inline-block; }

footer { padding: 32px 0 48px; text-align: center; color: var(--ink-muted); font-size: 14px; }

@media (min-width: 860px) {
  .top .link { display: inline; }
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .steps { grid-template-columns: 1fr 340px; gap: 56px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .gal li { flex-basis: 260px; }
  .final .wrap { grid-template-columns: auto 1fr; text-align: left; justify-items: start; gap: 40px; max-width: 820px; }
  .final img:first-child { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
