:root {
  --ink: #0b1424;
  --ink-2: #24344a;
  --muted: #5c6b80;
  --line: #dde3ee;
  --line-soft: #eef1f7;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --bg-tint: #e9eef6;
  --brand: #0a7ca8;
  --brand-dark: #06607f;
  --brand-ink: #ffffff;
  --coin: #f0b429;
  --coin-dark: #d9a01f;
  --accent: #c9a227;
  --mint: #0f8f66;
  --mint-soft: #e6f6f0;
  --amber: #b7791f;
  --amber-soft: #fdf3e2;
  --rose: #c2384f;
  --rose-soft: #fdeef1;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(12, 36, 61, 0.06), 0 1px 3px rgba(12, 36, 61, 0.04);
  --shadow-md: 0 10px 30px rgba(12, 36, 61, 0.09);
  --shadow-lg: 0 24px 60px rgba(12, 36, 61, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }

/* ---------- App shell (member area) ---------- */
.app-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem 4.5rem;
}
.app-shell.account-wide {
  max-width: 980px;
}

/* ---------- My Account (FB-style left panel) ---------- */
.account-title {
  margin: 0.4rem 0 0.25rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.account-lede { margin-top: 0; margin-bottom: 1rem; }
.account-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: sticky;
  top: 4.5rem;
  padding: 0.35rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}
