/* ===========================================================================
   For Solution Partners, layered on style.css.

   A field guide rather than a document, so it borrows nothing from the
   product pages' heading-left, text-right sections or the Sprint page's
   numbered sheet. A consultant
   should get the answer in twenty seconds: the facts strip under the heading,
   a chooser from the customer's situation to an app or the native answer,
   then one panel per app (what customers say, what it replaces, where it
   stops), the papers for a security review, and the way onward.

   Everything here is scoped to the page's own pg- classes and reuses the
   shared tokens; the product captures sit on the shared .stage plate.
   =========================================================================== */

.page--partners .shell > main {
  padding-top: clamp(28px, 4.4vw, 64px);
}

/* ------------------------------------------------------------------ hero */

.pg-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--ink-3);
  font-size: 14.5px;
  font-weight: 560;
  line-height: 1.4;
}

/* A short teal rule, the guide's one mark. */
.pg-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--teal);
  flex: none;
}

.pg-hero h1 {
  max-width: 14.5em;
  margin: 0;
  font-size: clamp(36px, 5.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.042em;
}

/* The turn of the sentence starts its own line. */
.pg-hero h1 .quiet {
  display: block;
}

.pg-hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 28px clamp(40px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(28px, 3.4vw, 44px);
}

.pg-hero .lede {
  max-width: 64ch;
  margin: 0;
}

.pg-hero__note {
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}

/* The facts a partner is asked first, read across in one line on a wide screen. */
.pg-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 28px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pg-strip dt {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

.pg-strip dt::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.pg-strip dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

/* -------------------------------------------------------------- chooser */

.pg-pick {
  margin-top: clamp(72px, 8vw, 112px);
}

.pg-pick__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 12px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: 28px;
}

.pg-pick__head h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.034em;
}

.pg-pick__head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

.pg-pick__list {
  margin: 0;
  border-top: 1px solid var(--line-lit);
}

.pg-pick__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px clamp(32px, 5vw, 80px);
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.pg-pick__row dt {
  color: #d0d6da;
  font-size: 17px;
  line-height: 1.45;
}

.pg-pick__row dd {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
  padding-left: 34px;
}

/* The arrow reads "point them to"; it is decoration, so it has no text alternative. */
.pg-pick__row dd::before {
  content: "\2192";
  content: "\2192" / "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  font-size: 18px;
  line-height: 1;
}

.pg-pick__kind {
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.4;
}

.pg-pick__app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.pg-pick__app:hover {
  text-decoration-color: var(--ink-3);
}

.pg-pick__app svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex: none;
}

/* Answers outside Eriksen Labs: no mark, a step quieter, but as plain to read. */
.pg-pick__other {
  color: #c3cace;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.pg-pick__row--else dt {
  color: var(--ink-2);
}

/* ---------------------------------------------------------- app panels */

.pg-apps {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  margin-top: clamp(72px, 8vw, 112px);
}

.pg-app {
  padding: clamp(22px, 3.6vw, 52px);
  border-radius: 24px;
  background: var(--band);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pg-app__top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px clamp(32px, 4.4vw, 72px);
  align-items: start;
}

.pg-app h2 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.028em;
}

/* Centred on the first line of the name, even when the name wraps. */
.pg-app__icon {
  width: 30px;
  height: 30px;
  margin-top: calc((1.1em - 30px) / 2);
  color: var(--teal);
  flex: none;
}

/* On the Marketplace: the filled dot the home page uses. */
.pg-app__status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0 0;
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.4;
}

.pg-app__status::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.pg-app__does {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.62;
}

/* The product itself, on the shared lit plate, cropped to a field-guide frame. */
.pg-plate {
  aspect-ratio: 16 / 11;
  border-radius: 18px;
}

.pg-plate--mermaid .win {
  left: 7%;
  top: 18%;
  width: 150%;
}

.pg-plate--rr .sheet {
  left: 25%;
  top: 9%;
  width: 50%;
}

.pg-plate--it .sheet {
  left: 17%;
  top: 9%;
  width: 66%;
}

.pg-app h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.006em;
}

.pg-app__says {
  margin-top: clamp(32px, 3.6vw, 44px);
}

/* What customers say, set as speech: a bubble with one squared corner. */
.pg-says {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.pg-says li {
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px 16px 16px 4px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #d9dee1;
  font-size: 15.5px;
  line-height: 1.5;
}

.pg-says li::before {
  content: none;
}

/* Replaces, and where it stops: two columns, told apart by their rule. */
.pg-fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(28px, 4vw, 64px);
  margin-top: clamp(32px, 3.6vw, 44px);
}

.pg-fit__col {
  padding-top: 18px;
  border-top: 2px solid var(--line-lit);
}

.pg-fit__col--yes {
  border-top-color: rgba(78, 201, 168, 0.6);
}

.pg-fit ul {
  margin: 0;
}

