/*
 * roc-parts.css: parts shared by home, /ecommerce/ and /pricing/ (D2.5).
 * Moved out of roc-home.css when /pricing/ took them up, so the pricing page
 * doesn't carry the home-only tools (flow map, week replay, calculator).
 * Loaded right after roc.css and before roc-home.css, through
 * $page['styles'] (partials/roc/head.php).
 *
 *   29.7  Proof: the dark result card and the quote cards
 *   29.8  Pricing parts: compare button, project cards, promise badges
 *   29.9  FAQ aside: the lead line and the sticky "Still deciding?" card
 *   30.4  Projects: a button on every card, the dark holiday card, "more"
 *
 * Section numbers are kept from roc-home.css, where the history lives
 * (docs/experts/D2-motion-brief.md).
 */
/* 29.7 Proof, "Real work, with its numbers" (D2.1-5). Editorial: the
   result becomes a dark feature card with a live mark (it is a live,
   Klaviyo-reported figure); the two client words become proper quote
   cards with a hung quote mark and a monogram. Every word is as before. */
.proof {
  gap: 14px;
}

.proof__result {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  gap: 12px;
  overflow: hidden;
  padding: 22px 22px 24px;
  border-radius: var(--r-panel);
  background: var(--cocoa);
  color: var(--ice);
}

/* A low warm glow from the corner: the card reads as lit, not flat. */
.proof__result::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -38%;
  bottom: -62%;
  width: 120%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--spark) 17%, transparent), transparent);
  pointer-events: none;
}

.proof__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--spark-on-cocoa);
  font-size: 11px;
  letter-spacing: .02em;
}

.proof__live {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spark);
}

.proof__live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--spark);
  opacity: 0;
}

.mo .proof__live::after {
  animation: mo-ping 1.6s var(--mo-ease, ease-out) 3 .4s forwards;
}

.proof__result .proof__fig {
  margin-top: 4px;
  color: var(--white);
  font-size: min(54px, 15.8vw);
}

@supports (container-type: inline-size) {
  .proof__result .proof__fig {
    font-size: min(78px, 17cqi);
  }
}

.proof__result .proof__claim {
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--mist) 45%, transparent);
  color: var(--ice);
}

.proof__result .proof__src {
  margin: 0;
  color: var(--mist);
}

.proof .quote,
.proof .quote--rule {
  position: relative;
  justify-content: space-between;
  gap: 22px;
  margin: 0;
  padding: 56px 22px 20px;
  border: 0;
  border-radius: var(--r-panel);
  background: var(--white);
  box-shadow: 0 1px 0 var(--ice-deep), 0 24px 44px -32px color-mix(in srgb, var(--cocoa) 45%, transparent);
}

/* The hung quote mark: decoration only, so it says nothing to a reader. */
.proof .quote::before {
  content: "\201C";
  content: "\201C" / "";
  position: absolute;
  top: 12px;
  left: 18px;
  height: 46px;
  color: var(--mist);
  font-family: var(--stack-wide);
  font-size: 88px;
  font-weight: 800;
  line-height: .9;
  font-variation-settings: 'wdth' 125;
  pointer-events: none;
}

.proof .quote__text {
  font-size: 18px;
  line-height: 1.45;
}

.proof .quote__by {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ice-deep);
  font-size: 13px;
  line-height: 1.4;
}

.quote__mono {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cocoa);
  color: var(--ice);
  font-family: var(--stack-wide);
  font-size: 15px;
  font-weight: 700;
  font-variation-settings: 'wdth' 125;
}

@media (min-width: 768px) {
  .proof {
    gap: 20px;
    align-items: stretch;
  }

  .proof__result {
    gap: 14px;
    padding: 30px 32px 30px;
  }

  .proof__kicker {
    font-size: 12px;
  }

  .proof .quote,
  .proof .quote--rule {
    padding: 64px 28px 24px;
  }

  .proof .quote::before {
    top: 14px;
    left: 24px;
    font-size: 100px;
  }

  .proof .quote__text {
    font-size: 21px;
    line-height: 1.4;
  }

  .proof .quote__by {
    font-size: 14px;
  }
}

