/* ScentSpin design system v5 — "the shop floor".
   White gallery canvas, real seller photography, one ember accent, calm marketplace grammar.
   Sections: tokens · reset · type · layout · nav + search · footer · buttons · forms · chips · pills ·
   listing card · hero · rail · shop (filters + grid) · panel · how · plans · waitlist · notice · table ·
   toast · skeleton · empty · a11y · dot · icons · login · legacy (admin) · v6 (proof, badges, rail, dialog, plans, faq) · motion */

/* ---------- tokens ---------- */
:root {
  --canvas: #F7F7F7;
  --card: #FFFFFF;
  --fg: #222222;
  --fg-2: #6A6A6A;
  --fg-3: #C1C1C1;
  --line: #EBEBEB;
  --muted: #DDDDDD;

  --acc: #E0461E;
  --acc-hover: #C43A15;
  --acc-bg: #FDECE6;
  --on-acc: #FFFFFF;

  --vault: #100904;
  --vault-2: #382416;
  --cream: #FFEDD7;
  --cream-2: rgba(255, 237, 215, .62);

  --good: #1F9D55; --good-bg: #EAF7EF;
  --warn: #B7791F; --warn-bg: #FDF6E7;
  --bad: var(--acc); --bad-bg: var(--acc-bg);

  /* aliases kept for admin/legal templates written against v2 names */
  --bg: var(--card); --bg-2: var(--canvas); --surface: var(--card); --surface-2: var(--canvas);
  --line-2: var(--muted); --overlay: rgba(34, 34, 34, .72);

  --font: "Figtree", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px;
  --s8: 40px; --s10: 48px; --s12: 64px; --s16: 96px; --s20: 128px;

  --r-card: 12px; --r-input: 8px; --r-pill: 9999px; --r-media: 12px; --r-btn: 9999px; --r-sm: 8px;
  --shadow-float: 0 0 0 1px rgba(0, 0, 0, .02), 0 2px 6px rgba(0, 0, 0, .04), 0 4px 8px rgba(0, 0, 0, .10);
  --shadow-pop: 0 8px 28px rgba(0, 0, 0, .28);
  --shadow-menu: 0 6px 20px rgba(0, 0, 0, .2);

  --t-hover: 150ms; --t-toggle: 200ms; --t-reveal: 300ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: 20px;
  --nav-h: 64px;
  --rail-h: 56px;
  --page-max: 1440px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ---------- reset ---------- */
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--canvas); color: var(--fg);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding-left: 22px; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--canvas); padding: 1px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s7) 0; }
::selection { background: var(--acc-bg); color: var(--fg); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
.display { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.h1 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.h2 { font-size: 22px; line-height: 1.18; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.h3 { font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: 17px; line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }
@media (min-width: 900px) { .h1 { font-size: 32px; } .h2 { font-size: 26px; } .lead { font-size: 18px; } }
.text-sm { font-size: 14px; line-height: 1.45; }
.label { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--fg-2); }
.caption { font-size: 13px; line-height: 1.4; color: var(--fg-2); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-2); }
.link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--fg-3); font-size: 14px; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- layout ---------- */
.container, .container-wide, .container-narrow { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
.container, .container-wide { max-width: var(--page-max); }
.container-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--s10); }
.section-tight { padding-block: var(--s7); }
@media (min-width: 900px) { .section { padding-block: var(--s12); } .section-tight { padding-block: var(--s10); } }
.band { background: var(--card); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stack { display: grid; gap: var(--s3); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: var(--s5); }
.sec-head .lead { font-size: 15px; }

/* ---------- nav + search ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--nav-h); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 17px; letter-spacing: -.01em; min-height: 44px; flex: none; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-cta { display: flex; align-items: center; gap: var(--s2); margin-left: auto; flex: none; }
.nav .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.btn-ghost[aria-pressed="true"] .n { background: #fff; color: var(--fg); }
.search {
  display: flex; align-items: center; gap: 8px; flex: 1 1 auto; max-width: 520px; min-width: 0;
  height: 42px; padding: 0 8px 0 14px; border-radius: var(--r-pill); background: var(--canvas); border: 1px solid transparent;
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.search:focus-within { background: var(--card); border-color: var(--muted); box-shadow: var(--shadow-float); }
.search svg.i { color: var(--fg-2); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 15px; height: 100%; }
.search input:focus { outline: none; }
.search input::placeholder { color: var(--fg-2); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-2); }
.search-clear:hover { background: var(--line); color: var(--fg); }
.shop-nav #status { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
@media (min-width: 1100px) { .shop-nav #status { display: inline-flex; } }
@media (max-width: 767px) {
  .shop-nav .nav-in { flex-wrap: wrap; row-gap: 0; padding-bottom: 10px; }
  .shop-nav .search { order: 3; flex-basis: 100%; max-width: none; }
  .shop-nav .nav-saved span:not(.n) { display: none; }
}

/* ---------- footer ---------- */
.footer { background: var(--canvas); border-top: 1px solid var(--line); padding-block: var(--s10) var(--s7); color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.footer-cols { display: grid; gap: var(--s6); grid-template-columns: 1fr; margin-bottom: var(--s7); }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--fg); }
.footer-col a { color: var(--fg-2); min-height: 32px; display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--fg); text-decoration: none; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s4); }
.footer-links a { color: var(--fg-2); min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; color: var(--fg); background: transparent; cursor: pointer;
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
  -webkit-user-select: none; user-select: none; position: relative;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--acc); color: var(--on-acc); border-color: var(--acc); font-weight: 600; }
.btn-primary:hover { background: var(--acc-hover); border-color: var(--acc-hover); }
.btn-inverse { background: var(--fg); color: #fff; border-color: var(--fg); }
.btn-inverse:hover { background: #000; }
.btn-secondary { background: var(--card); color: var(--fg); border-color: var(--fg); }
.btn-secondary:hover { background: var(--canvas); }
.btn-ghost { color: var(--fg); }
.btn-ghost:hover { background: var(--canvas); }
.btn-ghost[aria-pressed="true"] { background: var(--fg); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-sm::after { content: ""; position: absolute; inset: -3px; }
.btn-block { width: 100%; }
.btn svg.i { flex: none; }
.btn-round {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--canvas); color: var(--fg); position: relative;
  transition: background-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease), opacity var(--t-hover) var(--ease);
}
.btn-round::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; }
.btn-round:hover { background: var(--line); }
.btn-round:active { transform: scale(.94); }
.btn-round.on-media { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.btn-round.on-media:hover { background: #fff; transform: scale(1.06); }
.btn-round.acc { background: var(--acc); color: #fff; width: 48px; height: 48px; }
.btn-round.acc:hover { background: var(--acc-hover); }
.btn-round:disabled { opacity: .35; cursor: not-allowed; transform: none; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field .label { display: block; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 0 14px;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--muted); border-radius: var(--r-input);
  transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
  font-size: 16px; line-height: 1.3;
}
.textarea { padding-block: 10px; min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--fg-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.input[aria-invalid="true"] { border-color: var(--acc); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.hint { font-size: 13px; line-height: 1.4; color: var(--fg-2); }
.hint-ok { color: var(--good); }
.hint-err { color: var(--acc); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row > .input { flex: 1 1 220px; }

/* ---------- chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; position: relative;
  min-height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--muted); background: var(--card); color: var(--fg);
  font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color var(--t-toggle) var(--ease), border-color var(--t-toggle) var(--ease), color var(--t-toggle) var(--ease);
}
.chip::after { content: ""; position: absolute; inset: -4px; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }
.chip svg.i { width: 15px; height: 15px; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 24px; padding: 0 9px; border-radius: var(--r-pill);
  background: var(--canvas); color: var(--fg-2);
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; vertical-align: middle;
}
.pill svg.i { width: 13px; height: 13px; }
.pill-acc { background: var(--acc-bg); color: var(--acc); }
.pill-good { background: var(--good-bg); color: var(--good); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-over {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  min-height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94); color: var(--fg); font-size: 12px; font-weight: 600; line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .14); white-space: nowrap;
}
.pill-over svg.i { width: 13px; height: 13px; }
.pill-over.src { left: 10px; top: 10px; }
.pill-over.cd { left: 10px; bottom: 10px; font-variant-numeric: tabular-nums; }
.pill-over.cd.hot { background: var(--acc); color: #fff; }
.pill-over.cd.hot.urgent { animation: throb 1.6s var(--ease) infinite; }
@keyframes throb { 50% { box-shadow: 0 0 0 5px rgba(224, 70, 30, .18); } }

/* ---------- listing card ---------- */
.listing { display: flex; flex-direction: column; min-width: 0; position: relative; cursor: pointer; border-radius: var(--r-card); }
.listing:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.listing-media {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--r-media); background: var(--line); isolation: isolate;
}
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 250ms var(--ease), transform 400ms var(--ease-out); }
.listing-media img.alt { position: absolute; inset: 0; opacity: 0; }
.listing:hover .listing-media img.alt { opacity: 1; }
.listing:hover .listing-media img.main.no-alt { transform: scale(1.04); }
.listing-media .noimg { position: absolute; inset: 0; background: var(--canvas) url("/media/noimg.webp") center/cover no-repeat; }
.heart {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .14);
  transition: transform var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.heart::after { content: ""; position: absolute; inset: -4px; }
.heart svg.i { width: 18px; height: 18px; stroke-width: 2; }
.heart:hover { transform: scale(1.08); }
.heart[aria-pressed="true"] { color: var(--acc); }
.heart[aria-pressed="true"] svg.i { fill: var(--acc); stroke: var(--acc); }
.listing-body { display: grid; gap: 3px; padding: 10px 2px 0; }
.listing-house { font-size: 13px; font-weight: 600; color: var(--fg); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-house span { font-weight: 400; color: var(--fg-2); }
.listing-title { font-size: 14px; line-height: 1.35; font-weight: 400; color: var(--fg-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.listing-meta { font-size: 13px; line-height: 1.4; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; line-height: 1.4; margin-top: 3px; }
.listing-price .now { font-weight: 600; font-size: 16px; color: var(--fg); }
.listing-price .typ { color: var(--fg-2); }
.listing-price .below { color: var(--acc); font-weight: 600; }
.listing.leaving { transition: opacity 250ms var(--ease), transform 250ms var(--ease); opacity: 0; transform: scale(.96); pointer-events: none; }
.listing.sk .listing-media { background: var(--muted); }
.listing.sk .listing-body > .skeleton { height: 14px; }

/* ---------- hero ---------- */
.hero { display: grid; gap: var(--s7); align-items: center; padding-block: var(--s8) var(--s6); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s12); padding-block: var(--s12) var(--s8); } }
@media (min-width: 1200px) { .hero { grid-template-columns: 1.05fr 1fr; } }
.hero-copy { display: grid; gap: var(--s4); max-width: 560px; }
.hero-copy .display .l { display: block; }
.hero-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--fg-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s1); }
.hero-tile { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--vault); overflow: hidden; }
@media (min-width: 900px) { .hero-tile { aspect-ratio: 5 / 4; } }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.featured {
  position: absolute; left: var(--s4); bottom: var(--s4); z-index: 2; width: min(340px, calc(100% - 2 * var(--s4)));
  display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, .97); border-radius: var(--r-card); padding: 10px; box-shadow: var(--shadow-float); cursor: pointer;
  transition: transform var(--t-hover) var(--ease);
}
.featured:hover { transform: translateY(-2px); }
.featured:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.featured-media { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--line); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { display: grid; gap: 2px; min-width: 0; }
.featured-label { font-size: 11px; font-weight: 600; color: var(--acc); }
.featured .listing-price { margin-top: 2px; }
.featured .listing-price .now { font-size: 18px; }

/* ---------- category rail ---------- */
.rail-wrap { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(247, 247, 247, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.rail { display: flex; gap: 8px; align-items: center; min-height: var(--rail-h); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid transparent; color: var(--fg-2); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color var(--t-toggle) var(--ease), color var(--t-toggle) var(--ease), border-color var(--t-toggle) var(--ease);
}
.rail-btn svg.i { width: 16px; height: 16px; }
.rail-btn:hover { color: var(--fg); background: var(--line); }
.rail-btn[aria-pressed="true"] { background: var(--fg); color: #fff; }
@media (max-width: 767px) { .rail-wrap { top: calc(var(--nav-h) + 52px); } }

/* ---------- shop: filters + grid ---------- */
.shop { display: grid; gap: var(--s6); padding-block: var(--s6) var(--s12); align-items: start; }
@media (min-width: 1024px) { .shop { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s8); } }
.filters { display: grid; gap: var(--s5); align-content: start; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--nav-h) + var(--rail-h) + var(--s5)); max-height: calc(100dvh - var(--nav-h) - var(--rail-h) - var(--s8)); overflow-y: auto; padding-right: 4px; } }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filters-head .h3 { flex: 1; }
.fgroup { border: 0; padding: 0; margin: 0; display: grid; gap: 2px; }
.fgroup legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.fopt { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 14px; cursor: pointer; color: var(--fg); }
.fopt input { width: 16px; height: 16px; margin: 0; accent-color: var(--fg); flex: none; }
.fopt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fopt em { font-style: normal; font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.fopt em:empty { display: none; }
.fopt.zero { color: var(--fg-3); }
.fopt.zero em { color: var(--fg-3); }
.fopt.more { display: none; }
.fgroup.open .fopt.more { display: flex; }
.fmore { justify-self: start; margin-top: 4px; }
.frange { display: flex; align-items: center; gap: 8px; }
.frange .input { min-height: 38px; padding: 0 10px; font-size: 14px; }
.frange span { font-size: 13px; color: var(--fg-2); }
.filters-toggle { display: none; justify-self: start; }
.sheet-close, .sheet-foot { display: none; }
@media (max-width: 1023px) {
  .filters-toggle { display: inline-flex; }
  .filters { position: fixed; inset: auto 0 0 0; z-index: 80; max-height: 86dvh; overflow-y: auto; background: var(--card); border-radius: 20px 20px 0 0; padding: var(--s5) var(--gutter) calc(var(--s5) + env(safe-area-inset-bottom)); box-shadow: var(--shadow-pop); transform: translateY(105%); transition: transform 320ms var(--ease-out); }
  .filters.open { transform: none; }
  .sheet-close { display: inline-flex; }
  .sheet-foot { display: block; position: sticky; bottom: 0; padding-top: var(--s3); background: linear-gradient(transparent, var(--card) 30%); }
}
.shop-main { display: grid; gap: var(--s5); min-width: 0; }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.shop-count { font-size: 14px; color: var(--fg-2); }
.shop-count b { color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; align-items: center; }
.chips .chip { min-height: 32px; padding: 0 10px 0 12px; font-size: 13px; }
.chips .chip svg.i { width: 14px; height: 14px; }
.sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--fg-2); }
.sort .select { width: auto; min-height: 38px; font-size: 14px; }
.listing-grid { display: grid; gap: var(--s6) var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s5); } }
@media (min-width: 1280px) { .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.listing-grid.animate > .listing { animation: card-in 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.load-more { display: flex; align-items: center; justify-content: center; gap: var(--s3); padding-top: var(--s3); }

/* ---------- detail panel ---------- */
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(34, 34, 34, .38); opacity: 0; transition: opacity 250ms var(--ease); }
.backdrop.open { opacity: 1; }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(580px, 100%);
  background: var(--card); box-shadow: var(--shadow-pop); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform 320ms var(--ease-out);
  display: grid; grid-template-rows: auto 1fr auto; align-content: start;
}
.panel.open { transform: none; }
.panel-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px var(--s5); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.panel-head .caption { flex: 1; }
.panel-body { padding: 0 var(--s5) var(--s6); display: grid; gap: var(--s5); }
.gallery { display: grid; gap: 8px; }
.gallery-main { aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden; background: var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button { flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--line); border: 2px solid transparent; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--fg); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel-title { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.panel .listing-price .now { font-size: 26px; }
.panel .listing-price .typ, .panel .listing-price .below { font-size: 15px; }
.why { display: grid; gap: 8px; padding: var(--s4); border-radius: var(--r-card); background: var(--canvas); font-size: 14px; line-height: 1.5; }
.why h4 { font-size: 13px; font-weight: 600; }
.why .gap { display: flex; align-items: center; gap: 10px; }
.why .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.why .bar i { display: block; height: 100%; background: var(--acc); border-radius: 3px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 14px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 12px; color: var(--fg-2); }
.facts dd { font-weight: 500; }
.panel-actions { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 8px; padding: 12px var(--s5) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.panel-actions .btn { flex: 1; }
.panel-actions .heart { position: static; width: 44px; height: 44px; box-shadow: none; background: var(--canvas); flex: none; }
.gate { display: grid; gap: 8px; padding: var(--s4); border-radius: var(--r-card); background: var(--acc-bg); font-size: 14px; }
.gate strong { color: var(--fg); }
.gate .btn { justify-self: start; }
table.lot { width: 100%; border-collapse: collapse; font-size: 13px; }
table.lot td { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.lot td.n { text-align: right; white-space: nowrap; padding-left: 8px; }
table.lot .sub { color: var(--fg-2); }
.spark { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); }
.spark svg { width: 80px; height: 22px; flex: none; }
body.panel-open { overflow: hidden; }

/* ---------- how it works ---------- */
.how-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; margin-top: var(--s6); }
@media (min-width: 768px) { .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s8); } }
.how-step { display: grid; gap: 8px; align-content: start; padding: var(--s5); background: var(--card); border-radius: var(--r-card); }
.how-step p { color: var(--fg-2); font-size: 14px; line-height: 1.55; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: 1fr; gap: var(--s4); align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
.plan { background: var(--card); border-radius: var(--r-card); padding: var(--s6); display: grid; gap: var(--s3); align-content: start; position: relative; }
.plan.hi { box-shadow: 0 0 0 1.5px var(--acc); }
.plan-price { font-size: 36px; line-height: 1.05; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 14px; font-weight: 400; color: var(--fg-2); letter-spacing: 0; margin-left: 6px; }
.plan ul { padding: 0; list-style: none; display: grid; gap: 8px; color: var(--fg-2); font-size: 14px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg.i { width: 16px; height: 16px; margin-top: 2px; color: var(--fg); }
.plan .pill { justify-self: start; }

/* ---------- waitlist ---------- */
.wl { max-width: 620px; margin-inline: auto; display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.wl .lead { max-width: 440px; }
.wl-form { width: 100%; max-width: 520px; display: flex; align-items: center; gap: 6px; background: var(--card); border-radius: var(--r-pill); padding: 6px 6px 6px 22px; box-shadow: var(--shadow-float); }
.wl-form .input { border: 0; padding: 0; min-height: 44px; box-shadow: none; background: transparent; }
.wl-form .input:focus { box-shadow: none; }
.wl-form .btn-round.acc { flex: none; }
.wl .hint { min-height: 1.4em; }
.wl2 { width: 100%; text-align: left; background: var(--card); border-radius: var(--r-card); padding: var(--s6); display: grid; gap: var(--s4); }
.wl2 .grid-2 { gap: var(--s3); }
.wl2 .field .caption { display: inline; font-weight: 400; }

/* ---------- notice ---------- */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r-card); background: var(--card); color: var(--fg-2); font-size: 14px; line-height: 1.5; }
.notice strong { color: var(--fg); font-weight: 600; }
.notice svg.i { flex: none; margin-top: 2px; }
.notice a { color: inherit; text-decoration: underline; }
.notice-ok { background: var(--good-bg); color: var(--good); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-bad { background: var(--bad-bg); color: var(--bad); }
.notice-ok strong, .notice-warn strong, .notice-bad strong { color: inherit; }
.notice-line { font-size: 13px; color: var(--fg-2); }
.notice-line a { text-decoration: underline; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); background: var(--card); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; font-weight: 600; color: var(--fg-2); background: var(--card); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--canvas); }
.table tfoot td { font-weight: 600; background: var(--canvas); border-top: 1px solid var(--muted); }
.table .n { text-align: right; font-variant-numeric: tabular-nums; }
.table .wrap { white-space: normal; overflow-wrap: anywhere; }
.table td.mut { color: var(--fg-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--fg); color: #fff; box-shadow: var(--shadow-pop);
  padding: 12px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; white-space: nowrap; max-width: calc(100vw - 40px);
  transition: opacity var(--t-toggle) var(--ease), transform var(--t-toggle) var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- skeleton ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--muted); border-radius: var(--r-sm); color: transparent; min-height: 1em; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 1.4s var(--ease) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- empty ---------- */
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: var(--s12) var(--s4); color: var(--fg-2); font-size: 14px; background: var(--card); border-radius: var(--r-card); grid-column: 1 / -1; }
.empty svg.i { width: 24px; height: 24px; color: var(--fg-3); }
.empty b { color: var(--fg); font-size: 16px; }

