/* AppCaddy site styles. Colors, type, spacing, radius all come from tokens.css. */
/* Flat surfaces, 1px borders, no shadows for elevation, no gradients. */

*, *::before, *::after { box-sizing: border-box; }

/* Freeze transitions during a theme switch so themed colors flip instantly. */
[data-switching] * { transition: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ac-bg);
  color: var(--ac-fg);
  font-family: var(--ac-font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--ac-font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: var(--ac-accent); text-decoration: none; }
a:hover { color: var(--ac-accent-hover); }

:focus-visible {
  outline: 2px solid var(--ac-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--ac-space-6);
}
.container.narrow { max-width: 680px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ac-surface);
  color: var(--ac-fg);
  padding: var(--ac-space-2) var(--ac-space-4);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-button);
  z-index: 10;
}
.skip-link:focus { left: var(--ac-space-4); top: var(--ac-space-4); }

/* Wordmark */
.wordmark {
  font-family: var(--ac-font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ac-ink);
  letter-spacing: -0.02em;
}
.wordmark-accent { color: var(--ac-accent); }
.wordmark-sm { font-size: 16px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--ac-border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--ac-bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  z-index: 5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ac-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ac-radius-button);
  cursor: pointer;
  transition: color var(--ac-transition), border-color var(--ac-transition), background-color var(--ac-transition);
}
.theme-toggle:hover { color: var(--ac-ink); border-color: var(--ac-border); }
.theme-toggle .icon { grid-area: 1 / 1; }
/* Default (light): show moon (offer dark). Dark: show sun. */
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
}

/* Hero */
.hero { padding: var(--ac-space-16) 0 var(--ac-space-12); }
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  white-space: nowrap;
}
.hero-lead {
  margin-top: var(--ac-space-6);
  font-size: 1.2rem;
  max-width: 46ch;
  color: var(--ac-fg);
}
.hero-sub {
  margin-top: var(--ac-space-3);
  color: var(--ac-muted);
  font-family: var(--ac-font-code);
  font-size: 0.95rem;
}

/* Sections */
.section { padding: var(--ac-space-12) 0; border-top: 1px solid var(--ac-border); }
.section-alt { background: var(--ac-surface-2); }
.section-title { font-size: 1.6rem; }

/* Flagship suite ---------------------------------------------------------- */
/* Sits directly under the hero, so no top border or top padding of its own. */
.suite-section { padding: 0 0 var(--ac-space-12); }

/* Panel-only colors that are not general tokens live here as local variables,
   with dark overrides below, so the block themes with the rest of the site. */
.suite-panel {
  --suite-panel-border: #CFE0E0;
  --suite-bar-bg: #2C5858;    /* deeper brand teal (accent-hover); pale text clears AA in both themes */
  --suite-bar-fg: #EAF1F1;
  --suite-bar-count: #B8D4D4;
  --suite-divider: #EEEEEE;
  --suite-off-border: #8E8E8E; /* >=3:1 on white so the empty checkbox is visible */
  --suite-dim: #666666;       /* off name, on descriptor — AA on white */
  --suite-dimmer: #767676;    /* off descriptor / "Off" — AA on white */

  background: var(--ac-accent-tint);
  border: 1px solid var(--suite-panel-border);
  border-radius: var(--ac-radius-card);
  padding: var(--ac-space-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ac-space-8);
  align-items: stretch;
}
[data-theme="dark"] .suite-panel {
  --suite-panel-border: #2A3E3E;
  --suite-divider: #2A2A2A;
  --suite-off-border: #6A6A6A; /* >=3:1 on #1E1E1E */
  --suite-dim: #9E9E9E;        /* AA on the dark picker surface */
  --suite-dimmer: #8A8A8A;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .suite-panel {
    --suite-panel-border: #2A3E3E;
    --suite-divider: #2A2A2A;
    --suite-off-border: #6A6A6A; /* >=3:1 on #1E1E1E */
    --suite-dim: #9E9E9E;        /* AA on the dark picker surface */
    --suite-dimmer: #8A8A8A;
  }
}

