/* Keep It In Cash — design system
   Warm neutrals (ivory, cream, sand, muted brown, charcoal); the logo's plum is a small accent only. */
:root {
  --ivory: #fbf8f2;
  --cream: #f4eee3;
  --sand: #e9e0d1;
  --line: #e2d7c5;
  --line-strong: #cbbda7;
  --taupe: #9c8a72;
  --brown: #6e5847;
  --charcoal: #24201c;
  --ink-2: #5a524a;
  --plum: #270949;
  --plum-hover: #3e1b6b;
  --ok: #3f6b4e;
  --error: #9b2c2c;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --shadow-print: 0 1px 1px rgba(60, 40, 20, .08), 0 6px 12px -4px rgba(60, 40, 20, .16), 0 26px 40px -18px rgba(60, 40, 20, .32);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --header-h: 76px;
}

*, *::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(--ivory); color: var(--charcoal); font: 400 1rem/1.65 var(--sans); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-hover); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--charcoal); line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--brown); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--charcoal); color: #fff; padding: 12px 16px; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--ink-2); }
.small-print { font-size: .85rem; color: var(--ink-2); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }
.narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.tone { background: var(--cream); }
.page-pad { padding-top: 48px; padding-bottom: 80px; }
.eyebrow { font: 600 .72rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brown); margin-bottom: 14px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-intro { color: var(--ink-2); font-size: 1.05rem; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.head-row .section-head { margin-bottom: 40px; }
.head-row .link-arrow { margin-bottom: 40px; }

/* ---------- Icons, buttons, links */
.icon { width: 22px; height: 22px; flex: none; }
.icon.tiny { width: 16px; height: 16px; vertical-align: -3px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 28px;
  border: 1px solid var(--plum); border-radius: 3px; background: var(--plum); color: #fff;
  font: 600 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--plum-hover); border-color: var(--plum-hover); color: #fff; }
.btn-line { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-line:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .74rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-arrow, .link-quiet { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: .9rem; color: var(--charcoal); text-decoration: none; border-bottom: 1px solid currentColor; }
.link-quiet { border-bottom-color: var(--line-strong); font-weight: 500; }
.link-arrow:hover, .link-quiet:hover { color: var(--plum); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--charcoal); border-radius: 50%; cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--cream); }

/* ---------- Announcement + header */
.announce { background: var(--charcoal); color: var(--ivory); text-align: center; font-size: .82rem; letter-spacing: .04em; padding: 9px 16px; }
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 242, .97); border-bottom: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: 12px; }
.brand { justify-self: center; display: inline-flex; padding: 6px 0; }
.brand img { height: 52px; width: auto; }
.header-tools { justify-self: end; display: flex; gap: 2px; }
.only-mobile { justify-self: start; }
.main-nav { display: none; }
.bag-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--plum); color: #fff; font: 700 .68rem/18px var(--sans); text-align: center;
}
@media (min-width: 1080px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 32px; }
  .brand { justify-self: start; }
  .only-mobile { display: none; }
  .main-nav { display: block; justify-self: center; }
  .main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .nav-top { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--charcoal); text-decoration: none; font-size: .86rem; font-weight: 500; letter-spacing: .02em; }
  .nav-top:hover { color: var(--plum); }
  .has-menu { display: flex; align-items: center; }
  .menu-toggle { width: 28px; height: 44px; margin-left: -10px; border: 0; background: none; cursor: pointer; color: var(--charcoal); }
  .mega {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(40, 25, 10, .4); opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mega-inner { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 48px; padding-top: 36px; padding-bottom: 40px; }
  .mega-list { list-style: none; padding: 0; margin: 0; }
  .mega-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--charcoal); text-decoration: none; }
  .mega-list a:hover { color: var(--plum); }
  .mega-list span { color: var(--taupe); font-size: .85rem; }
  .mega-feature { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; text-decoration: none; color: var(--ink-2); background: var(--cream); padding: 18px; border-radius: var(--radius); }
  .mega-feature img { box-shadow: var(--shadow-print); }
  .mega-feature strong { display: block; font: 600 1.4rem/1.1 var(--serif); color: var(--charcoal); margin-bottom: 6px; }
}
@media (max-width: 1079px) { .menu-toggle, .mega { display: none; } }