/* ---------- a11y ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--fg); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-weight: 500; font-size: 14px; text-decoration: none; transition: top var(--t-hover) var(--ease); }
.skip-link:focus { top: 12px; outline: 2px solid var(--acc); outline-offset: 3px; }
.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; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible, .btn-round:focus-visible, .chip:focus-visible, .rail-btn:focus-visible, .heart:focus-visible, .input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: inherit; }
.btn-primary:focus-visible, .btn-round.acc:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--acc); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; }
main:focus { outline: none; }

/* ---------- status dot ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.dot.run { background: var(--acc); animation: pulse 1.2s var(--ease) infinite; }
.dot.bad { background: var(--acc); }
.dot.warn { background: var(--warn); }
.dot.idle { background: var(--fg-3); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- icons ---------- */
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.chev { transition: transform var(--t-toggle) var(--ease); }

/* ---------- login ---------- */
body.login-page { background: var(--card); }
.login-split { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.login-art { display: none; position: relative; background: var(--vault); overflow: hidden; }
.login-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.login-art .login-quote { position: absolute; left: var(--s8); bottom: var(--s8); right: var(--s8); color: var(--cream); font-size: 22px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; max-width: 22ch; }
.login-art .login-quote small { display: block; margin-top: 10px; font-size: 13px; color: var(--cream-2); font-weight: 400; }
.login-pane { display: grid; place-items: center; padding: var(--s8) var(--gutter); }
.login { width: min(100%, 400px); display: grid; gap: var(--s6); }
.login .nav-brand { justify-self: start; }
.login form { display: grid; gap: var(--s3); }
.login form .btn { margin-top: 6px; }
.login .foot { text-align: center; }
.login .foot a { text-decoration: underline; text-decoration-color: var(--fg-3); }
@media (min-width: 900px) { .login-split { grid-template-columns: 1.1fr 1fr; } .login-art { display: block; } }

/* ---------- legacy (admin, legal) ---------- */
.card { background: var(--card); border-radius: var(--r-card); display: flex; flex-direction: column; min-width: 0; }
.card-body { padding: var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s3); align-content: start; flex: 1; }
.card-title { font-size: 16px; line-height: 1.35; font-weight: 500; }
.card-meta { font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.tile { background: var(--card); border-radius: var(--r-card); padding: var(--s4) var(--s5); display: grid; gap: 4px; min-width: 0; }
.tile-label { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--fg-2); }
.tile-value { font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile-hint { font-size: 13px; color: var(--fg-2); }
.tile-value.good { color: var(--good); } .tile-value.warn { color: var(--warn); } .tile-value.bad { color: var(--acc); }
.stat-row { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7); }
.stat { display: grid; gap: 2px; }
.stat-value { font-size: 24px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--fg-2); }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.price { font-size: 22px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--line); border-radius: var(--r-pill); }
.seg > button, .seg > a { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); color: var(--fg-2); font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
.seg > [aria-pressed="true"], .seg > [aria-current] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .10); }
body.centered { display: grid; place-items: center; padding: var(--s5); }
body.centered main { width: 100%; display: grid; place-items: center; }

