/* ============================================================
   MarketFlow — site theme
   Green market square, coral price tags, a bulletin board of pinned
   listings. Bricolage Grotesque for display, Instrument Sans for text.
   ============================================================ */
:root {
  --font-display: 'Bricolage Grotesque', var(--font-body);
  --accent: #1F8A5B;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(31, 138, 91, 0.13);
  --accent-2: #F0613E;
  --sun: #F2C14E;
  --brand-ink: #0F2A22;
  --brand-ink-2: #173D32;
  --paper: #F6F8F4;
  --paper-2: #EDF2EA;
  --paper-3: #E1E9DD;
}
h1, h2, h3, h4 { font-variation-settings: 'opsz' 96; }
h1 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-weight: 800; letter-spacing: -0.025em; }
.u-flow { text-decoration-color: var(--accent-2); }
.card--ink .card__icon { color: var(--sun); }
.sticker { background: var(--sun); }
.sticker--accent { background: var(--accent-2); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 80px) 0 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 23, 31, 0.09) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 70%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero__content .sticker { margin-bottom: 26px; }
.hero__content h1 { margin-bottom: 22px; font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.6rem); }
.hero__content .lead { max-width: 54ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__trust { font-size: var(--step--1); color: var(--muted); }
.hero__trust a { font-weight: 600; color: var(--ink); }

/* The bulletin board */
.board {
  position: relative;
  aspect-ratio: 1 / 1.08;
  max-width: 540px;
  margin-left: auto;
  --rot: 0deg;
}
.note {
  position: absolute;
  width: 47%;
  padding: 10px 10px 14px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  display: grid;
  gap: 3px;
}
.note::before {
  /* the pin */
  content: '';
  position: absolute; left: 50%; top: -9px;
  width: 16px; height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid var(--ink);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.18);
}
.note__img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: grid; place-items: center;
  margin-bottom: 6px;
  color: var(--ink);
}
.note__img svg { width: 46%; height: 46%; opacity: 0.8; }
.note__img--horse { background: #CFE3D4; }
.note__img--car { background: #D3DEEB; }
.note__img--table { background: #EADBC6; }
.note__img--free { background: #F6E7B8; }
.note__cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.note__title { font-weight: 700; line-height: 1.2; font-size: 0.98rem; }
.note__meta { font-size: 0.78rem; color: var(--muted); }
.note__price {
  position: absolute; right: -14px; bottom: 16px;
  padding: 4px 10px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  transform: rotate(-6deg);
}
.note__price--free { background: var(--accent-2); color: var(--ink); }
.note--1 { left: 0; top: 0; z-index: 2; }
.note--2 { right: 0; top: 13%; z-index: 1; }
.note--3 { left: 5%; bottom: 3%; z-index: 3; }
.note--4 { right: 0; bottom: 0; z-index: 2; }
.stamp {
  position: absolute; left: 9%; top: 14%; z-index: 4;
  width: 104px; height: 104px;
  display: grid; place-items: center;
  border: 4px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-14deg);
  background: rgba(246, 248, 244, 0.85);
  box-shadow: 0 0 0 3px rgba(246, 248, 244, 0.85);
}
.stamp::after {
  content: '';
  position: absolute; inset: 6px;
  border: 1.5px dashed var(--accent);
  border-radius: 50%;
}
.board__pill {
  position: absolute; left: 50%; bottom: -18px; z-index: 5;
  transform: translateX(-50%);
  padding: 8px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--pill);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .board { max-width: 100%; aspect-ratio: auto; margin: 10px 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; padding-top: 10px; }
  .note { position: static; width: auto; animation: none; transform: rotate(var(--r)); }
  .note--3, .note--4 { display: none; }
  .stamp { left: auto; right: 6%; top: -6px; width: 84px; height: 84px; font-size: 0.78rem; }
  .board__pill { position: static; transform: none; justify-self: start; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .board { gap: 18px 14px; }
  .note { padding: 8px 8px 12px; border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
  .note__title { font-size: 0.86rem; }
  .note__meta { font-size: 0.72rem; }
  .note__price { right: -8px; bottom: 10px; font-size: 0.8rem; padding: 3px 8px; }
  .stamp { width: 72px; height: 72px; font-size: 0.66rem; top: -10px; right: 4%; }
}

/* Ticker of classifieds under the hero */
.ticker {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--sun);
  padding: 10px 0;
  font-size: var(--step--1);
}
.ticker .marquee__track { gap: 0; animation-duration: 60s; }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; padding: 0 28px; white-space: nowrap; }
.ticker__item::after { content: '✦'; margin-left: 28px; opacity: 0.4; }
.ticker__item b { padding: 2px 8px; background: var(--ink); color: var(--sun); border-radius: 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Showcase ---------- */
.showcase { display: grid; justify-items: center; gap: 24px; }
.frame--showcase { width: 100%; max-width: 980px; }
.mock { font-size: 0.82rem; color: var(--ink); min-height: 420px; }
.mock__bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--white); }
.mock__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--accent); }
.mock__search { flex: 1; display: flex; align-items: center; gap: 8px; max-width: 320px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--muted); }
.mock__search svg { width: 14px; height: 14px; }
.mock__btn { margin-left: auto; padding: 7px 12px; background: var(--accent); color: #fff; border-radius: var(--pill); font-weight: 700; }
.mock__btn--ghost { background: var(--paper-2); color: var(--ink); margin-left: 0; }
.mock__crumb { color: var(--muted); }
.mock__cats { display: flex; gap: 8px; padding: 12px 18px; overflow: hidden; }
.mock__cats span { padding: 5px 11px; border-radius: var(--pill); background: var(--paper-2); font-weight: 600; white-space: nowrap; }
.mock__cats span.is-active { background: var(--ink); color: #fff; }
.mock__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 6px 18px 18px; }
.mock__ad { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding-bottom: 10px; }
.mock__ad b { padding: 8px 10px 0; }
.mock__ad span { padding: 0 10px; font-weight: 700; color: var(--accent); }
.mock__ad small { padding: 0 10px; color: var(--muted); }
.mock__img { position: relative; aspect-ratio: 4 / 3; background: var(--c, #ddd); }
.mock__img--lg { aspect-ratio: 4 / 3; border-radius: 10px; }
.mock__badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; background: var(--sun); border-radius: 4px; font-size: 0.68rem; font-weight: 700; }
.mock__detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; padding: 18px; }
.mock__thumbs { display: flex; gap: 8px; margin-top: 8px; }
.mock__thumbs span { width: 48px; height: 36px; border-radius: 6px; background: var(--c); opacity: 0.6; }
.mock__thumbs span.is-active { opacity: 1; outline: 2px solid var(--ink); }
.mock__info { display: grid; gap: 10px; align-content: start; }
.mock__h { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.mock__price { font-size: 1.2rem; font-weight: 800; color: var(--accent); }
.mock__info p { color: var(--ink-soft); }
.mock__specs { display: flex; flex-wrap: wrap; gap: 6px; }
.mock__specs span { padding: 4px 9px; background: var(--paper-2); border-radius: 6px; font-weight: 600; }
.mock__actions { display: flex; gap: 8px; }
.mock__actions .mock__btn { margin-left: 0; }
.mock--admin { display: grid; grid-template-columns: 160px 1fr; }
.mock__side { display: grid; align-content: start; gap: 4px; padding: 16px 12px; background: var(--brand-ink); color: var(--on-ink-muted); }
.mock__side span { padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.mock__side span.is-active { background: rgba(255, 255, 255, 0.1); color: #fff; }
.mock__main { padding: 18px; display: grid; gap: 16px; background: var(--paper); }
.mock__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mock__stats div { display: grid; gap: 2px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.mock__stats b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.mock__stats b.is-accent { color: var(--accent-2); }
.mock__stats span { color: var(--muted); font-size: 0.74rem; }
.mock__chart { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.mock__chart-title { display: block; font-weight: 700; margin-bottom: 12px; }
.mock__bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.mock__bars i { position: relative; flex: 1; height: var(--h); background: linear-gradient(180deg, var(--accent), #2FB07A); border-radius: 6px 6px 0 0; }
.mock__bars s { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; text-decoration: none; font-size: 0.68rem; color: var(--muted); font-style: normal; }
@media (max-width: 760px) {
  .mock__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock__ad:nth-child(n + 5) { display: none; }
  .mock__detail { grid-template-columns: minmax(0, 1fr); }
  .mock--admin { grid-template-columns: minmax(0, 1fr); }
  .mock__side { display: flex; gap: 6px; overflow: hidden; }
  .mock__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock__search { display: none; }
}

/* ---------- Use cases ---------- */
.usecase { --uc: var(--accent); overflow: hidden; }
.usecase::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--uc); }
.usecase__icon { width: 64px; height: 64px; margin-bottom: 18px; color: var(--uc); }
.usecase__icon svg { width: 100%; height: 100%; }

/* ---------- Integrations (plugs on ink) ---------- */
.plug {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.plug__label { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); color: var(--sun); }
.plug p { color: var(--on-ink-muted); }

/* ---------- Admin ---------- */
.admin__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.admin__list li { display: grid; gap: 2px; }
.admin__list strong { font-size: var(--step-0); }
.admin__list span { color: var(--ink-soft); }
@media (max-width: 860px) { .admin__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__grid h2 { margin-bottom: 18px; }
.about__grid .lead { margin-bottom: 16px; }
.about__values { display: grid; gap: 14px; }
.value { display: grid; gap: 4px; padding: 20px 22px; background: var(--white); border-left: 6px solid var(--accent); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.value:nth-child(2) { border-color: var(--accent-2); }
.value:nth-child(3) { border-color: var(--sun); }
.value strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 800; }
.value span { color: var(--ink-soft); }
@media (max-width: 860px) { .about__grid { grid-template-columns: minmax(0, 1fr); } }
