/* AiPreso inner pages (Grounds, Crema, Pricing, About), loaded after theme.css.
   Page-specific classes are prefixed aip-pg-*; themed colours come from --aip-* vars only. */

/* ---------- scaffolding ---------- */
.aip-pg-section { padding: 90px 0 40px; margin-block: 0; }
.aip-pg-section--tight { padding-top: 70px; }
.aip-pg-section--last { padding-top: 70px; padding-bottom: 100px; }
.aip-pg-section--plans { padding-top: 64px; padding-bottom: 30px; }
.aip-pg-section--teams { padding-top: 0; padding-bottom: 30px; }
.aip-pg-section--credits { padding-top: 30px; padding-bottom: 50px; }
.aip-pg-credit-cols { gap: 20px; margin-top: 32px; }
.aip-pg-credit-card { margin: 0; padding: 28px; }
.aip-pg-section--credits .aip-eyebrow,
.aip-pg-section--credits .aip-pg-h2,
.aip-pg-section--credits .aip-pg-note { text-align: center; }
.aip-pg-section--notes { padding-top: 10px; padding-bottom: 100px; }
.aip-pg-section--manifesto { padding-bottom: 30px; }

.aip-pg-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
  box-sizing: border-box;
}
.aip-pg-inner--wide { max-width: 1320px; }
/* Flow layout adds block-start margins that fight our own spacing. */
.aip-pg-inner > *,
.aip-pg-section > * { margin-block-start: 0; }

@media (max-width: 781px) {
  .aip-pg-section { padding-top: 64px; padding-bottom: 24px; }
  .aip-pg-section--last { padding-bottom: 64px; }
  .aip-pg-section--teams { padding-top: 0; }
  .aip-pg-section--notes { padding-bottom: 64px; }
}