/* ---------- v6: proof strip · badges · teaser · recent rail · similar · watch dialog · caught up · plans · faq ---------- */
.proof { display: grid; gap: var(--s3); padding-block: 0 var(--s6); }
.proof-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.proof-track { list-style: none; padding: 0 var(--gutter); margin: 0 calc(-1 * var(--gutter)); display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.proof-track::-webkit-scrollbar { display: none; }
.close-chip { flex: none; display: grid; gap: 2px; width: 250px; padding: 12px 14px; border-radius: var(--r-card); background: var(--card); font-size: 13px; line-height: 1.4; }
.close-name { font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.close-line { color: var(--fg-2); }
.close-line b { color: var(--fg); }
.close-line .below, .closes .below { color: var(--acc); font-weight: 600; }

.drop { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: var(--r-pill); background: var(--acc-bg); color: var(--acc); font-size: 12px; font-weight: 600; line-height: 1; }
.pill-over.auth { color: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc), 0 1px 3px rgba(0, 0, 0, .14); }
.pill.pill-auth { background: transparent; color: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
.pill-over.cd.over { background: var(--fg-2); color: #fff; }
.listing.ended .listing-media { opacity: .55; filter: grayscale(1); }
.listing.ended .listing-body { color: var(--fg-2); }
.listing.ended .listing-house, .listing.ended .listing-price .now, .listing.ended .listing-price .below { color: var(--fg-2); }
.listing.ended .drop { background: var(--canvas); color: var(--fg-2); }

.teaser, .grid-head, .grid-note { grid-column: 1 / -1; }
.teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 16px; border-radius: var(--r-card); background: var(--card); font-size: 14px; line-height: 1.45; }
.teaser b { color: var(--fg); }
.teaser a { color: var(--acc); font-weight: 600; }
.grid-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: calc(-1 * var(--s3)); }
.grid-note { padding: 12px 16px; border-radius: var(--r-card); background: var(--acc-bg); font-size: 14px; color: var(--fg-2); }
.grid-note a { color: var(--acc); font-weight: 600; }
.affinity { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: calc(-1 * var(--s3)); }
.affinity b { color: var(--fg); font-weight: 500; }
.affinity .link { font-size: 13px; }
.bar-alert { flex: none; }
@media (max-width: 639px) { .bar-alert span { display: none; } }

.recent { display: grid; gap: 10px; }
.recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.recent-track { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter) 4px; margin-inline: calc(-1 * var(--gutter)); }
.recent-track::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 150px; display: grid; gap: 4px; align-content: start; text-align: left; border-radius: var(--r-card); color: var(--fg); }
.mini:hover .mini-media img { transform: scale(1.04); }
.mini-media { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); }
.mini-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.mini-media .noimg { display: block; width: 100%; height: 100%; background: var(--canvas) url("/media/noimg.webp") center/cover no-repeat; }
.mini .listing-house { font-size: 12px; margin-top: 4px; }
.mini .listing-price { margin-top: 0; gap: 2px 6px; font-size: 12px; }
.mini .listing-price .now { font-size: 14px; }
.more-like { display: grid; gap: 10px; }
.more-like h4 { font-size: 13px; font-weight: 600; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 480px) { .mini-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mini-grid .mini { width: auto; }
.panel-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.closes { list-style: none; padding: 0; display: grid; gap: 6px; }
.closes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.closes li > span:first-child { font-weight: 500; color: var(--fg); }
.closes .when { color: var(--fg-3); font-size: 12px; }

.dlg { border: 0; padding: 0; margin: auto; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 16px; background: var(--card); color: var(--fg); box-shadow: var(--shadow-pop); }
.dlg::backdrop { background: rgba(34, 34, 34, .45); }
.dlg[open] { animation: dlg-in 240ms var(--ease-out) both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dlg-form, .dlg-done { padding: var(--s6); display: grid; gap: var(--s4); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dlg-form .fopt { min-height: 44px; }
.dlg-form .fopt input { width: 18px; height: 18px; }
.field.ro .input { background: var(--canvas); color: var(--fg-2); }
.dlg-done .btn { justify-self: start; }

#sentinel { height: 1px; }
.caught { display: grid; justify-items: center; text-align: center; gap: 8px; padding: var(--s8) var(--s4); border-radius: var(--r-card); background: var(--card); }
.caught b { font-size: 18px; }
.caught .t { font-size: 14px; color: var(--fg-2); min-height: 1.4em; }
.caught .t:empty { display: none; }
.caught .btn { margin-top: 6px; }
.next-scan { display: none; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
@media (min-width: 900px) { .next-scan { display: inline; } }

.pricing-head { align-items: flex-start; }
.pricing-head .lead { max-width: 60ch; margin-top: 8px; }
.bill .pill { margin-left: 6px; min-height: 20px; padding: 0 7px; font-size: 11px; }
.bill > button { min-height: 40px; display: inline-flex; align-items: center; }
.plans.plans-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans.plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); } }
.plans-4 .plan { display: flex; flex-direction: column; }
.plans-4 .plan .pill { align-self: flex-start; }
.plan-limits b { color: var(--fg); font-weight: 600; }
.plan-limits li span { flex: 1; }
.plan-save { margin-top: -6px; }
.seats b { color: var(--acc); }
.plan-foot { margin-top: auto; padding-top: var(--s2); display: grid; gap: 6px; justify-items: center; text-align: center; }
.plans-note { margin-top: var(--s4); }

.faq-list { display: grid; gap: 8px; max-width: 760px; margin-top: var(--s5); }
.faq-list details { background: var(--card); border-radius: var(--r-card); padding: 0 var(--s5); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-weight: 600; font-size: 15px; }
.faq-list summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 1.75px solid var(--fg-2); border-bottom: 1.75px solid var(--fg-2); transform: rotate(45deg); transition: transform var(--t-toggle) var(--ease); }
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details p { padding: 0 0 var(--s5); color: var(--fg-2); font-size: 14px; line-height: 1.55; max-width: 62ch; }

