/* ==========================================================================
   Posodi.si – public pages
   --------------------------------------------------------------------------
   Loaded on every page after app.css. Only what the public pages need on
   top of the design system: tokens, type scale, buttons, panels, cards and
   the calendar base all come from app.css.

   Contents
     P1  Item page (layout, owner, sections, booking panel, mobile bar)
     P2  Calendar – additions for calendar.js
     P3  Booking step 2 (book.njk) and the summary card
     P4  Renter booking page (booking.njk)
     P5  Search / category
     P6  Content blocks: flow, payment flow, FAQ, perks, earnings
     P7  How it works, vendors
     P8  Legal documents (terms, privacy)
     P9  Contact
   ========================================================================== */


/* ==========================================================================
   P1  Item page
   ========================================================================== */
.item-page { padding-top: var(--s-5); }
.item-preview { align-items: center; margin-bottom: var(--s-5); }
.item-preview .btn { flex: none; }
@media (max-width: 519px) { .item-preview { flex-wrap: wrap; } }

/* Booking errors are shown next to the calendar (#termin) – hide the top copy */
.page-item .flash-stack .flash:not(.notice--ok) { display: none; }
.page-item .flash-stack:not(:has(.notice--ok)) { display: none; }

.item-head__meta .icon { --icon-size: 18px; }
.item-head__meta .is-instant { color: var(--ok-ink); font-weight: 550; }
.item-head__cat { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.item-head__cat:hover { color: var(--ink); text-decoration: underline; }

/* Mobile order: gallery, about, calendar, booking panel, terms.
   Desktop: content left, booking panel right (sticky across all rows). */
.item-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "gallery" "about" "termin" "panel" "info";
  gap: var(--s-6);
}
.item-layout > * { min-width: 0; }
.item-layout__gallery { grid-area: gallery; }
.item-layout__about { grid-area: about; }
.item-layout__termin { grid-area: termin; scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.item-layout__panel { grid-area: panel; }
.item-layout__info { grid-area: info; }
@media (min-width: 720px) { .item-layout { gap: var(--s-7); } }
@media (min-width: 960px) {
  .item-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "gallery panel" "about panel" "termin panel" "info panel";
    column-gap: var(--s-7);
  }
  .item-layout__panel { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; }
}
@media (min-width: 1200px) {
  .item-layout { grid-template-columns: minmax(0, 1fr) 380px; column-gap: var(--s-8); }
}

/* Owner line above the description */
.item-owner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.item-owner .avatar { flex: none; width: 48px; height: 48px; font-size: 1.25rem; }
.avatar--brand { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.avatar__mark { width: 30px; height: 30px; }

.item-section + .item-section { margin-top: var(--s-7); }
.item-section__title { font-size: var(--text-xl); margin-bottom: var(--s-4); }
.item-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px var(--s-4);
  margin-bottom: var(--s-4);
}
.item-section__head .item-section__title { margin: 0; }
.item-section__note { color: var(--muted); font-size: var(--text-sm); }
.item-lead { max-width: 62ch; margin-bottom: var(--s-4); font-size: var(--text-lg); line-height: 1.5; color: var(--ink); }

