/* Shared profession feature showcase: NEW client, calendar sharing, and Instagram product proofs. */

.new-client-story,
.share-story {
  isolation: isolate;
}

.new-client-story {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(54px, 7vw, 112px);
  background:
    radial-gradient(circle at 87% 18%, rgba(var(--app-bright-rgb), .13), transparent 32%),
    #fff;
}

.new-client-copy {
  max-width: 620px;
}

.new-client-copy strong {
  color: var(--profession-warning);
}

.new-client-steps {
  margin-top: 34px;
  display: grid;
  gap: 10px;
}

.new-client-steps article {
  min-height: 76px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(var(--app-accent-rgb), .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 34px rgba(var(--app-deep-rgb), .045);
}

.new-client-steps article>span {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--profession-soft);
  color: var(--profession-primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
}

.new-client-steps b,
.new-client-steps small {
  display: block;
}

.new-client-steps b {
  margin-bottom: 4px;
  color: var(--profession-ink);
  font-size: 14px;
}

.new-client-steps small {
  color: var(--profession-muted);
  font-size: 12px;
  line-height: 1.45;
}

.client-safe-note {
  margin: 22px 0 0 !important;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(201, 105, 22, .2);
  border-radius: 17px;
  background: #fff8ef;
  color: #6f5542 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.client-safe-note>span:first-child {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3902f;
  color: #fff;
  font-weight: 900;
}

.client-safe-note b {
  display: block;
  color: #4d3322;
}

.product-proof {
  position: relative;
  min-height: 690px;
}

.product-proof::before {
  position: absolute;
  inset: 7% 0 4% 4%;
  border-radius: 46% 54% 42% 58% / 48% 42% 58% 52%;
  background: linear-gradient(145deg, var(--profession-soft-secondary), var(--profession-soft));
  content: "";
  transform: rotate(-4deg);
}

.app-shot {
  position: absolute;
  width: min(320px, 47%);
  margin: 0;
  padding: 7px;
  border-radius: 40px;
  background: #171318;
  box-shadow: 0 35px 90px rgba(var(--app-deep-rgb), .23);
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.app-shot figcaption {
  position: absolute;
  left: 50%;
  bottom: -54px;
  min-width: 190px;
  padding: 13px 16px;
  border: 1px solid rgba(var(--app-accent-rgb), .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .94);
  text-align: center;
  box-shadow: 0 14px 38px rgba(var(--app-deep-rgb), .12);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.app-shot figcaption b,
.app-shot figcaption span {
  display: block;
}

.app-shot figcaption b {
  margin-bottom: 4px;
  color: var(--profession-primary);
  font-size: 9px;
  letter-spacing: .1em;
}

.app-shot figcaption span {
  color: #6d6570;
  font-size: 11px;
  white-space: nowrap;
}

.app-shot--back {
  top: 18px;
  left: 2%;
  transform: rotate(-5deg);
}

.app-shot--front {
  right: 2%;
  bottom: 36px;
  z-index: 2;
  transform: rotate(4deg);
}

.new-badge-float {
  position: absolute;
  top: 45%;
  left: 45%;
  z-index: 3;
  padding: 12px 18px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9d3a, #e46d10);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .1em;
  box-shadow: 0 14px 34px rgba(201, 105, 22, .28);
  transform: rotate(-7deg);
}

.share-story {
  padding-bottom: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(var(--app-bright-rgb), .11), transparent 28%),
    var(--app-soft);
}

.share-intro,
.share-product-proof,
.delivery-facts,
.instagram-story {
  width: min(1320px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.share-intro {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.share-intro .section-heading {
  max-width: 590px;
}

.share-demo {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(var(--app-accent-rgb), .11);
  border-radius: 31px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 28px 85px rgba(var(--app-deep-rgb), .11);
  backdrop-filter: blur(16px);
}

.share-mode {
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 15px;
  background: #eeeef1;
}

.share-mode button,
.share-channels button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.share-mode button {
  padding: 11px 8px;
  border-radius: 11px;
  background: transparent;
  color: var(--profession-muted);
  font-size: 12px;
  font-weight: 750;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.share-mode button.active {
  background: #fff;
  color: var(--profession-ink);
  box-shadow: 0 3px 9px rgba(31, 22, 32, .1);
}

.share-preview {
  min-height: 278px;
  margin-top: 18px;
  padding: 19px;
  border: 1px solid rgba(var(--app-accent-rgb), .08);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--profession-soft-secondary), var(--app-soft));
}

.share-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-preview-head>span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--app-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.share-preview-head p {
  flex: 1;
  margin: 0;
}

.share-preview-head b,
.share-preview-head small {
  display: block;
}

.share-preview-head b {
  color: var(--profession-ink);
  font-size: 14px;
}

.share-preview-head small {
  margin-top: 3px;
  color: var(--profession-muted);
  font-size: 10px;
}

.share-preview-head i {
  color: var(--profession-muted);
  font-style: normal;
}

.share-message {
  width: 84%;
  margin: 22px 0 14px auto;
  padding: 14px 16px;
  border-radius: 18px 18px 4px;
  background: #e7f8ec;
  box-shadow: 0 8px 22px rgba(37, 117, 70, .07);
}

.share-message small,
.share-calendar small {
  color: #218a58;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
}

.share-message p {
  margin: 5px 0 0;
  color: #405249;
  font-size: 11px;
  line-height: 1.5;
}

.share-calendar {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(201, 105, 22, .17);
  border-radius: 16px;
  background: #fff;
}

.share-calendar>span {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--app-gradient);
  color: #fff;
}

.share-calendar p {
  flex: 1;
  margin: 0;
}

.share-calendar b,
.share-calendar em {
  display: block;
}

.share-calendar b {
  margin: 3px 0;
  color: var(--profession-ink);
  font-size: 12px;
}

.share-calendar em {
  color: var(--profession-muted);
  font-size: 9px;
  font-style: normal;
}

.share-calendar>i {
  color: var(--app-accent);
  font-size: 21px;
  font-style: normal;
}

.share-preview[data-mode="reminder"] .share-calendar,
.share-preview[data-mode="calendar"] .share-message {
  display: none;
}

.share-preview[data-mode="reminder"] .share-message {
  margin-top: 44px;
}

.share-preview[data-mode="calendar"] .share-calendar {
  margin-top: 48px;
}

.share-channels {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.share-channels button {
  padding: 11px 6px 10px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--profession-soft-secondary);
  color: var(--profession-muted);
  font-size: 9px;
  font-weight: 750;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.share-channels button:hover {
  transform: translateY(-2px);
}

.share-channels button.active {
  border-color: rgba(var(--app-accent-rgb), .18);
  background: #fff;
  color: var(--app-accent);
}

.channel-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--app-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.channel-mark--wa {
  background: #28c865;
}

.share-result {
  min-height: 20px;
  margin: 14px 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--profession-muted);
  font-size: 10px;
  line-height: 1.4;
}

.share-result>span:first-child {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--app-accent);
  color: #fff;
  font-weight: 900;
}

.share-product-proof {
  position: relative;
  min-height: 710px;
  margin-top: 105px;
  border-radius: 46px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .18), transparent 25%),
    var(--app-gradient);
  overflow: hidden;
}

