/* Puddlebury shop styles. Mobile first; wider layouts from 720px and 1040px. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1d2a24;
  --ink-soft: #4a5a52;
  --ink-faint: #75837b;
  --moss: #2f5d46;
  --moss-dark: #22463a;
  --moss-tint: #e4ede6;
  --welly: #f2c230;
  --welly-tint: #fdf3cf;
  --mud: #8a6a4f;
  --cream: #f8f5ee;
  --paper: #ffffff;
  --line: #e3ddd0;
  --line-strong: #cfc7b6;
  --danger: #b3261e;
  --success: #2e7d4f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 42, 36, 0.06), 0 10px 30px rgba(29, 42, 36, 0.08);
  --shadow-lg: 0 20px 60px rgba(29, 42, 36, 0.22);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--moss-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
}

h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 4.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--welly); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; }
.section { padding: 44px 0; }
.section-tight { padding: 28px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; white-space: nowrap; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mud); margin: 0 0 8px; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-lg { width: 28px; height: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--moss); color: #fff; }
.btn-primary:hover { background: var(--moss-dark); color: #fff; }
.btn-accent { background: var(--welly); color: var(--ink); }
.btn-accent:hover { background: #e6b51d; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0f1814; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.9rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--moss); font: inherit; text-decoration: underline; cursor: pointer; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  cursor: pointer; position: relative; text-decoration: none;
}
.icon-btn:hover { background: rgba(29, 42, 36, 0.06); color: var(--ink); }
.icon-btn .icon { width: 24px; height: 24px; }

/* Forms */
label { font-weight: 600; font-size: 0.92rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--font-body);
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(242, 194, 48, .45); }
.field-error { color: var(--danger); font-size: 0.875rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--moss); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 14px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; font-weight: 500; }
.notice-success { background: var(--moss-tint); color: var(--moss-dark); }
.notice-error { background: #fbe9e7; color: var(--danger); }
.notice-info { background: var(--welly-tint); color: var(--ink); }

/* Top bars */
.preview-bar { background: var(--ink); color: #f3efe4; font-size: 0.82rem; text-align: center; padding: 7px var(--gutter); }
.preview-bar strong { color: var(--welly); }
.announce { background: var(--moss); color: #f3efe4; font-size: 0.86rem; font-weight: 500; text-align: center; padding: 8px var(--gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(248, 245, 238, 0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: 'left logo right'; align-items: center; height: var(--header-h); }
.header-left { grid-area: left; }
.header-logo { grid-area: logo; }
.desktop-nav { grid-area: nav; }
.header-right { grid-area: right; }
.header-left, .header-right { display: flex; align-items: center; gap: 2px; }
.drawer-content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.header-right { justify-content: flex-end; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; color: var(--moss); }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; }
.basket-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--welly); color: var(--ink);
  font-size: 0.72rem; font-weight: 700; line-height: 19px; text-align: center;
}
.basket-count[hidden] { display: none; }
.desktop-nav { display: none; }

/* Drawers */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(15, 24, 20, 0.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 70; width: min(92vw, 420px);
  background: var(--cream); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transition: transform .25s ease; visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-left { left: 0; transform: translateX(-102%); width: min(86vw, 360px); }
.drawer-right { right: 0; transform: translateX(102%); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); min-height: var(--header-h); }
.drawer-head h2 { font-size: 1.25rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--paper); }

.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.mobile-nav .nav-sub a { font-weight: 500; font-size: 0.98rem; color: var(--ink-soft); }
.mobile-nav h3 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mud); margin: 24px 0 4px; }

