/* Rainbow Hen Co. — site styles */
:root {
  /* Brand palette, sampled from the Rainbow Hen Co. logo */
  --yellow: #F8CE7A;   /* mustard yellow */
  --sage: #ACC5A7;     /* sage green */
  --blue: #90B1D0;     /* dusty blue */
  --pink: #F9A9A8;     /* pink */
  --mint: #D0DCC6;     /* pale mint */
  --red: #E76A56;      /* coral red */
  --cream: #FCF8EC;    /* cream */
  --deep: #3B5145;     /* deep green-black (the hen's eye) */
  --black: var(--deep); /* legacy alias; no black surfaces */
  --white: #FFFFFF;
  /* Roles (kept accessible: deep green text on pastel surfaces) */
  --navy: var(--deep);          /* headings */
  --text: var(--deep);           /* body text: 8:1 on cream */
  --muted: var(--deep);
  --link: var(--deep);
  --btn: #F9A9A8;              /* soft coral tint */
  --btn-text: var(--deep);
  --btn-hover: #F9A9A8;
  /* Light tints of the palette for large backgrounds */
  --yellow-soft: #FCF8EC;
  --sage-soft: #FCF8EC;
  --blue-soft: #FCF8EC;
  --pink-soft: #FCF8EC;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(59, 81, 69, 0.10);
  --max: 1160px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

/* Skip link */
.skip-link { position: absolute; left: 1rem; top: -60px; background: var(--navy); color: var(--white); padding: .6rem 1rem; border-radius: 8px; z-index: 1000; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--white); }

/* Header */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 rgba(59,81,69,.08); }
.rainbow-bar { height: 4px; background: linear-gradient(90deg, var(--yellow) 0 20%, var(--sage) 20% 40%, var(--blue) 40% 60%, var(--pink) 60% 80%, var(--red) 80% 100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand img { width: 48px; height: 48px; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.primary-nav a { display: block; padding: .5rem .75rem; border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .98rem; }
.primary-nav a:hover { background: var(--yellow-soft); }
.primary-nav a[aria-current="page"] { background: var(--sage-soft); }
.cart-link { display: inline-flex !important; align-items: center; gap: .4rem; border: 2px solid var(--navy); }
.cart-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--pink); color: var(--deep); font-size: .8rem; font-weight: 700; }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 10px; padding: .45rem .6rem; cursor: pointer; color: var(--navy); font: inherit; font-weight: 600; align-items: center; gap: .5rem; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; content: ""; transition: transform .2s; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: 0 12px 20px rgba(59,81,69,.12); display: none; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .25rem; }
  .primary-nav a { border-radius: 10px; padding: .75rem 1rem; }
  .cart-link { justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; font-family: inherit; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .2s, transform .15s, color .2s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); color: var(--deep); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--sage-soft); color: var(--deep); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: #D9DDE0; color: #3E4A53; border-color: #D9DDE0; cursor: not-allowed; transform: none; }
.btn-link { background: none; border: none; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* Sections */
.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-white { background: var(--white); }
.section-head { max-width: 680px; margin: 0 auto 2.25rem; text-align: center; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); margin-bottom: .6rem; }
.page-hero { padding: 3.25rem 0 2.5rem; text-align: center; background: linear-gradient(180deg, var(--white), var(--cream)); }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }

/* Home hero */
.hero { padding: 3.5rem 0 3rem; background: radial-gradient(circle at 85% 30%, var(--yellow-soft), transparent 45%), radial-gradient(circle at 10% 90%, var(--pink-soft), transparent 40%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero-copy p { font-size: 1.15rem; color: var(--deep); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-art { background: var(--white); border-radius: 28px; box-shadow: var(--shadow); padding: 1rem; max-width: 440px; justify-self: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1.5rem 0 0; color: var(--deep); font-weight: 600; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--deep); margin-right: .4rem; font-weight: 800; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero-copy p { margin-left: auto; margin-right: auto; } .hero-actions, .hero-points { justify-content: center; } .hero-art { max-width: 280px; order: -1; } }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(59,81,69,.12); }
.product-card-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.product-card h3 a { color: var(--navy); text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card { position: relative; }
.product-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.product-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .5rem; position: relative; z-index: 1; }
.price { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.price-free { color: var(--deep); }

/* Cover art (CSS-only product covers) */
.cover { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.cover-yellow { background: var(--yellow-soft); } .cover-sage { background: var(--sage-soft); } .cover-blue { background: var(--blue-soft); } .cover-pink { background: var(--pink-soft); }
.cover-page { width: 54%; aspect-ratio: 8.5 / 11; background: var(--white); border-radius: 6px; box-shadow: 0 10px 24px rgba(59,81,69,.16); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8%; text-align: center; transform: rotate(-3deg); position: relative; }
.cover-page::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, var(--yellow) 0 20%, var(--sage) 20% 40%, var(--blue) 40% 60%, var(--pink) 60% 80%, var(--red) 80% 100%); }
.cover-page img { width: 42%; margin-bottom: 6%; }
.cover-title { font-family: var(--serif); font-weight: 700; font-size: clamp(.7rem, 1.2vw, .95rem); line-height: 1.15; color: var(--navy); }
.cover-lg .cover-title { font-size: clamp(1rem, 2vw, 1.4rem); }
.badge { position: absolute; top: .85rem; left: .85rem; background: var(--navy); color: var(--white); font-size: .78rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; letter-spacing: .02em; z-index: 1; }
.badge-free { background: var(--deep); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: var(--cream); border-radius: var(--radius); padding: 1.75rem 1.5rem; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--navy); margin-bottom: 1rem; }
.step:nth-child(1)::before { background: var(--yellow); } .step:nth-child(2)::before { background: var(--sage); } .step:nth-child(3)::before { background: var(--blue); }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--blue-soft); color: var(--deep); border-radius: 28px; padding: 2.75rem; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: .4rem; }
.cta-band p { margin: 0; color: var(--cream); }
.cta-band img { width: 110px; background: var(--white); border-radius: 50%; padding: 10px; }
.cta-band .btn-primary { background: var(--yellow); color: var(--black); }
.cta-band .btn-primary:hover { background: var(--cream); color: var(--black); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; } .cta-band img { margin: 0 auto; width: 90px; } }

