/* =========================================================================
   Doodle & Roar - stylesheet
   Palette: crayon brights on warm cream. Light theme, committed.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap");

:root {
  --cream:      #fff9f0;
  --cream-2:    #fff3e2;
  --card:       #ffffff;
  --ink:        #2b2440;
  --ink-soft:   #5b5470;
  --line:       #efe4d3;

  --coral:      #ff6b6b;
  --coral-dark: #e64f6d;
  --teal:       #16b8a6;
  --teal-dark:  #0e9788;
  --sun:        #ffc93c;
  --grape:      #9b5de5;
  --sky:        #4ea8de;

  --focus:      #1b6ef3;

  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  28px;
  --shadow:     0 10px 30px -12px rgba(43, 36, 64, .25);
  --shadow-sm:  0 4px 14px -6px rgba(43, 36, 64, .22);
  --wrap:       1120px;
  --font:       "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display:    "Fredoka", var(--font);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.stack > * + * { margin-top: 1rem; }

/* ---- Skip link ---------------------------------------------------------- */
.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 200; transition: top .15s;
}
.skip:focus { top: 12px; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--coral);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: .78em 1.5em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 0 -1px rgba(0,0,0,.12);
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 0 -1px rgba(0,0,0,.14); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 0 -1px rgba(0,0,0,.14); }
.btn--teal  { --btn-bg: var(--teal); }
.btn--grape { --btn-bg: var(--grape); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { background: var(--cream-2); }
.btn--sm { font-size: .92rem; padding: .6em 1.15em; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ---- Announcement bar ------------------------------------------------- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: .92rem;
  padding: 8px 16px;
  font-weight: 600;
}
.announce code {
  background: rgba(255,255,255,.16);
  padding: 1px 8px; border-radius: 6px; font-size: .95em;
  letter-spacing: .12em; font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---- Header / nav --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 240, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;
  max-width: var(--wrap); margin: 0 auto;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .4em;
}
.brand span { color: var(--coral); }
.nav-links {
  display: flex; gap: 4px; margin-left: auto; align-items: center;
}
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 700;
  padding: 8px 12px; border-radius: 10px; font-size: .98rem;
}
.nav-links a:hover { background: var(--cream-2); }
.nav-links a[aria-current="page"] { color: var(--coral-dark); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto;
    background: #fff; border: 2px solid var(--coral); color: var(--coral-dark);
    border-radius: 10px; font-size: 1.2rem;
    width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
  }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; margin: 0;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .btn { margin-top: 6px; }
}

/* ---- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(155,93,229,.14), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(78,168,222,.16), transparent 42%),
    radial-gradient(circle at 70% 92%, rgba(255,201,60,.20), transparent 45%),
    var(--cream);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 60px 20px 64px;
}
.hero h1 .hl { color: var(--coral); }
.hero .lead { max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__points {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; font-size: .96rem;
}
.hero__points li { display: inline-flex; align-items: center; gap: .45em; }
.hero__points li::before { content: "✓"; color: var(--teal-dark); font-weight: 800; }
.hero__trust { margin: 22px 0 0; max-width: 44ch; font-size: .88rem; color: var(--ink-soft); }
.hero__art {
  position: relative;
  width: 70%;
  max-width: 318px;
  margin: 8px auto 0;
}
.hero__art > img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  rotate: 2deg;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}
.hero__art .float {
  position: absolute; border-radius: var(--radius); border: 5px solid #fff;
  box-shadow: var(--shadow-sm); width: 44%;
  aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
}
.hero__art .float--1 { left: -26%; top: 10%; rotate: -8deg; }
.hero__art .float--2 { right: -24%; bottom: 6%; rotate: 9deg; width: 40%; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 20px 54px; }
  .hero__art { max-width: 420px; width: 78%; margin: 6px auto 24px; }
  .hero__art .float--1 { left: -12%; }
  .hero__art .float--2 { right: -12%; }
}
@media (max-width: 560px) {
  .hero__art .float { display: none; }
  .hero__art { width: 88%; }
}

/* ---- Wavy section divider ---------------------------------------- */
.wave { display: block; width: 100%; height: 48px; }
.wave path { fill: var(--cream); }

/* ---- Feature strip ------------------------------------------------ */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.feature .ico { font-size: 1.9rem; }
.feature h3 { margin: .35em 0 .2em; font-size: 1.08rem; }
.feature p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 820px) { .features { grid-template-columns: repeat(2, 1fr); } }

/* ---- Section heading block -------------------------------------- */
.head { max-width: 42ch; margin: 0 auto 40px; text-align: center; }
.head p { color: var(--ink-soft); margin: 0; }
.eyebrow {
  font-family: var(--display); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: .8rem; color: var(--grape);
  display: block; margin-bottom: .4em;
}

/* ---- Theme cards (home) ---------------------------------------- */
.themes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.theme-card {
  position: relative; display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease;
}
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.theme-card img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; background: var(--cream-2); }
.theme-card .body { padding: 14px 16px 16px; }
.theme-card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.theme-card p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.theme-card .emoji {
  position: absolute; top: 10px; left: 10px; font-size: 1.4rem;
  background: #fff; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .themes { grid-template-columns: repeat(2, 1fr); } }

/* ---- Steps ---------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  background: var(--sun); color: var(--ink);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 12px;
}
.step h3 { font-size: 1.12rem; margin-bottom: .25em; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---- Shop layout -------------------------------------------- */
.shop-head { padding: 40px 20px 8px; text-align: center; }
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 18px 0 6px;
}
.chip {
  font-family: var(--display); font-weight: 500; font-size: .92rem;
  padding: .5em 1em; border-radius: 999px; cursor: pointer;
  background: var(--card); border: 2px solid var(--line); color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.shop-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin: 18px 0 24px;
}
.shop-toolbar .count { font-weight: 700; color: var(--ink-soft); }
.shop-toolbar select {
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  padding: .5em 2em .5em .9em; border-radius: 10px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b5470' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8em center;
}