/* ---------- motion: one opening sequence, then still ---------- */
.js .hero-copy .display .l, .js .hero-copy .lead, .js .hero-line, .js .hero-actions { opacity: 0; }
.js.motion-ready .hero-copy .display .l { animation: rise 700ms var(--ease-out) both; }
.js.motion-ready .hero-copy .display .l:nth-child(2) { animation-delay: 90ms; }
.js.motion-ready .hero-copy .lead { animation: fade-up 600ms var(--ease-out) 260ms both; }
.js.motion-ready .hero-line { animation: fade-up 600ms var(--ease-out) 380ms both; }
.js.motion-ready .hero-actions { animation: fade-up 600ms var(--ease-out) 460ms both; }
.js .hero-tile { clip-path: inset(0 100% 0 0 round 16px); }
.js.motion-ready .hero-tile { animation: wipe 900ms var(--ease-out) 150ms both; }
.js .featured { opacity: 0; }
.js.motion-ready .featured { animation: fade-up 600ms var(--ease-out) 900ms both; }
.js .hero-img { transform: scale(1.06); }
.js.motion-ready .hero-img { animation: drift 9s ease-out 150ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0 round 16px); } to { clip-path: inset(0 0 0 0 round 16px); } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.reveal { animation: reveal var(--t-reveal) var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-copy .display .l, .js .hero-copy .lead, .js .hero-line, .js .hero-actions, .js .featured { opacity: 1; }
  .js .hero-tile { clip-path: none; }
  .js .hero-img { transform: none; }
  .listing:hover .listing-media img { transform: none; }
}
