:root {
  --bg: #fffaf3;
  --bg-2: #ffffff;
  --ink: #1f2430;
  --muted: #5b6170;
  --accent: #ff7a3d;
  --accent-2: #f2542d;
  --line: #ece4d8;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, system-ui, sans-serif; padding-bottom: 72px; }
h1, h2, h3 { font-family: Fredoka, Inter, sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); text-align: center; }
h3 { font-size: 1.2rem; }
a { color: var(--accent-2); }
section { max-width: 1100px; margin: 0 auto; padding: 56px 16px; }
small { color: var(--muted); }

.announce { background: var(--ink); color: #fff; text-align: center; padding: 7px 16px; font-size: .82rem; }
.nav { max-width: 1100px; margin: 0 auto; padding: 10px 16px; }
.logo { color: var(--ink); text-decoration: none; font-family: Fredoka, sans-serif; font-size: 1.5rem; font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; padding-top: 16px; }
.hero-media img#hero-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumb { flex: 1; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; display: block; aspect-ratio: 1; object-fit: contain; }
.thumb.on { border-color: var(--accent); }
.hero-media img#hero-img.life { object-fit: cover; }
.thumb[data-life] img { object-fit: cover; }

.price-row { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 14px; }
.price { font-size: 2rem; font-weight: 600; }
.price-note { color: var(--muted); }

.picker { border: 0; padding: 0; margin: 0 0 12px; border-radius: 12px; transition: box-shadow .2s; }
.picker.need { box-shadow: 0 0 0 2px var(--accent-2); padding: 6px; }
.picker legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; float: left; width: 100%; }
.picked { color: var(--muted); font-weight: 500; }
.chart-link { float: right; font-weight: 500; font-size: .85rem; }
.swatches { clear: both; display: flex; gap: 10px; margin-bottom: 12px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2.5px var(--accent); }
.sizes { clear: both; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.size { display: flex; flex-direction: column; align-items: center; padding: 7px 2px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.size strong { font-size: .95rem; }
.size small { font-size: .68rem; }
.size.on { border-color: var(--accent); background: #fff3ec; }

.two-dogs { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px dashed var(--accent); background: #fff3ec; border-radius: 12px; margin: 4px 0 12px; cursor: pointer; font-size: .95rem; }
.two-dogs input { width: 18px; height: 18px; accent-color: var(--accent); }

.cta { display: inline-block; width: 100%; border: 0; cursor: pointer; text-align: center; text-decoration: none; padding: 16px 24px; border-radius: 999px; font: 600 1.1rem Inter, sans-serif; color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px rgba(242, 84, 45, .3); }
.cta.small { width: auto; padding: 10px 18px; font-size: .95rem; }
.checkout-msg { color: var(--accent-2); font-size: .9rem; font-weight: 500; }
.trust { list-style: none; padding: 0; margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.trust li { padding: 3px 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature span { font-size: 1.6rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Gallery */
.gallery { padding-top: 0; }
.gallery-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.gallery-track figure { flex: 0 0 78%; max-width: 380px; margin: 0; scroll-snap-align: start; }
.gallery-track img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; background: #fff; }
.gallery-track figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* Size guide */
.size-guide { max-width: 760px; }
.steps { padding-left: 20px; color: var(--muted); }
.steps strong { color: var(--ink); }
.chart { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.chart th, .chart td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.chart th { background: #fff3ec; }
.chart small { display: block; font-size: .75rem; }
.note { color: var(--muted); font-size: .9rem; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }

.final-cta { text-align: center; }
.final-cta .cta { max-width: 340px; }

footer { border-top: 1px solid var(--line); text-align: center; padding: 28px 16px; color: var(--muted); font-size: .9rem; }
footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
footer a { color: var(--muted); }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; display: none; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(255, 250, 243, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.sticky-buy strong { font-size: 1.1rem; }

.policy { max-width: 760px; margin: 0 auto; padding: 40px 16px; }
.policy p, .policy li { color: var(--muted); }

@media (max-width: 860px) {
  /* First phone screen (390 x 844): what it is, the price, the pickers and one Buy button (kit §4.1). */
  section { padding: 36px 16px; }
  .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 0; }
  .hero-media { display: grid; grid-template-columns: 1fr 52px; gap: 8px; }
  .hero-media img#hero-img { max-height: 228px; }
  .thumbs { flex-direction: column; margin: 0; gap: 4px; }
  .thumb img { aspect-ratio: auto; height: 40px; object-fit: cover; }
  h1 { font-size: 1.45rem; margin-bottom: .2em; }
  .price-row { margin: 2px 0 8px; }
  .price { font-size: 1.6rem; }
  .swatches { margin-bottom: 8px; }
  .swatch { width: 30px; height: 30px; }
  .two-dogs { padding: 8px 10px; margin-bottom: 10px; font-size: .9rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .sticky-buy.show { display: flex; }
}
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }
