/* Token layer for the marketing site (theme port 5/5, Nov 27 2026). Linked after rc-pages.css on the public pages
   only (home, about, agent, capabilities, demo, mission, plans, start, team, live, the trade pages, privacy, terms,
   website, website-thanks, 404). rc-pages.css gives the page, top bar, system font and buttons; this file moves the
   marketing-only parts onto the iPhone app's tokens (public/rc-tokens.css): cards #fff / #1c1c1e at radius 20 with
   a hairline and no shadow, accent #0b7d5e / #82dfcb, no glow, no violet, gold only for money.
   Look only: every section, heading, button, price and link stays where it is. */

/* ---- Home (body.rx): its dark-only variables follow the tokens, so it follows the device too ---- */
:root:is(html) body.rx {
  --bg: var(--ios-bg); --bg-raise: var(--ios-bg-2); --card: var(--ios-card); --line: var(--ios-hairline);
  --text: var(--ios-label); --muted: var(--ios-label-2); --teal: var(--ios-accent-ink); --mint: var(--ios-accent-ink);
  --ink: var(--ios-on-accent); --rx-deep: var(--ios-accent); --rx-card: var(--ios-card); --rx-grad: var(--ios-accent);
  --rx-shadow: none; --rx-r: var(--ios-r-card); --sans: var(--ios-font); --display: var(--ios-font-display);
}
:root:is(html) body.rx .rx-soft { color: var(--ios-label-2); }

/* ---- Cards: one native card everywhere ---- */
:root:is(html) body.site :is(.info-card, .ow-card, .plan4, .sl-sec) {
  background: var(--ios-card) !important; background-image: none !important; border: 1px solid var(--ios-hairline) !important;
  border-radius: var(--ios-r-card) !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none;
}
:root:is(html) body.site :is(.info-card, .plan4) p, :root:is(html) body.site .plan4 .plan-terms { color: var(--ios-label-2); }

/* ---- The home hero's own button (.btn) is the same solid accent button ---- */
:root:is(html) body.site .btn {
  border-radius: var(--ios-r-button) !important; min-height: 44px; background: var(--ios-accent) !important;
  color: var(--ios-on-accent) !important; box-shadow: none !important; border: 0;
}
:root:is(html) body.site .btn:hover { background: var(--ios-accent-pressed) !important; }

/* ---- "How it works" steps: grouped rows, accent ink numbers (no violet) ---- */
:root:is(html) body.site .thru-steps li { background: var(--ios-card); border: 1px solid var(--ios-hairline); border-radius: var(--ios-r-tile, 16px); }
:root:is(html) body.site .thru-steps li::before { border-color: var(--ios-separator); color: var(--ios-accent-ink); font-family: var(--ios-font-display); }
:root:is(html) body.site .thru-steps strong { color: var(--ios-label); }
:root:is(html) body.site .thru-steps span { color: var(--ios-label-2); }

/* ---- Home demo frame: a plain grouped panel instead of the green gradient and its glow ---- */
:root:is(html) body.rx .rx-frame { background: var(--ios-bg-2) !important; box-shadow: none !important; border: 1px solid var(--ios-hairline); }
:root:is(html) body.rx .rx-frame::before { display: none; }
:root:is(html) body.rx .rx-screen { background: var(--ios-card) !important; box-shadow: none !important; }

/* ---- Home feature panels (were green gradients and dark islands): plain native cards, label text ---- */
:root:is(html) body.rx :is(.rx-bright, .rx-dark, .how-list .rx-how-lead, .cta-final, #dash-agent) {
  background: var(--ios-card) !important; background-image: none !important; color: var(--ios-label) !important;
  border: 1px solid var(--ios-hairline) !important; border-radius: var(--ios-r-card) !important; box-shadow: none !important;
}
:root:is(html) body.rx :is(.rx-bright, .rx-dark, .rx-how-lead, .cta-final) :is(h2, h3, .rx-how-big) { color: var(--ios-label) !important; }
:root:is(html) body.rx :is(.rx-bright, .rx-dark, .rx-how-lead, .cta-final) p { color: var(--ios-label-2) !important; }
:root:is(html) body.rx .cta-final h2 em { color: var(--ios-accent-ink) !important; }
:root:is(html) body.rx :is(.rx-bright, .rx-dark) .rx-tags li, :root:is(html) body.rx .cta-final .rx-eyebrow {
  background: var(--ios-fill-3) !important; box-shadow: none !important; color: var(--ios-label) !important;
}
:root:is(html) body.rx .rx-us { background: var(--ios-accent-soft) !important; box-shadow: none !important; color: var(--ios-label) !important; }
:root:is(html) body.rx .rx-bar i { background: linear-gradient(90deg, var(--ios-label-3) var(--w), var(--ios-fill-3) var(--w)); }
:root:is(html) body.rx .rx-bar-us i { background: linear-gradient(90deg, var(--ios-accent) var(--w), var(--ios-fill-3) var(--w)); }