/* Left: pitch */
.suite-pitch { display: flex; flex-direction: column; justify-content: center; }
.suite-eyebrow-row { display: flex; align-items: center; gap: var(--ac-space-3); }
.suite-badge {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ac-accent);
  display: grid;
  place-items: center;
}
.suite-eyebrow {
  font-family: var(--ac-font-code);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac-accent);
}
.suite-title { font-size: clamp(1.8rem, 4vw, 2.375rem); line-height: 1.12; margin-top: var(--ac-space-6); }
.suite-desc { margin-top: var(--ac-space-4); font-size: 1.0625rem; max-width: 42ch; color: var(--ac-fg); }
.suite-privacy { margin-top: var(--ac-space-3); font-size: 0.9375rem; max-width: 42ch; color: var(--ac-muted); }

.suite-stats { display: flex; gap: var(--ac-space-6); margin-top: var(--ac-space-6); flex-wrap: wrap; }
.suite-stat { display: flex; flex-direction: column; }
.suite-stat-num {
  font-family: var(--ac-font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ac-ink);
}
.suite-stat-label {
  margin-top: var(--ac-space-1);
  font-family: var(--ac-font-code);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ac-muted);
}
.suite-cta { margin-top: var(--ac-space-8); display: flex; align-items: center; gap: var(--ac-space-3); flex-wrap: wrap; }

/* Right: interactive "Pick what goes in" checklist */
.suite-picker {
  background: var(--ac-surface);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.suite-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ac-space-3);
  background: var(--suite-bar-bg);
  padding: 14px 20px;
}
.suite-picker-title {
  font-family: var(--ac-font-code);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--suite-bar-fg);
}
.suite-count { font-family: var(--ac-font-code); font-size: 0.6875rem; color: var(--suite-bar-count); white-space: nowrap; }

.suite-list { display: flex; flex-direction: column; flex: 1 1 auto; }
.suite-row {
  display: flex;
  align-items: center;
  gap: var(--ac-space-3);
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 13px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--suite-divider);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.suite-row:last-child { border-bottom: none; }
.suite-row:hover { background: var(--ac-accent-tint); }
/* Draw the focus ring inside the row so the picker's overflow:hidden can't clip it. */
.suite-row:focus-visible { outline-offset: -2px; }
.suite-check {
  flex: none;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1.5px solid var(--suite-off-border);
  background: var(--ac-surface);
  display: grid;
  place-items: center;
}
.suite-check svg { display: none; }
.suite-row.is-on .suite-check { background: var(--ac-accent); border-color: var(--ac-accent); }
.suite-row.is-on .suite-check svg { display: block; }
.suite-row-name {
  flex: 0 0 auto;
  font-family: var(--ac-font-display);
  font-weight: 800;
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--suite-dim);
}
.suite-row.is-on .suite-row-name { color: var(--ac-ink); }
/* Descriptor sits at the right edge; it shrinks and ellipsizes on tight rows so
   the extension name is never the thing that gets clipped. 10px keeps the longer
   one-line descriptors fitting inside the widened picker. */
.suite-row-desc {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  font-family: var(--ac-font-code);
  font-size: 0.625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--suite-dimmer);
}
.suite-row.is-on .suite-row-desc { color: var(--suite-dim); }

.suite-picker-foot { border-top: 1px solid var(--suite-divider); padding: 12px 20px; }
.suite-picker-foot span { font-family: var(--ac-font-code); font-size: 0.6875rem; color: var(--ac-muted); }

@media (min-width: 880px) {
  /* 40px is an intentional off-scale gap from the design spec (no token exists).
     Picker widened to 420px so the one-line row descriptors don't wrap; the
     breakpoint rises with it so the pitch column keeps enough room. */
  .suite-panel { grid-template-columns: 1fr 420px; gap: 40px; }
}

/* Secondary "Or grab one on its own" heading above the standalone cards */
.apps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ac-space-4);
  flex-wrap: wrap;
  margin-bottom: var(--ac-space-8);
}
.apps-title { font-size: 1.15rem; color: var(--ac-muted); }
.apps-note { font-family: var(--ac-font-code); font-size: 0.75rem; color: var(--ac-muted); }