/* Basket drawer contents */
.free-bar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-size: 0.92rem; }
.free-bar strong { color: var(--moss-dark); }
.progress { height: 8px; background: var(--moss-tint); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--moss); border-radius: 999px; }
.line-items { list-style: none; margin: 0; padding: 0; }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item .art, .line-item img { border-radius: var(--radius-sm); width: 72px; aspect-ratio: 4 / 5; object-fit: cover; }
.line-item h3 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin: 0 0 2px; letter-spacing: 0; }
.line-item h3 a { color: var(--ink); text-decoration: none; }
.line-item .variant { font-size: 0.85rem; color: var(--ink-soft); }
.line-price { font-weight: 600; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; margin-top: 8px; background: var(--paper); }
.qty button { width: 36px; height: 34px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.qty button .icon { width: 16px; height: 16px; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.remove { margin-top: 6px; font-size: 0.82rem; color: var(--ink-soft); }
.addon { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px; margin: 16px 0; background: var(--welly-tint); border-radius: var(--radius-sm); }
.addon .art { width: 56px; border-radius: 8px; }
.addon p { margin: 0; font-size: 0.88rem; }
.addon strong { display: block; font-size: 0.92rem; }
.code-form { display: flex; gap: 8px; margin: 12px 0 4px; }
.code-form .input { min-height: 42px; padding: 8px 12px; }
.totals { display: grid; gap: 6px; margin: 0 0 14px; font-size: 0.95rem; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .grand { font-weight: 700; font-size: 1.1rem; padding-top: 8px; border-top: 1px solid var(--line); }
.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.pay-icons span { font-size: 0.72rem; font-weight: 700; letter-spacing: .02em; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-soft); background: var(--paper); }
.empty-basket { text-align: center; padding: 40px 0; }
.empty-basket .icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--moss); }

/* Placeholder product art, used until real photos are uploaded */
.art {
  --tint: #4f6b52;
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; width: 100%;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .35) 0 2px, transparent 3px) 0 0 / 26px 34px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .25) 0 1.5px, transparent 2.5px) 0 0 / 34px 30px,
    linear-gradient(160deg, color-mix(in srgb, var(--tint) 32%, #f8f5ee) 0%, color-mix(in srgb, var(--tint) 62%, #f8f5ee) 100%);
  display: grid; place-items: center; color: color-mix(in srgb, var(--tint) 55%, #0f1814);
}
.art .art-main { width: 46%; height: auto; stroke-width: 1.4; }
.art .art-extra { position: absolute; right: 12%; top: 12%; width: 18%; height: auto; stroke-width: 1.6; opacity: .8; }
.art .art-puddle { position: absolute; left: 50%; bottom: 13%; width: 58%; height: 9%; transform: translateX(-50%); border-radius: 50%; background: rgba(15, 24, 20, .12); }
.art-label { position: absolute; left: 10px; bottom: 10px; font-size: 0.68rem; font-weight: 600; color: rgba(15, 24, 20, .55); letter-spacing: .02em; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--moss-dark); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media.is-art {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .16) 0 2px, transparent 3px) 0 0 / 30px 42px,
    radial-gradient(circle at 65% 75%, rgba(255, 255, 255, .12) 0 1.5px, transparent 2.5px) 0 0 / 44px 36px,
    linear-gradient(170deg, #3d7158 0%, #22463a 70%);
}
.hero-media .hero-dog { position: absolute; right: -6%; bottom: -4%; width: 70%; max-width: 520px; color: rgba(255, 255, 255, .14); stroke-width: 1.1; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 24, 20, .05) 0%, rgba(15, 24, 20, .55) 100%); }
.hero-inner { position: relative; min-height: min(78vh, 620px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 80px; padding-bottom: 40px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 11vw, 5rem); line-height: 1; margin-bottom: 14px; max-width: 12ch; }
.hero p { font-size: 1.08rem; max-width: 34ch; color: rgba(255, 255, 255, .92); margin-bottom: 22px; }
.hero .btn { align-self: flex-start; }

.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0 auto; padding-top: 14px; padding-bottom: 14px; display: grid; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.trust .icon { color: var(--moss); width: 22px; height: 22px; }

