/* Start page, variant B: "Create, share, and connect." Loaded by index.html on top of site.css.
   index-a.html is the earlier start page (it uses site.css only). */

.pill0 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  margin-bottom: 26px;
  border-radius: 12px 12px 12px 3px;
  background: #dff5ef;
  color: var(--tt);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.pill0::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(9, 199, 168, 0.18);
}
.h3w {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.875rem, 0.6rem + 11.3vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.h3w span {
  display: block;
}
.h3w em {
  font-style: italic;
  font-weight: 400;
  color: var(--tt);
}

/* The three cards: create, share, connect. --s is the scale on small screens. */
.trio-wrap {
  position: relative;
}
.trio {
  position: relative;
  width: 600px;
  height: 660px;
}
.path {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tc {
  position: absolute;
  box-sizing: border-box;
  padding: 22px 24px;
  border-radius: 30px 30px 30px 8px;
  box-shadow: 0 30px 60px rgba(8, 33, 29, 0.18);
}
.tc .lb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tc .lb b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px 8px 8px 2px;
  font-size: 11px;
  letter-spacing: 0;
}
.tc svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  display: block;
  width: 19px;
  height: 19px;
}
.tA {
  left: 10px;
  top: 10px;
  z-index: 1;
  width: 300px;
  height: 330px;
  background: #fff;
  color: var(--ink);
  transform: rotate(-5deg);
}
.tA .lb {
  color: var(--tt);
}
.tA .lb b {
  background: #dff5ef;
}
.tA .av {
  width: 62px;
  height: 62px;
  margin: 22px auto 12px;
  border-radius: 22px 22px 22px 6px;
  background: var(--teal);
}
.tA .ln {
  width: 120px;
  height: 12px;
  margin: 0 auto;
  border-radius: 6px;
  background: var(--ink);
}
.tA .ln2 {
  width: 160px;
  height: 8px;
  margin: 10px auto 0;
  border-radius: 4px;
  background: var(--field);
}
.tA .blk {
  height: 44px;
  margin-top: 14px;
  border-radius: 14px 14px 14px 4px;
  background: #eef4f1;
}
.tB {
  left: 250px;
  top: 170px;
  z-index: 2;
  width: 330px;
  height: 230px;
  background: var(--teal);
  color: var(--ink);
  transform: rotate(4deg);
}
.tB .lb b {
  background: var(--ink);
  color: var(--teal);
}
.lnkc {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  margin-top: 26px;
  padding: 0 18px;
  border-radius: 18px 18px 18px 5px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 33, 29, 0.12);
  font-size: 19px;
  font-weight: 700;
}
.lnkc span {
  color: var(--muted);
  font-weight: 600;
}
.lnkc svg {
  color: var(--tt);
  stroke-width: 2.2;
}
.shr {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.shr i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(8, 33, 29, 0.12);
}
.tC {
  left: 30px;
  top: 420px;
  z-index: 3;
  width: 360px;
  height: 280px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #e8f2ef;
  transform: rotate(-3deg);
}
.tC .lb {
  color: var(--teal);
}
.tC .lb b {
  background: var(--teal);
  color: var(--ink);
}
.ch {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  margin-top: 16px;
  overflow: hidden;
}
.ch div {
  align-self: flex-start;
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  background: #e8f2ef;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.ch div.r {
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  background: var(--teal);
}
.ch div.t {
  max-width: 86%;
}
.ch .btn {
  display: block;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 12px 12px 12px 4px;
  background: rgba(8, 33, 29, 0.14);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

/* Under the text: the cards overlap, tighter, scaled to the width of the screen.
   They sit 545 px wide (x 40 to 585) and 490 px tall at full size. */
@media (max-width: 1000px) {
  .trio-wrap {
    --s: 0.9;
    height: calc(var(--s) * 490px);
    margin-top: 36px;
  }
  .trio {
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: calc(var(--s) * -312px);
    transform: scale(var(--s));
    transform-origin: 0 0;
  }
  .path {
    display: none;
  }
  .tA {
    left: 40px;
    top: 0;
  }
  .tB {
    left: 245px;
    top: 41px;
  }
  .tC {
    left: 119px;
    top: 186px;
  }
}
/* Signature under the intro: who is saying it */
.sig {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.sig img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 15px 15px 15px 4px;
  object-fit: cover;
}
.sig .sn {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sig .sr {
  display: block;
  margin-top: 1px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 560px) {
  .sig {
    gap: 10px;
    margin-top: 12px;
  }
  .sig img {
    width: 36px;
    height: 36px;
    border-radius: 12px 12px 12px 3px;
  }
  .sig .sn {
    font-size: 20px;
  }
  .sig .sr {
    font-size: 12.5px;
  }
  .trio-wrap {
    --s: 0.66;
    margin-top: 28px;
  }
  .pill0 {
    height: 28px;
    margin-bottom: 16px;
    font-size: 12px;
  }
}
@media (max-width: 380px) {
  .trio-wrap {
    --s: 0.58;
  }
}
@media (max-width: 340px) {
  .trio-wrap {
    --s: 0.5;
  }
}

/* The cards float and drift a little sideways, each at its own pace. `translate` is separate from the cards' rotation. */
@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  25% {
    translate: var(--fx) -5px;
  }
  50% {
    translate: 0 -10px;
  }
  75% {
    translate: calc(var(--fx) * -1) -5px;
  }
}
.tc {
  --fx: 6px;
  animation: float 6s ease-in-out infinite;
}
.tB {
  --fx: -8px;
  animation-duration: 7s;
  animation-delay: -2.5s;
}
.tC {
  --fx: 7px;
  animation-duration: 8s;
  animation-delay: -5s;
}
@media (prefers-reduced-motion: reduce) {
  .tc {
    animation: none;
  }
}

/* The chat plays like a messaging app: the first message arrives at the bottom, the next one
   pushes it up, and so on; the oldest slide out at the top. Then it fades and starts over.
   A message takes up no room until its turn (max-height, margin and padding grow from 0),
   which is what pushes the earlier ones up. */
.ch {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
  mask-image: linear-gradient(to bottom, transparent, #000 22%);
}
@keyframes say1 {
  0%,
  3% {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(16px) scale(0.85);
  }
  6%,
  90% {
    max-height: 170px;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    max-height: 170px;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 0;
    transform: none;
  }
}
@keyframes say2 {
  0%,
  18% {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(16px) scale(0.85);
  }
  21%,
  90% {
    max-height: 170px;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    max-height: 170px;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 0;
    transform: none;
  }
}
@keyframes say3 {
  0%,
  33% {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(16px) scale(0.85);
  }
  36%,
  90% {
    max-height: 170px;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    max-height: 170px;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 0;
    transform: none;
  }
}
@keyframes say4 {
  0%,
  50% {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(16px) scale(0.85);
  }
  53%,
  90% {
    max-height: 170px;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    max-height: 170px;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 0;
    transform: none;
  }
}
.ch div {
  flex: none;
  overflow: hidden;
  animation: 16s cubic-bezier(0.3, 0.9, 0.3, 1) infinite both;
}
.ch div:nth-child(1) {
  animation-name: say1;
  transform-origin: 0 100%;
}
.ch div:nth-child(2) {
  animation-name: say2;
  transform-origin: 100% 100%;
}
.ch div:nth-child(3) {
  animation-name: say3;
  transform-origin: 0 100%;
}
.ch div:nth-child(4) {
  animation-name: say4;
  transform-origin: 100% 100%;
}
@media (prefers-reduced-motion: reduce) {
  .ch div {
    animation: none;
    margin-top: 12px;
  }
  .ch div:nth-child(-n + 2) {
    display: none;
  }
}