.account-nav-link {
  display: block;
  text-align: left;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 560;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.account-nav-link:hover { background: #fff; color: var(--ink); }
.account-nav-link.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
}
.account-nav-link.danger-text { color: var(--rose); margin-top: 0.35rem; }
.account-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}
.account-stat-grid .card-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem;
}
.account-stat-grid strong { font-size: 1.25rem; color: var(--ink); }
.account-stat-grid span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Phone country picker ---------- */
.phone-field {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.phone-cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.phone-cc-chev { color: var(--muted); font-size: 0.75rem; }
.phone-national {
  width: 100%;
  padding: 0.48rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font: inherit;
}
.phone-cc-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-cc-panel[hidden] { display: none !important; }
.phone-cc-search {
  margin: 0.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.phone-cc-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.4rem;
  overflow: auto;
}
.phone-cc-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.phone-cc-list li:hover { background: var(--bg-soft); }
.phone-cc-name { color: var(--ink); }
.phone-cc-list .phone-cc-dial { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav {
    position: static;
    flex-direction: column;
  }
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 0.9rem;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-mark { width: 36px; height: 36px; flex: none; border-radius: 50%; box-shadow: none; object-fit: contain; background: transparent; }
.brand-text {
  display: block;
  min-width: 0;
}
/* Wordmark column; tagline truly centered under Circlebucks */
.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
}
.brand {
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.brand-accent { color: var(--brand); }
.brand-lockup {
  margin: 0.18rem 0 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}
.bonus-chip {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff6cc;
  color: #8a6a00;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-right { display: flex; align-items: center; gap: 0.45rem; flex: none; }

.balance-pill {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem;
  margin: 0.9rem 0 1.4rem;
}
.tab {
  font: inherit;
  font-size: 0.86rem;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.35rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover { color: var(--ink); }
.tab.active {
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

button, .btn-primary, a.btn-primary, .ghost, a.ghost, .btn-join, a.btn-join {
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0.48rem 1rem;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
button,
button[type="submit"],
.btn-primary,
a.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
button:hover,
button[type="submit"]:hover,
.btn-primary:hover,
a.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: #fff;
}
/* Secondary — quiet outline, not a second solid brick */
.ghost,
a.ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 600;
}
.ghost:hover,
a.ghost:hover {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: #c5d0e0;
  filter: none;
  transform: translateY(-1px);
}
.btn-sm { padding: 0.36rem 0.7rem; font-size: 0.86rem; line-height: 1.25; }
/* Join CTAs — coin gold, black type (matches brand mark) */
.btn-join,
a.btn-join,
button.btn-join,
button.btn-join[type="submit"] {
  background: linear-gradient(135deg, var(--coin), var(--coin-dark));
  color: #111827;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(240, 180, 41, 0.4);
}
.btn-join:hover,
a.btn-join:hover,
button.btn-join:hover,
button.btn-join[type="submit"]:hover {
  background: linear-gradient(135deg, #f7c34a, var(--coin));
  color: #111827;
  box-shadow: 0 6px 18px rgba(240, 180, 41, 0.5);
  transform: translateY(-1px);
  filter: none;
}
button:active { transform: scale(0.985); }
button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.page { animation: rise 0.35s ease both; }

h1, h2, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 0 0 0.45rem;
  color: var(--ink);
  line-height: 1.15;
}
h1 { font-size: clamp(1.5rem, 3.6vw, 1.95rem); }
h2 { font-size: 1.2rem; }
.section-h {
  font-family: var(--font);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
  margin: 1.7rem 0 0.7rem;
}
.lede { color: var(--muted); margin: 0 0 1.2rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  color: var(--brand);
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.panel h2, .panel-h {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.field-hint {
  float: right;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.invite-panel {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: linear-gradient(180deg, var(--bg-tint), #fff);
}
.invite-msg {
  margin: 0.5rem 0 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-2);
}
.cta-row.tight { margin-bottom: 0.75rem; }
.cta-row.tight .btn-primary,
.cta-row.tight .ghost,
.cta-row.tight .btn-join,
.cta-row.tight button {
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
  line-height: 1.25;
}
.paste-box { margin-top: 0.85rem; }
.paste-box textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
}
.break-all { word-break: break-all; }
.panel, .card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.card.quiet { background: var(--bg-soft); box-shadow: none; }
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover { border-color: #c5d0e0; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stack { display: flex; flex-direction: column; gap: 0.7rem; }

label {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.86rem;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
input, textarea, select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 128, 255, 0.13);
}
.check { flex-direction: row; align-items: center; gap: 0.55rem; margin-bottom: 0.5rem; }
.check input { width: auto; }
.check-set {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin: 0 0 0.9rem;
  background: var(--bg-soft);
}
.check-set legend { padding: 0 0.35rem; color: var(--muted); font-size: 0.8rem; font-weight: 600; }

.card h3 { margin: 0 0 0.3rem; font-size: 1.02rem; font-weight: 600; }
.meta { color: var(--muted); font-size: 0.86rem; margin: 0 0 0.5rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.76rem; word-break: break-all; }

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--brand-dark);
  margin-bottom: 0.55rem;
}
.badge.accepted, .badge.pending_confirm { background: var(--amber-soft); color: var(--amber); }
.badge.done { background: var(--mint-soft); color: var(--mint); }
.badge.cancelled { background: var(--rose-soft); color: var(--rose); }

.row-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.8rem 0 1rem; }

.balance-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #0b8bb8 0%, #0a7ca8 55%, #06607f 100%);
  box-shadow: var(--shadow-md);
}
.balance-hero .meta { color: rgba(255, 255, 255, 0.78); }
.balance-num {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.1rem 0;
  letter-spacing: -0.04em;
  line-height: 1;
}
.balance-num span { font-size: 0.95rem; opacity: 0.8; }
.balance-hero .btn-primary {
  background: linear-gradient(135deg, #0b8bb8, #06607f);
  color: #fff;
}
.balance-hero .ghost { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-col { display: flex; flex-direction: column; gap: 0.45rem; }

.summary-box {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  margin: 0.4rem 0 1rem;
}
.summary-box .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.22rem 0;
  font-size: 0.92rem;
}
.summary-box .row strong { font-variant-numeric: tabular-nums; }
.summary-box .row.total { border-top: 1px solid var(--line); margin-top: 0.35rem; padding-top: 0.45rem; }

.share-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.share-row:last-child { border-bottom: none; }

.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; }
.inline-form label { margin: 0; flex: 1; min-width: 140px; }
.inline-form.adj { margin-top: 0.55rem; }

hr.soft { border: none; border-top: 1px solid var(--line-soft); margin: 0.9rem 0; }

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  color: var(--muted);
  text-align: center;
  background: var(--bg-soft);
}
.empty.warn { border-color: #f0d9a8; background: var(--amber-soft); color: var(--amber); }

.pos { color: var(--mint); font-weight: 700; margin: 0 0 0.2rem; font-variant-numeric: tabular-nums; }
.neg { color: var(--rose); font-weight: 700; margin: 0 0 0.2rem; font-variant-numeric: tabular-nums; }
.danger-text { color: var(--rose); border-color: #f3ccd4; margin-top: 1.2rem; }

.toast-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-tint);
  border: 1px solid #d5e6ff;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}
.toast-x {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 0.25rem;
}
.time-picker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.time-picker select {
  font: inherit;
  font-weight: 600;
  padding: 0.48rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}
.tp-colon { font-weight: 700; color: var(--muted); }
.place-tag {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  background: var(--bg-tint);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}
.place-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
  background: var(--bg-tint);
  border: 1px solid #d5e6ff;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}
.sync-on { color: var(--mint); font-weight: 600; }

/* ---------- Marketing site ---------- */
.site { overflow-x: hidden; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.top-right a.btn-primary,
.top-right a.btn-primary:hover,
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: #fff;
}
.top-right a.ghost,
.top-right a.ghost:hover,
.site-nav a.ghost,
.site-nav a.ghost:hover,
.cta-row a.ghost,
.cta-row a.ghost:hover {
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
}
.nav-links a.btn-join,
.nav-links a.btn-join:hover,
.top-right a.btn-join,
.top-right a.btn-join:hover,
.site-nav a.btn-join,
.site-nav a.btn-join:hover,
.cta-row a.btn-join,
.cta-row a.btn-join:hover,
.quote-band a.btn-join,
.quote-band a.btn-join:hover {
  color: #111827;
}
.quote-band .btn-join {
  background: linear-gradient(135deg, var(--coin), var(--coin-dark));
  color: #111827;
}
.quote-band .ghost,
.quote-band a.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.quote-band .ghost:hover,
.quote-band a.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(1000px 460px at 78% -8%, #d9e3f0 0%, transparent 62%),
    radial-gradient(760px 420px at 4% 6%, #e8edf4 0%, transparent 58%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 3.9rem);
  line-height: 1.03;
  margin: 0 0 1rem;
  letter-spacing: -0.042em;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.16rem); color: var(--muted); margin: 0 0 1.7rem; max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.3rem; align-items: center; }
.cta-row .btn-primary,
.cta-row .ghost,
.cta-row .btn-join {
  padding: 0.52rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.25;
}
.trust-line { color: var(--muted); font-size: 0.88rem; margin: 0; }

.feed-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 0.4rem 1.15rem 0.9rem;
}
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0 0.7rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0.3rem;
}
.feed-title { font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; max-width: 70%; line-height: 1.25; }
.feed-text { font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.foot-links a { color: var(--muted); font-weight: 500; }
.legal { max-width: 720px; }
.legal-block h2 { margin-top: 0; }
.legal-block p, .legal-block li { color: var(--ink-2); font-size: 0.95rem; }
.legal-block ul { margin: 0.5rem 0 0.8rem; padding-left: 1.2rem; }
.legal-block li { margin-bottom: 0.45rem; }
.label.check, label.check {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}
label.check input { width: auto; }
.feed-dot {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  background: var(--mint-soft);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.feed-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.feed-row:last-child { border-bottom: none; }
.feed-amt {
  flex: none;
  min-width: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--brand-dark);
  background: var(--bg-tint);
  border-radius: 8px;
  padding: 0.2rem 0.4rem;
  line-height: 1.25;
}

.band-note {
  margin: 1.6rem 0 0;
  max-width: 62ch;
  font-size: 1rem;
}

.phone-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 1.15rem;
}
.phone-card .pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.7rem;
  margin-bottom: 0.85rem;
}
.pc-title { font-weight: 700; font-size: 0.95rem; }
.pc-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--bg-tint);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.pc-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: 0.92rem;
}
.pc-avatar {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #0b8bb8, #06607f);
}
.pc-avatar.g2 { background: linear-gradient(135deg, #14b57e, #0a8a5f); }
.pc-avatar.g3 { background: linear-gradient(135deg, #f0a338, #cf7c14); }
.pc-row .pc-meta { color: var(--muted); font-size: 0.82rem; }
.pc-foot {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.pc-claim {
  background: var(--mint-soft);
  color: var(--mint);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.band { padding: clamp(2.6rem, 6vw, 4.2rem) 0; }
.band.soft { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.band-head { max-width: 60ch; margin-bottom: 2rem; }
.band-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.15rem); margin-bottom: 0.6rem; }
.band-head p { color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--bg-tint);
  margin-bottom: 0.85rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.06rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.use-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.use-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.use-emoji { font-size: 1.35rem; line-height: 1; }
.use-card strong { display: block; font-size: 0.98rem; }
.use-card span { color: var(--muted); font-size: 0.84rem; }

.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.why-card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; font-weight: 700; }
.why-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.quote-band {
  background: linear-gradient(135deg, #044a62, #0a7ca8);
  color: #fff;
  border-radius: 22px;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.quote-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.7rem; }
.quote-band p { color: rgba(255,255,255,0.82); max-width: 52ch; margin: 0 auto 1.6rem; }
.quote-band .btn-primary {
  background: linear-gradient(135deg, #0b8bb8, #06607f);
  color: #fff;
}
.quote-band .cta-row { justify-content: center; margin-bottom: 0; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq-item h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .grid-6 { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn-primary):not(.btn-join) { display: none; }
}

@media (max-width: 560px) {
  .grid-3, .grid-2, .grid-6 { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tab { font-size: 0.75rem; padding: 0.5rem 0.2rem; }
  .balance-hero { flex-direction: column; align-items: stretch; }
  .balance-num { font-size: 2.1rem; }
  .share-row { flex-direction: column; align-items: stretch; }
  .brand { font-size: 1.08rem; }
  .brand-lockup { font-size: 0.56rem; }
  .tag { display: none; }
}

/* ---------- Ride Ask composer ---------- */
.ride-composer .ride-steps {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.ride-steps span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-soft);
}
.ride-steps span.on {
  background: var(--bg-tint);
  color: var(--brand-dark);
}
.ride-when-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.ride-map-slot {
  margin: 0.85rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  min-height: 160px;
}
.ride-map-svg { display: block; width: 100%; height: auto; }
.ride-map-tiles { position: relative; border-radius: 14px; overflow: hidden; background: #d5e8f2; }
.ride-map-img { display: block; width: 100%; height: auto; min-height: 180px; object-fit: cover; }
.ride-map-fallback .ride-map-svg { border-radius: 0; }
details.quiet-panel { padding: 0.85rem 1rem; }
details.quiet-panel > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
details.quiet-panel > summary::-webkit-details-marker { display: none; }
details.quiet-panel[open] > summary { margin-bottom: 0.65rem; }
.ride-map-placeholder {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.place-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  max-height: 200px;
  overflow: auto;
  box-shadow: var(--shadow-sm);
}
.place-list li {
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line-soft);
}
.place-list li:last-child { border-bottom: none; }
.place-list li:hover { background: var(--bg-soft); }
.place-busy { color: var(--muted); cursor: default; }
.ride-fare-card {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin: 0.75rem 0;
  border: 1px solid var(--line-soft);
}
.ride-fare-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  font-size: 0.92rem;
}
.ride-fare-row.highlight {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
.ride-fare-row .suggest { color: var(--brand-dark); font-size: 1.25rem; }
.ride-fare-row small { color: var(--muted); font-weight: 400; }
.quiet-panel { background: var(--bg-soft); }
.ride-trip-card {
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.ride-trip-meta { padding: 0.75rem 0.9rem; }
.ride-trip-meta p { margin: 0.25rem 0; font-size: 0.92rem; }

/* Trip chat status chips */
.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}
.status-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-2);
}
.status-chip.on, .status-chip:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--bg-tint);
}
.trip-status-now {
  margin: 0.5rem 0;
  padding: 0.55rem 0.75rem;
  background: var(--mint-soft);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.status-msg { border-left: 3px solid var(--brand); }
.chat-stack { margin-bottom: 1rem; }

@media (max-width: 560px) {
  .ride-when-row { grid-template-columns: 1fr; }
}