/* Shop by problem */
.problems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.problem {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; min-height: 150px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.problem:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.problem .icon { width: 30px; height: 30px; color: var(--moss); }
.problem strong { font-family: var(--font-display); font-size: 1.15rem; }
.problem span { font-size: 0.88rem; color: var(--ink-soft); }
.problem em { margin-top: auto; font-style: normal; font-weight: 600; font-size: 0.85rem; color: var(--moss); display: inline-flex; align-items: center; gap: 4px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.card-media img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; transition: opacity .25s ease; }
.card-media .alt-img { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media .alt-img { opacity: 1; }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--welly); color: var(--ink); font-size: 0.72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-price { font-weight: 600; }
.card-price .was { color: var(--ink-faint); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(15, 24, 20, .18); display: block; }
.card-add { position: relative; z-index: 2; margin-top: 8px; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: #d4a017; }
.stars .icon { width: 14px; height: 14px; }
.stars .is-empty { color: var(--line-strong); }
.stars + small { color: var(--ink-soft); margin-left: 4px; }
.rating-line { display: flex; align-items: center; font-size: 0.82rem; }

/* Spotlight and bundle */
.spotlight { display: grid; gap: 22px; align-items: center; }
.spotlight .art, .spotlight img, .spotlight video { border-radius: var(--radius); }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--moss); width: 22px; height: 22px; margin-top: 1px; }
.bundle-card {
  display: grid; gap: 18px; align-items: center; padding: 22px;
  background: var(--welly-tint); border: 2px solid var(--welly); border-radius: calc(var(--radius) + 4px);
}
.bundle-card .art { max-width: 260px; }
.bundle-card h2, .bundle-card h3 { margin-bottom: 6px; }
.bundle-price { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); }
.bundle-price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.saving { display: inline-block; background: var(--moss); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.grid .bundle-tile { grid-column: 1 / -1; }
.grid-item { display: contents; }
.grid-item[hidden] { display: none; }

/* Reviews */
.review-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.review-card { scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.review-card img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; }
.review-card h3 { font-family: var(--font-body); font-size: 1rem; margin: 0; letter-spacing: 0; }
.review-card p { margin: 0; font-size: 0.95rem; }
.review-meta { font-size: 0.82rem; color: var(--ink-soft); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-weight: 600; font-size: 0.8rem; }
.verified .icon { width: 14px; height: 14px; }
.empty-reviews { background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--ink-soft); }

/* Story teaser */
.story { display: grid; gap: 16px; padding: 28px 22px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.story p { font-size: 1.05rem; margin: 0; }

/* FAQ / accordions */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 2px; font-weight: 600; font-size: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .2s ease; color: var(--ink-soft); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion .panel { padding: 0 2px 18px; color: var(--ink-soft); }
.accordion .panel > :last-child { margin-bottom: 0; }

/* Sign-up */
.signup { background: var(--moss); color: #fff; border-radius: calc(var(--radius) + 4px); padding: 28px 22px; }
.signup h2 { color: #fff; margin-bottom: 6px; }
.signup p { color: rgba(255, 255, 255, .88); }
.signup-form { display: grid; gap: 10px; margin-top: 14px; }
.signup-form .input { border-color: transparent; }
.signup small { display: block; margin-top: 10px; color: rgba(255, 255, 255, .78); font-size: 0.8rem; }
.signup small a { color: #fff; }
.signup-done { background: rgba(255, 255, 255, .12); padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; }

/* Footer */
.site-footer { background: var(--moss-dark); color: rgba(255, 255, 255, .85); margin-top: 56px; padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 0.92rem; }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 16px; margin: 30px 0; }
.footer-cols h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--welly); margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-mark { color: var(--welly); }
.footer-brand p { margin: 8px 0 0; max-width: 40ch; }
.socials { display: flex; gap: 6px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.socials .icon { width: 18px; height: 18px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; display: grid; gap: 10px; font-size: 0.82rem; color: rgba(255, 255, 255, .7); }
.footer-legal .pay-icons { justify-content: flex-start; margin: 0; }
.footer-legal .pay-icons span { background: transparent; color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .3); }
.footer-legal button { color: rgba(255, 255, 255, .9); }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin: 16px 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-soft); }

