/*
 * ChairGrab — the four pages at chairgrab*.html.
 *
 * The look of chairgrab.com: a sage hero band, Bricolage Grotesque headlines
 * over Figtree, ink pill buttons, the blue search button, pastel city tiles
 * and a dark "Have an empty chair?" card. Colours are read from chairgrab.com's
 * own stylesheet and pages. Like the site, these pages are light only.
 *
 * Self-contained on purpose: these pages do not load css/main.css, so nothing
 * here touches the other apps' pages. The logo lives in /chairgrab/img/.
 */

/* ── Tokens ─────────────────────────────────────────────── */

:root {
  color-scheme: light;
  --ink: #111827;
  --ink-2: #1F2D30;      /* text on the sage hero */
  --muted: #5B6470;
  --line: #E5E7EB;
  --line-2: #D5DEE0;
  --paper: #FFFFFF;
  --soft: #F7F8F8;       /* footer */
  --sage: #8FB1B5;       /* hero band */
  --sage-tint: #DCE7E9;
  --peach-tint: #F3E6DA;
  --blue-tint: #E6EAF3;
  --cream: #FBF5F0;
  --cream-line: #EADBCF;
  --blue: #2563EB;
  --blue-ink: #1D4ED8;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 16px 40px rgba(17, 24, 39, .16);
}

/* ── Base ───────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ───────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--ink); text-wrap: balance; }
.display { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.02em; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lead { margin: 14px 0 0; max-width: 36em; font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); }
.body { color: var(--muted); max-width: 62ch; }

/* ── Header ─────────────────────────────────────────────── */

.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:not(.btn) { color: var(--ink); }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--blue); }
@media (max-width: 760px) { .nav .wide-only { display: none; } .nav { gap: 14px; font-size: 14px; } }

/* ── Buttons ────────────────────────────────────────────── */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; font: 700 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; border-radius: 14px; min-height: 52px; font-size: 16px; }
.btn--blue:hover { background: var(--blue-ink); }
.btn--white { background: #fff; color: var(--ink); border-radius: 14px; min-height: 52px; }
.btn--line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* "Or just ask Chairry" */
.chairry { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.chairry:hover { background: rgba(255, 255, 255, .8); }
.chairry .bubble { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; }
.chairry .bubble svg { width: 16px; height: 16px; }

/* ── Hero ───────────────────────────────────────────────── */

.hero { background: var(--sage); padding: clamp(28px, 5vw, 64px) 0 clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

/* The white card that holds the way in. */
.finder { padding: 8px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.finder-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; border-radius: 14px; }
.finder-row + .finder-row { border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.finder-row:hover { background: var(--soft); }
.finder-row svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.finder-row small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.finder-row span { font-weight: 600; }
.finder .btn { width: 100%; margin-top: 8px; }

/* ── Sections ───────────────────────────────────────────── */

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-head a { font-weight: 600; font-size: 14px; text-decoration: none; }
.section-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-lead { margin: -8px 0 22px; }

/* Popular city tiles. */
.cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.city { display: block; padding: 14px; border-radius: 18px; color: var(--ink); text-decoration: none; transition: transform .2s; }
.city:hover { transform: translateY(-2px); }
.city svg { width: 18px; height: 18px; margin-bottom: 18px; }
.city b { display: block; font-size: 17px; line-height: 1.25; }
.city small { color: var(--muted); font-size: 13px; }
.t-sage { background: var(--sage-tint); }
.t-peach { background: var(--peach-tint); }
.t-blue { background: var(--blue-tint); }

/* Numbered steps: "How ChairGrab works" and the listing steps. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps .no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sage-tint); font: 700 15px/1 var(--display); }
.steps h3 { font: 700 16px/1.4 var(--sans); }
.steps p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Two audiences, side by side. */
.duo { display: grid; gap: 14px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.card { padding: clamp(20px, 3vw, 28px); border-radius: 22px; }
.card h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card p:last-child { margin-bottom: 0; }
.card .btn { margin-top: 6px; }

/* Why it works: three short points. */
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why li { padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.why b { display: block; margin-bottom: 4px; font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; }
.why span { font-size: 15px; color: var(--muted); }

/* "Have an empty chair?" */
.empty { display: grid; gap: 20px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--ink); color: #fff; }
@media (min-width: 800px) { .empty { grid-template-columns: 1fr auto; } }
.empty h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.empty p { margin: 8px 0 0; color: rgba(255, 255, 255, .82); }

/* Sponsored-style cross-promo, as on chairgrab.com. */
.promo { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--cream-line); border-radius: 18px; background: var(--cream); color: var(--ink); text-decoration: none; }
.promo img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.promo small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9A5B2E; }
.promo b { display: block; }
.promo > span:not(.btn) { flex: 1; font-size: 14px; color: var(--muted); }
.promo .btn { flex: none; }
@media (max-width: 560px) { .promo .btn { display: none; } }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0 0 16px; max-width: 70ch; color: var(--muted); }

/* ── Page heads, help cards, legal text ─────────────────── */

.page-head { background: var(--sage); padding: clamp(32px, 5vw, 64px) 0; }
.page-head .display { font-size: clamp(34px, 4.6vw, 52px); }
.updated { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }

.help { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .help { grid-template-columns: repeat(3, 1fr); } }
.help li { padding: 20px; border-radius: 18px; }
.help b { display: block; margin-bottom: 4px; font: 700 18px/1.3 var(--display); }
.help span { font-size: 15px; color: var(--ink-2); }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 22px; }
.contact a.mail { font: 700 clamp(20px, 2.4vw, 26px)/1.2 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.contact a.mail:hover { color: var(--blue); }
.contact p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.legal { max-width: 820px; color: var(--ink-2); line-height: 1.7; }
.legal h2 { margin: 2em 0 .6em; font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.01em; line-height: 1.25; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 1.4em 0 .4em; font: 700 16px/1.4 var(--sans); }
.legal ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal a { font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────── */

.foot { margin-top: clamp(40px, 6vw, 72px); padding: 40px 0 32px; background: var(--soft); border-top: 1px solid var(--line); font-size: 15px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.foot h2 { margin-bottom: 10px; font: 700 15px/1.3 var(--sans); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-base .brand { font-size: 16px; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.foot-base .brand img { width: 28px; height: 28px; }

/* ── Back to all apps ───────────────────────────────────── */
/* A slim bar above the header on every ChairGrab page, linking to pingsolveai.com. */
.ps-back { background: var(--soft); border-bottom: 1px solid var(--line); font: 600 13px/1 var(--sans); }
.ps-back .wrap { display: flex; align-items: center; min-height: 36px; }
.ps-back a { color: var(--muted); text-decoration: none; }
.ps-back a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
