/* Build group parts: package tables with 2 or 3 columns, the first-step line above them, and the comparison table.
   Uses the custom properties from site.css only. */

/* Package tables: .plans is 4 columns and .plans--5 is 5 in site.css; these add 2 and 3. */
.plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .plans--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans--2, .plans--3 { grid-template-columns: 1fr; } }
.plan__price small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* The first step, shown above a package table. */
.pfirst { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 10px 28px; align-items: center; margin-bottom: 22px; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.pfirst .mono { color: var(--accent); }
.pfirst b { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.pfirst p { color: var(--ink-2); font-size: 15.5px; }
.pfirst__price { font-size: 22px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
  .pfirst { grid-template-columns: minmax(0, 1fr); }
  .pfirst__price { white-space: normal; }
}

/* Comparison table: NorthStar against the other ways to get the work done. Rows stack on phones. */
.cmp { width: 100%; table-layout: fixed; border-collapse: collapse; border-top: 1px solid var(--line-2); font-size: 15.5px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-block: 12px; }
.cmp tbody th { font-weight: 500; font-size: 16.5px; letter-spacing: -.015em; color: var(--ink); width: 18%; }
.cmp td { color: var(--ink-2); }
.cmp .is-us { color: var(--ink); background: color-mix(in srgb, var(--accent) 7%, transparent); padding-left: 14px; }
.cmp thead .is-us { color: var(--accent); }
.cmp thead th:first-child { width: 18%; }
.cmp-note { margin-top: 14px; }
@media (min-width: 861px) { .cmp .is-us + td { padding-left: 14px; } }
@media (max-width: 860px) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { padding-block: 14px; border-bottom: 1px solid var(--line-2); }
  .cmp tbody th { width: 100%; padding: 0 0 8px; border: 0; font-size: 19px; }
  .cmp td { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 12px; padding: 8px 0; border: 0; }
  .cmp td::before { content: attr(data-label); font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
  .cmp .is-us { width: calc(100% + 20px); margin-inline: -10px; padding: 8px 10px; border-radius: 8px; }
}

/* A phone capture beside a work card (real app screens, not drawn ones). */
.wcard__shot { display: flex; justify-content: center; gap: 14px; }
.wcard__shot img { width: min(42%, 220px); height: auto; border-radius: 26px; border: 1px solid var(--line-2); }
.wcard--build { margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 860px) { .wcard--build { grid-template-columns: minmax(0, 1fr); } }

/* The automation library on the AI agents page: 20 cards, 4 to a row on wide screens. */
@media (min-width: 1101px) { .agrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