/* Calendar panel */
.cal-panel { padding: var(--s-5) var(--s-4) var(--s-4); }
@media (min-width: 720px) { .cal-panel { padding: var(--s-6) var(--s-6) var(--s-5); } }
.termin-flash { margin-bottom: var(--s-4); }
.cal-nojs { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.cal-nojs .icon { color: var(--violet); margin-top: 2px; }

/* Booking panel */
.book-panel { padding: var(--s-5); }
@media (min-width: 720px) { .book-panel { padding: var(--s-6) var(--s-5) var(--s-5); } }
.book-panel .book-panel__price { margin-bottom: var(--s-5); }
.tier-list { display: grid; gap: 2px; color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
.tier-list strong { margin-left: 2px; color: var(--ink); font-weight: 650; }

.book-form { display: grid; gap: var(--s-4); }
.book-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}
.book-dates--fields { gap: var(--s-3); overflow: visible; border: 0; border-radius: 0; background: none; }
.book-dates[hidden] { display: none; }
.book-date {
  display: grid;
  gap: 2px;
  align-content: start;
  min-width: 0;
  padding: 10px 14px 12px;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-fast), box-shadow var(--t-fast);
}
.book-date + .book-date { border-left: 1px solid var(--line-strong); }
.book-date:hover { background: var(--canvas-soft); }
.book-date:focus-visible { outline-offset: -3px; }
.book-date__label { color: var(--ink-2); font-size: var(--text-xs); font-weight: 650; }
.book-date__value { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.book-date__value.is-empty { color: var(--muted); font-weight: 500; }
/* while the return day is being chosen, point at it */
.book-panel.has-start:not(.has-range) .book-date + .book-date { box-shadow: inset 0 0 0 2px var(--violet); border-radius: 0 var(--r-md) var(--r-md) 0; }

.book-panel__empty { padding: 2px 0; color: var(--muted); font-size: var(--text-sm); text-align: center; }
.book-sum { padding: var(--s-1) 0 var(--s-1); transition: opacity var(--t-fast); }
.book-sum[hidden] { display: none; }
.book-sum.is-loading { opacity: .55; }
ul.book-facts {
  display: grid;
  gap: 10px;
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.book-facts li { display: flex; gap: 10px; align-items: flex-start; }
.book-facts .icon { --icon-size: 18px; flex: none; color: var(--muted); }

/* Price list, rules, facts */
.terms-grid { display: grid; gap: var(--s-6); }
@media (min-width: 720px) { .terms-grid { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
.terms-grid__title { margin-bottom: var(--s-2); font-family: var(--font-body); font-size: var(--text-base); font-weight: 650; letter-spacing: 0; }
.price-list .money { font-size: 1.0625rem; }

ul.facts { display: grid; margin-top: var(--s-6); border-top: 1px solid var(--line); }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
.facts__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.facts__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--canvas-deep); color: var(--ink-2); }
.facts__title { margin-bottom: 4px; font-family: var(--font-body); font-size: var(--text-base); font-weight: 650; letter-spacing: 0; }
.facts__item p { color: var(--ink-2); font-size: .9375rem; }

.item-related { padding-bottom: 0; }

/* Mobile bottom bar: price + "Izberi termin", then total + "Nadaljuj" */
.book-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 -12px 28px -20px rgba(23, 38, 43, .45);
  transition: transform .25s var(--ease-out), visibility .25s;
}
.book-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
.book-bar__info { display: flex; align-items: center; min-width: 0; min-height: 44px; padding-left: 16px; }
.book-bar .book-bar__sel { display: none; }
.book-bar.has-range .book-bar__idle { display: none; }
.book-bar.has-range span.book-bar__sel { display: grid; line-height: 1.25; padding-left: 0; }
.book-bar.has-range .book-bar__info { padding-left: 0; }
.book-bar.has-range .btn.book-bar__sel { display: inline-flex; }
.book-bar__total { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 720; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.book-bar__range { overflow: hidden; color: var(--muted); font-size: var(--text-sm); text-overflow: ellipsis; white-space: nowrap; }
.book-bar .btn { flex: none; }
@media (max-width: 959px) {
  .page-item .site-footer { padding-bottom: calc(var(--s-5) + 76px); }
  .page-item .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) { .book-bar { display: none; } }
@media print { .book-bar { display: none; } }


/* ==========================================================================
   P2  Calendar – additions for public/js/calendar.js
   ========================================================================== */
[data-calendar] { min-height: 380px; }
[data-calendar].is-ready { min-height: 0; }
/* calendar.js only sets cal--2 when the container is wide enough */
.cal--2 .cal__months { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.cal.is-loading { display: grid; place-items: center; min-height: 360px; }

.cal__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--s-4); margin-top: var(--s-3); }
.cal__foot .cal__hint { flex: 1 1 260px; margin-top: 0; }
.cal__clear { flex: none; font-size: var(--text-sm); }
.cal__failed { margin: 0; }

/* not a valid choice right now: no hover disc */
.cal__day[aria-disabled="true"] { cursor: default; }
.cal__day.is-booked[aria-disabled="true"] { cursor: not-allowed; }
.cal__day[aria-disabled="true"]:hover::after { background: none; box-shadow: none; }
/* 24 h mode without buffer: the first day of the next booking can still be the return day */
.cal.is-picking-end .cal__day.is-booked:not([aria-disabled]) { cursor: pointer; }

/* start disc without a band until there is a range or a preview */
.cal:not(.has-band) .cal__day.is-start,
.cal__day.is-start.is-end { background: none; }

/* hover preview of the return day */
.cal__day.is-preview-end { background: linear-gradient(to left, transparent 50%, color-mix(in srgb, var(--violet-50) 70%, transparent) 50%); }
.cal__day.is-preview-end::after { box-shadow: inset 0 0 0 2px var(--violet); }
.cal__day.is-preview-end > span { color: var(--violet-press); font-weight: 700; }
.cal__grid > .cal__day.is-preview-end:nth-child(7n + 1) { border-radius: 0; }

/* in-range days outside the start window keep the band colour */
.cal__day.is-in-range.is-booked > span { color: var(--violet); }


/* ==========================================================================
   P3  Booking step 2 (book.njk) + summary card (also on booking.njk)
   ========================================================================== */
.book-page { padding-top: var(--s-5); }
.book-page__steps { margin-top: var(--s-5); }
.book-page__steps .steps { max-width: 760px; margin-bottom: var(--s-6); }
.book-head { margin-bottom: var(--s-5); }
.book-head__title { font-size: var(--text-3xl); }
.book-head__lead { max-width: 62ch; margin-top: var(--s-2); color: var(--ink-2); }
.book-errors { max-width: 760px; margin-bottom: var(--s-5); }
@media (min-width: 960px) {
  .book-layout > .book-layout__summary { grid-column: 2; grid-row: 1; }
  .book-layout > .book-layout__form { grid-column: 1; grid-row: 1; }
  .book-layout__summary { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}

.book-card { padding: var(--s-5); }
.book-card__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.book-card__media { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--canvas-deep); }
.book-card__media img { width: 100%; height: 100%; object-fit: cover; }
.book-card__media .ph .icon { width: 36%; }
.book-card__title { font-weight: 650; line-height: 1.3; }
.book-card__title a { color: var(--ink); text-decoration: none; }
.book-card__title a:hover { text-decoration: underline; }
.book-card__meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--muted); font-size: var(--text-sm); }
.book-card__meta .icon { --icon-size: 15px; }
@media (min-width: 960px) {
  .book-card__item { grid-template-columns: 1fr; }
  .book-card__media { aspect-ratio: 16 / 10; }
}
.book-card__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: var(--s-4);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
}
.book-card__date { display: grid; gap: 2px; padding: 10px 14px; background: var(--surface); }
.book-card__label { color: var(--muted); font-size: var(--text-xs); font-weight: 650; }
.book-card__value { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.book-card__change { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 10px 0 0; color: var(--muted); font-size: var(--text-sm); }
.book-card__change a { font-weight: 600; }
.book-card .sum { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.book-card__pay {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: var(--s-4);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--canvas-soft);
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.book-card__pay .icon { --icon-size: 17px; flex: none; margin-top: 1px; color: var(--muted); }
.book-card__paystate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--text-sm); }

