/* Refit Haven — styles
   Luxury look: deep forest green, warm ivory and champagne gold, Playfair Display headings.
   Still built for easy reading: 18px+ text, strong contrast, big targets, clear focus rings. */

:root {
  --bg: #FAF6EF;           /* warm ivory */
  --surface: #FFFDF9;
  --ink: #1A1F1C;
  --muted: #4F5450;
  --line: #E4DACA;          /* hairline */
  --primary: #1B4038;       /* forest */
  --primary-ink: #10291F;
  --on-primary: #FFFDF9;
  --deep: #0F231E;          /* darkest forest, hero and footer */
  --gold: #C6A15E;          /* champagne gold, decoration and gold buttons */
  --gold-ink: #7A5A22;      /* gold dark enough for text on ivory */
  --gold-soft: #F3EADA;
  --accent: #C6A15E;
  --accent-soft: #F3EADA;
  --sun: #C6A15E;
  --teal-soft: #EEF2EC;     /* soft sage, hovers and selected */
  --sun-soft: #F5EEDF;
  --lilac-soft: #F1ECE6;
  --sky-soft: #ECEFEF;
  --rose-soft: #F4EBE6;
  --ok: #1F5A3A;
  --ok-soft: #E6F0E9;
  --err: #9E2A1F;
  --err-soft: #FAE9E5;
  --focus: #1D4ED8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 35, 30, .04), 0 12px 32px -12px rgba(15, 35, 30, .14);
  --shadow-lift: 0 2px 4px rgba(15, 35, 30, .05), 0 24px 48px -16px rgba(15, 35, 30, .22);
  --border-w: 1px;
  --heading: "Playfair Display", Georgia, serif;
  --body: "Figtree", "Segoe UI", Arial, sans-serif;
  font-size: 112.5%; /* 18px base */
}

/* Display settings */
html.pref-big { font-size: 131.25%; } /* 21px */
html.pref-clear { --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif; --heading: "Atkinson Hyperlegible", Arial, sans-serif; }
html.pref-contrast {
  --bg: #FFFFFF; --surface: #FFFFFF; --ink: #000000; --muted: #1A1A1A; --line: #000000;
  --primary: #00302E; --primary-ink: #000000; --accent: #7A2500; --gold-ink: #000000;
  --teal-soft: #FFFFFF; --sun-soft: #FFFFFF; --lilac-soft: #FFFFFF; --sky-soft: #FFFFFF; --rose-soft: #FFFFFF; --accent-soft: #FFFFFF; --gold-soft: #FFFFFF;
  --border-w: 2.5px; --shadow: none; --shadow-lift: none;
}
html.pref-contrast a { text-decoration-thickness: 2px; }
html.pref-contrast .card, html.pref-contrast .panel { border-width: 2.5px; }
html.pref-simple .decor, html.pref-simple .nice { display: none !important; }
html.pref-calm *, html.pref-calm *::before, html.pref-calm *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 10px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus, h1:focus { outline: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.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; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--primary); color: var(--on-primary); padding: 12px 20px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }

/* icons */
.ic { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: .6em 1.2em; border-radius: 12px; border: var(--border-w) solid transparent; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-ink); color: var(--on-primary); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #8a3614; color: #fff; }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--teal-soft); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--teal-soft); }
.btn-danger { background: var(--surface); color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err-soft); }
.btn-small { min-height: 44px; padding: .4em .9em; font-size: .95rem; }
.btn-wide { width: 100%; }
.btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* demo bar */
.demo-bar { background: var(--sun-soft); border-bottom: 1px solid var(--line); font-size: .9rem; padding: 8px 0; color: var(--ink); }

