/* Codeism Apps: page invitations, "Launch the app" pop-up, /apps cards and the home-page band.
   Uses only the site's tokens (--bg, --gold, --serif, ...), defined on every church page. */
.app-invite { margin: 26px 0 30px; padding: 22px 24px; border: 1px solid var(--gold-dim);
  background: linear-gradient(120deg, rgba(201,169,106,.10), rgba(201,169,106,.02) 60%), var(--bg-alt);
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.app-invite .ai-text { flex: 1 1 380px; }
.app-invite .ai-kicker { color: var(--gold); letter-spacing: .26em; text-transform: uppercase; font-size: 11px; margin: 0 0 6px; }
.app-invite h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px,3vw,32px); line-height: 1.15; margin: 0 0 6px; color: var(--ink); }
.app-invite p.ai-blurb { color: var(--ink-soft); font-size: 15px; margin: 0; max-width: 62ch; }
.app-invite .ai-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.app-invite .ai-actions small { color: var(--muted); font-size: 11.5px; letter-spacing: .08em; }

.cx-open, .cx-open body { overflow: hidden; }
.cx-modal[hidden] { display: none; }
.cx-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cx-backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.78); backdrop-filter: blur(3px); }
.cx-dialog { position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg-elev); border: 1px solid var(--gold-dim); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  padding: 34px 32px 30px; color: var(--ink); font-family: var(--sans); line-height: 1.6; text-align: left; }
.cx-dialog:focus { outline: none; }
.cx-dialog :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cx-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; background: none; border: 0;
  color: var(--ink-soft); font-size: 28px; line-height: 1; cursor: pointer; }
.cx-close:hover { color: var(--gold); }
.cx-logo { width: 44px; height: auto; margin: 0 0 14px; }
.cx-eyebrow { color: var(--gold); letter-spacing: .26em; text-transform: uppercase; font-size: 11px; margin: 0 0 6px; }
.cx-dialog h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px,4vw,38px); line-height: 1.1; margin: 0 0 12px; }
.cx-blurb { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 22px; }
.cx-login { border-top: 1px solid var(--line); padding-top: 20px; }
.cx-note { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.cx-soon { font-family: var(--serif); font-size: 22px; color: var(--gold); margin: 0 0 6px; }
.cx-dialog .cta-row, .apps-card .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .cx-modal { align-items: flex-end; padding: 0; }
  .cx-dialog { width: 100%; max-height: 92vh; padding: 30px 20px 26px; border-left: 0; border-right: 0; border-bottom: 0; }
  .cx-dialog .cta-row .btn { flex: 1 1 100%; text-align: center; }
  .app-invite { padding: 18px; }
  .app-invite .ai-actions, .app-invite .ai-actions .btn { width: 100%; text-align: center; }
}

/* /apps listing */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 34px; }
.apps-card { display: flex; flex-direction: column; padding: 26px; background: var(--bg-elev); border: 1px solid var(--line); }
.apps-card .ac-kicker { color: var(--gold); letter-spacing: .22em; text-transform: uppercase; font-size: 11px; margin: 0 0 8px; }
.apps-card h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.12; margin: 0 0 10px; }
.apps-card p.ac-desc { color: var(--ink-soft); font-size: 15px; flex: 1; }
.apps-card .ac-links { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.apps-card .ac-links .btn { text-align: center; }
.apps-card .ac-public { font-size: 13px; letter-spacing: .06em; }
.apps-card .ac-members { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.apps-card .ac-members small { display: block; color: var(--muted); font-size: 11.5px; letter-spacing: .08em; margin-bottom: 8px; }
.auth-soon { color: var(--gold); font-family: var(--serif); font-size: 19px; margin: 0; }

/* home page "Codeism Apps" band */
.apps-band { padding: 46px 0; border-top: 1px solid var(--line); }
.apps-band .container { display: flex; align-items: center; justify-content: space-between; gap: 18px 36px; flex-wrap: wrap; }
.apps-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px,3.6vw,38px); margin: 0 0 6px; }
.apps-band p { color: var(--ink-soft); margin: 0; max-width: 64ch; }
.apps-band .ab-list { color: var(--muted); font-size: 13px; letter-spacing: .08em; margin-top: 8px; }
.apps-hero { padding: 64px 0 76px; }
.apps-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px,5.4vw,60px); line-height: 1.05; margin: 0 0 16px; }