/* Two-column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.about-art { background: var(--white); border-radius: 28px; box-shadow: var(--shadow); padding: 1.5rem; max-width: 380px; justify-self: center; }

/* Product detail */
.breadcrumb { font-size: .92rem; color: var(--muted); padding: 1.25rem 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem 0 3rem; align-items: start; }
.product-detail .cover { border-radius: 24px; box-shadow: var(--shadow); }
.product-detail .tagline { font-size: 1.2rem; color: var(--deep); }
.buy-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin: 1.5rem 0; }
.buy-box .price { font-size: 2.2rem; display: block; margin-bottom: .25rem; }
.buy-box .meta { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.buy-box .btn + .btn { margin-top: .6rem; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.panel { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: .55rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231F3442' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.check-list a { color: var(--link); }
@media (max-width: 860px) { .product-detail, .detail-cols { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Notes and drafts */
.draft-note { background: #FFF6D6; border: 2px dashed #C9A227; color: #4A3B00; border-radius: 12px; padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: .97rem; }
.draft-note strong { color: #3A2E00; }
.info-note { background: var(--blue-soft); border-left: 5px solid var(--blue); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.small { font-size: .9rem; color: var(--muted); }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: .9rem; padding: 0 1.4rem; }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 1.1rem 2rem 1.1rem 0; list-style: none; position: relative; color: var(--navy); font-size: 1.05rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--btn); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details > div { padding-bottom: 1.2rem; color: var(--deep); }
.faq-group-title { max-width: 820px; margin: 2.25rem auto 1rem; font-size: 1.35rem; }

/* Forms */
.form-card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { font-size: .88rem; color: var(--muted); margin: -.15rem 0 .4rem; }
input[type="text"], input[type="email"], select, textarea { width: 100%; padding: .8rem .9rem; border: 2px solid #B9C4B5; border-radius: 10px; font: inherit; color: var(--text); background: var(--white); }
input:focus, select:focus, textarea:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px rgba(59,81,69,.25); }
textarea { min-height: 150px; resize: vertical; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.checkbox input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; flex-shrink: 0; accent-color: var(--btn); }
.req { color: var(--black); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .form-card { padding: 1.5rem; } }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: .85rem 1rem; margin-bottom: .85rem; }
.cart-item .thumb { width: 84px; height: 63px; border-radius: 10px; display: grid; place-items: center; }
.cart-item .thumb img { width: 38px; }
.cart-item h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.cart-item h3 a { color: var(--navy); text-decoration: none; }
.cart-item .line-price { font-weight: 700; text-align: right; }
.cart-item .btn-link { font-size: .9rem; }
.summary { position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; padding: .4rem 0; }
.summary-total { border-top: 2px solid #E3E7EA; margin-top: .5rem; padding-top: .8rem; font-weight: 800; font-size: 1.2rem; }
.empty-cart { text-align: center; background: var(--white); border-radius: 20px; padding: 3rem 1.5rem; box-shadow: var(--shadow); }
.empty-cart img { width: 110px; margin: 0 auto 1rem; }
.pay-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 480px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item .thumb { width: 64px; height: 52px; } .cart-item .line-price { grid-column: 2; text-align: left; } }

/* Toast */
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%); background: var(--navy); color: var(--white); padding: .85rem 1.25rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); z-index: 200; transition: transform .25s; display: flex; gap: 1rem; align-items: center; max-width: calc(100% - 2rem); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: var(--yellow); font-weight: 700; }

/* Footer */
.site-footer { background: var(--sage-soft); color: var(--deep); margin-top: 4rem; }
.footer-logo { width: 150px; height: auto; margin: -.5rem 0 .5rem -12px; }
.site-footer .rainbow-bar { height: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.footer-brand img { width: 52px; height: 52px; background: var(--white); border-radius: 50%; padding: 4px; }
.footer-brand span { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .92rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* 404 / thank you */
.center-page { text-align: center; padding: 4rem 0; }
.center-page img { width: 160px; margin: 0 auto 1.5rem; }
.center-page .hero-actions { justify-content: center; }

/* ===== Utilities ===== */
.narrow { max-width: 820px; }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--deep); }
.h3 { font-size: 1.25rem; }
.light { color: var(--cream) !important; }
.light a { color: var(--yellow); }
.preview-banner { background: var(--blue-soft); color: var(--deep); text-align: center; font-size: .85rem; font-weight: 600; padding: .4rem 1rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.06rem; }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--cream); color: var(--black); }
.section-mint { background: var(--sage-soft); }
.eyebrow-light { color: var(--yellow); }
.buy-line { margin: 1rem 0 0; font-size: .95rem; color: var(--muted); }

/* ===== Home hero cover grid ===== */
.fan { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; width: 100%; max-width: 440px; justify-self: center; }
.fan-page { aspect-ratio: 4 / 5; border-radius: 20px; display: grid; place-items: center; box-shadow: var(--shadow); }
.fan-page .cover-page { width: 70%; transform: none; }
.fan-page .cover-title { font-size: .85rem; }
.fan-0 { transform: rotate(-3deg); } .fan-1 { transform: rotate(2deg) translateY(14px); }
.fan-2 { transform: rotate(2deg); } .fan-3 { transform: rotate(-2deg) translateY(14px); }
@media (max-width: 820px) { .fan { max-width: 330px; gap: .9rem; } .fan-page .cover-title { font-size: .68rem; } }

