/* cloudairy-brand.css — the shared Cloudairy design tokens.
 *
 * One source of truth for pages that are authored outside the legacy
 * assets/main.css sheet (currently /ai-project-management and /lp/projects), so
 * they read as the same product as the rest of cloudairy.com instead of as
 * one-off landing pages.
 *
 * Palette verified 2026-08-27 by frequency analysis of this repo and
 * cloudairy-board-frontend/src — the marketing site and the app use the same
 * values, so these are the real system rather than a marketing-only skin.
 *
 * Typeface is DM Sans, the site- and app-wide face. The @font-face rules live
 * in assets/main.css / assets/lp/site-main.css; this file only references the
 * family, so load one of those (or the Google Fonts link) alongside it.
 */

:root {
  /* brand core */
  --ca-primary: #6762fe;
  --ca-primary-soft: #a587ff;
  --ca-magenta: #d461f0;
  --ca-blue: #618cff;
  --ca-orange: #f79233;
  --ca-success: #149041;

  /* the "AI moment" gradient — sign-up buttons, generate actions, headline
     accents. Same angle and stops the app and the /ai pages use. */
  --ca-gradient: linear-gradient(109deg, #d461f0, #a587ff, #618cff);

  /* light surfaces */
  --ca-ink: #18181b;
  --ca-muted: #657488;
  --ca-line: #e6eaef;
  --ca-surface: #ffffff;
  --ca-surface-alt: #f9fafc;
  --ca-surface-tint: #f7f7ff;

  /* deep surfaces */
  --ca-deep: #070529;
  --ca-deep-2: #1b1139;
  --ca-deep-line: #2a2059;
  --ca-on-deep: #ffffff;
  --ca-on-deep-muted: #b6b2d8;
  --ca-on-deep-faint: #837ead;

  --ca-font: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --ca-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ca-radius: 16px;
  --ca-radius-pill: 999px;
}

/* ---------------------------------------------------------------- buttons */
/* .ca-btn is the shared shape; the modifier supplies the skin. Matches the
   pill CTA used across the site header and the /ai tool pages. */
.ca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--ca-radius-pill);
  font-family: var(--ca-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  cursor: pointer;
  transition: box-shadow .25s ease, background-color .25s ease,
    border-color .25s ease, transform .25s ease;
}

.ca-btn--ai {
  background: var(--ca-gradient);
  color: #ffffff !important;
}

.ca-btn--ai:hover { box-shadow: 0 4px 7.6px 5px #ffffff47 inset; }

.ca-btn--solid {
  background: var(--ca-primary);
  color: #ffffff !important;
}

.ca-btn--solid:hover { background: #5551e8; }

/* on deep backgrounds */
.ca-btn--ghost-deep {
  background: transparent;
  border-color: rgba(255, 255, 255, .28);
  color: #ffffff !important;
}

.ca-btn--ghost-deep:hover { background: rgba(255, 255, 255, .08); }

/* on light backgrounds */
.ca-btn--ghost {
  background: transparent;
  border-color: var(--ca-line);
  color: var(--ca-ink) !important;
}

.ca-btn--ghost:hover { border-color: #cdd3dd; background: var(--ca-surface-alt); }

.ca-btn--lg { height: 54px; padding: 0 30px; font-size: 17px; }

/* -------------------------------------------------------------- gradient text */
.ca-gradient-text {
  background: var(--ca-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ a11y */
.ca-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ca-btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ca-primary-soft);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ca-btn { transition: none; }
}

/* A long label must never widen the page. nowrap keeps buttons tidy where there
   is room; on a phone the label wraps and the pill grows instead of pushing the
   document sideways. */
@media (max-width: 520px) {
  .ca-btn {
    white-space: normal;
    height: auto;
    min-height: 48px;
    padding: 12px 20px;
    text-align: center;
    line-height: 1.3;
  }

  .ca-btn--lg {
    height: auto;
    min-height: 54px;
    padding: 14px 22px;
  }
}
