/* clir.ai/start for doctors and lawyers (js/start/pro.js, 2026-11-22): the
   welcome's phone (the ad's own picture, working), its chips, the recording
   written as it's said, the privacy page and the plans page's note. On top of
   start.css, in its colours. */

/* ---- The welcome ---- */
.welcome--pro .welcome__title { font-size: clamp(32px, 8.8vw, 48px); }
/* The ads' tag and marked word (the owner's images of 2026-11-22). */
.ptag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; margin: 0;
  padding: 0 16px; height: 36px; border-radius: 18px; background: #fff; color: #04140e; font-size: 15px; font-weight: 800;
}
.ptag__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(34, 211, 160, 0.9); }
.pmark { background: linear-gradient(transparent 62%, rgba(34, 211, 160, 0.85) 62%, rgba(34, 211, 160, 0.85) 94%, transparent 94%); padding: 0 2px; margin: 0 -2px; }
.welcome--pro .welcome__text { color: #e5e5ea; font-weight: 600; }
/* The button stays in sight on a phone, as on every other step (.actions). */
.welcome--pro { overflow: visible; }
.welcome--pro .aurora { overflow: hidden; }
.welcome__actions {
  position: sticky; bottom: 0; z-index: 4; margin: -10px 0 0;
  padding: 18px 0 max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(rgba(0, 0, 0, 0), #000 28%);
}
.welcome__actions .btn { width: 100%; }

.pphone {
  position: relative; border-radius: 30px; padding: 18px 18px 16px;
  background: linear-gradient(#161818, #0c0d0d); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.03);
  display: flex; flex-direction: column; gap: 4px;
}
.pphone__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pphone__badge { font-size: 12px; font-weight: 750; color: var(--mint); padding: 0 10px; height: 26px; line-height: 26px; border-radius: 13px; background: rgba(34, 211, 160, 0.12); }
.pphone__title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pphone__meta { margin: 0 0 8px; font-size: 13px; color: var(--text-3); }
.pphone__summary { border-radius: 18px; padding: 12px 14px; background: rgba(34, 211, 160, 0.08); border: 1px solid rgba(34, 211, 160, 0.18); font-size: 15px; }
.pphone__label { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint); }
/* A fixed window on the words, the newest at the bottom: the card never changes height. */
.pphone__lines {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; margin-top: 12px; height: 132px; overflow: hidden;
  mask-image: linear-gradient(transparent, #000 34px); -webkit-mask-image: linear-gradient(transparent, #000 34px);
}

/* A line of a recording: who, then what they said. */
.pline__who { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.pline__who--0 { color: #5bb6f2; }
.pline__who--1 { color: #ffad5a; }
.pline__text { margin: 0; font-size: 15.5px; line-height: 1.38; color: #e5e5ea; }

/* Play / pause, as in the player. */
.pplay {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  display: grid; place-items: center; background: #fff; color: #000;
}
.pplay svg { width: 16px; height: 16px; }
.pplay .pause-symbol { display: none; }
.pplay[aria-pressed="true"] .play-symbol { display: none; }
.pplay[aria-pressed="true"] .pause-symbol { display: block; }
.pplay:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Lawyers: the question, the answer, the moment. */
.pphone--ask { gap: 10px; padding: 20px 18px 18px; }
.pphone__pill { align-self: flex-start; font-size: 13px; font-weight: 800; color: var(--mint); padding: 0 12px; height: 28px; line-height: 28px; border-radius: 14px; background: rgba(34, 211, 160, 0.12); }
.pphone__q { margin: 0; color: var(--text-2); font-size: 15.5px; }
.pphone__a { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 500; }
.pphone__a strong { font-weight: 750; }
.pphone__source { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.pphone__source .pplay { background: var(--mint); color: var(--on-mint); }
.pphone__said { flex: 1; min-width: 0; }
.pphone__said p { margin: 0; font-size: 14px; font-weight: 700; }
.pphone__said .pphone__quote { font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pphone__source .fdemo__time { font-weight: 800; font-size: 15px; }
.pphone__wave { position: relative; display: flex; align-items: center; justify-content: space-between; height: 34px; }
.pphone__bar { width: 3px; height: calc(30px * var(--h)); border-radius: 2px; background: rgba(255, 255, 255, 0.22); }
.pphone__head { position: absolute; top: -2px; bottom: -2px; left: calc(var(--at) * 100%); width: 2px; border-radius: 1px; background: var(--mint); box-shadow: 0 0 10px rgba(34, 211, 160, 0.8); }

.pchips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -6px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 21px; background: var(--tile); font-weight: 750; font-size: 15px; }
.pchip__icon { width: 18px; height: 18px; color: var(--mint); }
.pchip__icon svg { width: 100%; height: 100%; }

/* ---- Transcription: the recording, written as it's said ---- */
.pconv .fdemo__head .pplay { width: 34px; height: 34px; }
.pconv .fdemo__head .pplay svg { width: 14px; height: 14px; }
.pconv .fdemo__body { display: flex; flex-direction: column; height: 268px; overflow: hidden; padding-bottom: 12px; }
.plines {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden;
  mask-image: linear-gradient(transparent, #000 44px); -webkit-mask-image: linear-gradient(transparent, #000 44px);
}
.plines .pline { flex: none; }
.pconv .pline__text { font-size: 17px; }

/* ---- AI actions: every result in one cell, one shown (the card keeps its height) ---- */
.presults { display: grid; grid-template-columns: minmax(0, 1fr); }
.presult { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; visibility: hidden; }
.presult.is-on { visibility: visible; }
.presult .fdemo__chapter { grid-template-columns: 44px 1fr; }

/* ---- Privacy ---- */
.pprivacy { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pprivacy__row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--tile); }
.pprivacy__icon { width: 26px; height: 26px; color: var(--mint); flex: none; margin-top: 1px; }
.pprivacy__icon svg { width: 100%; height: 100%; }
.pprivacy__title { margin: 0; font-size: 16.5px; font-weight: 750; }
.pprivacy__text { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }

/* ---- The reviews under the rating: small pills sliding sideways, round and
   round (owner, 2026-11-22). Two copies of the row and a margin (not a gap) on
   every pill, so -50% is exactly one copy and the loop has no jump. ---- */
.rpills {
  margin: -8px -22px 6px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.rpills__row { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; width: max-content; animation: rpills 42s linear infinite; }
.rpills:hover .rpills__row, .rpills:active .rpills__row { animation-play-state: paused; }
/* Each pill (owner, 2026-11-24): the stars and the name on top, the review below. */
.rpill {
  display: flex; flex-direction: column; gap: 4px; width: 252px; padding: 10px 14px 11px; margin-right: 8px;
  border-radius: 18px; background: var(--tile); border: 1px solid var(--line); font-size: 13.5px;
}
.rpill__head { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rpill__stars { color: #FFD60A; font-size: 11.5px; letter-spacing: 1px; }
.rpill__text { color: #e5e5ea; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rpill__by { color: var(--text-2); font-weight: 700; }
@keyframes rpills { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .rpills { overflow-x: auto; scrollbar-width: none; }
  .rpills__row { animation: none; }
}
@media (min-width: 768px) { .rpills { margin-left: 0; margin-right: 0; } }

/* The proof page: the card's own heading is the page's title. */
.page--proof .proof__title { display: none; }
.page--proof .proof { margin-top: 4px; }

/* ---- Plans ---- */
.plans__note { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; font-weight: 650; font-size: 15px; }
.plans__note .check { flex: none; }

@media (min-width: 768px) {
  .welcome--pro .welcome__title { font-size: 56px; }
  .pphone { padding: 22px 22px 20px; }
}

/* Computer: the words, chips and button on the left, the phone on the right. */
@media (min-width: 1100px) and (min-height: 620px) {
  .welcome--pro .welcome__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: 1fr auto auto auto auto 1.2fr;
    grid-template-areas: ". phone" "head phone" "chips phone" "actions phone" "note phone" ". phone";
    row-gap: 28px;
  }
  .welcome--pro .welcome__head { grid-area: head; }
  .welcome--pro .pphone { grid-area: phone; align-self: center; max-width: 460px; width: 100%; justify-self: center; }
  .welcome--pro .pchips { grid-area: chips; margin: 0; }
  .welcome--pro .welcome__actions { grid-area: actions; max-width: 440px; }
  .welcome--pro .fineprint { grid-area: note; }
}
