/* The For stylists pages (dev/for-stylists/render.mjs). Built on styles.css
   (fonts, colours, nav, buttons, tape, stickers, questions), blog.css
   (breadcrumbs) and stylists.css (the forms): this adds the pages' own parts,
   in the same black and white, with real screens of the app pinned like the
   site's outfit boards. On phones everything stacks: no sideways rows, short
   screens, text at least 16px. */

.pro-page main {
  overflow-x: clip;
}

.pro-page .eyebrow {
  margin-bottom: 14px;
}

/* ---------- the top of the page ---------- */

.pro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 88px));
  padding-bottom: clamp(56px, 7vw, 104px);
}

.pro-hero.solo {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.pro-hero.solo .pro-hero-copy {
  max-width: 820px;
}

.pro-title {
  margin: 0 0 22px;
  font-size: clamp(50px, 7.2vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.pro-title i,
.pro-h2 i,
.pro-h3 i {
  font-style: italic;
}

.pro-lede {
  margin: 0;
  max-width: 54ch;
  color: var(--ink-2);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
}

.pro-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.pro-fine {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}

/* This page in other languages: a short line of words, never a sideways row. */
.pro-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: -6px 0 22px;
  font-size: 16px;
}

.pro-langs a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
}

.pro-langs a:hover {
  color: var(--ink);
}

.pro-langs [aria-current] {
  padding: 6px 0;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* The pinned screens: white screens of the app taped to a black board. */
.pro-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: var(--black);
}

.pro-art .scr {
  position: absolute;
  top: 9%;
  width: 46%;
}

.pro-art .scr.a {
  left: 6%;
  transform: rotate(-3deg);
}

.pro-art .scr.b {
  right: 6%;
  top: 15%;
  transform: rotate(3deg);
}

.pro-art.one .scr.a {
  left: 50%;
  width: 54%;
  transform: translateX(-50%) rotate(-2deg);
}

/* Screens are cut off by the board's bottom edge: short, never a whole phone's height. */
.pro-art {
  overflow: hidden;
}

.pro-art .sticker {
  right: 5%;
  bottom: 6%;
  width: 96px;
  height: 96px;
  font-size: 12px;
}

.scr {
  position: relative;
  margin: 0;
}

.scr img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.scr .tape {
  top: -6px;
}

.scr .tape.l {
  left: -18px;
}

.scr .tape.r {
  right: -18px;
}

.scr figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- sections ---------- */

.pro-sec {
  padding: clamp(64px, 8vw, 120px) 0;
}

.pro-sec.soft {
  background: var(--soft);
}

.pro-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.pro-h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.pro-h3 {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pro-deck {
  margin: 18px 0 0;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: clamp(17px, 1.4vw, 19px);
}

.pro-text p,
.pro-text li {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.pro-text b {
  color: var(--ink);
  font-weight: 600;
}

.pro-text a,
.pro-points a,
.pro-note a,
.pro-form-fine a,
.pro-plans-fine a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.pro-text ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.pro-after-link {
  margin: 36px 0 0;
}

/* Tiles: the parts of stylist mode, and anything else in threes. */
.pro-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pro-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.5s var(--ease);
}

.pro-sec.soft .pro-tile {
  box-shadow: none;
}

a.pro-tile:hover {
  box-shadow: inset 0 0 0 1px var(--ink-3), 0 18px 40px -26px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.pro-tile-label {
  font-size: 12.5px;
  color: var(--ink-2);
}

.pro-tile h3 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.pro-tile p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

.pro-tile-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 12.5px;
}

.pro-tile-more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

a.pro-tile:hover .pro-tile-more svg {
  transform: translateX(4px);
}

/* Before and after. */
.pro-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pro-before,
.pro-after {
  padding: 30px 30px 26px;
  border-radius: 24px;
}

.pro-before {
  background: var(--soft);
}

.pro-after {
  background: var(--black);
  color: #fff;
}

.pro-before h3,
.pro-after h3 {
  margin: 0 0 14px;
  font-size: 13px;
}

.pro-after h3 {
  color: var(--on-black-2);
}

.pro-compare ul,
.pro-points,
.pro-list,
.pro-plan ul,
.pro-every ul,
.pro-band-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pro-compare li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  font-size: 17px;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}

.pro-after li {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.pro-before li {
  color: var(--ink-2);
}

.pro-compare svg,
.pro-points svg,
.pro-list svg,
.pro-plan svg,
.pro-every svg,
.pro-band-points svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

/* A row: words on one side, a real screen on the other. */
.pro-row-in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.pro-row.flip .pro-row-copy {
  order: 2;
}

.pro-row .pro-head {
  margin-bottom: 22px;
}

.pro-points {
  display: grid;
  gap: 14px;
  margin: 6px 0 26px;
}

.pro-points li {
  display: flex;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.pro-points b {
  color: var(--ink);
  font-weight: 600;
}

.pro-note {
  margin: -6px 0 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink-2);
  font-size: 16px;
  max-width: 60ch;
}

.pro-row-art {
  position: relative;
  max-width: 400px;
  justify-self: center;
  width: 100%;
}

.pro-row-art .scr.a {
  transform: rotate(-1.5deg);
}

.pro-row-art.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
  align-items: start;
}

.pro-row-art.two .scr.b {
  margin-top: 40px;
  transform: rotate(2deg);
}

/* Steps. */
.pro-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.pro-steps li {
  padding: 26px 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pro-sec.soft .pro-steps li {
  box-shadow: none;
}

.pro-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 15px;
}

.pro-steps h3 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.05;
}

