:root {
  --sage: #6f8a76;
  --sage-dark: #4f6656;
  --sage-soft: #e3eae3;
  --cream: #f6f1e9;
  --sand: #e9dfd0;
  --sand-dark: #d8ccb8;
  --ink: #2f3430;
  --muted: #646a65;
  --card: #fffdf9;
  --line: #ebe2d4;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: "Fraunces", Georgia, serif; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(246, 241, 233, .92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.site.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { width: 38px; height: 38px; }
.wordmark { font-family: "Fraunces", Georgia, serif; font-size: 23px; font-weight: 500; letter-spacing: .2px; }
nav.links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 0; background: var(--sage-dark); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
nav.links a.btn { color: #fff; }

/* Hero */
.hero { padding-top: 64px; padding-bottom: 88px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--sage-dark); background: var(--sage-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(42px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -1.2px; margin-bottom: 22px; }
h1 em { font-style: italic; color: var(--sage); font-weight: 400; }
.lead { font-size: 18px; color: var(--muted); max-width: 31em; margin-bottom: 30px; }

/* Signup form */
.signup { display: flex; gap: 10px; max-width: 460px; flex-wrap: wrap; }
.signup input[type=email] {
  flex: 1 1 220px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--sand);
  background: #fff; font: inherit; color: var(--ink);
}
.signup input[type=email]:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.signup input.invalid { border-color: #b4533c; }
.hidden { display: none !important; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.note a { color: var(--sage-dark); }
.status { font-weight: 500; margin-top: 12px; font-size: 15px; }
.status.ok { color: var(--sage-dark); }
.status.err { color: #a2452f; }

/* Hero art */
.art { aspect-ratio: 1 / 1; border-radius: 32px; background: var(--sand); display: grid; place-items: center; overflow: hidden; }
.art svg { width: 84%; height: auto; }

/* Sections */
section { padding: 88px 0; }
[id] { scroll-margin-top: 72px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 10px; }
h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -.5px; margin-bottom: 18px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 36em; margin-bottom: 40px; }

/* Pillars */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sage-soft); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; stroke: var(--sage-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }

/* Product preview */
.product { background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 48px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.product .visual { background: var(--sage-soft); border-radius: 24px; aspect-ratio: 4 / 3.2; display: grid; place-items: center; }
.product .visual svg { width: 82%; height: auto; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #8a6b3f; background: #f3e7d3; padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.features { list-style: none; display: grid; gap: 14px; margin: 26px 0 30px; }
.features li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--ink); }
.features li svg { width: 22px; height: 22px; margin-top: 2px; stroke: var(--sage); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.features li span { color: var(--muted); }
.features li b { font-weight: 600; color: var(--ink); }

/* Shop */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--muted);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: all .15s;
}
.tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--ink); border-color: var(--sand-dark); }
.tab[aria-selected="true"] { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.panel-blurb { color: var(--muted); margin-bottom: 22px; }
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ph { aspect-ratio: 1 / 1; background: var(--sand); display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--sage-dark); }
.product-card:nth-child(2n) .ph { background: var(--sage-soft); }
.ph svg { width: 40px; height: 40px; stroke: var(--sage-dark); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.ph.has-img { display: block; background: #fff; position: relative; border: 0; padding: 0; width: 100%; cursor: zoom-in; }
.ph.has-img img { width: 100%; height: 100%; object-fit: contain; }
.ph.has-img:focus-visible { outline: 3px solid var(--sage); outline-offset: -3px; }
.photo-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(47, 52, 48, .78); color: #fff; font-size: 12px; font-weight: 600; }
.photo-count svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lb-scrim { position: absolute; inset: 0; background: rgba(30, 33, 31, .7); }
.lb-panel { position: relative; width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--cream); border-radius: 22px; padding: 16px; display: grid; gap: 12px; }
.lb-head { display: flex; align-items: center; gap: 12px; }
.lb-title { flex: 1; font-size: 16px; }
.lb-pos { color: var(--muted); font-size: 13px; }
.lb-stage { position: relative; background: #fff; border-radius: 16px; overflow: hidden; }
.lb-img { width: 100%; max-height: 64vh; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.92); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-nav[hidden] { display: none; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.lb-thumbs[hidden] { display: none; }
.lb-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: #fff; overflow: hidden; cursor: pointer; }
.lb-thumbs button[aria-current="true"] { border-color: var(--sage-dark); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ph span { font-size: 12px; font-weight: 500; letter-spacing: .3px; color: var(--muted); }
.pc-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pstatus { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); background: var(--cream); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
.pstatus.dev { color: #8a6b3f; background: #f3e7d3; border-color: #ead8ba; }
.pstatus.avail { color: #fff; background: var(--sage); border-color: var(--sage); }
.product-card h3 { font-size: 16px; font-weight: 600; line-height: 1.3; margin-top: 4px; }
.detail { color: var(--muted); font-size: 14px; line-height: 1.45; flex: 1; }
.price { font-weight: 600; }
.buy-row { display: grid; gap: 6px; margin-top: 8px; }
.buy {
  display: flex; justify-content: center; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px;
  font-size: 13px; font-weight: 600; text-decoration: none; background: var(--sage-dark); color: #fff;
}
.buy:hover { background: var(--ink); }
.buy.soon { background: transparent; color: var(--muted); border: 1px dashed var(--sand-dark); cursor: default; }
.buy.soon small { font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #a59a88; }
button.buy { border: 0; font-family: inherit; cursor: pointer; width: 100%; }
.buy.alt { background: transparent; color: var(--sage-dark); border: 1.5px solid var(--sage-dark); }
.buy.alt:hover { background: var(--sage-soft); color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Cart button + drawer */
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.cart-btn:hover { border-color: var(--sand-dark); }
.cart-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--sage-dark); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.no-scroll { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(47, 52, 48, .35); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--cream); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.12); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; margin: 0; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: grid; gap: 12px; align-content: start; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot:empty { display: none; }
.empty { text-align: center; padding: 28px 8px; display: grid; gap: 10px; justify-items: center; }
.empty a.btn { color: #fff; }

/* Cart lines (drawer + checkout) */
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; }
.line > div:first-child { display: grid; }
.line .muted { font-size: 13px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.line-total { font-weight: 600; min-width: 64px; text-align: right; }
.sum { display: flex; justify-content: space-between; gap: 12px; }
.sum.total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 18px; }

/* Checkout page */
.checkout { padding-top: 48px; padding-bottom: 88px; }
.co-title { font-size: clamp(36px, 5vw, 52px); }
.co-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; margin-top: 12px; }
.co-items { display: grid; gap: 12px; }
.co-items .card { padding: 20px; }
.co-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; position: sticky; top: 92px; }
.co-summary h2 { font-size: 24px; margin: 0 0 4px; }
.co-summary a { color: var(--sage-dark); }
.co-pay { width: 100%; margin-top: 6px; }
.co-pay svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-pay:disabled { opacity: .45; cursor: not-allowed; }
.alt-btn { background: transparent; color: var(--sage-dark) !important; border: 1.5px solid var(--sage-dark); }
.alt-btn:hover { background: var(--sage-soft); }

.notify { font-size: 13px; font-weight: 600; color: var(--sage-dark); text-decoration: none; margin-top: 6px; }
.notify:hover { text-decoration: underline; }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.story blockquote { font-family: "Fraunces", Georgia, serif; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; color: var(--sage-dark); border-left: 3px solid var(--sage); padding-left: 24px; }

/* Promise band */
.promise { background: var(--sage-dark); color: var(--cream); border-radius: 32px; padding: 60px 48px; }
.promise h2 { color: var(--cream); margin-bottom: 32px; }
.promise .eyebrow { color: var(--sage-soft); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.points h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.points p { color: #d9e2da; font-size: 15px; }

/* FAQ */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--sage); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; max-width: 40em; }
details a { color: var(--sage-dark); }

/* Final CTA */
.cta { text-align: center; background: var(--sand); border-radius: 32px; padding: 64px 24px; }
.cta .signup { margin: 0 auto; justify-content: center; }
.cta .section-lead { margin: 0 auto 28px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--sage-dark); font-weight: 500; }
.foot a:hover { text-decoration: underline; }

/* Simple pages (privacy, 404) */
.page { max-width: 760px; padding-top: 56px; padding-bottom: 88px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page h2 { font-size: 24px; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); margin-bottom: 12px; }
.page ul { padding-left: 22px; }
.page a { color: var(--sage-dark); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 1080px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) {
  nav.links a.btn { display: none; }
  .products { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 64%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .product-card { scroll-snap-align: start; }
}
@media (max-width: 880px) {
  nav.links a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 64px; gap: 40px; }
  .art { max-width: 460px; }
  .grid3, .points { grid-template-columns: 1fr; }
  .product, .story, .co-grid { grid-template-columns: 1fr; gap: 32px; }
  .co-summary { position: static; }
  .product { padding: 28px 22px; }
  .promise { padding: 44px 24px; }
  section { padding: 64px 0; }
}