/* ===== Wins ===== */
.wins { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.win { border-radius: var(--radius); padding: 1.4rem 1.2rem; border-top: 6px solid; background: var(--cream); }
.win h3 { font-size: 1.08rem; }
.win p { margin: 0; color: var(--muted); font-size: .96rem; }
.win-yellow { border-color: var(--yellow); } .win-sage { border-color: var(--sage); } .win-blue { border-color: var(--blue); } .win-pink { border-color: var(--pink); } .win-mint { border-color: var(--red); }
@media (max-width: 1000px) { .wins { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wins { grid-template-columns: 1fr; } }

/* ===== Core guides ===== */
.core-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.core-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.core-body { padding: 1.3rem 1.4rem 1.5rem; }
.core-kicker { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); margin-bottom: .3rem; }
.core-body h3 a { color: var(--navy); text-decoration: none; }
.core-body h3 a:hover { text-decoration: underline; }
.core-body > p { color: var(--muted); }
@media (max-width: 900px) { .core-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ===== Peek grid ===== */
.peek-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.peek { border-radius: 16px; aspect-ratio: 1 / 1.1; display: grid; place-items: center; background: var(--white); }
.mini-page { width: 72%; aspect-ratio: 8.5 / 11; background: var(--white); border-radius: 6px; box-shadow: 0 6px 14px rgba(59,81,69,.14); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .5rem; border-top: 5px solid var(--yellow); }
.peek:nth-child(4n+2) .mini-page { border-top-color: var(--sage); } .peek:nth-child(4n+3) .mini-page { border-top-color: var(--blue); } .peek:nth-child(4n) .mini-page { border-top-color: var(--pink); }
.mini-page img { width: 34px; margin-bottom: .4rem; }
.mini-page span { font-family: var(--serif); font-weight: 700; font-size: .8rem; line-height: 1.2; color: var(--navy); }
@media (max-width: 1000px) { .peek-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .peek-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Extras ===== */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.extra-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--cream); border-radius: var(--radius); padding: 1.25rem; }
.extra-thumb { flex-shrink: 0; width: 72px; height: 72px; border-radius: 14px; display: grid; place-items: center; }
.extra-thumb img { width: 46px; }
.extra-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.extra-card h3 a { color: var(--navy); }
.extra-card p { color: var(--muted); font-size: .95rem; margin-bottom: .4rem; }
.extra-note { font-weight: 700; color: var(--deep) !important; margin: 0 !important; }
@media (max-width: 900px) { .extras { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ===== Fit ===== */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; }
.dash-list li::before { content: ""; position: absolute; left: .1rem; top: .75em; width: .9rem; height: 3px; border-radius: 2px; background: var(--red); }
@media (max-width: 760px) { .fit-grid { grid-template-columns: 1fr; } }

/* ===== Library band (light logo on pastel blue) ===== */
.dark-band { background: var(--blue-soft); color: var(--deep); padding: 4rem 0; }
.dark-band h2 { color: var(--white); }
.dark-grid { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: center; }
.dark-logo { width: 100%; max-width: 320px; height: auto; justify-self: center; }
.lib-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; }
.lib-list li { padding-left: 1.2rem; position: relative; color: var(--cream); }
.lib-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--yellow); }
.lib-list li:nth-child(2)::before { background: var(--sage); } .lib-list li:nth-child(3)::before { background: var(--blue); } .lib-list li:nth-child(4)::before { background: var(--pink); } .lib-list li:nth-child(5)::before { background: var(--red); } .lib-list li:nth-child(6)::before { background: var(--mint); }
.lib-price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; margin: 0 0 1rem; }
.lib-price span { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: #E8E1D0; }
@media (max-width: 820px) { .dark-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; } .dark-logo { max-width: 200px; } .lib-list { grid-template-columns: 1fr; text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; } }
.info-note h2 { margin-bottom: .4rem; }
.info-note p:last-child { margin-bottom: 0; }