.pro-steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

/* Plans. */
.pro-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pro-plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pro-sec.soft .pro-plan {
  box-shadow: none;
}

.pro-plan.dark {
  background: var(--black);
  color: #fff;
}

.pro-plan h3 {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.pro-plan.dark h3 {
  color: var(--on-black-2);
}

.pro-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.pro-price span {
  font-family: var(--serif);
  font-size: clamp(54px, 5vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.pro-price small {
  font-size: 16px;
  color: var(--ink-2);
}

.pro-plan.dark .pro-price small,
.pro-plan.dark .pro-plan-text {
  color: var(--on-black-2);
}

.pro-plan-text {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

.pro-plan ul {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pro-plan.dark ul {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.pro-plan li,
.pro-every li,
.pro-list li,
.pro-band-points li {
  display: flex;
  gap: 10px;
  font-size: 16px;
  line-height: 1.45;
}

.pro-every {
  margin-top: 14px;
  padding: 30px 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pro-sec.soft .pro-every {
  box-shadow: none;
}

.pro-every h3 {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-2);
}

.pro-every ul,
.pro-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}

.pro-plans-fine {
  margin: 22px 0 0;
  max-width: 70ch;
  color: var(--ink-2);
  font-size: 16px;
}

/* A table that always fits: short words, no sideways scrolling. */
.pro-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}

.pro-table th,
.pro-table td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.pro-table thead th {
  font-family: var(--sans);
  font-stretch: 75%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  color: var(--ink-2);
}

.pro-table th[scope='row'],
.pro-table th.first {
  text-align: left;
  font-weight: 600;
  width: 34%;
}

.pro-table tr:last-child th,
.pro-table tr:last-child td {
  border-bottom: 0;
}

/* Links to the other parts, at the foot of a part's page. */
.pro-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
}

.pro-related a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.pro-related span {
  grid-column: 1;
  font-size: 12.5px;
  color: var(--ink-2);
}

.pro-related b {
  grid-column: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
}

.pro-related svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  transition: transform 0.35s var(--ease);
}

.pro-related a:hover svg {
  transform: translateX(4px);
}

/* A black band: a call to action, or a service worth its own moment. */
.pro-band {
  background: var(--black);
  color: #fff;
  padding: clamp(64px, 8vw, 112px) 0;
}

.pro-band-in {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.pro-band .eyebrow {
  color: var(--on-black-2);
}

.pro-band-text {
  margin: 20px 0 0;
  max-width: 58ch;
  color: var(--on-black-2);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
}

.pro-band-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: var(--on-black-2);
}

.pro-band-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.pro-band-fine {
  margin: 6px 0 0;
  color: var(--on-black-2);
  font-size: 16px;
  max-width: 34ch;
}

/* Questions: the home page's list, with this page's heading size. */
.pro-faq .faq-head .pro-h2 {
  font-size: clamp(40px, 4.6vw, 64px);
}

/* Prose sections. */
.pro-prose .pro-text {
  max-width: 720px;
}

/* ---------- the application form ---------- */

/* The directory's form parts, at phone-friendly sizes on these pages. */
.pro-page .gl-field > span,
.pro-page .gl-kind span,
.pro-page .gl-check span,
.pro-page .gl-field small,
.pro-page .link-arrow {
  font-size: 16px;
}

.pro-page .gl-field small {
  color: var(--ink-2);
  font-weight: 400;
}

.pro-apply {
  padding-top: 0;
}

.pro-apply .gl {
  padding-top: 0;
}

.pro-form-fine {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}

.pro-done {
  padding: 34px 32px;
  border-radius: 24px;
  background: var(--soft);
  outline: none;
}

.pro-done-steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 17px;
  color: var(--ink-2);
}

.pro-done .pro-ctas {
  margin-top: 26px;
}

/* ---------- the calculator ---------- */

.pro-calc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pro-calc-part {
  margin: 0;
  padding: 26px 24px 10px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  display: grid;
  gap: 2px;
}

.pro-calc-part legend {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.pro-money {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-money b {
  font-weight: 600;
  font-size: 17px;
  min-width: 1ch;
}

.pro-money input {
  flex: 1;
  min-width: 0;
}

.pro-calc-out {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pro-calc-card {
  padding: 28px 26px;
  border-radius: 22px;
  background: #fff;
  min-height: 210px;
}

.pro-calc-card.dark {
  background: var(--black);
  color: #fff;
}

.pro-calc-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-2);
}

.pro-calc-card.dark h3,
.pro-calc-card.dark .pro-calc-note {
  color: var(--on-black-2);
}

.pro-calc-big {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pro-calc-note {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}

/* The market's middle half as a bar, and where your floor falls on it. */
.pro-range {
  position: relative;
  height: 10px;
  margin-top: 22px;
  border-radius: 99px;
  background: var(--soft-2);
}

.pro-range-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: var(--ink);
  transition: left 0.4s var(--ease), width 0.4s var(--ease);
}

.pro-range-you {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 20px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ink);
  transition: left 0.4s var(--ease);
}

/* ---------- the badge ---------- */

.pro-badges {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.pro-badge-pick,
.pro-badge-show {
  padding: 26px 24px;
  border-radius: 22px;
  background: var(--soft);
  display: grid;
  gap: 6px;
  align-content: start;
}

.pro-badge-preview {
  display: grid;
  place-items: center;
  min-height: 140px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #fff;
}

.pro-badge-preview.white {
  background: var(--black);
}

.pro-badge-preview img {
  width: 200px;
  height: auto;
}

.pro-badge-show textarea {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px !important;
  line-height: 1.5;
  resize: none;
}

.pro-badge-show .btn {
  justify-self: start;
}

/* ---------- smaller screens ---------- */

@media (max-width: 960px) {
  .pro-tiles,
  .pro-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pro-plans .pro-plan:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .pro-band-in {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 860px) {
  .pro-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  /* On a phone the board is short and wide: the screens' tops, never their whole height. */
  .pro-art {
    aspect-ratio: auto;
    height: min(86vw, 420px);
  }

  .pro-art .scr {
    width: 44%;
    max-width: 230px;
  }

  .pro-art .scr.a {
    left: max(6%, calc(50% - 240px));
  }

  .pro-art .scr.b {
    right: max(6%, calc(50% - 240px));
  }

  .pro-art.one .scr.a {
    left: 50%;
    width: 60%;
    max-width: 280px;
  }

  .pro-art .sticker {
    width: 88px;
    height: 88px;
    font-size: 12px;
  }

  .pro-row-in,
  .pro-compare,
  .pro-calc,
  .pro-calc-out,
  .pro-badges {
    grid-template-columns: minmax(0, 1fr);
  }

  .pro-row.flip .pro-row-copy {
    order: 0;
  }

  /* A screen under its words: short, cut off softly at the bottom. */
  .pro-row-art {
    max-width: 340px;
    max-height: 440px;
    overflow: hidden;
    padding: 8px 18px 0;
    -webkit-mask-image: linear-gradient(#000 78%, transparent);
    mask-image: linear-gradient(#000 78%, transparent);
  }

  .pro-row-art.two {
    max-width: 440px;
    gap: 14px;
  }

  .pro-row-art.two .scr.b {
    margin-top: 28px;
  }
}

@media (max-width: 640px) {
  .pro-tiles,
  .pro-plans,
  .pro-every ul,
  .pro-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pro-plans .pro-plan:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .pro-tile,
  .pro-plan,
  .pro-every,
  .pro-before,
  .pro-after,
  .pro-steps li,
  .pro-calc-card,
  .pro-done {
    padding: 24px 20px;
  }

  .pro-tile h3,
  .pro-steps h3 {
    font-size: 27px;
  }

  .pro-ctas .btn,
  .pro-band-ctas .btn {
    width: 100%;
    /* Longer words in French, German and Greek: the label wraps inside the button, never past it. */
    height: auto;
    min-height: var(--h);
    padding-top: 12px;
    padding-bottom: 12px;
    white-space: normal;
    text-align: center;
  }

  .pro-band-ctas {
    align-items: stretch;
  }

  .pro-table th,
  .pro-table td {
    padding: 13px 6px;
    font-size: 16px;
  }

  .pro-table thead th {
    font-size: 12px;
    letter-spacing: 0.03em;
  }

  .pro-related b {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pro-tile,
  .pro-range-bar,
  .pro-range-you {
    transition: none;
  }
}