/* header */
.site-head { background: var(--surface); border-bottom: var(--border-w) solid var(--line); position: sticky; top: 0; z-index: 40; }
.head-row { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 44px; height: 44px; }
.logo-bg { fill: var(--primary); }
.logo-roof { fill: none; stroke: #FFFBF5; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.logo-heart { fill: var(--sun); }
.logo-text { font-family: var(--heading); font-size: 1.55rem; font-weight: 600; }
.logo-text b { color: var(--primary); font-weight: 700; }
.head-search { flex: 1; display: flex; gap: 8px; max-width: 620px; }
.head-search input { flex: 1; min-width: 0; }
.head-tools { display: flex; gap: 8px; margin-left: auto; }
.menu-btn { display: none; }
.main-nav { border-top: 1px solid var(--line); }
.site-head .wrap { width: min(1260px, 100% - 32px); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.main-nav a { display: flex; align-items: center; gap: .4em; min-height: 52px; padding: 0 11px; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 4px solid transparent; }
.main-nav a:hover { color: var(--primary); background: var(--teal-soft); }
.main-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.main-nav .nav-sell { margin-left: auto; }
.main-nav .nav-sell a { background: var(--accent); color: #fff; border-radius: 12px; margin: 6px 0; min-height: 44px; border: 0; }
.main-nav .nav-sell a:hover { background: #8a3614; color: #fff; }
.count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 99px; background: var(--accent); color: #fff; font-size: .8rem; }

@media (max-width: 1300px) and (min-width: 1041px) {
  .main-nav a { padding: 0 8px; font-size: .95rem; }
  .main-nav .ic { display: none; }
  .main-nav .nav-sell .ic { display: inline-flex; }
}
@media (max-width: 1040px) {
  .head-row { flex-wrap: wrap; }
  .head-search { order: 3; flex-basis: 100%; max-width: none; }
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 0 14px; }
  .main-nav a { border-bottom: 0; border-left: 4px solid transparent; }
  .main-nav a[aria-current="page"] { border-left-color: var(--primary); }
  .main-nav .nav-sell { margin-left: 0; }
  .head-search .btn span:last-child { display: none; }
}
@media (max-width: 520px) {
  .site-head { position: static; }
  .head-row { gap: 12px; }
  .head-tools { flex-basis: 100%; order: 2; }
  .head-tools .btn { flex: 1; }
  .logo-text { font-size: 1.35rem; }
}

/* easier navigation: current page, back bar, task buttons, help button */
.main-nav a[aria-current="page"] { background: var(--teal-soft); }
.main-nav .nav-gap { margin-left: auto; }
.main-nav .nav-sell a[aria-current="page"] { background: #7a2e10; }
.backbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 20px 0 8px; }
.backbar .crumbs { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tasks { background: var(--surface); border: var(--border-w) solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.tasks h2 { font-size: 1.5rem; margin-bottom: .2em; }
.tasks .task + .task { margin-top: 10px; }
.task { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 76px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); }
.task:hover { border-color: var(--primary); background: var(--teal-soft); color: var(--ink); }
.task .tile { width: 52px; height: 52px; flex: none; }
.task .tile .ic { width: 28px; height: 28px; }
.task strong { display: block; font-size: 1.12rem; }
.task small { display: block; color: var(--muted); font-size: .95rem; }
.task .go { margin-left: auto; color: var(--primary); width: 1.5em; height: 1.5em; }
.help-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: .5em; min-height: 56px; padding: 0 22px; border-radius: 99px; border: 3px solid #fff; background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.help-fab:hover { background: var(--primary-ink); }
.help-fab .ic { width: 1.4em; height: 1.4em; }
.help-how summary, .more-f summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; color: var(--primary); }
.more-f { border-top: 1px solid var(--line); margin-bottom: 18px; }
.more-f[open] summary { margin-bottom: 8px; }
.site-foot { padding-bottom: 90px !important; } /* room for the Help button */
@media (max-width: 1040px) { .main-nav .nav-gap { margin-left: 0; } }

/* display panel */
.display-panel { background: var(--teal-soft); border-bottom: var(--border-w) solid var(--line); padding: 20px 0 24px; }
.dp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dp-head h2 { margin: 0; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

/* toggles */
.toggle { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: var(--border-w) solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .sw { flex: none; width: 52px; height: 30px; border-radius: 99px; background: #8E9799; position: relative; margin-top: 2px; transition: background .15s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked + .sw { background: var(--primary); }
.toggle input:checked + .sw::after { transform: translateX(22px); }
.toggle input:focus-visible + .sw { outline: 3px solid var(--focus); outline-offset: 3px; }
.toggle strong { display: block; }
.toggle small { color: var(--muted); font-size: .9rem; display: block; }

/* layout bits */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head p { margin: .3em 0 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.panel { background: var(--surface); border: var(--border-w) solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.crumbs { font-size: .95rem; margin: 22px 0 8px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.page-head { padding: 12px 0 24px; }
.pill { display: inline-flex; align-items: center; gap: .35em; padding: .2em .7em; border-radius: 99px; background: var(--teal-soft); color: var(--primary-ink); font-size: .85rem; font-weight: 700; border: 1px solid transparent; }
html.pref-contrast .pill { border-color: #000; }
.pill-accent { background: var(--accent-soft); color: #7a2e10; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-sun { background: var(--sun-soft); color: #6b4a00; }

/* hero */
.hero { padding: 56px 0 48px; background: radial-gradient(1200px 400px at 85% 0%, var(--sun-soft), transparent 60%), radial-gradient(900px 400px at 0% 100%, var(--teal-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-search { display: flex; gap: 10px; margin: 26px 0 14px; background: var(--surface); padding: 10px; border-radius: 18px; border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.hero-search input { flex: 1; border: 0; font-size: 1.1rem; min-width: 0; }
.hero-search input:focus-visible { outline-offset: 0; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-art { position: relative; }
.hero-art .hcard { background: var(--surface); border: var(--border-w) solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.hero-art .hstack { display: grid; gap: 14px; }
.hrow { display: flex; gap: 14px; align-items: center; }
.hrow .tile { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.hrow .tile .ic { width: 34px; height: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; color: var(--muted); font-size: .95rem; }
.trust-row span { display: inline-flex; align-items: center; gap: .4em; }
.trust-row .ic { color: var(--primary); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: 2; } .hero-search .btn span:last-child { display: none; } }

/* tiles (category / need) */
.tile { display: grid; place-items: center; border-radius: var(--radius); color: var(--primary-ink); }
.t-teal { background: var(--teal-soft); color: #0A4542; }
.t-sun { background: var(--sun-soft); color: #6b4a00; }
.t-peach { background: var(--accent-soft); color: #7a2e10; }
.t-lilac { background: var(--lilac-soft); color: #4a2f7a; }
.t-sky { background: var(--sky-soft); color: #1d4a73; }
.t-rose { background: var(--rose-soft); color: #7a1f33; }
html.pref-contrast .tile { border: 2px solid #000; color: #000; }
.cat { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: var(--border-w) solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.cat .tile { width: 60px; height: 60px; }
.cat .tile .ic { width: 32px; height: 32px; }
.cat strong { font-size: 1.15rem; }
.cat span.muted { font-size: .95rem; }
.need { display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 76px; background: var(--surface); border: var(--border-w) solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.08rem; }
.need:hover { border-color: var(--primary); color: var(--primary); }
.need .tile { width: 48px; height: 48px; flex: none; }
.need .ic.go { margin-left: auto; color: var(--primary); }

/* listing cards */
.card { background: var(--surface); border: var(--border-w) solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ph { aspect-ratio: 4 / 3; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .92rem; }
.meta span { display: inline-flex; align-items: center; gap: .3em; }
.card .save { position: absolute; top: 10px; right: 10px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.95); border: var(--border-w) solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.card .save[aria-pressed="true"] { color: var(--accent); }
.card .save[aria-pressed="true"] svg { fill: currentColor; }
.card .tags { position: absolute; top: 10px; left: 10px; right: 66px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.list-view .card { flex-direction: row; }
.list-view .card .ph { width: 220px; aspect-ratio: auto; min-height: 170px; flex: none; }
@media (max-width: 600px) { .list-view .card .ph { width: 120px; } .list-view .card .tags { display: none; } }

/* product "photos" */
.ph { position: relative; display: grid; place-items: center; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph > .ic { width: 38%; height: 38%; max-width: 120px; max-height: 120px; opacity: .9; }
.ph::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.35); }
.ph img + * { display: none; }

/* stars */
.stars { display: inline-flex; align-items: center; gap: .35em; font-size: .95rem; }
.stars .row { display: inline-flex; color: #B07A00; }
.stars .row .ic { width: 1.05em; height: 1.05em; }
.stars .on svg { fill: currentColor; }
html.pref-contrast .stars .row { color: #000; }

/* forms */
label, .label { font-weight: 700; display: block; margin-bottom: 6px; }
.hint { display: block; color: var(--muted); font-size: .95rem; margin: -2px 0 8px; font-weight: 400; }
input[type=text], input[type=search], input[type=email], input[type=number], input[type=password], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface);
  border: 2px solid #8B9294; border-radius: 12px; padding: 12px 14px; min-height: 52px;
}
html.pref-contrast input, html.pref-contrast select, html.pref-contrast textarea { border-color: #000; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; }
[aria-invalid="true"] { border-color: var(--err) !important; background: var(--err-soft); }
.err-msg { color: var(--err); font-weight: 700; display: flex; gap: .4em; align-items: flex-start; margin-top: 6px; }
.err-msg:empty { display: none; }
.err-summary { background: var(--err-soft); border: 2px solid var(--err); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px; }
.err-summary h2 { font-family: var(--body); font-size: 1.1rem; margin-bottom: .4em; color: var(--err); }
.err-summary ul { margin: 0; padding-left: 1.2em; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; font-size: 1.05rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); min-height: 56px; font-weight: 400; }
.choice > span strong { display: block; }
.choice > span small { color: var(--muted); display: block; font-size: .9rem; }
.choice > span::before { content: ""; flex: none; width: 22px; height: 22px; border: 2px solid #6b7375; border-radius: 6px; margin-top: 2px; background: var(--surface); }
.choice input[type=radio] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--primary); background: var(--teal-soft); }
.choice input:checked + span::before { background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--primary); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check-inline { display: flex; gap: 10px; align-items: center; font-weight: 400; min-height: 44px; cursor: pointer; }
.check-inline input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; }

/* star picker */
.starpick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; color: #9aa0a2; margin: 0; background: var(--surface); }
.starpick label .ic { width: 32px; height: 32px; }
.starpick input:checked ~ label, .starpick label:hover, .starpick label:hover ~ label { color: #B07A00; }
.starpick input:checked ~ label svg, .starpick label:hover svg, .starpick label:hover ~ label svg { fill: currentColor; }
.starpick input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.star-say { margin-top: 8px; font-weight: 700; min-height: 1.6em; }

/* browse */
.browse-grid { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow: auto; }
.filters h2 { font-family: var(--body); font-size: 1.15rem; }
.filters fieldset { margin-bottom: 18px; }
.filters .check-inline { min-height: 40px; }
.results-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.results-bar .sorter { display: flex; align-items: center; gap: 10px; }
.results-bar .sorter label { margin: 0; white-space: nowrap; }
.results-bar select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: .3em .8em; border-radius: 99px; border: var(--border-w) solid var(--primary); background: var(--teal-soft); color: var(--primary-ink); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .browse-grid { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}
.empty { text-align: center; padding: 48px 20px; }
.empty .tile { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; }
.empty .tile .ic { width: 40px; height: 40px; }

/* listing page */
.item-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.gallery .ph { aspect-ratio: 4 / 3; border-radius: 18px; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 88px; height: 70px; border-radius: 10px; border: 2px solid var(--line); padding: 0; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--primary); border-width: 3px; }
.thumbs .ph { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.thumbs .ph > .ic { width: 50%; height: 50%; }
.buybox { position: sticky; top: 150px; }
.buybox .price { font-size: 2rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.buybox .btn-row .btn { flex: 1 1 200px; }
.seller-card { display: flex; gap: 14px; align-items: center; }
.avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex: none; background: var(--teal-soft); color: var(--primary-ink); }
.avatar.big { width: 96px; height: 96px; font-size: 2rem; }
.detail h2 { margin-top: 1.4em; font-size: 1.45rem; }
.detail h2:first-child { margin-top: 0; }
.helps { display: grid; gap: 14px; }
.helps > div { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); }
.helps .tile { width: 48px; height: 48px; flex: none; background: rgba(255,255,255,.7); }
.helps h3 { font-family: var(--body); font-size: 1.05rem; margin: 0 0 4px; }
.helps p { margin: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--sun-soft); border: 1px solid #E8D49A; }
html.pref-contrast .notice { border: 2px solid #000; }
.notice .ic { color: #6b4a00; margin-top: 3px; }
.notice p:last-child { margin: 0; }
.notice-ok { background: var(--ok-soft); border-color: #A9D5B5; }
.notice-ok .ic { color: var(--ok); }
@media (max-width: 900px) { .item-grid { grid-template-columns: 1fr; } .buybox { position: static; } }

/* reviews */
.review-sum { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-bottom: 20px; }
.review-sum .big { font-size: 3rem; font-weight: 700; font-family: var(--heading); line-height: 1; }
.bars { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.bars div { display: grid; grid-template-columns: 4.5em 1fr 2.5em; gap: 10px; align-items: center; font-size: .92rem; }
.bars i { display: block; height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bars i b { display: block; height: 100%; background: #B07A00; }
.review { border-top: 1px solid var(--line); padding: 18px 0; }
.review header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.review .avatar { width: 44px; height: 44px; font-size: 1rem; }
.review img { width: 140px; border-radius: 10px; margin-top: 8px; }

/* steps */
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; counter-reset: s; flex-wrap: wrap; }
.steps li { flex: 1 1 120px; counter-increment: s; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 700; color: var(--muted); }
.steps li::before { content: ""; height: 8px; border-radius: 99px; background: var(--line); }
.steps li span::before { content: "Step " counter(s) ": "; font-weight: 400; }
.steps li.done::before { background: var(--primary); }
.steps li.now { color: var(--primary-ink); }
.steps li.now::before { background: var(--accent); }
.form-shell { max-width: 780px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.photo-drop { border: 2.5px dashed #8B9294; border-radius: var(--radius); padding: 28px; text-align: center; background: var(--surface); }
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.photo-list figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); }
.photo-list img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.photo-list figure button { position: absolute; top: 6px; right: 6px; }
.charcount { font-size: .9rem; color: var(--muted); text-align: right; margin-top: 4px; }

/* account */
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin: 28px 0 24px; }
.tabs a { display: flex; align-items: center; gap: .45em; min-height: 52px; padding: 0 16px; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.tabs a:hover { background: var(--teal-soft); }
.rowitem { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rowitem:first-child { border-top: 0; }
.rowitem .ph { width: 96px; height: 76px; border-radius: 10px; flex: none; }
.rowitem .grow { flex: 1; min-width: 200px; }
.rowitem h3 { font-family: var(--body); font-size: 1.05rem; margin: 0 0 2px; }

/* cart / checkout */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.summary { position: sticky; top: 150px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 16px; }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
.summary .total { font-size: 1.3rem; border-top: 2px solid var(--line); padding-top: 10px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.qty output { min-width: 2em; text-align: center; font-weight: 700; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } .summary { position: static; } }
.confirm-hero { text-align: center; padding: 30px 0 10px; }
.confirm-hero .tile { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; }
.confirm-hero .tile .ic { width: 48px; height: 48px; }
.next-steps { counter-reset: n; list-style: none; padding: 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; }
.next-steps li::before { content: counter(n); flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* messages */
.msg-grid { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: var(--border-w) solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); min-height: 560px; }
.threads { border-right: var(--border-w) solid var(--line); overflow: auto; }
.threads ul { list-style: none; margin: 0; padding: 0; }
.threads a { display: flex; gap: 12px; padding: 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.threads a[aria-current="page"] { background: var(--teal-soft); box-shadow: inset 4px 0 0 var(--primary); }
.threads a:hover { background: var(--teal-soft); }
.threads .avatar { width: 48px; height: 48px; font-size: 1rem; }
.threads strong { display: block; }
.threads small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; font-size: .9rem; }
.chat { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: var(--border-w) solid var(--line); flex-wrap: wrap; }
.chat-head .grow { flex: 1; min-width: 160px; }
.chat-log { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; max-height: 520px; background: var(--bg); }
.bubble { max-width: 75%; padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-color: var(--primary); border-bottom-right-radius: 6px; }
.bubble.them { border-bottom-left-radius: 6px; }
.bubble time { display: block; font-size: .8rem; opacity: .8; margin-top: 4px; }
.bubble.sys { align-self: center; background: var(--sun-soft); font-size: .92rem; max-width: 90%; text-align: center; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: var(--border-w) solid var(--line); }
.chat-form textarea { min-height: 52px; height: 52px; }
.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 12px; }
@media (max-width: 800px) {
  .msg-grid { grid-template-columns: 1fr; }
  .threads { border-right: 0; border-bottom: var(--border-w) solid var(--line); max-height: 260px; }
  .bubble { max-width: 90%; }
}

/* guides / about */
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: var(--border-w) 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 .tile { width: 56px; height: 56px; }
.guide-card .tile .ic { width: 30px; height: 30px; }
.guide-card h3 { margin: 0; font-size: 1.3rem; }
.article { max-width: 760px; }
.article h2 { margin-top: 1.6em; font-size: 1.6rem; }
.article li { margin-bottom: .5em; }
.article ul, .article ol { padding-left: 1.3em; }
.toc { background: var(--teal-soft); border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; }
.toc h2 { font-family: var(--body); font-size: 1.05rem; margin: 0 0 6px !important; }
.toc ol { margin: 0; }
.ext::after { content: " ↗"; }
.values .panel { display: flex; flex-direction: column; gap: 8px; }
.values .tile { width: 56px; height: 56px; }
.values .tile .ic { width: 30px; height: 30px; }
.quote { font-family: var(--heading); font-size: 1.2rem; line-height: 1.5; margin: 0 0 14px; }
.cta-band { background: var(--primary); color: #fff; border-radius: 22px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .95; }
.cta-band .btn-outline { border-color: #fff; }
.howit { counter-reset: h; }
.howit .panel { counter-increment: h; }
.howit .panel h3::before { content: counter(h); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--ink); margin-right: 10px; font-family: var(--body); font-size: 1rem; }

/* footer */
.site-foot { margin-top: 64px; background: #17302F; color: #EAF2F0; padding: 48px 0 20px; }
html.pref-contrast .site-foot { background: #000; color: #fff; }
.site-foot a { color: #fff; }
.site-foot h2 { font-family: var(--body); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sun); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-foot li a { display: inline-flex; min-height: 40px; align-items: center; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { font-family: var(--heading); font-size: 1.6rem; margin-bottom: .4em; }
.foot-brand b { color: var(--sun); }
.foot-base { border-top: 1px solid rgba(255,255,255,.2); margin-top: 32px; padding-top: 18px; font-size: .9rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* toast + dialog */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); visibility: hidden; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 700; z-index: 90; transition: transform .25s, visibility .25s; max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
dialog { border: var(--border-w) solid var(--line); border-radius: 18px; padding: 28px; max-width: 520px; width: calc(100% - 32px); color: var(--ink); background: var(--surface); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(23, 48, 47, .55); }
dialog h2 { font-size: 1.5rem; }

.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt1 { margin-top: 16px; } .mt2 { margin-top: 28px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ================= luxury finish =================
   Overrides the base components above with the forest / ivory / champagne look. */

.ic svg { stroke-width: 1.75; }

/* buttons: pill shaped, quiet weight, gold for the main "sell" action */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .01em; padding: .65em 1.4em; }
.btn-primary { background: linear-gradient(180deg, #23503F 0%, var(--primary) 100%); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -8px rgba(15,35,30,.6); }
.btn-primary:hover { background: var(--primary-ink); }
.btn-accent { background: linear-gradient(180deg, #D4B273 0%, var(--gold) 100%); color: #1A1A1A; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 16px -8px rgba(122,90,34,.7); }
.btn-accent:hover { background: #B8924E; color: #1A1A1A; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); }
.btn-quiet { border: 1px solid var(--line); background: var(--surface); }
.btn-quiet:hover { border-color: var(--gold); background: var(--gold-soft); }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; }
.chip:hover { border-color: var(--gold); }

/* top strip, header and menu */
.demo-bar { background: var(--deep); color: #E8E1D2; border: 0; font-size: .85rem; letter-spacing: .01em; }
.site-head { background: rgba(255, 253, 249, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.logo-bg { fill: var(--deep); }
.logo-roof { stroke: #F3EADA; }
.logo-heart { fill: var(--gold); }
.logo-text { font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: .01em; }
.logo-text b { color: var(--gold-ink); font-style: italic; font-weight: 600; }
.head-search input { border-radius: 999px; padding-left: 22px; }
.main-nav { border-top: 1px solid var(--line); }
.main-nav a { font-weight: 600; border-bottom-width: 2px; }
.main-nav a:hover { background: transparent; color: var(--gold-ink); }
.main-nav a[aria-current="page"] { background: transparent; color: var(--primary); border-bottom-color: var(--gold); }
.main-nav .nav-sell a { background: linear-gradient(180deg, #D4B273 0%, var(--gold) 100%); color: #1A1A1A; border-radius: 999px; padding: 0 18px; }
.main-nav .nav-sell a:hover, .main-nav .nav-sell a[aria-current="page"] { background: #B8924E; color: #1A1A1A; }
.count { background: var(--gold); color: #1A1A1A; font-weight: 700; }
@media (max-width: 1040px) { .main-nav a[aria-current="page"] { border-left-color: var(--gold); background: var(--gold-soft); } }

/* small icon badges: ivory circle, forest line icon, gold hairline */
.tile, .t-teal, .t-sun, .t-peach, .t-lilac, .t-sky, .t-rose { background: linear-gradient(160deg, #FBF6EC, #F1E7D4); color: var(--primary); border: 1px solid #E3D3B2; border-radius: 50%; }
.helps > div { background: var(--surface); border: 1px solid var(--line); }
.helps .tile { background: linear-gradient(160deg, #FBF6EC, #F1E7D4); }

/* product pictures: deep jewel tones with a soft light and a fine gold drawing */
.ph { border-radius: 0; border: 0; color: #E9D5A8; background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.14), transparent 55%), linear-gradient(150deg, #24453C, #0F241F); }
.ph.t-sun { background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.14), transparent 55%), linear-gradient(150deg, #47452B, #22220F); }
.ph.t-peach { background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.14), transparent 55%), linear-gradient(150deg, #5B3527, #2A140D); }
.ph.t-lilac { background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.14), transparent 55%), linear-gradient(150deg, #43293C, #1E101A); }
.ph.t-sky { background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.14), transparent 55%), linear-gradient(150deg, #263646, #0F1821); }
.ph.t-rose { background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.14), transparent 55%), linear-gradient(150deg, #552634, #260E15); }
.ph::after { inset: 12px; width: auto; aspect-ratio: auto; border-radius: 12px; background: none; border: 1px solid rgba(233, 213, 168, .28); }
.ph > .ic svg { stroke-width: 1.1; }
.ph > .ic { filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.gallery .ph { border-radius: 22px; }
.thumbs .ph::after, .rowitem .ph::after { inset: 5px; border-radius: 6px; }
.rowitem .ph { border-radius: 12px; }

/* cards */
.card { border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.card-body { padding: 18px 20px 20px; gap: 8px; }
.card h3 { font-weight: 600; }
.price { font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: .01em; }
html.pref-clear .price { font-family: var(--body); }
.card .save { background: rgba(255,253,249,.95); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.card .save[aria-pressed="true"] { color: #A9411F; }
.card .tags .pill { background: rgba(255,253,249,.94); color: var(--ink); border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.card .tags .pill-ok { color: var(--ok); }
.stars .row { color: #A57C2E; }

/* pills */
.pill { background: var(--gold-soft); color: #5B451C; border: 1px solid #E6D7B8; font-weight: 600; letter-spacing: .01em; }
.pill-ok { background: var(--ok-soft); color: var(--ok); border-color: #C9DFD0; }
.pill-sun, .pill-accent { background: var(--gold-soft); color: #5B451C; }

/* panels and sections */
.panel { border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.band { background: linear-gradient(180deg, #F4EDE1, #F8F3EA); border-color: var(--line); }
.section { padding: 80px 0; }
.section-head { margin-bottom: 30px; }
.section-head h2, .section > .wrap > h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

/* hero: deep forest with a warm gold glow */
.hero { background: radial-gradient(700px 420px at 85% 15%, rgba(198,161,94,.28), transparent 65%), radial-gradient(800px 500px at 5% 110%, rgba(198,161,94,.14), transparent 60%), linear-gradient(160deg, #163A31 0%, var(--deep) 70%); color: #F3EEE4; padding: 84px 0 92px; }
.hero h1 { color: #FFFDF9; font-weight: 600; font-size: clamp(2.5rem, 5.6vw, 4rem); line-height: 1.08; }
.hero h1 em { color: #E2C88F; font-style: italic; font-weight: 500; }
.hero .lead { color: #D9D3C6; }
.hero .eyebrow { color: #E2C88F; }
.hero-search { background: rgba(255,253,249,.97); border: 1px solid rgba(226,200,143,.45); border-radius: 999px; padding: 8px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.hero-search input[type=search] { background: transparent; padding-left: 18px; border: 0; }
.hero-quick .muted { color: #CFC7B7; }
.hero-quick .chip { background: transparent; color: #F3EEE4; border-color: rgba(243,238,228,.35); }
.hero-quick .chip:hover { border-color: #E2C88F; color: #FFFDF9; }
.hero .trust-row { color: #D9D3C6; }
.hero .trust-row .ic { color: #E2C88F; }
.tasks { border: 1px solid rgba(226,200,143,.5); border-radius: 26px; padding: 28px; box-shadow: 0 30px 70px -25px rgba(0,0,0,.65); color: var(--ink); }
.tasks h2 { font-size: 1.7rem; }
.task { border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, transform .15s, background .15s; }
.task:hover { border-color: var(--gold); background: #FCF8F0; transform: translateX(3px); }
.task .go { color: var(--gold-ink); }
html.pref-contrast .hero { background: #000; color: #fff; }

/* category cards and "need" rows */
.cat { border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; background: var(--surface); box-shadow: var(--shadow); }
.cat:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); border-color: #DCC9A3; }
.cat strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; font-weight: 600; }
html.pref-clear .cat strong { font-family: var(--body); }
.need { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font-weight: 600; }
.need:hover { border-color: var(--gold); color: var(--primary); box-shadow: var(--shadow); }
.need .ic.go { color: var(--gold-ink); }
.guide-card { border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px; }
.guide-card:hover { box-shadow: var(--shadow-lift); }
.howit .panel h3::before { background: transparent; border: 1px solid var(--gold); color: var(--gold-ink); font-family: "Playfair Display", Georgia, serif; }
.quote { font-style: italic; font-size: 1.3rem; }

/* call-to-action band and footer */
.cta-band { background: radial-gradient(500px 260px at 90% 0%, rgba(198,161,94,.3), transparent 70%), linear-gradient(150deg, #163A31, var(--deep)); border-radius: 28px; padding: 52px; border: 1px solid rgba(226,200,143,.35); }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band .btn-outline { color: #FFFDF9; border-color: rgba(255,253,249,.6); }
.cta-band .btn-outline:hover { background: #FFFDF9; color: var(--deep); }
.site-foot { background: var(--deep); color: #DDD6C8; border-top: 1px solid rgba(226,200,143,.25); }
.site-foot h2 { color: #E2C88F; font-size: .8rem; letter-spacing: .18em; }
.site-foot a { color: #F3EEE4; text-decoration-color: rgba(226,200,143,.5); }
.foot-brand { font-family: "Playfair Display", Georgia, serif; }
.foot-brand b { color: #E2C88F; font-style: italic; font-weight: 600; }

/* forms */
input[type=text], input[type=search], input[type=email], input[type=number], input[type=password], input[type=tel], select, textarea { border: 1.5px solid #B9AE9C; background: #FFFEFB; }
.choice > span { border: 1.5px solid var(--line); border-radius: 16px; }
.choice input:checked + span { border-color: var(--primary); background: #F1F4EF; }
.toggle { border-radius: 18px; }
.steps li::before { height: 4px; }
.steps li.now::before { background: var(--gold); }
.filters { border-radius: 22px; }
.backbar .btn-outline { border-width: 1px; }

/* help button */
.help-fab { background: linear-gradient(180deg, #23503F, var(--deep)); border: 2px solid var(--gold); color: #FFFDF9; font-weight: 600; }
.help-fab .ic { color: #E2C88F; }

/* Home Safety Check */
.ck-q { font-family: var(--heading); font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 600; line-height: 1.25; margin-bottom: 12px; color: var(--ink); }
.choice-big > span { align-items: center; min-height: 72px; font-size: 1.05rem; }
.choice-big .tile { width: 46px; height: 46px; flex: none; }
.choice-big .tile .ic { width: 24px; height: 24px; }

/* Home Plan */
.plan-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; background: radial-gradient(500px 300px at 90% 0%, rgba(198,161,94,.25), transparent 70%), linear-gradient(150deg, #163A31, var(--deep)); color: #F3EEE4; border-radius: 28px; padding: 40px; }
.plan-hero h1 { color: #FFFDF9; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.plan-hero .lead { color: #D9D3C6; }
.plan-hero .eyebrow { color: #E2C88F; }
.plan-sum { display: grid; gap: 12px; }
.plan-sum > div { background: rgba(255,253,249,.07); border: 1px solid rgba(226,200,143,.3); border-radius: 18px; padding: 14px 18px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-big { font-family: "Playfair Display", Georgia, serif; font-size: 1.8rem; font-weight: 600; color: #E2C88F; }
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.plan-item { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.plan-item h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan-item .grow { flex: 1; min-width: 0; display: grid; gap: 8px; }
.plan-num { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-ink); font-family: "Playfair Display", Georgia, serif; font-size: 1.2rem; font-weight: 600; }
.plan-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 4px; }
.plan-link { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--bg); }
.plan-link:hover { border-color: var(--gold); color: var(--ink); }
.plan-link .ph { width: 64px; height: 52px; border-radius: 10px; flex: none; }
.plan-link .ph::after { inset: 4px; border-radius: 6px; }
.plan-link > span { display: grid; font-size: .95rem; line-height: 1.35; min-width: 0; }
.plan-link .go { margin-left: auto; color: var(--gold-ink); }
.plan-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: 20px; background: var(--gold-soft); border: 1px solid #E6D7B8; }
.plan-card > .ic { width: 32px; height: 32px; color: var(--gold-ink); }
.plan-card .grow { flex: 1; min-width: 200px; }
@media (max-width: 800px) { .plan-hero { grid-template-columns: 1fr; padding: 28px 22px; } .plan-item { padding: 18px; gap: 12px; } .plan-num { width: 36px; height: 36px; } }

/* "Will it fit?" and certified boxes on listings */
.fit { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; margin: 0 0 16px; border: 1px solid var(--line); background: var(--bg); }
.fit > .ic { margin-top: 2px; width: 24px; height: 24px; }
.fit-ok { background: var(--ok-soft); border-color: #C9DFD0; }
.fit-ok > .ic { color: var(--ok); }
.fit-warn { background: var(--sun-soft); border-color: #E6D7B8; }
.fit-warn > .ic { color: var(--gold-ink); }
.fit p { font-size: .95rem; }

/* Why Refit Haven */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.stats { display: grid; gap: 14px; margin: 24px 0 8px; }
.stat { display: flex; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.stat-n { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--primary); min-width: 3.2em; }
.why-table-wrap { padding: 8px 8px 4px; overflow-x: auto; }
.why-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.why-table th, .why-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.why-table tbody tr:last-child th, .why-table tbody tr:last-child td { border-bottom: 0; }
.why-table th[scope=row] { text-align: left; font-weight: 600; }
.why-table thead th { font-size: .85rem; color: var(--muted); font-weight: 600; vertical-align: bottom; }
.why-table thead th:nth-child(2) { color: var(--primary); font-family: "Playfair Display", Georgia, serif; font-size: 1.05rem; }
.why-table td.us { background: #F1F4EF; color: var(--ok); }
.why-table td.us .ic { width: 1.4em; height: 1.4em; }
.why-table .no { color: #A39A8B; }
.why-table .some { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 520px) { .why-table th, .why-table td { padding: 10px 6px; font-size: .9rem; } }

/* printing a Home Plan */
@media print {
  .demo-bar, .site-head, .display-panel, .site-foot, .help-fab, .backbar, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .plan-hero { background: none; color: #000; border: 2px solid #000; }
  .plan-hero h1, .plan-hero .lead, .plan-hero .eyebrow, .plan-big { color: #000; }
  .plan-item, .panel { box-shadow: none; break-inside: avoid; }
}

/* ================= easier shopping (after the October 2026 survey) ================= */

/* larger buttons setting */
html.pref-bigbtn .btn { min-height: 62px; font-size: 1.12rem; padding: .75em 1.6em; }
html.pref-bigbtn .cat-pill { min-height: 60px; }

/* one big buy button on every card, above the card's own link */
.card-buy { position: relative; z-index: 2; width: 100%; margin-top: auto; }
.card-body { gap: 10px; }
.card .meta { margin-bottom: 4px; }

/* "Go to cart" inside the bottom message */
.toast-btn { margin-left: 8px; color: #1A1A1A; background: #E2C88F; border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.toast-btn:hover { background: #F3EADA; color: #1A1A1A; }

/* big category tiles */
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat-big { position: relative; padding: 26px 24px 22px; min-height: 230px; }
.cat-big .tile { width: 68px; height: 68px; }
.cat-big .tile .ic { width: 36px; height: 36px; }
.cat-big strong { font-size: 1.45rem; }
.cat-top { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft); color: #5B451C; border: 1px solid #E6D7B8; border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 700; }
.cat-top .ic { width: 1em; height: 1em; }
.cat-top .ic svg { fill: currentColor; }
.cat-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 1rem; }
.cat-big:hover .cat-go { background: var(--primary-ink); }
@media (max-width: 520px) { .cat-top { position: static; align-self: flex-start; } .cat-big { min-height: 0; } }

/* help-paying banner */
.pay-banner { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 22px; background: var(--gold-soft); border: 1px solid #E6D7B8; text-decoration: none; color: var(--ink); }
.pay-banner:hover { border-color: var(--gold); color: var(--ink); box-shadow: var(--shadow); }
.pay-banner .tile { width: 56px; height: 56px; flex: none; }
.pay-banner strong { display: block; font-family: var(--heading); font-size: 1.35rem; }
.pay-banner small { display: block; color: var(--muted); font-size: 1rem; margin-top: 4px; }
.pay-banner .go { margin-left: auto; color: var(--gold-ink); width: 1.6em; height: 1.6em; flex: none; }

/* survey results */
.survey-stat { display: flex; flex-direction: column; gap: 8px; }
.survey-stat .stat-n { font-size: 2.6rem; line-height: 1; }

/* category buttons on the Shop page */
.cat-bar { margin: 0 0 26px; }
.cat-bar-label { font-weight: 700; margin: 0 0 10px; }
.cat-bar-list { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.cat-pill:hover { border-color: var(--gold); }
.cat-pill[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cat-pill .ic { width: 1.3em; height: 1.3em; }
#results { scroll-margin-top: 180px; }

/* verified review label */
.verified { font-size: .78rem; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }
.verified .ic { width: 1em; height: 1em; }

/* first-visit "bigger text?" question */
.ask-big { background: var(--gold-soft); border-bottom: 1px solid #E6D7B8; padding: 14px 0; }
.ask-big-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.ask-big-row p { font-size: 1.05rem; max-width: 44em; }

/* dialogs, toasts, display panel */
dialog { border-radius: 26px; border: 1px solid var(--line); padding: 34px; }
.toast { background: var(--deep); border: 1px solid rgba(226,200,143,.4); border-radius: 999px; padding: 14px 26px; }
.toast .ic { color: #E2C88F; }
.display-panel { background: linear-gradient(180deg, #F4EDE1, #F8F3EA); }

/* Safety Check cards: fewer, wider columns so words don't wrap one per line (columns scale with text size) */
.choices:has(> .choice-big) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15em), 1fr)); gap: 12px; }
.choice-big > span > span:last-child { flex: 1; min-width: 0; overflow-wrap: break-word; line-height: 1.35; }
.choice-big > span::before { align-self: center; margin-top: 0; }

/* Top menu: with bigger text, keep it on one row (compact first, then the Menu button) */
@media (min-width: 1301px) and (max-width: 1700px) {
  html.pref-big .main-nav a { padding: 0 8px; font-size: .92rem; }
  html.pref-big .main-nav .ic { display: none; }
  html.pref-big .main-nav .nav-sell .ic { display: inline-flex; }
}
@media (min-width: 1041px) and (max-width: 1300px) {
  html.pref-big .head-row { flex-wrap: wrap; }
  html.pref-big .head-search { order: 3; flex-basis: 100%; max-width: none; }
  html.pref-big .menu-btn { display: inline-flex; }
  html.pref-big .main-nav { display: none; }
  html.pref-big .main-nav.open { display: block; }
  html.pref-big .main-nav ul { flex-direction: column; padding: 8px 0 14px; }
  html.pref-big .main-nav a { border-bottom: 0; border-left: 4px solid transparent; font-size: 1rem; padding: 0 11px; }
  html.pref-big .main-nav .ic { display: inline-flex; }
  html.pref-big .main-nav a[aria-current="page"] { border-left-color: var(--gold); background: var(--gold-soft); }
  html.pref-big .main-nav .nav-sell, html.pref-big .main-nav .nav-gap { margin-left: 0; }
}
/* Phones with bigger buttons: keep the top two buttons side by side without spilling off the screen */
@media (max-width: 520px) {
  .head-tools .btn, html.pref-bigbtn .head-tools .btn { padding: .5em .7em; font-size: 1rem; white-space: nowrap; min-width: 0; }
  html.pref-bigbtn .head-search .btn { padding: .5em .9em; }
}

/* Find real installers near you (Google Maps search box on the installer page) */
.gmap-box { background: var(--surface); border: 1px solid #E6D7B8; border-radius: 22px; padding: 22px 24px; margin: 0 0 24px; box-shadow: var(--shadow); }
.gmap-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.gmap-head .tile { width: 56px; height: 56px; flex: none; }
.gmap-head .tile .ic { width: 28px; height: 28px; }
.gmap-head h2 { font-size: 1.5rem; margin: 0 0 .15em; }
.gmap-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.gmap-row .field { margin: 0; }
.gmap-row .btn { margin-top: 1.9em; }
.gmap-box .hint { display: flex; gap: .4em; align-items: flex-start; margin-top: 12px; }
.gmap-box .hint .ic { flex: none; margin-top: .2em; }
@media (max-width: 760px) { .gmap-row { grid-template-columns: 1fr; } .gmap-row .btn { margin-top: 0; width: 100%; } }
@media (max-width: 520px) {
  .gmap-box { padding: 18px 16px; }
  .gmap-head { align-items: flex-start; gap: 12px; }
  .gmap-head .tile { width: 44px; height: 44px; }
  .gmap-head h2 { font-size: 1.3rem; }
}