/* From 1200 the three sit in one row: the figure first, the two voices
   after it. */
@media (min-width: 1200px) {
  .proof {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .proof__result {
    grid-column: auto;
  }

  .proof .quote__text {
    font-size: 19px;
  }
}

/* 29.8 Pricing on home (D2.1-6). The two ways on (compare the plans, see
   the projects) become real buttons; each project is a card with its price
   up front; the two promises become badges. Wording unchanged. */
.btn--compare-strong,
.projects__all.btn {
  gap: 10px;
}

.btn--compare-strong::after,
.projects__all.btn::after {
  content: "\2192";
  content: "\2192" / "";
  transition: transform .2s var(--mo-ease, ease-out);
}

@media (hover: hover) {
  .btn--compare-strong:hover::after,
  .projects__all.btn:hover::after {
    transform: translateX(4px);
  }
}

.projects__all.btn {
  align-self: stretch;
  height: 50px;
  min-height: 0;
  margin-top: 8px;
  padding: 0 22px;
  font-size: 16px;
  text-decoration: none;
}

.projects__list {
  gap: 10px;
}

.project {
  gap: 8px;
  padding: 18px 18px 20px;
  border-top: 0;
  border-radius: var(--r-frame);
  background: var(--white);
  box-shadow: 0 1px 0 var(--ice-deep), 0 20px 40px -32px color-mix(in srgb, var(--cocoa) 40%, transparent);
}

.project__row strong {
  font-size: 16px;
}

.project__price {
  color: var(--cocoa);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.promises:has(> .promise) {
  gap: 12px;
  margin-top: 6px;
}

.promises > .promise {
  position: relative;
  padding: 22px 20px 22px;
  border: 1px solid var(--ice-deep);
  border-radius: var(--r-panel);
  background: var(--ice);
  font-size: 15px;
  line-height: 1.55;
}

.promise__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--cocoa);
}

.promise__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promises > .promise strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--stack-wide);
  font-size: 18px;
  font-weight: 700;
  font-variation-settings: 'wdth' 112;
  line-height: 1.2;
}

.promises > .promises__note {
  padding: 0 4px;
  color: var(--cocoa-soft);
  font-size: 14px;
}

@media (min-width: 768px) {
  .btn--compare-strong {
    height: 56px;
    padding: 0 32px;
  }

  .projects__all.btn {
    align-self: center;
    height: 48px;
    margin-top: 0;
  }

  .projects__list {
    gap: 16px;
  }

  .project {
    gap: 10px;
    padding: 22px 22px 24px;
    border-top: 0;
  }

  .project__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .project__row strong {
    font-size: 17px;
  }

  .project__price {
    font-size: 34px;
    line-height: 1;
  }

  .promises:has(> .promise) {
    gap: 20px;
    padding-top: 8px;
    border-top: 0;
  }

  .promises > .promise {
    padding: 28px 28px 28px 98px;
    font-size: 16px;
  }

  .promise__icon {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 50px;
    height: 50px;
    margin: 0;
  }

  .promises > .promise strong {
    font-size: 20px;
  }

  .promises > .promises__note {
    grid-column: 1 / -1;
    font-size: 15px;
  }
}

/* 29.9 FAQ (D2.1-7). The left column was a heading and air. Now: the
   heading and one line, then a "Still deciding?" card that holds still
   beside the answers while you read them (sticky from 1200). The card
   comes after the answers in the source, so the order a keyboard or a
   screen reader meets is the order a phone shows. */
.faq-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-aside__lead {
  max-width: 36ch;
  margin: 0;
  color: var(--cocoa-soft);
  font-size: 16px;
  line-height: 1.5;
}