.next-steps { padding: var(--s-4) var(--s-5) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--canvas-soft); }
.next-steps__title { margin-bottom: var(--s-3); font-family: var(--font-body); font-size: var(--text-base); font-weight: 650; letter-spacing: 0; }
.next-steps__list { display: grid; gap: 10px; counter-reset: ns; }
.next-steps__list li { position: relative; padding-left: 36px; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; counter-increment: ns; }
.next-steps__list li::before {
  content: counter(ns);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
}
.next-steps__note { margin-top: var(--s-3); color: var(--muted); font-size: var(--text-sm); }
.book-actions { padding-top: 0; }
.book-actions__note { margin-top: calc(var(--s-3) * -1); color: var(--muted); font-size: var(--text-sm); }


/* ==========================================================================
   P4  Renter booking page
   ========================================================================== */
.booking-page { padding-top: var(--s-5); }
.booking-banner { align-items: center; margin-top: var(--s-4); }
.booking-banner .btn { flex: none; }
/* phones: status, summary, details – desktop: status + details left, sticky summary right */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "status" "aside" "main";
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.booking-layout > .bstatus { grid-area: status; }
.booking-layout > .booking-aside { grid-area: aside; }
.booking-layout > .booking-main { grid-area: main; }
@media (min-width: 960px) {
  .booking-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-rows: auto 1fr;
    grid-template-areas: "status aside" "main aside";
    column-gap: var(--s-7);
    align-items: start;
  }
}
.booking-main { display: grid; gap: var(--s-4); min-width: 0; }