/* Collection page */
.collection-head { padding: 8px 0 18px; }
.collection-head p { color: var(--ink-soft); max-width: 60ch; margin: 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .select { width: auto; min-height: 40px; padding: 8px 34px 8px 14px; border-radius: 999px; font-size: 0.9rem; flex: none; appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d2a24' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.filters .clear { flex: none; align-self: center; font-size: 0.88rem; font-weight: 600; padding: 0 6px; }
.result-count { font-size: 0.88rem; color: var(--ink-soft); margin: 6px 0 16px; }
.load-more { display: flex; justify-content: center; margin-top: 28px; }
.buying-guide { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Product page */
.product { display: grid; gap: 24px; }
.gallery { position: relative; margin: 0 calc(var(--gutter) * -1); }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > * { scroll-snap-align: start; }
.gallery-track img, .gallery-track video, .gallery-track .art { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line-strong); cursor: pointer; }
.gallery-dots button.is-active { background: var(--moss); width: 22px; border-radius: 999px; }
.gallery-thumbs { display: none; }
.product-info h1 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); margin-bottom: 8px; }
.product-tagline { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 12px; }
.product-price { font-size: 1.45rem; font-weight: 700; margin: 10px 0 4px; font-family: var(--font-display); }
.product-price .was { font-family: var(--font-body); font-size: 1rem; color: var(--ink-faint); text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.price-note { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 18px; }
.option-group { border: 0; padding: 0; margin: 0 0 18px; }
.option-group legend { display: flex; justify-content: space-between; width: 100%; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; padding: 0; }
.option-group legend a { font-weight: 500; }
.option-group legend .chosen { font-weight: 400; color: var(--ink-soft); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.opt span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 52px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper);
  font-weight: 600; font-size: 0.92rem;
}
.opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + span { outline: 3px solid var(--welly); outline-offset: 2px; }
.opt input:disabled + span, .opt.is-unavailable span { color: var(--ink-faint); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(29, 42, 36, .05) 6px 7px), var(--paper); text-decoration: line-through; }
.opt .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(15, 24, 20, .2); }
.buy-buttons { display: grid; gap: 10px; margin: 6px 0 16px; }
.stock-note { font-size: 0.88rem; color: var(--danger); font-weight: 600; min-height: 1.2em; }
.promise { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; font-size: 0.92rem; margin-bottom: 20px; }
.promise div { display: flex; gap: 10px; align-items: flex-start; }
.promise .icon { color: var(--moss); width: 22px; height: 22px; }
.bundle-offer { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px; margin: 0 0 20px; border-radius: var(--radius); background: var(--welly-tint); border: 1.5px solid var(--welly); text-decoration: none; color: var(--ink); }
.bundle-offer .art { width: 76px; border-radius: 10px; }
.bundle-offer p { margin: 0; font-size: 0.9rem; }
.bundle-offer strong { display: block; }
.kit-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.kit-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.92rem; }
.kit-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(29, 42, 36, .08); transform: translateY(110%); transition: transform .2s ease;
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy strong { display: block; font-size: 0.9rem; line-height: 1.2; }
.sticky-buy span { font-size: 0.85rem; color: var(--ink-soft); }
.sticky-buy .btn { flex: none; min-height: 44px; padding: 10px 18px; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.reviews-head .big { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.review-list { display: grid; gap: 12px; }

/* Prose for help, legal and guide pages */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.45rem; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.12rem; margin: 1.5em 0 .4em; }
.prose p, .prose li { color: #2c3a33; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; white-space: nowrap; }
.prose th { background: var(--moss-tint); }
.prose blockquote { margin: 0 0 1em; padding: 12px 16px; background: var(--paper); border-left: 4px solid var(--welly); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose > :first-child { margin-top: 0; }
mark.todo { background: #ffe08a; color: var(--ink); padding: 1px 4px; border-radius: 4px; font-weight: 600; font-size: 0.92em; }
.page-head { padding: 12px 0 8px; }
.page-head p { color: var(--ink-soft); max-width: 60ch; }
.page-layout { display: grid; gap: 32px; }
.side-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; align-self: start; }
.side-nav h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mud); margin: 0 0 8px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.updated { font-size: 0.85rem; color: var(--ink-faint); margin-top: 28px; }

/* Guides */
.guide-grid { display: grid; gap: 16px; }
.guide-card { display: grid; gap: 8px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.guide-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.guide-card h2, .guide-card h3 { font-size: 1.25rem; margin: 0; }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Panels (forms, order pages) */
.panel-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.order-steps { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.order-steps li { display: flex; gap: 10px; align-items: center; color: var(--ink-faint); }
.order-steps li.is-done { color: var(--ink); font-weight: 600; }
.order-steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; flex: none; }
.order-steps li.is-done .dot { background: var(--moss); border-color: var(--moss); color: #fff; }
.order-steps .dot .icon { width: 13px; height: 13px; }
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.summary-table td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary-table td:last-child { text-align: right; white-space: nowrap; }
.summary-table tr.total td { font-weight: 700; border-bottom: 0; }

/* Star rating input */
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: var(--line-strong); }
.star-input label .icon { width: 34px; height: 34px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #d4a017; }
.star-input input:focus-visible + label { outline: 3px solid var(--welly); border-radius: 6px; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; max-width: 520px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px; font-size: 0.92rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: 6px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cookie-actions .wide { grid-column: 1 / -1; }
.cookie-choices { display: grid; gap: 10px; margin: 12px 0 0; }
.cookie-choices[hidden] { display: none; }

/* Sign-up pop-up */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; padding: 12px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 24, 20, .5); }
.modal-card { position: relative; width: 100%; max-width: 440px; background: var(--paper); border-radius: calc(var(--radius) + 4px); padding: 26px 22px 22px; box-shadow: var(--shadow-lg); }
.modal-card .icon-btn { position: absolute; top: 8px; right: 8px; }
.modal-card h2 { margin-bottom: 6px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 95; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow-lg); transition: transform .25s ease; max-width: calc(100vw - 32px);
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }
.toast.is-error { background: var(--danger); }

.error-page { text-align: center; padding: 56px 0 24px; }
.error-page .icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--moss); }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form .input { flex: 1; }
.error-page .search-form { margin: 20px auto 0; }