/* ---------- Drawers, search */
.drawer, .search-dialog { position: fixed; inset: 0; z-index: 60; background: rgba(36, 32, 28, .38); }
.drawer[hidden], .search-dialog[hidden] { display: none; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--ivory);
  display: flex; flex-direction: column; animation: slide-in .35s var(--ease);
}
.drawer-left .drawer-panel { right: auto; left: 0; animation-name: slide-in-left; }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-in-left { from { transform: translateX(-100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); background: var(--cream); }
.drawer-foot:empty { display: none; }
.drawer-nav ul { list-style: none; margin: 0; padding: 8px 20px; }
.drawer-nav a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); color: var(--charcoal); text-decoration: none; font: 500 1.5rem var(--serif); }
.search-panel { background: var(--ivory); max-width: 760px; margin: 10vh 12px 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); }
@media (min-width: 784px) { .search-panel { margin: 10vh auto 0; } }
.search-box { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; border: 0; background: none; font: 400 1.15rem var(--sans); min-height: 52px; color: var(--charcoal); box-shadow: none; }
.search-box input:focus { outline: none; box-shadow: none; }
.search-results { max-height: 60vh; overflow: auto; }
.search-results ul { list-style: none; margin: 0; padding: 8px; }
.search-results a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--radius); color: var(--charcoal); text-decoration: none; }
.search-results a:hover, .search-results a:focus { background: var(--cream); }
.search-results small { display: block; color: var(--ink-2); }
.search-results .sr-thumb { width: 44px; aspect-ratio: 1 / 1.414; object-fit: cover; box-shadow: var(--shadow-print); }
.search-results .sr-page { width: 44px; height: 44px; display: grid; place-items: center; background: var(--cream); border-radius: 50%; color: var(--brown); }
.search-empty { padding: 24px; color: var(--ink-2); margin: 0; }
.search-inline { display: flex; gap: 10px; margin: 24px 0; }
.search-inline input { flex: 1; }

/* ---------- Forms */
label, legend { display: block; font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: var(--charcoal); margin-bottom: 8px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type="text"], input[type="email"], input[type="search"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 3px;
  background: #fffdf9; color: var(--charcoal); font: 400 1rem var(--sans);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(39, 9, 73, .12); }
input[aria-invalid="true"] { border-color: var(--error); }
.field { margin-bottom: 18px; }
.field-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input { flex: 1 1 220px; }
.field-error { color: var(--error); font-size: .82rem; margin: 6px 0 0; }
.field-error:empty { display: none; }
.form-note { font-size: .82rem; color: var(--ink-2); margin-top: 10px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
.segmented legend { grid-column: 1 / -1; float: left; width: 100%; }
.segmented label { margin: 0; font-weight: 500; letter-spacing: 0; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line-strong); margin-left: -1px; cursor: pointer; background: #fffdf9; font-size: .9rem; }
.segmented label:first-of-type span { border-radius: 3px 0 0 3px; margin-left: 0; }
.segmented label:last-of-type span { border-radius: 0 3px 3px 0; }
.segmented input:checked + span { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.segmented input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 400; letter-spacing: 0; font-size: .92rem; margin: 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--plum); }

/* ---------- Hero actions and proof points (used at the end of the homepage story) */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 30px 0 34px; }
.hero-actions .btn { padding: 0 22px; letter-spacing: .1em; }
.hero-proof { list-style: none; padding: 20px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.hero-proof li { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Category cards */
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card a { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; color: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fffdf9; transition: border-color .3s; }
.cat-card a:hover { border-color: var(--line-strong); }
.cat-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--cream); overflow: hidden; }
.cat-media img { position: absolute; width: 26%; top: 50%; left: 50%; border: 4px solid #faf6ee; box-shadow: var(--shadow-print); transition: transform .6s var(--ease); }
.cat-media img:nth-child(1) { transform: translate(-145%, -48%) rotate(-7deg); }
.cat-media img:nth-child(2) { transform: translate(-50%, -54%); z-index: 2; }
.cat-media img:nth-child(3) { transform: translate(45%, -48%) rotate(7deg); }
.cat-card a:hover .cat-media img:nth-child(1) { transform: translate(-155%, -50%) rotate(-9deg); }
.cat-card a:hover .cat-media img:nth-child(3) { transform: translate(55%, -50%) rotate(9deg); }
.cat-body { display: flex; flex-direction: column; padding: 24px 26px 26px; }
.cat-name { font: 500 1.9rem/1.1 var(--serif); margin-bottom: 6px; }
.cat-blurb { color: var(--ink-2); margin-bottom: 16px; }
.cat-count { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Tools (calculator, finder) */
.tool-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) {
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .tool-grid.reverse > :first-child { order: 2; }
}
.tool-card { background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.assumptions { font-size: .9rem; color: var(--ink-2); border-left: 2px solid var(--line-strong); padding-left: 16px; max-width: 520px; }
.tool-result:empty { display: none; }
.tool-result { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.result-big { font: 500 clamp(2.4rem, 6vw, 3.4rem)/1 var(--serif); margin: 0 0 6px; }
.result-big small { font: 500 1rem var(--sans); color: var(--ink-2); }
.result-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.result-rows div { background: var(--cream); padding: 12px; border-radius: 3px; }
.result-rows dt { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); }
.result-rows dd { margin: 4px 0 0; font-weight: 600; }
.finder-results:empty { display: none; }
.finder-results { display: grid; gap: 14px; }
.match { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; padding: 16px; background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius); }
.match img { box-shadow: var(--shadow-print); }
.match h3 { font-size: 1.4rem; margin: 0 0 4px; }
.match p { margin: 0 0 8px; font-size: .9rem; color: var(--ink-2); }
.match .tag { display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); font-weight: 700; margin-bottom: 4px; }
.match-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.notice { padding: 14px 16px; background: var(--cream); border-radius: 3px; font-size: .9rem; color: var(--ink-2); }