/* App grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--ac-space-4);
}
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--ac-surface);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-card);
  padding: var(--ac-space-6);
  transition: border-color var(--ac-transition), background-color var(--ac-transition);
}
.app-card:hover { border-color: var(--ac-accent); background-color: var(--ac-accent-tint); }
/* A card that is itself a link (PinPoints, a website rather than a store listing). */
.app-card-link { display: block; color: inherit; text-decoration: none; }
/* Title on its own line, status tag always on the next line beneath it.
   Deterministic, so a wide title (Syne is wide) never collides with the tag. */
.app-card-head { margin-bottom: var(--ac-space-3); }
.app-card-head .tag { display: inline-block; margin-top: var(--ac-space-2); }
.app-name { font-size: 1.15rem; }
.app-desc { color: var(--ac-fg); font-size: 0.98rem; }
/* margin-top:auto pins the platform line to the card bottom, so every card's
   "Chrome · Firefox" sits at the same height regardless of description length. */
.app-platform {
  margin-top: auto;
  padding-top: var(--ac-space-4);
  color: var(--ac-muted);
  font-family: var(--ac-font-code);
  font-size: 0.8rem;
}

/* Tags */
.tag {
  flex: none;
  font-family: var(--ac-font-code);
  font-size: 0.72rem;
  padding: 2px var(--ac-space-2);
  border-radius: var(--ac-radius-tag);
  white-space: nowrap;
}
.tag-status { color: var(--ac-accent); background: var(--ac-accent-tint); border: 1px solid var(--ac-border); }

/* Contribute */
.contribute-line { margin-bottom: var(--ac-space-6); color: var(--ac-fg); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--ac-font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: var(--ac-space-3) var(--ac-space-6);
  border-radius: var(--ac-radius-button);
  cursor: pointer;
  transition: background-color var(--ac-transition), color var(--ac-transition);
}
.btn-primary { background: var(--ac-accent); color: #fff; border: 1px solid var(--ac-accent); }
.btn-primary:hover { background: var(--ac-accent-hover); color: #fff; }
/* Greyed-out state for a CTA whose destination is not live yet (a store listing on its way). */
.btn-primary:disabled,
.btn-primary:disabled:hover,
.btn-primary[aria-disabled="true"],
.btn-primary[aria-disabled="true"]:hover { background: var(--ac-border); color: var(--ac-muted); border-color: var(--ac-border); cursor: default; }
/* The line beside the suite button that names the other store */
.suite-store-note { font-family: var(--ac-font-code); font-size: 0.75rem; color: var(--ac-muted); }
.suite-store-note a { color: var(--ac-accent); text-decoration: none; }
.suite-store-note a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--ac-border); padding: var(--ac-space-8) 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ac-space-4);
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: var(--ac-space-3); }
.footer-copy { color: var(--ac-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: var(--ac-space-6); font-size: 0.9rem; }

/* Contribute page */
.contribute { padding: var(--ac-space-16) 0 var(--ac-space-12); }

/* Narrow: one column, folded intro -> box -> where. give-main is unwrapped
   with display:contents so its children order freely alongside the box. */
.give-layout {
  display: flex;
  flex-direction: column;
  gap: var(--ac-space-8);
}
.give-main { display: contents; }
.give-intro { order: 1; }
.give-box { order: 2; }
.give-where { order: 3; }

/* Desktop: pitch + "where it goes" in the left column, box in its own right
   column. Independent columns, so expanding the box never moves "where it goes". */
@media (min-width: 800px) {
  .give-layout { flex-direction: row; align-items: flex-start; gap: var(--ac-space-12); }
  .give-main { display: flex; flex-direction: column; gap: var(--ac-space-12); flex: 1 1 auto; min-width: 0; }
  .give-box { flex: 0 0 340px; }
}

.eyebrow {
  font-family: var(--ac-font-code);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac-accent);
  margin-bottom: var(--ac-space-3);
}
.give-title { font-size: clamp(1.6rem, 3.2vw, 1.85rem); }
.give-title span { display: block; }
.give-pitch { margin-top: var(--ac-space-4); font-size: 1.1rem; max-width: 42ch; color: var(--ac-fg); }

.give-where-title { font-size: 1.05rem; margin-bottom: var(--ac-space-2); }
.give-where p { color: var(--ac-muted); font-size: 0.95rem; max-width: 44ch; }