.share-product-proof::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

.delivery-facts {
  position: relative;
  z-index: 3;
  margin-top: -34px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border: 1px solid rgba(var(--app-accent-rgb), .1);
  border-radius: 25px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 24px 70px rgba(var(--app-deep-rgb), .13);
  backdrop-filter: blur(14px);
}

.delivery-facts article {
  padding: 14px 15px;
  display: flex;
  gap: 13px;
}

.delivery-facts article>span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--app-soft);
  color: var(--app-accent);
  font-weight: 850;
}

.delivery-facts b {
  color: var(--profession-ink);
  font-size: 13px;
}

.delivery-facts p {
  margin: 5px 0 0;
  color: var(--profession-muted);
  font-size: 11px;
  line-height: 1.5;
}

.instagram-story {
  margin-top: 105px;
  padding: 90px clamp(32px, 6vw, 92px);
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(55px, 8vw, 120px);
  border-radius: 45px 45px 0 0;
  background: #fff;
}

.instagram-shot-wrap {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.app-shot--instagram {
  position: relative;
  width: min(330px, 100%);
  transform: rotate(-3deg);
}

.instagram-handle {
  position: absolute;
  right: -12%;
  top: 43%;
  z-index: 2;
  padding: 13px 18px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #8d38e9, #e03286 58%, #f09a32);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(164, 42, 141, .25);
  transform: rotate(4deg);
}

.instagram-copy {
  max-width: 630px;
}

.instagram-steps {
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.instagram-steps li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(var(--app-accent-rgb), .1);
}

.instagram-steps li>span {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3eafa;
  color: #8033db;
  font-size: 12px;
  font-weight: 850;
}

.instagram-steps p {
  margin: 0;
}

.instagram-steps b,
.instagram-steps small {
  display: block;
}

.instagram-steps b {
  color: var(--profession-ink);
  font-size: 14px;
}

.instagram-steps small {
  margin-top: 3px;
  color: var(--profession-muted);
  font-size: 11px;
  line-height: 1.45;
}

.accuracy-note--instagram {
  margin-top: 22px !important;
  font-size: 11px !important;
}

@media (max-width: 1100px) {
  .new-client-story,
  .share-intro {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }

  .product-proof {
    min-height: 610px;
  }

  .share-product-proof {
    min-height: 660px;
  }

  .instagram-story {
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  }
}

@media (max-width: 860px) {
  .new-client-story,
  .share-intro,
  .instagram-story {
    grid-template-columns: 1fr;
  }

  .new-client-copy,
  .share-intro .section-heading,
  .instagram-copy {
    max-width: 680px;
  }

  .product-proof {
    min-height: 750px;
  }

  .app-shot {
    width: min(330px, 46%);
  }

  .share-demo {
    width: min(650px, 100%);
  }

  .share-product-proof {
    min-height: 705px;
  }

  .delivery-facts {
    grid-template-columns: 1fr;
  }

  .instagram-story {
    padding-top: 70px;
  }

  .instagram-shot-wrap {
    min-height: 630px;
  }

  .instagram-handle {
    right: 18%;
  }
}

@media (max-width: 620px) {
  .profession-page .conflict-result {
    flex-wrap: wrap;
  }

  .profession-page .conflict-result button {
    width: 100%;
    display: block;
  }

  .new-client-story {
    gap: 55px;
  }

  .new-client-copy h2 br,
  .share-intro h2 br {
    display: none;
  }

  .new-client-steps article {
    padding: 13px;
  }

  .product-proof {
    min-height: 630px;
  }

  .product-proof::before {
    inset: 4% -12% 5%;
  }

  .app-shot {
    width: 59%;
    border-radius: 28px;
  }

  .app-shot img {
    border-radius: 23px;
  }

  .app-shot--back {
    left: -4%;
  }

  .app-shot--front {
    right: -4%;
  }

  .app-shot figcaption {
    bottom: -46px;
    min-width: 156px;
    padding: 10px 12px;
  }

  .app-shot figcaption span {
    font-size: 9px;
  }

  .new-badge-float {
    left: 40%;
    padding: 9px 13px;
    border-width: 3px;
    font-size: 11px;
  }

  .share-story {
    padding-right: 16px;
    padding-left: 16px;
  }

  .share-demo {
    padding: 16px;
    border-radius: 23px;
  }

  .share-preview {
    min-height: 288px;
    padding: 15px;
  }

  .share-message {
    width: 92%;
  }

  .share-channels {
    gap: 5px;
  }

  .share-channels button {
    padding: 9px 2px;
    font-size: 8px;
  }

  .share-product-proof {
    min-height: 690px;
    margin-top: 70px;
    border-radius: 30px;
  }

  .delivery-facts {
    margin-top: -26px;
    padding: 11px;
    border-radius: 20px;
  }

  .delivery-facts article {
    padding: 10px;
  }

  .instagram-story {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding: 70px 20px 88px;
    border-radius: 30px 30px 0 0;
  }

  .instagram-shot-wrap {
    min-height: 610px;
  }

  .app-shot--instagram {
    width: min(315px, 78%);
  }

  .instagram-handle {
    right: 2%;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-mode button,
  .share-channels button {
    transition: none;
  }
}
