:root {
  --bg: #fff8f1;
  --card: #ffffff;
  --ink: #1f2430;
  --muted: #5d6270;
  --accent: #ff7a3d;
  --accent-dark: #e8622a;
  --line: #f0e4d8;
  --radius: 18px;
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* header / footer */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 8px; font: 600 22px var(--head); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.top nav a { text-decoration: none; color: var(--muted); margin-left: 16px; font-size: 15px; }
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.foot a { text-decoration: none; }

/* home */
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); max-width: 14ch; }
.hero p { color: var(--muted); max-width: 46ch; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--line); }
.card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.card div { padding: 14px 16px 18px; }
.card h3 { font-size: 20px; margin-bottom: 4px; }
.card span { color: var(--muted); }

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; padding: 16px 0 8px; align-items: start; }
.pdp .media img, .pdp .media video { border-radius: var(--radius); width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #eee; }
.pdp h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 6px; }
.tagline { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.options { display: grid; gap: 10px; margin: 18px 0; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card);
  border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0 10px 0 0; }
.opt .l { display: flex; align-items: center; }
.opt .p { font-weight: 700; white-space: nowrap; }
.opt .badge { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--accent-dark);
  background: #ffeadf; padding: 2px 8px; border-radius: 99px; }
.opt:has(input:checked) { border-color: var(--accent); }
.buy { width: 100%; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: 600 20px var(--head);
  padding: 16px; cursor: pointer; }
.buy:hover { background: var(--accent-dark); }
.buy[disabled] { opacity: .6; cursor: wait; }
.ship { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.err { color: #b42318; font-size: 14px; min-height: 1em; }
.bullets { padding: 0; list-style: none; margin: 22px 0; }
.bullets li { padding-left: 30px; position: relative; margin: 10px 0; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.6 4.4 10l-1.4 1.4L8 16.4l9-9L15.6 6z'/%3E%3C/svg%3E") center/14px no-repeat; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.test-banner { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 6px 16px; }

/* text pages */
.doc { max-width: 720px; padding: 24px 0; }
.doc h1 { font-size: 36px; }
.doc h2 { font-size: 22px; margin-top: 28px; }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

@media (max-width: 760px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pdp .media img { max-height: 52vh; }  /* keep the buy button near the fold */
  .pdp h1 { margin-top: 0; }
  .top nav a { margin-left: 12px; }
}