/* Donation box: full-width stacked buttons */
.give-box { display: flex; flex-direction: column; gap: var(--ac-space-3); }
.give-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ac-space-3);
  width: 100%;
  min-height: 60px;
  padding: var(--ac-space-4) var(--ac-space-6);
  font-family: var(--ac-font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ac-fg);
  background: var(--ac-surface);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-button);
  cursor: pointer;
  transition: border-color var(--ac-transition), background-color var(--ac-transition), color var(--ac-transition);
}
.give-btn:hover { border-color: var(--ac-accent); }
.give-icon { flex: none; }
.give-btn-coffee:hover { color: #B8860B; border-color: #B8860B; }
.give-btn-kofi:hover { color: #E0575B; border-color: #E0575B; }
.give-btn-paypal:hover { color: #0070E0; border-color: #0070E0; }
.give-btn-venmo:hover { color: #008CFF; border-color: #008CFF; }

/* Crypto expander */
.crypto { width: 100%; }
.crypto-summary { list-style: none; user-select: none; position: relative; }
.crypto-summary::-webkit-details-marker { display: none; }
/* Chevron sits absolute at the right so the icon + label stay centered like the other buttons. */
.crypto-chevron { position: absolute; right: var(--ac-space-6); top: 50%; margin-top: -9px; transition: transform var(--ac-transition); }
.crypto[open] .crypto-summary { border-color: var(--ac-accent); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.crypto[open] .crypto-chevron { transform: rotate(180deg); }

.crypto-panel {
  border: 1px solid var(--ac-accent);
  border-top: none;
  border-radius: 0 0 var(--ac-radius-card) var(--ac-radius-card);
  padding: var(--ac-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--ac-space-4);
}
.coin { display: flex; gap: var(--ac-space-4); align-items: flex-start; }
.coin + .coin { padding-top: var(--ac-space-4); border-top: 1px solid var(--ac-border); }
.coin-qr {
  flex: none;
  background: #fff;
  padding: 6px;
  border-radius: var(--ac-radius-input);
  line-height: 0;
}
.coin-qr img { display: block; width: 88px; height: 88px; }
.coin-body { min-width: 0; flex: 1 1 auto; }
.coin-head { font-size: 0.95rem; font-weight: 600; margin-bottom: var(--ac-space-2); }
.coin-net { font-family: var(--ac-font-code); font-size: 0.72rem; color: var(--ac-muted); font-weight: 400; }
.coin-addr {
  display: block;
  font-family: var(--ac-font-code);
  font-size: 0.78rem;
  color: var(--ac-fg);
  background: var(--ac-code-bg);
  border-radius: var(--ac-radius-input);
  padding: var(--ac-space-2) var(--ac-space-3);
  margin-bottom: var(--ac-space-3);
  word-break: break-all;
}
.copy-btn {
  font-family: var(--ac-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px var(--ac-space-4);
  border-radius: var(--ac-radius-button);
  border: 1px solid var(--ac-border);
  background: transparent;
  color: var(--ac-fg);
  cursor: pointer;
  transition: border-color var(--ac-transition), color var(--ac-transition);
}
.copy-btn:hover { border-color: var(--ac-accent); color: var(--ac-accent); }

/* Below the point where "Tools for the gaps in apps." can hold one line,
   let it wrap to two instead of shrinking to an unreadable size. */
@media (max-width: 600px) {
  .hero-title { white-space: normal; font-size: clamp(1.9rem, 8vw, 2.4rem); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: var(--ac-space-12) 0 var(--ac-space-8); }
}


/* ---------- Bonus page ---------- */

.bonus-page { padding: var(--ac-space-16) 0 var(--ac-space-12); }

.bonus-intro { max-width: 62ch; }
.bonus-title { font-size: clamp(1.6rem, 3.2vw, 1.85rem); }
.bonus-title span { display: block; }
.bonus-claim { margin-top: var(--ac-space-4); font-size: 1.1rem; color: var(--ac-fg); }
.bonus-pitch { margin-top: var(--ac-space-3); color: var(--ac-fg); }
.bonus-disclosure { margin-top: var(--ac-space-8); font-size: 0.85rem; color: var(--ac-muted); max-width: 68ch; }

/* One row always: chips shrink a step and the row scrolls sideways on narrow screens. */
.bonus-nav { margin-top: var(--ac-space-6); display: flex; flex-wrap: nowrap; gap: var(--ac-space-1); overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.bonus-nav a { font-size: 0.8rem; font-weight: 600; color: var(--ac-fg); text-decoration: none; border: 1px solid var(--ac-border); border-radius: var(--ac-radius-tag); padding: var(--ac-space-1) var(--ac-space-2); white-space: nowrap; flex: none; }
.bonus-nav a:hover { border-color: var(--ac-accent); color: var(--ac-accent); }
.bonus-nav-expand { font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--ac-muted); background: none; border: 1px dashed var(--ac-border); border-radius: var(--ac-radius-tag); padding: var(--ac-space-1) var(--ac-space-2); cursor: pointer; white-space: nowrap; flex: none; }
.bonus-nav-expand:hover { border-color: var(--ac-accent); color: var(--ac-accent); }

.bonus-h2 { font-size: 1.05rem; margin-bottom: var(--ac-space-3); }

.bonus-featured-wrap { margin-top: var(--ac-space-8); }
.bonus-featured { display: grid; grid-template-columns: 1fr; gap: var(--ac-space-3); }
@media (min-width: 800px) { .bonus-featured { grid-template-columns: repeat(3, 1fr); } }
.bonus-featured .bonus-card { flex-direction: column; align-items: stretch; }
.bonus-featured .bonus-open { align-self: flex-start; }

.bonus-cats { margin-top: var(--ac-space-8); display: flex; flex-direction: column; gap: var(--ac-space-3); }

.bonus-cat { border: 1px solid var(--ac-border); border-radius: var(--ac-radius-card); background: var(--ac-surface); scroll-margin-top: 76px; }
.bonus-cat summary { display: flex; align-items: center; gap: var(--ac-space-3); padding: var(--ac-space-4) var(--ac-space-6); cursor: pointer; list-style: none; user-select: none; }
.bonus-cat summary::-webkit-details-marker { display: none; }
.bonus-cat-title { font-family: var(--ac-font-display); font-weight: 700; font-size: 1rem; }
.bonus-cat-tool { margin-left: auto; font-size: 0.75rem; color: var(--ac-muted); }
.bonus-chevron { flex: none; color: var(--ac-muted); transition: transform var(--ac-transition); }
.bonus-cat[open] .bonus-chevron { transform: rotate(180deg); }
.bonus-cat[open] summary { border-bottom: 1px solid var(--ac-border); }
.bonus-cat-body { padding: var(--ac-space-4) var(--ac-space-6) var(--ac-space-6); display: flex; flex-direction: column; gap: var(--ac-space-3); }

.bonus-sub { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ac-muted); margin-top: var(--ac-space-2); }
.bonus-sub:first-child { margin-top: 0; }
.bonus-note { font-size: 0.85rem; color: var(--ac-muted); }

.bonus-card { display: flex; align-items: center; gap: var(--ac-space-4); border: 1px solid var(--ac-border); border-radius: var(--ac-radius-card); background: var(--ac-bg); padding: var(--ac-space-4); }
.bonus-card:hover { border-color: var(--ac-accent); }
.bonus-body { flex: 1 1 auto; min-width: 0; }
.bonus-name { font-weight: 600; }
.bonus-blurb { font-size: 0.9rem; color: var(--ac-muted); margin-top: 2px; }
.bonus-reward { color: var(--ac-accent); font-weight: 700; }
.bonus-rec { font-size: 0.85rem; color: var(--ac-muted); font-style: italic; margin-top: 2px; }
.bonus-tag { display: inline-block; margin-left: var(--ac-space-2); font-size: 0.68rem; font-weight: 500; color: var(--ac-muted); border: 1px solid var(--ac-border); border-radius: var(--ac-radius-tag); padding: 1px 6px; vertical-align: middle; white-space: nowrap; }
.bonus-tag-unpaid { color: var(--ac-accent); border-color: var(--ac-accent); }
.bonus-open { flex: none; font-size: 0.85rem; font-weight: 600; color: var(--ac-accent); text-decoration: none; border: 1px solid var(--ac-border); border-radius: var(--ac-radius-button); padding: var(--ac-space-2) var(--ac-space-3); white-space: nowrap; }
.bonus-open:hover { border-color: var(--ac-accent); }

.bonus-terms { margin-top: var(--ac-space-3); font-size: 0.78rem; color: var(--ac-muted); max-width: 68ch; }
.bonus-give { margin-top: var(--ac-space-3); font-size: 0.9rem; color: var(--ac-muted); }

.give-alt { margin-top: var(--ac-space-3); font-size: 0.9rem; color: var(--ac-muted); }
.give-alt a { font-weight: 700; }

/* In-development states (homepage): greyed suite row and app card */
.suite-row-dev, .suite-row[disabled] { opacity: 0.45; cursor: default; }
.app-card-dev { opacity: 0.55; }

/* Legal pages (privacy policies). Kept here because the CSP blocks inline styles. */
.legal .container { padding-top: var(--ac-space-8); padding-bottom: var(--ac-space-16); }
.legal h1 { font-family: var(--ac-font-display); font-weight: 800; font-size: 2.25rem; margin: 0 0 var(--ac-space-2); }
.legal .updated { color: var(--ac-muted); font-size: 0.9375rem; margin: 0 0 var(--ac-space-8); }
.legal h2 { font-family: var(--ac-font-display); font-weight: 700; font-size: 1.5rem; margin: var(--ac-space-12) 0 var(--ac-space-3); padding-top: var(--ac-space-6); border-top: 1px solid var(--ac-border); }
.legal h3 { font-family: var(--ac-font-display); font-weight: 600; font-size: 1.125rem; margin: var(--ac-space-6) 0 var(--ac-space-2); }
.legal p, .legal li { color: var(--ac-fg); line-height: 1.6; max-width: 68ch; }
.legal ul { padding-left: 1.25em; margin: var(--ac-space-3) 0; }
.legal li { margin: var(--ac-space-2) 0; }
.legal a { color: var(--ac-accent); }

/* Collapsed detail on a legal page (state privacy rights): closed by default, one card per state group. */
.legal-more { border: 1px solid var(--ac-border); border-radius: var(--ac-radius-card); background: var(--ac-surface); margin: var(--ac-space-3) 0; max-width: 68ch; }
.legal-more summary { display: flex; align-items: center; gap: var(--ac-space-3); padding: var(--ac-space-4) var(--ac-space-6); cursor: pointer; list-style: none; user-select: none; font-family: var(--ac-font-display); font-weight: 700; font-size: 1rem; }
.legal-more summary::-webkit-details-marker { display: none; }
.legal-chevron { flex: none; margin-left: auto; color: var(--ac-muted); transition: transform var(--ac-transition); }
.legal-more[open] .legal-chevron { transform: rotate(180deg); }
.legal-more[open] summary { border-bottom: 1px solid var(--ac-border); }
.legal-more-body { padding: var(--ac-space-4) var(--ac-space-6) var(--ac-space-2); }
.legal-more-body > :first-child { margin-top: 0; }
@media (max-width: 480px) {
  .legal-more summary { padding: var(--ac-space-3) var(--ac-space-4); }
  .legal-more-body { padding: var(--ac-space-3) var(--ac-space-4) var(--ac-space-1); }
}

/* The apps a shared policy covers (the city transit apps): app, area, agency. Three columns where
   they fit; on a phone each app is its name over one line of area and agency. */
.legal-apps { width: 100%; max-width: 68ch; border-collapse: collapse; margin: var(--ac-space-6) 0; font-size: 0.9375rem; }
.legal-apps th, .legal-apps td { text-align: left; vertical-align: top; padding: var(--ac-space-2) var(--ac-space-4) var(--ac-space-2) 0; border-bottom: 1px solid var(--ac-border); line-height: 1.45; }
.legal-apps th:last-child, .legal-apps td:last-child { padding-right: 0; }
.legal-apps thead th { font-family: var(--ac-font-code); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ac-muted); }
.legal-apps tbody th { font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .legal-apps, .legal-apps tbody, .legal-apps tr { display: block; }
  .legal-apps thead { display: none; }
  .legal-apps tr { padding: var(--ac-space-2) 0; border-bottom: 1px solid var(--ac-border); }
  .legal-apps th, .legal-apps td { display: inline; padding: 0; border: 0; }
  .legal-apps tbody th { display: block; }
  .legal-apps td + td::before { content: " \00B7  "; color: var(--ac-muted); }
}