/* ===== Funnel ===== */
.hero-sub { font-family: var(--serif); font-size: 1.5rem !important; font-style: italic; color: var(--deep) !important; margin-top: -.25rem; }
.price-note { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 1.25rem; font-style: italic; }
.form-error { background: var(--pink-soft); border-left: 5px solid var(--red); padding: .75rem 1rem; border-radius: 8px; }
.cover.rounded { border-radius: 24px; box-shadow: var(--shadow); }
.addon-group { margin: 1.75rem 0 .75rem; }
.addon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.addon { position: relative; }
.addon input { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 1.3rem; height: 1.3rem; accent-color: var(--btn); margin: 0; }
.addon label { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; background: var(--white); border: 2px solid #E3DCCB; border-radius: 16px; padding: .9rem 1.1rem .9rem 3.2rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.addon label:hover { border-color: var(--sage); }
.addon input:focus-visible + label { outline: 3px solid var(--link); outline-offset: 2px; }
.addon.is-picked label { border-color: var(--btn); background: #FFF5F2; }
.addon.is-covered label, .addon-free label { border-color: var(--sage); background: var(--sage-soft); cursor: default; }
.addon-bundle label { border-style: dashed; }
.addon-bundle.is-picked label { border-style: solid; }
.addon-thumb { width: 64px; height: 56px; border-radius: 10px; display: grid; place-items: center; }
.addon-thumb img { width: 34px; }
.addon-text { display: flex; flex-direction: column; gap: .15rem; }
.addon-name { font-weight: 800; }
.addon-desc { font-size: .92rem; color: var(--muted); }
.addon-inc { font-size: .85rem; color: var(--deep); font-weight: 600; }
.addon-status { font-size: .85rem; font-weight: 700; color: var(--deep); }
.addon-status:empty { display: none; }
.addon-price { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.sum-lines { list-style: none; padding: 0; margin: 0 0 .5rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .97rem; }
@media (max-width: 560px) {
  .addon label { grid-template-columns: 1fr auto; padding-left: 3rem; }
  .addon-thumb { display: none; }
}

/* Neutral surfaces; the logo colors are small accents, not section fills. */
main > .section { background: var(--cream); }
main > .section.section-white { background: var(--white); }
.page-hero, .hero { background: var(--cream); }
.cta-band { background: var(--sage-soft); }
.cta-band h2, .cta-band p, .dark-band h2, .lib-list li, .lib-price span,
.site-footer h2, .site-footer a, .footer-brand span,
.light, .light a, .eyebrow-light { color: var(--deep) !important; }
.site-footer a:hover { color: var(--deep); }
.footer-bottom { border-top-color: var(--sage); }
.product-card, .core-card, .panel, .form-card, .buy-box, .extra-card,
.step, .faq-list details, .empty-cart, .cart-item { border: 2px solid var(--mint); }
.product-card:nth-child(4n+2), .core-card:nth-child(4n+2) { border-color: var(--blue); }
.product-card:nth-child(4n+3), .core-card:nth-child(4n+3) { border-color: var(--pink); }
.product-card:nth-child(4n), .core-card:nth-child(4n) { border-color: var(--yellow); }
.addon label { border-color: var(--mint); }
.addon.is-picked label { border-color: var(--deep); background: var(--pink-soft); }
.faq-list summary::after { color: var(--deep); }
.checkbox input, .addon input { accent-color: var(--deep); }
.badge { background: var(--yellow-soft); color: var(--deep); }
.badge-free { background: var(--sage-soft); }

/* Picture wrappers preserve the original image sizing and grid placement. */
.theme-logo { display: contents; }
:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root {
    --deep: #FCF8EC;
    --navy: #FCF8EC;
    --text: #FCF8EC;
    --muted: #E0E6DB;
    --link: #D0DCC6;
    --cream: #1E2420;
    --white: #242B26;
    --yellow-soft: #242B26;
    --sage-soft: #242B26;
    --blue-soft: #242B26;
    --pink-soft: #242B26;
    --btn: #F9A9A8;
    --btn-text: #3B5145;
    --btn-hover: #F8CCC5;
    --shadow: 0 6px 20px rgba(0, 0, 0, .18);
  }
  body { background: #1E2420; }
  .site-header, .primary-nav { background: #242B26; }
  .hero { background: var(--cream); }
  .btn-primary, .btn-primary:hover, .btn-yellow, .btn-yellow:hover,
  .cta-band .btn-primary, .cta-band .btn-primary:hover { color: #3B5145; }
  .btn-yellow, .cta-band .btn-primary { background: var(--yellow); }
  .btn-yellow:hover, .cta-band .btn-primary:hover { background: #FDF0D3; }
  .btn-secondary { color: #FCF8EC; border-color: var(--sage); }
  .btn-secondary:hover { color: #FCF8EC; background: var(--sage-soft); }
  .btn[disabled], .btn[aria-disabled="true"] { background: #39483E; color: #E0E6DB; border-color: #526958; }
  .cart-count, .step::before { color: #3B5145; }
  .cart-count { background: var(--pink); }
  .product-card, .core-card, .panel, .form-card, .buy-box, .extra-card,
  .step, .faq-list details, .empty-cart, .cart-item { border-color: #526958; }
  .product-card:nth-child(4n+2), .core-card:nth-child(4n+2) { border-color: #506675; }
  .product-card:nth-child(4n+3), .core-card:nth-child(4n+3) { border-color: #77545B; }
  .product-card:nth-child(4n), .core-card:nth-child(4n) { border-color: #75684A; }
  .addon label { border-color: #526958; }
  .addon.is-picked label { border-color: var(--pink); }
  input[type="text"], input[type="email"], select, textarea { background: #1E2420; color: #FCF8EC; border-color: #ACC5A7; }
  input::placeholder, textarea::placeholder { color: #C3CDBE; opacity: 1; }
  .checkbox input, .addon input { accent-color: var(--pink); }
  .draft-note { background: var(--yellow-soft); border-color: var(--yellow); color: #FCF8EC; }
  .draft-note strong { color: #FCF8EC; }
  .info-note { border-left-color: var(--blue); }
  .summary-total { border-top-color: #ACC5A7; }
  .skip-link, .toast { background: var(--sage-soft); color: #FCF8EC; border: 1px solid var(--sage); }
  .skip-link:focus { color: #FCF8EC; }
  .toast a { color: var(--yellow); }
  .footer-bottom { border-top-color: #526958; }
}
/* Sources select image assets only; never let them become grid/flex items. */
.theme-logo > source { display: none; }

/* Accent-only finish: neutral section rhythm and quiet card outlines. */
.section-mint, .dark-band, .cta-band, .preview-banner { background: var(--cream); }
.site-footer { background: var(--cream); border-top: 1px solid #DDDCD2; }
.footer-bottom { border-top-color: #DDDCD2; }
.product-card, .core-card, .panel, .form-card, .buy-box, .extra-card,
.step, .faq-list details, .empty-cart, .cart-item, .addon label { border-color: #DDDCD2; }
.product-card:nth-child(n), .core-card:nth-child(n) { border-color: #DDDCD2; border-top: 3px solid var(--sage); }
.product-card:nth-child(4n+2), .core-card:nth-child(4n+2) { border-top-color: var(--blue); }
.product-card:nth-child(4n+3), .core-card:nth-child(4n+3) { border-top-color: var(--pink); }
.product-card:nth-child(4n), .core-card:nth-child(4n) { border-top-color: var(--yellow); }
.addon.is-picked label { border-color: var(--deep); background: var(--white); }
.addon.is-covered label, .addon-free label { border-color: #DDDCD2; background: var(--white); }
.draft-note { background: var(--cream); border-color: #B7AE8B; color: var(--text); }
.draft-note strong { color: var(--text); }
.info-note { background: var(--white); border-left-width: 3px; }
.win { background: var(--white); border-top-width: 3px; }
.cover-yellow, .cover-sage, .cover-blue, .cover-pink { background: var(--cream); }
@media (prefers-color-scheme: dark) {
  main > .section, main > .section.section-white, .section-mint,
  .page-hero, .hero, .dark-band, .cta-band, .preview-banner { background: #1E2420; }
  .site-footer, .footer-bottom { border-color: #465149; }
  .product-card:nth-child(n), .core-card:nth-child(n), .panel, .form-card,
  .buy-box, .extra-card, .step, .faq-list details, .empty-cart, .cart-item,
  .addon label, .addon.is-covered label, .addon-free label { border-color: #465149; }
  .product-card:nth-child(n), .core-card:nth-child(n) { border-top-color: var(--sage); }
  .product-card:nth-child(4n+2), .core-card:nth-child(4n+2) { border-top-color: var(--blue); }
  .product-card:nth-child(4n+3), .core-card:nth-child(4n+3) { border-top-color: var(--pink); }
  .product-card:nth-child(4n), .core-card:nth-child(4n) { border-top-color: var(--yellow); }
  .addon.is-picked label { border-color: var(--pink); }
  .draft-note { background: #242B26; border-color: #807B69; }
  /* The supplied dark logo is opaque black: a deliberate rounded badge,
     not an accidental square against the neutral page. */
  img[src*="rainbow-hen-logo-light.webp"] { background: #000; border: 10px solid #000; border-radius: 24px; }
}
/* One consistent primary-button accent across the Library and CTA. */
.btn-yellow, .cta-band .btn-primary { background: #F9A9A8; color: #3B5145; }
.btn-yellow:hover, .cta-band .btn-primary:hover { background: #F8CCC5; color: #3B5145; }