/* ---------- hero (gradient comes from .aip-hero; one per page) ---------- */
.aip-pg-hero-inner { padding-block: 84px 88px; position: relative; }
.aip-pg-hero--short .aip-pg-hero-inner { padding-block: 76px 80px; }
@media (max-width: 781px) {
  .aip-pg-hero-inner,
  .aip-pg-hero--short .aip-pg-hero-inner { padding-block: 56px 60px; }
}
/* Wire cup sits top right on these pages. */
.aip-pg-hero::before {
  left: auto;
  bottom: auto;
  right: 4%;
  top: -40px;
  width: 420px;
  height: 400px;
  background-position: right top;
}
.aip-pg-hero--short::before { height: 380px; }
.aip-pg-h1 {
  font-family: var(--aip-font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 66px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 20px;
  overflow-wrap: break-word;
}
.aip-pg-hero--grounds .aip-pg-h1 { max-width: 16ch; }
.aip-pg-hero--crema .aip-pg-h1 { max-width: 18ch; }
.aip-pg-hero--about .aip-pg-h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.02; max-width: 22ch; margin-bottom: 0; }
.aip-pg-hero--short .aip-pg-h1 { font-size: clamp(40px, 5.5vw, 64px); }
.aip-pg-hero .aip-eyebrow { margin-bottom: 20px; }
/* Translucent dark scrim keeps white body text AA over the orange end of the gradient (same approach as the blog hero). */
.aip-pg-hero-lede { font-size: 1.125rem; line-height: 1.6; color: #fff; max-width: 60ch; margin: 0 0 30px; background: rgba(40, 0, 50, 0.38); padding: 1rem 1.25rem; border-radius: 12px; }
.aip-pg-hero--short .aip-pg-hero-lede { max-width: 58ch; margin-bottom: 0; }
.aip-pg-hero-buttons { margin: 0; gap: 12px; }
.aip-pg-hero-buttons .wp-block-button__link { font-size: 15.5px; padding: 14px 24px; border-radius: 8px; }

/* ---------- shared text ---------- */
.aip-pg-h2 {
  font-family: var(--aip-font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: var(--aip-text-1);
  margin: 0 0 24px;
}
.aip-pg-h2--md { font-size: 28px; margin-bottom: 14px; }
.aip-pg-h3 {
  font-family: var(--aip-font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  color: var(--aip-text-1);
  margin: 0 0 10px;
}
.aip-pg-h3--lg { margin-bottom: 14px; }
.aip-pg-h3--sm { font-size: 21px; }
.aip-pg-label {
  font-family: var(--aip-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aip-accent-orange);
  margin: 0 0 10px;
}
.aip-pg-body { font-size: 15.5px; line-height: 1.6; color: var(--aip-text-2); margin: 0; }
.aip-pg-body--lg { font-size: 16.5px; line-height: 1.65; }
.aip-pg-body--xl { font-size: 17px; line-height: 1.7; margin-bottom: 18px; }
.aip-pg-body--gap { margin-bottom: 26px; }
.aip-pg-textlink { font-size: 14.5px; font-weight: 600; margin: 6px 0 0; }
.aip-pg-textlink a { color: var(--aip-accent-orange); text-decoration: none; }
.aip-pg-textlink a:hover { text-decoration: underline; }
.aip-pg-buttons { gap: 12px; margin: 0; }

/* ---------- two-column rows ---------- */
.aip-pg-cols { gap: 48px; margin: 0; align-items: flex-start; }
.aip-pg-cols--center { gap: 28px; align-items: center; }
.aip-pg-cols--wide { gap: 56px; }
.aip-pg-cols > .wp-block-column { min-width: 0; }
@media (max-width: 781px) { .aip-pg-cols { gap: 36px; } }

/* ---------- cards ---------- */
.aip-pg-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.aip-pg-cards--4 { gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.aip-pg-cards > * { margin: 0; }
.aip-pg-card { background: var(--aip-surface-1); padding: 30px; margin: 0; }
.aip-pg-card--belief { padding: 26px; }
.aip-pg-card-text { font-size: 16px; line-height: 1.55; color: var(--aip-text-2); margin: 0; }
.aip-pg-card-text--sm { font-size: 15px; line-height: 1.6; }

/* ---------- Grounds ---------- */
.aip-pg-tiles {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.aip-pg-tiles > * { margin: 0; }
.aip-pg-tile {
  position: relative;
  background: var(--aip-surface-1);
  border: 1px solid var(--aip-border);
  border-radius: 14px;
  padding: 20px 22px;
}
.aip-pg-tile:hover { border-color: var(--aip-border-strong); background: var(--aip-surface-2); }
.aip-pg-tile-name { margin: 0; }
/* The whole tile is the click target: the link's ::before stretches over it. */
.aip-pg-tile-name a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--aip-text-1);
  text-decoration: none;
}
.aip-pg-tile-name a::before { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.aip-pg-tile-name a::after { content: "→"; font-size: 18px; color: var(--aip-accent-orange); flex: none; }
.aip-pg-tile--more { background: transparent; border-style: dashed; border-color: var(--aip-border-strong); }
.aip-pg-tile--more .aip-pg-tile-name a { font-weight: 400; color: var(--aip-text-2); }
.aip-pg-tile--more .aip-pg-tile-name a::after { content: none; }

.aip-pg-teaser { background: var(--aip-surface-1); padding: 30px; margin: 0; }
.aip-pg-bars { display: grid; gap: 14px; margin: 0 0 14px; }
.aip-pg-bars > * { margin: 0; }
.aip-pg-bar-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.aip-pg-bar-label { font-size: 14px; color: var(--aip-text-1); margin: 0; }
.aip-pg-bar { height: 8px; border-radius: 999px; background: var(--aip-surface-3); margin: 0; padding: 0; }
.aip-pg-bar--orange { background: linear-gradient(to right, var(--aip-brand-orange) 40%, var(--aip-surface-3) 40%); }
.aip-pg-bar--purple { background: linear-gradient(to right, var(--aip-brand-purple-bright) 30%, var(--aip-surface-3) 30%); }
.aip-pg-bar--blue { background: linear-gradient(to right, var(--aip-brand-blue) 25%, var(--aip-surface-3) 25%); }

/* ---------- Crema ---------- */
.aip-pg-steps {
  list-style: none;
  counter-reset: aip-pg-step;
  margin: 0;
  padding: 0;
}
.aip-pg-steps li {
  counter-increment: aip-pg-step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--aip-hairline);
  font-size: 16px;
  line-height: 1.55;
  color: var(--aip-text-1);
}
.aip-pg-steps li::before {
  content: counter(aip-pg-step, decimal-leading-zero);
  font-family: var(--aip-font-mono);
  font-size: 13px;
  color: var(--aip-accent-purple);
  padding-top: 3px;
}
.aip-pg-honest { background: var(--aip-surface-1); padding: 32px; margin: 0; align-self: flex-start; }

/* ---------- Pricing ---------- */
.aip-pg-tier-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: stretch;
}
.aip-pg-team-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.aip-pg-tier-grid > *,
.aip-pg-team-grid > * { margin: 0; }
.aip-pg-tier {
  background: var(--aip-surface-1);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.aip-pg-tier > * { margin-block-start: 0; }
.aip-pg-tier--featured {
  border: 1.5px solid var(--aip-brand-orange);
  box-shadow: 0 18px 40px rgba(255, 69, 0, 0.2);
}
.aip-pg-tier--team { padding: 28px; }
.aip-pg-badge-slot { min-height: 24px; margin: 0 0 10px; }
.aip-pg-badge {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-height: 24px;
  margin: 0 0 10px;
}
.aip-pg-tier-name {
  font-family: var(--aip-font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  color: var(--aip-text-1);
  margin: 0;
}
.aip-pg-tier-role {
  font-family: var(--aip-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  margin: 4px 0 0;
}
.aip-pg-role--orange { color: var(--aip-accent-orange); }
.aip-pg-role--purple { color: var(--aip-accent-purple); }
.aip-pg-role--muted { color: var(--aip-text-3); }
.aip-pg-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.aip-pg-price-row--end { margin: 0; justify-content: flex-end; }
.aip-pg-price {
  font-family: var(--aip-font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--aip-text-1);
  margin: 0;
}
.aip-pg-price--md { font-size: 36px; }
.aip-pg-cadence { font-family: var(--aip-font-mono); font-size: 12px; color: var(--aip-text-3); margin: 0; }
.aip-pg-tier-desc { font-size: 14.5px; line-height: 1.55; color: var(--aip-text-2); margin: 14px 0 0; }
.aip-pg-tier-desc--team { margin: 14px 0 16px; }
.aip-pg-tier-cta { margin: 20px 0; }
.aip-pg-tier-cta .wp-block-button { width: 100%; }
.aip-pg-tier-cta .wp-block-button__link {
  width: 100%;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 8px;
}
.aip-pg-tier-cta--team { margin: auto 0 0; padding-top: 20px; }
.aip-pg-tier-cta--team .wp-block-button { width: auto; }
.aip-pg-tier-cta--team .wp-block-button__link { width: auto; padding: 12px 20px; }
.aip-pg-team-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin: 0; }
.aip-pg-team-id > * { margin-block-start: 0; }

.aip-pg-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aip-pg-checks li {
  position: relative;
  padding-left: 25px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--aip-text-2);
}
.aip-pg-checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid var(--aip-accent-orange);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.aip-pg-team-grid .aip-pg-checks { margin-bottom: 20px; }

.aip-pg-note { text-align: center; font-size: 14.5px; line-height: 1.6; color: var(--aip-text-2); margin: 0 0 10px; }
.aip-pg-note a { font-weight: 600; color: var(--aip-accent-orange); }
.aip-pg-note--mono { font-family: var(--aip-font-mono); font-size: 12.5px; color: var(--aip-text-3); }

/* ---------- About ---------- */
.aip-pg-manifesto {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.aip-pg-manifesto > * { margin: 0; }
.aip-pg-manifesto-text { font-size: 18.5px; line-height: 1.7; color: var(--aip-text-1); margin: 0; }
.aip-pg-cols--about > .wp-block-column:first-child { flex-basis: 300px; flex-grow: 0; }
.aip-pg-cols--about > .wp-block-column:last-child { flex-basis: 0; flex-grow: 1; }
@media (max-width: 781px) {
  .aip-pg-cols--about > .wp-block-column:first-child { flex-basis: 100%; max-width: 360px; }
}
.aip-pg-portrait { margin: 0; }
.aip-pg-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 14px;
  box-shadow: var(--aip-shadow-sm);
}
.aip-pg-closing {
  font-family: var(--aip-font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--aip-text-1);
  margin: 0 0 28px;
}