.bstatus {
  --t-bg: var(--canvas-deep);
  --t-fg: var(--ink-2);
  --t-line: var(--line-strong);
  position: relative;
  display: grid;
  gap: var(--s-4);
  overflow: hidden;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.bstatus::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--t-line); }
@media (min-width: 720px) {
  .bstatus { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-5); padding: var(--s-6); }
}
.bstatus--ok { --t-bg: var(--ok-50); --t-fg: var(--ok); --t-line: var(--ok); }
.bstatus--warn { --t-bg: var(--warn-50); --t-fg: var(--warn-ink); --t-line: var(--warn); }
.bstatus--danger { --t-bg: var(--danger-50); --t-fg: var(--danger-ink); --t-line: var(--danger); }
.bstatus--violet { --t-bg: var(--violet-50); --t-fg: var(--violet); --t-line: var(--violet); }
.bstatus--muted { --t-bg: var(--canvas-soft); --t-fg: var(--muted); --t-line: var(--line-strong); }
.bstatus__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--t-bg); color: var(--t-fg); }
.bstatus__icon .icon { --icon-size: 28px; stroke-width: 1.8; }
@media (min-width: 720px) { .bstatus__icon { width: 64px; height: 64px; } }
.bstatus__body { min-width: 0; }
.bstatus__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: var(--text-sm); }
.bstatus__code strong { color: var(--ink); font-weight: 650; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.bstatus__copy { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-sm); }
.bstatus__title { margin-top: var(--s-3); font-size: var(--text-3xl); }
.bstatus__text { max-width: 62ch; margin-top: var(--s-3); color: var(--ink-2); font-size: var(--text-md); }
.bstatus__quote { margin: var(--s-4) 0 0; padding: 12px 16px; border-left: 3px solid var(--line-strong); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--canvas-soft); }
.bstatus__quote p { color: var(--ink); }
.bstatus__quote footer { margin-top: 4px; color: var(--muted); font-size: var(--text-xs); }
.bstatus__actions { margin-top: var(--s-5); }
.bstatus__mail { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); }
.bstatus__mail .icon { margin-top: 2px; }
.bstatus__mail strong { color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }

.booking-block { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
@media (min-width: 720px) { .booking-block { padding: var(--s-6); } }
.booking-block__title { margin-bottom: var(--s-4); font-size: var(--text-lg); }
.booking-block__text { color: var(--ink-2); }
.booking-block__text + .booking-block__text { margin-top: var(--s-2); }
.booking-block > .booking-block__text + .cancel-box { margin-top: var(--s-4); }

.pickup__grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .pickup__grid { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-6); } }
.pickup__when { display: grid; gap: var(--s-3); align-content: start; }
.pickup__day { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--violet-200); }
.pickup__label { color: var(--muted); font-size: var(--text-xs); font-weight: 650; }
.pickup__date { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 650; line-height: 1.25; }
.pickup__address { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-md); font-weight: 550; line-height: 1.45; }
.pickup__address .icon { flex: none; margin-top: 2px; color: var(--violet); }
.pickup__map { margin: 6px 0 0 30px; font-size: var(--text-sm); }
.pickup__map a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.pickup__notes { margin-top: var(--s-4); padding: 12px 14px; border-radius: var(--r-md); background: var(--canvas-soft); color: var(--ink-2); }
.pickup__notes .pickup__label { margin-bottom: 2px; }
.pickup__contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.pickup__deposit { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--s-4); color: var(--ink-2); font-size: var(--text-sm); }
.pickup__deposit .icon { margin-top: 2px; color: var(--muted); }

.cancel-box > summary { width: fit-content; list-style: none; }
.cancel-box > summary::-webkit-details-marker { display: none; }
.cancel-box__open, .cancel-box[open] .cancel-box__closed { display: none; }
.cancel-box[open] .cancel-box__open { display: inline; }
.cancel-box[open] > summary { --btn-bg: transparent; --btn-bd: transparent; --btn-bg-hover: rgba(23, 38, 43, .06); --btn-bd-hover: transparent; }
.cancel-box__form { margin-top: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--canvas-soft); gap: var(--s-4); }

.booking-aside { min-width: 0; }
@media (min-width: 960px) { .booking-aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; } }
.booking-aside__help { margin-top: var(--s-4); color: var(--muted); font-size: var(--text-sm); text-align: center; }


/* ==========================================================================
   P5  Search / category
   ========================================================================== */
.search-page { padding-top: var(--s-5); }
.search-head { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-4) 0 var(--s-5); }
.search-head__text { min-width: 0; }
.search-head__title { font-size: var(--text-4xl); }
.search-head__lead { max-width: 62ch; margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-md); }
.cat-icon--lg { flex: none; width: 64px; height: 64px; border-radius: var(--r-lg); }
.cat-icon--lg .icon { --icon-size: 34px; }
@media (max-width: 519px) {
  .cat-icon--lg { width: 48px; height: 48px; border-radius: var(--r-md); }
  .cat-icon--lg .icon { --icon-size: 26px; }
}
.search-form { margin-bottom: var(--s-4); }
.search-cats { margin-bottom: var(--s-5); }
.search-cats .chip .icon { color: var(--muted); }
.search-cats .chip[aria-current] .icon { color: rgba(255, 255, 255, .8); }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-6); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.results-bar__count { color: var(--ink-2); font-size: var(--text-md); }
.results-bar__count strong { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.results-bar__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 8px 0 12px;
  border-radius: var(--r-pill);
  background: var(--violet-50);
  color: var(--violet-press);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.filter-tag:hover { background: var(--violet-100); text-decoration: none; }
.filter-tag .icon { --icon-size: 15px; }
.results-bar__clear { font-size: var(--text-sm); font-weight: 600; }
.search-more { margin-top: var(--s-7); color: var(--muted); text-align: center; }
.search-empty__alt { margin-top: var(--s-4); color: var(--muted); text-align: center; }


/* ==========================================================================
   P6  Content blocks
   ========================================================================== */
/* Flow: numbered steps on a vertical line */
.flow { display: grid; }
.flow__step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-6); }
.flow__step:last-child { padding-bottom: 0; }
.flow__step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line-strong); }
.flow__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 720;
}
.flow__step:first-child .flow__num { background: var(--violet); color: #fff; box-shadow: none; }
.flow__title { margin: 10px 0 6px; font-size: var(--text-lg); }
.flow__body p { max-width: 62ch; color: var(--ink-2); }
.flow--compact .flow__step { padding-bottom: var(--s-5); }
.flow--compact .flow__step:last-child { padding-bottom: 0; }

/* Card payment: reserve → charge (or release) */
.payflow { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.payflow__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-4); align-items: start; padding: var(--s-4) var(--s-5); }
.payflow__step + .payflow__step { border-top: 1px solid var(--line); }
.payflow__step > :not(.payflow__icon) { grid-column: 2; }
.payflow__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--violet-50); color: var(--violet); }
.payflow__step--ok .payflow__icon { background: var(--ok-50); color: var(--ok); }
.payflow__step--muted .payflow__icon { background: var(--canvas-deep); color: var(--muted); }
.payflow__title { margin: 8px 0 2px; font-family: var(--font-body); font-size: var(--text-base); font-weight: 650; letter-spacing: 0; }
.payflow__step p { color: var(--ink-2); font-size: .9375rem; }
.payflow__step strong { color: var(--ink); }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 18px 2px;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 620;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--violet); }
.faq__chev { flex: none; color: var(--muted); transition: rotate .2s var(--ease-out); }
.faq__item[open] .faq__chev { rotate: 180deg; }
.faq__a { max-width: 64ch; padding: 0 2px 22px; font-size: var(--text-base); }