/* ---- Product grid & cards -------------------------------- */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.pcard {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__media {
  position: relative; border: 0; padding: 0; margin: 0; width: 100%;
  background: var(--cream-2); cursor: zoom-in; display: block;
}
.pcard__media img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; width: 100%; }
.pcard__peek {
  position: absolute; inset: auto 0 0 0; padding: 8px;
  background: linear-gradient(to top, rgba(43,36,64,.72), transparent);
  color: #fff; font-weight: 700; font-size: .82rem; text-align: center;
  opacity: 0; transition: opacity .14s;
}
.pcard__media:hover .pcard__peek,
.pcard__media:focus-visible .pcard__peek { opacity: 1; }
.badge {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .03em; text-transform: uppercase;
  background: var(--sun); color: var(--ink);
  padding: 4px 9px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.badge--bundle { background: var(--grape); color: #fff; }
.badge--mega   { background: var(--coral); color: #fff; }
.pcard__body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard__theme {
  font-family: var(--display); font-weight: 500; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--grape);
}
.pcard__title { font-family: var(--display); font-weight: 600; font-size: 1.02rem; margin: 2px 0 6px; }
.pcard__meta { font-size: .84rem; color: var(--ink-soft); margin-bottom: 12px; }
.pcard__foot { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.price s { color: var(--ink-soft); font-weight: 400; font-size: .85rem; margin-right: .35em; }

/* ---- Modal / quick look -------------------------------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 20px;
  background: rgba(43, 36, 64, .55);
  backdrop-filter: blur(3px);
}
.modal__box {
  background: var(--cream); border-radius: var(--radius-lg);
  width: min(920px, 100%); max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow); position: relative;
}
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; box-shadow: var(--shadow-sm); font-size: 1.2rem;
}
.modal__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.modal__gallery { padding: 22px; background: var(--cream-2); }
.modal__gallery .main {
  border-radius: var(--radius-sm); border: 4px solid #fff; box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4; object-fit: contain; background: #fff; width: 100%;
}
.modal__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.modal__thumbs button {
  border: 2px solid transparent; border-radius: 8px; padding: 0; cursor: pointer;
  background: #fff; overflow: hidden; flex: 1;
}
.modal__thumbs button[aria-current="true"] { border-color: var(--coral); }
.modal__thumbs img { aspect-ratio: 3 / 4; object-fit: cover; }
.modal__info { padding: 32px 28px; }
.modal__info h2 { font-size: 1.5rem; }
.modal__info .price { font-size: 1.6rem; display: block; margin: 6px 0 14px; }
.modal__info ul { padding-left: 1.1em; margin: 12px 0 20px; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 720px) {
  .modal__grid { grid-template-columns: 1fr; }
}

/* ---- Callout / value band ----------------------------- */
.band {
  background: linear-gradient(120deg, var(--teal), var(--sky));
  color: #fff; border-radius: var(--radius-lg); padding: 46px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
}
.band h2 { color: #fff; }
.band p { margin: 0; opacity: .95; }
.band .btn--ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.band .btn--ghost:hover { background: rgba(255,255,255,.14); }
.band__price { text-align: center; }
.band__price .big { font-family: var(--display); font-weight: 700; font-size: 2.6rem; display: block; }
.band__price s { opacity: .8; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 32px; text-align: center; } }

/* ---- FAQ / accordion --------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  font-family: var(--display); font-weight: 500; font-size: 1.06rem;
  cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--coral); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] { padding-bottom: 16px; }
.faq p { margin: 0 0 .8rem; color: var(--ink-soft); font-size: .98rem; }

/* ---- Testimonials ----------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.quote .stars { color: var(--sun); letter-spacing: 2px; }
.quote p { font-size: .98rem; margin: .5em 0 1em; }
.quote cite { font-weight: 700; font-style: normal; color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* ---- Prose (legal / about) ------------------------- */
.prose { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose .updated { color: var(--ink-soft); font-size: .9rem; }

/* ---- Newsletter ----------------------------------- */
.news { text-align: center; max-width: 560px; margin: 0 auto; }
.news form { display: flex; gap: 10px; margin-top: 18px; }
.news input {
  flex: 1; font: inherit; padding: .8em 1em; border-radius: 999px;
  border: 2px solid var(--line); background: #fff;
}
@media (max-width: 520px) { .news form { flex-direction: column; } }

/* ---- Footer -------------------------------------- */
.site-footer {
  background: var(--ink); color: #d9d3e6; padding: 56px 0 30px; margin-top: 40px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px;
}
.footer-grid h4 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .4em 0; font-size: .95rem; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.footer-brand span { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .85rem; color: #a9a2bd;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Utility ------------------------------------- */
.tag {
  display: inline-block; font-family: var(--display); font-weight: 500;
  font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--cream-2); color: var(--ink-soft);
  padding: 3px 10px; border-radius: 999px;
}
.hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.noscript {
  background: var(--sun); color: var(--ink); text-align: center;
  padding: 10px; font-weight: 700;
}