/* ---------- Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 1px solid var(--charcoal); padding-top: 22px; }
.step-num { display: block; font: italic 500 2.6rem/1 var(--serif); color: var(--brown); margin-bottom: 18px; }
.steps h3 { font-size: 1.5rem; }
.steps p { color: var(--ink-2); margin: 0; }

/* ---------- Product cards */
.product-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px 24px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { display: flex; flex-direction: column; }
.product-card[hidden] { display: none; }
.pc-media {
  display: grid; place-items: center; aspect-ratio: 4 / 4.4; padding: 10% 22%;
  background: color-mix(in srgb, var(--tone, var(--sand)) 22%, var(--cream)); border-radius: var(--radius); overflow: hidden;
}
.pc-media img { width: 100%; border: 5px solid #faf6ee; box-shadow: var(--shadow-print); transition: transform .6s var(--ease); }
.product-card:hover .pc-media img { transform: translateY(-6px) rotate(-1deg); }
.pc-body { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.pc-meta { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); margin-bottom: 6px; }
.pc-title { font-size: 1.6rem; margin-bottom: 4px; }
.pc-title a { color: var(--charcoal); text-decoration: none; }
.pc-title a:hover { color: var(--plum); }
.pc-total { color: var(--ink-2); margin-bottom: 12px; }
.pc-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.pc-price { font-weight: 600; font-size: 1.1rem; margin: 0; }
.pc-stock { font-size: .76rem; color: var(--ok); margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.price-note { display: block; font-size: .78rem; font-weight: 500; color: var(--brown); }
.price-note:empty { display: none; }
.pc-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; }

/* ---------- Mindset */
.mindset { background: var(--charcoal); color: #e9e2d6; }
.mindset h2, .mindset h3 { color: var(--ivory); }
.mindset h2 em { color: #d8c3a5; }
.mindset .eyebrow { color: #c9b392; }
.mindset-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .mindset-grid { grid-template-columns: 1fr 1.2fr; gap: 90px; } }
.mindset-quote h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.mindset-notes article { border-top: 1px solid rgba(233, 226, 214, .2); padding: 22px 0 6px; }
.mindset-notes p { color: #cfc6b8; }
.mindset .small-print { color: #a99f90; margin-top: 18px; }

/* ---------- Collection pages */
.collection-hero { padding: 8px 0 12px; }
.collection-hero h1 { margin-top: 18px; }
.crumbs { font-size: .82rem; color: var(--ink-2); padding: 18px 0 0; }
.crumbs a { color: var(--ink-2); }
.collection { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 100px; }
@media (min-width: 960px) { .collection { grid-template-columns: 240px 1fr; gap: 56px; } }
.filters { align-self: start; }
@media (min-width: 960px) { .filters { position: sticky; top: calc(var(--header-h) + 24px); } }
.filters fieldset { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 18px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.toolbar p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.sort { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; letter-spacing: 0; }
.sort select { width: auto; min-height: 44px; }
.empty-state { text-align: center; padding: 56px 20px; background: var(--cream); border-radius: var(--radius); }
.empty-state[hidden] { display: none; }
@media (max-width: 959px) {
  .filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
  .filters .field:first-child, .filters > button { grid-column: 1 / -1; }
}

/* ---------- Product detail */
.pd { display: grid; gap: 40px; padding-top: 24px; padding-bottom: 40px; }
@media (min-width: 960px) { .pd { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; } .pd-gallery { position: sticky; top: calc(var(--header-h) + 24px); } }
.pd-main {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.08; padding: 8% 16%; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, rgba(255, 255, 255, .6), transparent 70%), color-mix(in srgb, var(--tone) 20%, var(--cream));
}
.pd-main > img { max-height: 100%; width: auto; border: 7px solid #faf6ee; box-shadow: var(--shadow-print); }
.pd-thumbs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { width: 72px; height: 90px; padding: 8px; border: 1px solid var(--line); background: var(--cream); border-radius: 3px; cursor: pointer; display: grid; place-items: center; }
.thumb img { max-height: 100%; width: auto; box-shadow: 0 2px 6px rgba(60, 40, 20, .2); }
.thumb.on { border-color: var(--charcoal); }
.thumb-demo { width: auto; padding: 8px 14px; font: 600 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); }
.pd-demo { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; background: var(--cream); padding: 20px; }
.pd-demo[hidden] { display: none; }
.pd-demo .phone { width: min(250px, 60vw); }
.pd-demo .caption { font-size: .8rem; color: var(--ink-2); text-align: center; max-width: 300px; margin: 0; }
.pd-info h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 10px; }
.pd-tagline { font: italic 500 1.35rem/1.35 var(--serif); color: var(--brown); }
.pd-price { font-size: 1.6rem; font-weight: 600; margin: 20px 0 4px; }
.pd-goal { color: var(--ink-2); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pd-buy { padding: 22px 0; }
.option { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--charcoal); border-radius: 3px; font-weight: 400; letter-spacing: 0; margin: 0; }
.option input { accent-color: var(--plum); width: 18px; height: 18px; }
.option small { display: block; color: var(--ink-2); font-size: .82rem; }
.buy-row { display: flex; gap: 10px; margin: 18px 0 10px; }
.qty { display: flex; border: 1px solid var(--line-strong); border-radius: 3px; background: #fffdf9; }
.qty button { width: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--charcoal); }
.qty input { width: 48px; min-height: 48px; border: 0; text-align: center; padding: 0; background: none; -moz-appearance: textfield; box-shadow: none; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock { display: flex; gap: 8px; align-items: center; color: var(--ok); font-size: .88rem; margin: 14px 0 0; }
.pd-delivery { background: var(--cream); padding: 16px 18px; border-radius: 3px; font-size: .9rem; }
.pd-delivery p { margin: 0 0 6px; }
.pd-delivery p:last-child { margin: 0; }
.accordion { margin-top: 26px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-weight: 600; font-size: .95rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 300 1.5rem var(--sans); color: var(--brown); }
details[open] > summary::after { content: "–"; }
details > :not(summary) { color: var(--ink-2); }
details details summary { font-weight: 500; min-height: 48px; }
.specs { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .9rem; }
.specs th { text-align: left; font-weight: 600; color: var(--charcoal); width: 36%; padding: 10px 12px 10px 0; vertical-align: top; }
.specs td { padding: 10px 0; }
.specs tr + tr { border-top: 1px solid var(--line); }

/* ---------- Phone frame + tracker preview */
.phone { width: min(270px, 70vw); aspect-ratio: 9 / 18; border-radius: 38px; padding: 10px; background: #1d1b19; box-shadow: 0 30px 50px -25px rgba(30, 20, 10, .55); }
.phone-screen { height: 100%; border-radius: 29px; background: #fffdf9; overflow: hidden auto; padding: 34px 14px 16px; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }
.demo { --fill: var(--plum); position: relative; }
.demo-title { font: 600 1.2rem/1.1 var(--serif); margin: 0 0 4px; }
.demo-saved { margin: 0; color: var(--ink-2); font-size: .82rem; }
.demo-saved strong { display: block; font: 500 2rem/1.1 var(--serif); color: var(--charcoal); }
.demo-bar { height: 6px; border-radius: 3px; background: var(--sand); margin: 10px 0 6px; overflow: hidden; }
.demo-bar i { display: block; height: 100%; width: 0; background: var(--plum); transition: width .35s; }
.demo-meta { font-size: .72rem; color: var(--ink-2); margin-bottom: 12px; }
.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.shape-week .demo-grid { grid-template-columns: repeat(2, 1fr); }
.shape-piggy .demo-grid, .shape-heart .demo-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
.shape-circle .demo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cell { position: relative; display: grid; place-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: 600 .68rem/1 var(--sans); color: var(--charcoal); cursor: pointer; }
span.cell { cursor: default; }
.cell svg { grid-area: 1 / 1; width: 100%; height: auto; overflow: visible; }
.cell svg :is(rect, path, circle) { fill: #fffdf9; stroke: var(--charcoal); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.cell svg .eye { fill: var(--charcoal); stroke: none; }
.cell svg .slot { fill: none; }
.cell .amt { grid-area: 1 / 1; position: relative; text-align: center; }
.cell .amt small { display: block; font-size: .58rem; font-weight: 500; }
.shape-envelope .cell .amt { padding-top: 8px; }
.shape-piggy .cell .amt, .shape-heart .cell .amt { font-size: .56rem; }
.cell.on svg :is(rect, path, circle) { fill: var(--fill); stroke: var(--fill); }
.cell.on svg path[fill="none"] { stroke: rgba(255, 255, 255, .5); fill: none; }
.cell.on svg .eye { fill: #fff; }
.cell.on .amt { color: #fff; }
.cell.on { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.1); } }
button.cell:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 6px; }
.demo-done { font-weight: 600; margin: 10px 0 0; font-size: .85rem; text-align: center; min-height: 1.2em; }
.confetti { position: absolute; inset: -30px -10px; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: 0; width: 6px; height: 10px; border-radius: 1px; animation: fall 2.2s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes fall { from { transform: translate(0, -20px) rotate(0); opacity: 1; } to { transform: translate(var(--dx), 520px) rotate(var(--r)); opacity: 0; } }

/* ---------- Cart */
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { box-shadow: var(--shadow-print); }
.cart-line h3 { font-size: 1.2rem; margin: 0 0 2px; }
.cart-line h3 a { color: var(--charcoal); text-decoration: none; }
.cart-line p { margin: 0; font-size: .82rem; color: var(--ink-2); }
.cart-line .qty { margin-top: 8px; width: max-content; }
.cart-line .qty input { min-height: 36px; width: 40px; }
.cart-line .qty button { width: 36px; }
.cart-line-price { text-align: right; font-weight: 600; }
.remove { border: 0; background: none; color: var(--ink-2); font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 8px 0; min-height: 36px; }
.cart-sum { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; }
.cart-note { font-size: .82rem; color: var(--ink-2); }
.cart-empty { padding: 40px 0; text-align: center; }
.cart-empty h3 { font-size: 1.6rem; }
.cart-hint { background: #fffdf9; border: 1px dashed var(--line-strong); padding: 12px 14px; border-radius: 3px; font-size: .85rem; margin: 12px 0; }
.cart-page { padding-top: 48px; padding-bottom: 100px; }
.cart-page [data-cart-foot]:not(:empty) { margin-top: 24px; background: var(--cream); padding: 22px; border-radius: var(--radius); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 70; background: var(--charcoal); color: var(--ivory); padding: 12px 18px; border-radius: 3px; font-size: .9rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }

/* ---------- Savings Guide */
.guide-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; min-height: 50px;
  padding: 0 20px 0 16px; border: 1px solid var(--charcoal); border-radius: 30px; background: var(--ivory); color: var(--charcoal);
  font: 600 .8rem var(--sans); letter-spacing: .06em; cursor: pointer; box-shadow: 0 16px 30px -16px rgba(30, 20, 10, .5);
}
.guide-launch:hover, .guide-launch[aria-expanded="true"] { background: var(--charcoal); color: var(--ivory); }
.guide-panel {
  position: fixed; right: 18px; bottom: 80px; z-index: 55; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(30, 20, 10, .55); overflow: hidden;
}
.guide-panel[hidden] { display: none; }
@media (max-width: 560px) {
  .guide-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; border-radius: 14px 14px 0 0; }
  .guide-launch span { display: none; }
  .guide-launch { padding: 0 14px; }
}
.guide-head { display: flex; justify-content: space-between; gap: 10px; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.guide-head h2 { font-size: 1.35rem; margin: 0; }
.guide-mode { font-size: .72rem; color: var(--brown); margin: 4px 0 0; }
.guide-log { flex: 1; overflow: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 92%; padding: 12px 14px; border-radius: 8px; font-size: .9rem; line-height: 1.55; }
.msg p { margin: 0 0 .5em; }
.msg p:last-child { margin: 0; }
.msg-bot { background: var(--cream); align-self: flex-start; border-top-left-radius: 2px; }
.msg-user { background: var(--charcoal); color: var(--ivory); align-self: flex-end; border-top-right-radius: 2px; }
.msg-error { background: #f6e3e0; color: var(--error); }
.msg .src { display: block; font-size: .7rem; color: var(--brown); margin-top: 6px; }
.msg table { width: 100%; border-collapse: collapse; font-size: .78rem; margin-top: 6px; }
.msg th, .msg td { text-align: left; padding: 5px 6px 5px 0; border-top: 1px solid var(--line); vertical-align: top; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--taupe); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.guide-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 10px; scrollbar-width: none; }
.guide-chips:empty { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 18px; background: #fffdf9; font: 500 .78rem var(--sans); color: var(--charcoal); cursor: pointer; }
.chip:hover { border-color: var(--charcoal); }
.guide-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.guide-form input { min-height: 44px; }
.guide-note { font-size: .7rem; color: var(--ink-2); padding: 0 16px 12px; margin: 0; }
.retry { margin-top: 8px; }

/* ---------- Footer */
.newsletter { background: var(--cream); border-top: 1px solid var(--line); }
.newsletter-inner { display: grid; gap: 28px; padding-top: 72px; padding-bottom: 72px; align-items: end; }
@media (min-width: 960px) { .newsletter-inner { grid-template-columns: 1fr 1fr; gap: 80px; } }
.newsletter h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.newsletter p { color: var(--ink-2); }
.site-footer { background: var(--ivory); }
.footer-grid { display: grid; gap: 36px; padding-top: 64px; padding-bottom: 40px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; max-width: 340px; }
@media (min-width: 960px) { .footer-brand { grid-column: auto; } }
.footer-brand img { width: 120px; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-2); font-size: .9rem; }
.site-footer .footer-grid h2 { font: 600 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brown); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--charcoal); text-decoration: none; font-size: .9rem; }
.site-footer li a:hover { color: var(--plum); text-decoration: underline; }
.contact-lines .muted { font-size: .85rem; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 96px; font-size: .8rem; color: var(--ink-2); }
.legal p { margin: 0; }

/* ---------- Text pages (About, FAQ, Contact, policies) */
.page-body > section { padding-top: 56px; padding-bottom: 90px; }
.page-body .wrap.narrow { max-width: 760px; }
.page-body .lead { font: italic 500 1.5rem/1.4 var(--serif); color: var(--brown); }
.page-body h1 { margin-bottom: .3em; }
.page-body h2 { font-size: 1.8rem; margin-top: 1.4em; }
.page-body .updated { color: var(--ink-2); font-size: .9rem; }
.page-body .contact-list { list-style: none; padding: 0; }
.page-body .contact-list a { display: inline-block; padding: 8px 0; }
.page-body .contact-form { background: var(--cream); padding: 26px; border-radius: var(--radius); margin: 32px 0; }
.page-body .contact-form h2 { margin-top: 0; }
.page-body .contact-form label { margin-top: 14px; }
.page-body .contact-form .btn { margin-top: 20px; }
.page-body .optional { font-weight: 400; color: var(--ink-2); }
.dev-only { outline: 2px dashed #c08a3e; outline-offset: -12px; }
.dev-note { background: #fff4dd; padding: 14px 16px; border-radius: 3px; }

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