.faq-ask {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 16px 14px;
  margin-top: 6px;
  padding: 20px;
  border-radius: var(--r-panel);
  background: var(--white);
  box-shadow: 0 1px 0 var(--ice-deep), 0 24px 44px -32px color-mix(in srgb, var(--cocoa) 45%, transparent);
}

.faq-ask__mark {
  width: 40px;
  height: 40px;
  color: var(--cocoa);
}

.faq-ask__mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 13;
  stroke-linejoin: miter;
  stroke-miterlimit: 8;
}

.faq-ask__mark circle {
  fill: var(--spark);
}

.faq-ask__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-ask__title {
  margin: 0;
  font-family: var(--stack-wide);
  font-size: 19px;
  font-weight: 700;
  font-variation-settings: 'wdth' 112;
}

.faq-ask__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.faq-ask__text a {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.faq-ask .faq-ask__btn {
  display: flex;
  grid-column: 1 / -1;
  align-self: stretch;
}

@media (min-width: 768px) {
  .faq-aside__lead {
    font-size: 18px;
  }

  .faq-ask {
    box-sizing: border-box;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    max-width: 680px;
    margin-top: 0;
    padding: 24px;
  }

  .faq-ask__text {
    font-size: 16px;
  }

  .faq-ask .faq-ask__btn {
    grid-column: auto;
    align-self: center;
    padding: 0 22px;
  }
}

@media (min-width: 1200px) {
  .faq-split {
    grid-template-rows: auto 1fr;
    row-gap: 32px;
  }

  .faq-aside {
    grid-column: 1;
    grid-row: 1;
    gap: 18px;
  }

  .faq-list {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .faq-ask {
    position: sticky;
    top: 32px;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    max-width: 440px;
  }

  .faq-ask .faq-ask__btn {
    grid-column: 1 / -1;
    align-self: stretch;
  }
}


/* 30.4 Projects (D2.2-4): every card has its own next step, at its foot;
   the holiday pack, while it books, is the one dark card, with the
   seasonal chip (isolation: one card different, not four badges, and no
   promo-banner orange fill, which reads as an ad); "See all" comes after a
   line naming what's behind it. Markup: partials/roc/projects-strip.php. */
.project {
  display: flex;
  flex-direction: column;
}
.project__what {
  flex: 1 0 auto;
}
.project__btn.btn {
  box-sizing: border-box;
  align-self: stretch;
  height: 48px;
  min-height: 0;
  margin-top: 10px;
  padding: 0 18px;
  font-size: 15px;
}
.project--season {
  border-radius: var(--r-frame);
  background: var(--cocoa);
  color: var(--ice);
  box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--cocoa) 70%, transparent);
}
.project--season .project__row strong,
.project--season .project__price {
  color: var(--ice);
}
.project--season .project__what {
  color: var(--mist);
}
.project__chip {
  align-self: flex-start;
  margin-bottom: 4px;
}
.btn--season {
  border-color: var(--ice);
  background: var(--ice);
  color: var(--cocoa);
}
@media (hover: hover) {
  .btn--season:hover {
    border-color: var(--spark);
    background: var(--spark);
    color: var(--cocoa);
  }
}
.project--season .btn--season:focus-visible {
  outline-color: var(--ice);
}
.projects__head {
  display: block;
}
.projects__more {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 10px;
  padding: 18px 18px;
  border: 2px dashed var(--mist);
  border-radius: var(--r-frame);
}
.projects__more-text {
  margin: 0;
  color: var(--cocoa-soft);
  font-size: 15px;
  line-height: 1.5;
}
.projects__more-text strong {
  color: var(--cocoa);
  font-weight: 640;
}
.projects__more .projects__all.btn {
  margin-top: 0;
}
@media (min-width: 768px) {
  .projects__more {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 4px;
    padding: 20px 24px;
  }
  .projects__more-text {
    max-width: 720px;
    font-size: 16px;
  }
  .projects__more .projects__all.btn {
    flex: 0 0 auto;
  }
}