/* Perks: four reasons, no boxes */
.perks { display: grid; border-top: 1px solid var(--line-strong); }
@media (min-width: 720px) { .perks { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
@media (min-width: 1100px) {
  .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); border-top: 0; }
  .perks__item { border-bottom: 0; border-top: 2px solid var(--ink); }
}
.perks__item { padding: var(--s-5) 0; border-bottom: 1px solid var(--line-strong); }
.perks__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s-3); border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--violet); }
.perks__title { margin-bottom: 6px; font-size: var(--text-lg); }
.perks__item p { color: var(--ink-2); }

/* Earnings example */
.earn__title { margin-bottom: var(--s-2); font-size: var(--text-xl); }
.earn__intro { margin-bottom: var(--s-4); color: var(--ink-2); }
.earn__note { margin-top: var(--s-4); color: var(--muted); font-size: var(--text-sm); }


/* ==========================================================================
   P7  How it works, vendors
   ========================================================================== */
.how-block { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.how-block__head { display: grid; gap: var(--s-2); max-width: 62ch; margin-bottom: var(--s-6); }
.how-block__head p { color: var(--ink-2); font-size: var(--text-md); }
@media (min-width: 960px) {
  .how-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
  .how-block__head { position: sticky; top: calc(var(--header-h) + var(--s-6)); margin-bottom: 0; }
}
.how-block__body { min-width: 0; }
.how-note { max-width: 70ch; margin-top: var(--s-4); color: var(--muted); font-size: var(--text-sm); }
.how-band h2 { max-width: 22ch; }
@media (min-width: 900px) { .how-band { grid-template-columns: 1fr; } }

.vendors-hero { display: grid; gap: var(--s-5); align-items: center; padding-block: clamp(32px, 5vw, 64px) var(--s-5); }
@media (min-width: 900px) { .vendors-hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-7); } }
.vendors-hero__text { min-width: 0; }
.vendors-hero__title { max-width: 17ch; margin-top: var(--s-4); font-size: var(--text-4xl); }
.vendors-hero .lead { margin-top: var(--s-4); }
.vendors-hero__art { display: flex; justify-content: center; padding: var(--s-5) 0 var(--s-5) var(--s-6); }
.vendors-hero__art .tag { --tag-rot: -8deg; }
.vendors-split { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .vendors-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-8); } }

