/* ai-project-management.css — page styles for /ai-project-management.
 *
 * Load order: assets/main.css + assets/media.css (shared header/footer chrome
 * and the DM Sans @font-face rules) -> assets/cloudairy-brand.css (tokens) ->
 * this file. Deep theme, matching the /ai tool pages; every colour comes from
 * a --ca-* token so the page tracks the brand instead of drifting from it.
 */

body {
  background-color: var(--ca-deep);
  color: var(--ca-on-deep);
  font-family: var(--ca-font);
}

.apm-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.apm-section { padding: 76px 0; }

/* Alternating band so long-form sections don't read as one wall. */
.apm-band {
  background: var(--ca-deep-2);
  border-top: 1px solid var(--ca-deep-line);
  border-bottom: 1px solid var(--ca-deep-line);
}

/* --------------------------------------------------------------- headings */
.apm-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ca-primary-soft);
  margin: 0 0 14px;
}

.apm-h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 20px;
  color: var(--ca-on-deep);
}

.apm-h2 {
  font-size: clamp(27px, 3.3vw, 40px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: var(--ca-on-deep);
}

.apm-h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--ca-on-deep);
}

.apm-lede {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
  color: var(--ca-on-deep-muted);
  margin: 0 0 30px;
  max-width: 700px;
}

.apm-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.apm-head .apm-lede { margin-left: auto; margin-right: auto; }

.apm-p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ca-on-deep-muted);
  margin: 0 0 14px;
}

.apm-p:last-child { margin-bottom: 0; }

.apm-p a,
.apm-li a,
.apm-table a,
.apm-faq p a {
  color: var(--ca-primary-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.apm-p a:hover,
.apm-li a:hover,
.apm-table a:hover,
.apm-faq p a:hover { color: #c6b6ff; text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------- hero */
.apm-hero { padding: 70px 0 44px; text-align: center; }
.apm-hero .apm-lede { margin-left: auto; margin-right: auto; }

.apm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.apm-trust {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ca-on-deep-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
}

.apm-trust b { color: var(--ca-on-deep-muted); font-weight: 600; }

/* ------------------------------------------------------- prompt -> board */
.apm-demo { max-width: 900px; margin: 46px auto 0; }

.apm-prompt {
  background: var(--ca-deep-2);
  border: 1px solid var(--ca-deep-line);
  border-radius: 18px;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
}

.apm-prompt-text {
  font-family: var(--ca-font-mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ca-on-deep-muted);
  flex: 1;
}

.apm-prompt-send {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--ca-radius-pill);
  background: var(--ca-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
}

.apm-flow {
  text-align: center;
  color: var(--ca-on-deep-faint);
  font-size: 14px;
  margin: 20px 0;
}

.apm-flow span { color: var(--ca-primary-soft); }

/* Mini board — a static, honest preview of a generated plan. */
.apm-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
}

.apm-col {
  background: var(--ca-deep-2);
  border: 1px solid var(--ca-deep-line);
  border-radius: 14px;
  padding: 14px;
}

.apm-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ca-on-deep);
  margin-bottom: 12px;
}

.apm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.apm-mini {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--ca-deep-line);
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 8px;
}

.apm-mini:last-child { margin-bottom: 0; }

.apm-mini-id {
  font-family: var(--ca-font-mono);
  font-size: 10px;
  color: var(--ca-on-deep-faint);
  display: block;
  margin-bottom: 4px;
}

.apm-mini-t {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ca-on-deep);
  font-weight: 500;
}

.apm-tag {
  display: inline-block;
  margin-top: 7px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(103, 98, 254, .2);
  color: var(--ca-primary-soft);
}

/* ------------------------------------------------------------------ cards */
.apm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}

.apm-card {
  background: var(--ca-deep-2);
  border: 1px solid var(--ca-deep-line);
  border-radius: var(--ca-radius);
  padding: 28px 26px;
}

.apm-num {
  font-family: var(--ca-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ca-primary-soft);
  margin-bottom: 14px;
  display: block;
}

/* ------------------------------------------------------------------ lists */
.apm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }

.apm-li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ca-on-deep-muted);
}

.apm-li b, .apm-li strong { color: var(--ca-on-deep); font-weight: 600; }

.apm-tick { color: #3fcb90; font-weight: 700; }

.apm-cols-2 { columns: 2; column-gap: 34px; }
.apm-cols-2 .apm-li { break-inside: avoid; margin-bottom: 13px; }

@media (max-width: 720px) { .apm-cols-2 { columns: 1; } }

/* ------------------------------------------------------------------ chips */
.apm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.apm-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ca-deep-2);
  border: 1px solid var(--ca-deep-line);
  border-radius: var(--ca-radius-pill);
  padding: 10px 17px;
  font-size: 14.5px;
  color: var(--ca-on-deep);
}

.apm-chip em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(63, 203, 144, .16);
  color: #5fd9a6;
}

.apm-chip em.apm-paid {
  background: rgba(165, 135, 255, .18);
  color: var(--ca-primary-soft);
}

/* ------------------------------------------------------------------ table */
.apm-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--ca-deep-line);
  border-radius: var(--ca-radius);
  background: var(--ca-deep-2);
}

.apm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 15px;
}

.apm-table th,
.apm-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--ca-deep-line);
  color: var(--ca-on-deep-muted);
  vertical-align: top;
}

.apm-table thead th {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ca-on-deep-faint);
  background: rgba(255, 255, 255, .03);
}

.apm-table tbody tr:last-child td { border-bottom: 0; }

.apm-table th.apm-us,
.apm-table td.apm-us {
  background: rgba(103, 98, 254, .12);
  color: var(--ca-on-deep);
  font-weight: 600;
}

.apm-table thead th.apm-us { color: var(--ca-primary-soft); }

.apm-note {
  font-size: 13px;
  color: var(--ca-on-deep-faint);
  margin-top: 14px;
  line-height: 1.65;
}

/* -------------------------------------------------------------------- faq */
.apm-faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }

.apm-faq details {
  background: var(--ca-deep-2);
  border: 1px solid var(--ca-deep-line);
  border-radius: 14px;
  padding: 19px 22px;
}

.apm-faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--ca-on-deep);
  list-style: none;
  position: relative;
  padding-right: 32px;
}

.apm-faq summary::-webkit-details-marker { display: none; }

.apm-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -3px;
  font-size: 23px;
  font-weight: 400;
  color: var(--ca-primary-soft);
}

.apm-faq details[open] summary::after { content: "\2013"; }

.apm-faq details p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ca-on-deep-muted);
}

/* ------------------------------------------------------------------ final */
.apm-final { text-align: center; padding: 88px 0; }
.apm-final .apm-lede { margin-left: auto; margin-right: auto; }

@media (max-width: 600px) {
  .apm-section { padding: 54px 0; }
  .apm-hero { padding: 48px 0 32px; }
  .apm-prompt { flex-direction: column; align-items: flex-start; }
  .apm-card { padding: 23px 21px; }
  .apm-final { padding: 62px 0; }
}