.pg-fit li {
  margin-bottom: 12px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

.pg-fit li:last-child {
  margin-bottom: 0;
}

.pg-fit__col--yes li::before {
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.pg-app__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 48px;
  align-items: end;
  margin-top: clamp(32px, 3.6vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pg-app__eval h3 {
  margin-bottom: 8px;
  font-size: 14.5px;
}

.pg-app__eval p {
  max-width: 76ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.pg-eval {
  display: grid;
  gap: 4px;
  margin: 0;
}

.pg-eval li {
  margin: 0;
  padding-left: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.pg-eval li::before {
  content: none;
}

/* ------------------------------------------------------- security review */

.pg-trust {
  margin-top: clamp(80px, 9vw, 128px);
}

.pg-trust h2 {
  margin: 0 0 28px;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pg-trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: start;
}

.pg-trust__text {
  max-width: 64ch;
}

.pg-trust__text p {
  color: var(--ink-2);
}

.pg-trust__text p:last-of-type {
  margin-bottom: 0;
}

/* Scopes per app, as a count you can read off. */
.pg-scopes {
  margin: 0;
  border-top: 1px solid var(--line-lit);
}

.pg-scopes > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}

.pg-scopes dt {
  color: var(--ink-2);
}

.pg-scopes dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* The papers, in a row under the text. */
.pg-papers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 28px 0 0;
}

.pg-papers li {
  margin: 0;
  padding: 0;
}

.pg-papers li::before {
  content: none;
}

/* ------------------------------------------------------------- onward */

.pg-next {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: clamp(80px, 9vw, 128px);
}

.pg-next__card {
  padding: clamp(24px, 3.6vw, 48px);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--line-lit);
}

/* The Sprint card is the one lit thing at the end: a little teal from its corner. */
.pg-next__card--sprint {
  background:
    radial-gradient(640px 320px at 0% 0%, rgba(78, 201, 168, 0.13) 0%, rgba(78, 201, 168, 0) 70%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(170, 235, 214, 0.16), inset 0 0 0 1px var(--line);
}

.pg-next h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.026em;
}

.pg-next p {
  color: var(--ink-2);
}

.pg-next__price {
  margin: 22px 0 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.pg-next__price strong {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.pg-next__who {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

/*
  The longer link labels and the address may wrap: with the text enlarged on
  a narrow screen they would otherwise run past the edge of the page.
*/
.pg-hero .arrow-link,
.pg-papers .arrow-link,
.pg-next .arrow-link {
  white-space: normal;
}

.pg-next__card {
  overflow-wrap: break-word;
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .pg-hero__foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .pg-app__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-plate {
    aspect-ratio: 16 / 10;
  }
  .pg-trust__grid,
  .pg-next {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-scopes {
    max-width: 520px;
  }
}

@media (max-width: 800px) {
  .pg-pick__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-pick__row {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 0;
  }
  .pg-pick__row dd::before {
    top: 0.55em;
    transform: none;
  }
  .pg-says,
  .pg-fit {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-app__foot {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 700px) {
  .pg-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Phone frames: the source at a readable size, the dialogs larger and cut off below. */
  .pg-plate {
    aspect-ratio: 4 / 3;
  }
  .pg-plate--mermaid .win {
    left: 6%;
    top: 12%;
    width: 210%;
  }
  .pg-plate--rr .sheet {
    left: 12%;
    top: 8%;
    width: 76%;
  }
  .pg-plate--it .sheet {
    left: 9%;
    top: 8%;
    width: 92%;
  }
}

@media (max-width: 640px) {
  .pg-pick__row dt,
  .pg-pick__app,
  .pg-pick__other {
    font-size: 16px;
  }
  .pg-app h2 {
    gap: 12px;
  }
  .pg-app__icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 440px) {
  .pg-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-app,
  .pg-next__card {
    padding: 20px 18px;
    border-radius: 18px;
  }
  .pg-pick__row dd {
    padding-left: 28px;
  }
}

/* High Contrast drops backgrounds and shadows: the panels and bubbles keep an edge. */
@media (forced-colors: active) {
  .pg-app,
  .pg-says li,
  .pg-next__card {
    border: 1px solid CanvasText;
  }
}

@media print {
  .pg-plate {
    display: none;
  }
  .pg-app,
  .pg-next__card,
  .pg-says li {
    background: none;
    box-shadow: none;
    border: 1px solid #bbb;
  }
  .pg-app {
    break-inside: avoid-page;
  }
  .pg-hero .quiet,
  .pg-pick__app,
  .pg-pick__other,
  .pg-pick__row dt,
  .pg-says li {
    color: #000;
  }
  .pg-strip dd,
  .pg-app__does,
  .pg-fit li,
  .pg-eval li,
  .pg-app__eval p,
  .pg-trust__text p,
  .pg-next p,
  .pg-scopes dt {
    color: #222;
  }
}