.vendors-soon { display: grid; justify-items: start; gap: var(--s-4); padding-block: clamp(32px, 6vw, 80px); }
.vendors-soon__art { padding: var(--s-5) 0 var(--s-2) var(--s-6); }
.vendors-soon__art .tag { --tag-rot: -6deg; }
.vendors-soon p:not(.lead) { color: var(--ink-2); }


/* ==========================================================================
   P8  Legal documents
   ========================================================================== */
.doc-intro__meta { margin-top: var(--s-3); color: var(--muted); font-size: var(--text-sm); }
.doc { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); }
@media (min-width: 960px) { .doc { grid-template-columns: 250px minmax(0, 1fr); gap: var(--s-8); align-items: start; } }
.doc__toc { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.doc__toc-title { margin-bottom: var(--s-2); color: var(--ink); font-size: var(--text-sm); font-weight: 650; }
.doc__toc ol { display: grid; gap: 0 var(--s-4); margin: 0; padding: 0; list-style: none; counter-reset: toc; font-size: var(--text-sm); }
@media (min-width: 560px) and (max-width: 959px) { .doc__toc ol { grid-template-columns: 1fr 1fr; } }
.doc__toc li { counter-increment: toc; }
.doc__toc a { display: flex; gap: 6px; padding: 5px 8px; margin-left: -8px; border-radius: var(--r-sm); color: var(--ink-2); line-height: 1.35; text-decoration: none; }
.doc__toc a::before { content: counter(toc) "."; min-width: 1.6em; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc__toc a:hover { background: rgba(23, 38, 43, .05); color: var(--ink); }
@media (min-width: 960px) {
  .doc__toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); max-height: calc(100vh - var(--header-h) - var(--s-7)); overflow: auto; padding: 0; border: 0; background: none; }
}
.doc__body { max-width: 72ch; }
.doc__body > section { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.doc__body > section + section { margin-top: 2.4em; }
.doc__body > section > * + * { margin-top: 1em; }
.doc__body > section > h2 { margin-top: 0; font-size: var(--text-xl); }
.doc__body > section > h2 + * { margin-top: .6em; }
.doc__body code { padding: 1px 6px; border-radius: 4px; background: var(--canvas-deep); font-family: inherit; font-size: .95em; font-weight: 600; }
.doc-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: var(--text-sm); }
.doc-table .table td { vertical-align: top; }


/* ==========================================================================
   P9  Contact
   ========================================================================== */
.contact { display: grid; gap: var(--s-7); padding-bottom: var(--s-8); }
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
  .contact__form { grid-column: 2; grid-row: 1; }
  .contact__info { grid-column: 1; grid-row: 1; }
}
.contact__info, .contact__form { min-width: 0; }
.contact-list { display: grid; border-top: 1px solid var(--line-strong); }
.contact-list__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line-strong); }
.contact-list__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--violet); }
.contact-list__label { color: var(--muted); font-size: var(--text-xs); font-weight: 650; }
.contact-list__value { color: var(--ink); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 620; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
a.contact-list__value:hover { color: var(--violet); text-decoration: underline; }
.contact-list__sub { margin-top: 2px; color: var(--muted); font-size: var(--text-sm); }
.contact-tips { margin-top: var(--s-6); }
.contact-tips__title { margin-bottom: var(--s-3); font-size: var(--text-lg); }
.contact-tips ul { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.contact-tips li { position: relative; padding-left: 18px; color: var(--ink-2); }
.contact-tips li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-hover); }
.contact-tips strong { color: var(--ink); font-weight: 600; }

/* honeypot – off-screen for people, still in the form for bots */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.contact-sent { display: grid; justify-items: start; gap: var(--s-3); padding: var(--s-2) 0; }
.contact-sent__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-50); color: var(--ok); }
.contact-sent__icon .icon { --icon-size: 28px; }
.contact-sent__title { font-size: var(--text-2xl); }
.contact-sent p { max-width: 50ch; color: var(--ink-2); }
.contact-sent .btn-row { margin-top: var(--s-2); }