@media (min-width: 720px) {
  :root { --gutter: 24px; --header-h: 68px; }
  .section { padding: 64px 0; }
  .trust ul { grid-template-columns: repeat(3, auto); justify-content: center; gap: 36px; }
  .problems { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
  .spotlight { grid-template-columns: 1fr 1fr; gap: 48px; }
  .bundle-card { grid-template-columns: 240px 1fr; padding: 28px; }
  .review-strip { grid-auto-columns: minmax(280px, 1fr); grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .story { grid-template-columns: 1fr auto; align-items: center; padding: 36px; }
  .signup { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
  .signup-form { grid-template-columns: 1fr auto; margin-top: 0; }
  .footer-cols { grid-template-columns: 1.6fr repeat(4, 1fr); }
  .footer-brand { grid-column: auto; }
  .product { grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
  .gallery { margin: 0; position: sticky; top: calc(var(--header-h) + 16px); }
  .gallery-track img, .gallery-track video, .gallery-track .art { border-radius: var(--radius); }
  .gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
  .gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
  .gallery-thumbs button.is-active { border-color: var(--ink); }
  .gallery-thumbs img, .gallery-thumbs .art { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
  .gallery-dots { display: none; }
  .buy-buttons { grid-template-columns: 1fr 1fr; }
  .sticky-buy { display: none; }
  .page-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .modal { place-items: center; }
  .cookie-banner { left: 20px; bottom: 20px; }
}

@media (min-width: 1040px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-inner { min-height: 640px; padding-bottom: 72px; }
}

@media (min-width: 1140px) {
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-areas: 'logo nav right'; gap: 28px; }
  .header-left { display: none; }
  .desktop-nav { display: flex; gap: 20px; justify-content: center; }
  .desktop-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .desktop-nav a:hover, .desktop-nav a[aria-current='page'] { border-color: var(--welly); }
}

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

/* Promotions and extra energy */
.announce-promo { background: var(--welly); color: var(--ink); font-size: 0.9rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.announce-promo strong { font-weight: 800; }
.announce-until { font-weight: 600; }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; background: var(--ink); color: var(--welly); padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; }
.countdown[hidden] { display: none; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: rgba(242, 194, 48, .16); color: var(--welly); border: 1px solid rgba(242, 194, 48, .5); border-radius: 999px; padding: 6px 14px; font-size: 0.86rem; font-weight: 700; margin-bottom: 18px; backdrop-filter: blur(4px); }
.hero-pill .icon { width: 16px; height: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.hero-media.is-art::after {
  content: ''; position: absolute; left: 0; right: 0; top: -60px; bottom: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 1px 9px at 8px 12px, rgba(255, 255, 255, .5) 98%, transparent 100%),
    radial-gradient(ellipse 1px 7px at 31px 41px, rgba(255, 255, 255, .38) 98%, transparent 100%),
    radial-gradient(ellipse 1px 10px at 47px 24px, rgba(255, 255, 255, .32) 98%, transparent 100%);
  background-size: 56px 60px;
  animation: rain-fall .8s linear infinite;
}
@keyframes rain-fall { from { transform: translateY(0); } to { transform: translateY(60px); } }
.marquee { background: var(--ink); color: #f3efe4; overflow: hidden; border-bottom: 3px solid var(--welly); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 13px 17px; }
.marquee li { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; font-size: 0.92rem; }
.marquee .icon { color: var(--welly); width: 20px; height: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.promo-band { display: grid; gap: 16px; align-items: center; padding: 26px 22px; border-radius: calc(var(--radius) + 6px); background: var(--welly) radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .45) 0 60px, transparent 61px); color: var(--ink); box-shadow: var(--shadow); }
.promo-band h2 { font-size: clamp(2rem, 8vw, 3rem); margin: 0 0 6px; }
.promo-band p { margin: 0; font-weight: 500; }
.promo-band .eyebrow { color: var(--moss-dark); }
.card-promo { position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--ink); color: var(--welly); font-size: 0.75rem; font-weight: 800; padding: 4px 8px; border-radius: 999px; }
.promo-price { display: flex; gap: 8px; align-items: flex-start; background: var(--welly-tint); border: 1.5px solid var(--welly); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.9rem; margin: 6px 0 10px; }
.promo-price .icon { color: var(--moss-dark); margin-top: 2px; }
.discount-line { color: var(--moss-dark); font-weight: 600; }
.card { transition: transform .18s ease; }
.card:hover { transform: translateY(-3px); }
.card:hover .card-media { box-shadow: var(--shadow); }
.btn-accent, .btn-primary { box-shadow: 0 6px 18px rgba(29, 42, 36, .14); }
@media (min-width: 720px) {
  .promo-band { grid-template-columns: 1fr auto; padding: 34px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-media.is-art::after { animation: none; }
}

/* On phones the hero photo sits behind the headline, so the shade is stronger there. */
@media (max-width: 719px) {
  .hero-media img + .hero-scrim { background: linear-gradient(180deg, rgba(15, 24, 20, .35) 0%, rgba(15, 24, 20, .72) 45%, rgba(15, 24, 20, .86) 100%); }
}
