/* CoopKeeper — shared styles */
:root {
  --green: #2f5d3a;
  --green-dk: #1f3f28;
  --green-mid: #3d7049;
  --green-lt: #e8f1e4;
  --cream: #f7f1e6;
  --cream-dk: #efe6d6;
  --terracotta: #c45c26;
  --terracotta-dk: #9c4318;
  --brown: #6b4a2b;
  --ink: #1f1a14;
  --muted: #5c564c;
  --line: #d4cbba;
  --paper: #fffbf5;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(31, 26, 20, 0.10);
  --shadow-sm: 0 6px 18px rgba(31, 26, 20, 0.07);
  --radius: 18px;
  --max: 1120px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Nunito Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dk); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dk); }
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--green-dk);
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.wrap-narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }

h1, h2, h3, h4, .wordmark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 580; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-dk);
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.wordmark {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.4rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--green-dk);
  border-bottom-color: var(--green);
}
.nav-cta {
  margin-left: 0.4rem;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { display: block; }

@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.1rem;
    gap: 0.25rem;
  }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--cream-dk); }
  .nav-cta { margin: 0.5rem 0 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--green-dk);
  color: var(--cream);
}
.btn-primary:hover { background: var(--green); color: var(--cream); }
.btn-secondary {
  background: transparent;
  color: var(--green-dk);
  border-color: var(--green);
}
.btn-secondary:hover { background: var(--green-lt); color: var(--green-dk); }
.btn-terracotta {
  background: var(--terracotta);
  color: #fff;
}
.btn-terracotta:hover { background: var(--terracotta-dk); color: #fff; }
.btn[disabled], .btn-disabled {
  background: var(--cream-dk);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  pointer-events: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
}
.hero-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/3; }
.hero-photo figcaption {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 800px) {
  .hero { padding: 1.75rem 0 1.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-photo img { aspect-ratio: 16/10; }
}

/* Sections */
section { padding: 3.25rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }
.band-cream { background: var(--cream); }
.band-green {
  background: var(--green-dk);
  color: var(--cream);
}
.band-green h2, .band-green h3 { color: var(--cream); }
.band-green p { color: color-mix(in srgb, var(--cream) 85%, transparent); }

/* Category cards */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.cat-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--cream); }
.cat-body { padding: 1.2rem 1.3rem 1.4rem; }
.cat-body h2 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.cat-body p { margin: 0; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--green-lt);
  color: var(--green-dk);
  margin-bottom: 0.55rem;
}
.tag-soon { background: #fbe8d8; color: var(--terracotta-dk); }

@media (max-width: 700px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.product-card img { width: 100%; aspect-ratio: 16/11; object-fit: contain; object-position: center; background: var(--cream-dk); }
.product-card .body { padding: 1.25rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin-bottom: 0.25rem; }
.product-card .price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-dk);
  margin: 0.35rem 0 0.6rem;
}
.price-note {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.product-card p { color: var(--muted); margin: 0 0 1rem; flex: 1; }
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--cream) 40%, transparent);
}
.band-green .step { background: color-mix(in srgb, #ffffff 8%, transparent); border-color: color-mix(in srgb, var(--cream) 18%, transparent); }
.step-num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; }
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
}

/* FAQ */
.faq { display: grid; gap: 0.7rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.2rem 0.2rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 0.95rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-top: -0.25rem;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 0.2rem; }
.faq details p, .faq details ul {
  margin: 0 1.15rem 1.1rem;
  color: var(--muted);
}
.faq details ul { padding-left: 1.15rem; }

/* Product page */
.product-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 1rem;
}
.product-hero .preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}
.product-hero .preview img { width: 100%; }
.buy-box .price { font-size: 2rem; margin: 0.4rem 0 0.3rem; font-family: var(--serif); color: var(--green-dk); }
.buy-box .fineprint { font-size: 0.9rem; color: var(--muted); margin: 0.75rem 0 0; }
.notice {
  background: var(--cream);
  border-left: 4px solid var(--terracotta);
  padding: 0.85rem 1rem;
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  margin: 1rem 0;
  font-size: 0.95rem;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.feature-list li {
  padding-left: 1.5rem;
  position: relative;
}
.feature-list li::before {
  content: "";
  width: 0.55rem; height: 0.35rem;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 0;
}
.gallery figure {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.gallery img { width: 100%; }
.gallery figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.65rem 0.85rem 0.85rem;
}
@media (max-width: 800px) {
  .product-hero, .gallery { grid-template-columns: 1fr; }
}

/* Sample grid (coloring) */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.sample-grid figure { margin: 0; }
.sample-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
@media (max-width: 800px) {
  .sample-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Legal / contact */
.legal { padding: 2.5rem 0 4rem; }
.legal h1 { margin-bottom: 0.4rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--ink); }
.crumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.crumb a { color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--green-dk);
  color: color-mix(in srgb, var(--cream) 88%, transparent);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-brand .wordmark { color: var(--cream); font-size: 1.15rem; }
.site-footer h2 {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 750;
  margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.legal-row {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-size: 0.88rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Utility */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .split-2 { grid-template-columns: 1fr; }
}
.lede { font-size: 1.12rem; }

.product-card h3 a { text-decoration: none; color: inherit; }
.product-card h3 a:hover { color: var(--green-dk); text-decoration: underline; }
.cat-card h2 { color: inherit; }
