/*
 * Expanded Teely explainer. The original short landing-page rules remain in
 * pages.css for theme-port history; this later stylesheet owns the standalone
 * experience and intentionally builds on the shared PrintBere tokens.
 */

.pb-teely {
  --teely: #12b5a5;
  --teely-deep: #087a70;
  --teely-dark: #064e47;
  --teely-soft: #dcf5f0;
  --teely-mist: #eefaf7;
  background: var(--pb-cream);
  color: var(--pb-ink);
}

.pb-teely__wrap {
  width: min(100%, var(--page-width, 1280px));
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.pb-teely .teely-eyebrow {
  display: inline-flex;
  width: fit-content;
  background: rgba(18, 181, 165, 0.15);
  color: var(--teely-deep);
}

.pb-teely .button.teely-btn,
.pb-teely a.teely-btn {
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--teely-deep);
  border-radius: 999px;
  background: var(--teely-deep);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pb-teely .button.teely-btn:hover,
.pb-teely a.teely-btn:hover {
  border-color: var(--teely-dark);
  background: var(--teely-dark);
  color: #fff;
  transform: translateY(-1px);
}

.pb-teely a:focus-visible,
.pb-teely summary:focus-visible {
  outline: 3px solid rgba(18, 181, 165, 0.48);
  outline-offset: 4px;
}

/* Hero */
.pb-teely .teely-hero {
  padding: clamp(68px, 8vw, 112px) 0 clamp(76px, 9vw, 124px);
  text-align: left;
  background:
    radial-gradient(circle at 86% 15%, rgba(18, 181, 165, 0.3), transparent 38%),
    radial-gradient(circle at 3% 94%, rgba(18, 181, 165, 0.15), transparent 34%),
    #0b1110;
}

.teely-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.pb-teely .teely-hero .teely-eyebrow {
  background: rgba(18, 181, 165, 0.2);
  color: #6ee7d7;
}

.pb-teely .teely-hero__mark {
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 0.95;
  text-align: left;
}

.pb-teely .teely-hero h1 {
  max-width: 13ch;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.pb-teely .teely-hero h1 .pb-accent {
  color: #54dbc9;
}

.pb-teely .teely-hero p.teely-hero__sub {
  max-width: 57ch;
  margin: 0;
  color: rgba(250, 246, 240, 0.78);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

.pb-teely .teely-hero__cta {
  justify-content: flex-start;
  margin-top: 32px;
}

.pb-teely .teely-hero__ghost {
  color: #78e4d5;
}

.teely-hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: rgba(250, 246, 240, 0.72);
  font-size: 13px;
  list-style: none;
}

.teely-hero__notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.teely-hero__notes li span {
  color: #54dbc9;
  font-weight: 900;
}

/* CSS-only storefront example: no fake live data and no remote assets. */
.teely-preview {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  padding: 18px 12px 34px;
}

.teely-preview::before {
  position: absolute;
  inset: 7% -4% -1% 8%;
  border-radius: 42px;
  background: rgba(18, 181, 165, 0.12);
  content: "";
  filter: blur(3px);
  transform: rotate(4deg);
}

.teely-preview__window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(1.2deg);
}

.teely-preview__chrome {
  display: grid;
  grid-template-columns: repeat(3, 9px) 1fr;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 12px;
  border-bottom: 1px solid #e9eceb;
  background: #f5f7f6;
}

.teely-preview__chrome > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6dcda;
}

.teely-preview__chrome > span:first-child {
  background: #ef9a9a;
}

.teely-preview__chrome > span:nth-child(2) {
  background: #f3cc75;
}

.teely-preview__chrome > span:nth-child(3) {
  background: #79c99b;
}

.teely-preview__chrome b {
  justify-self: center;
  min-width: 46%;
  margin-right: 45px;
  padding: 3px 12px;
  border: 1px solid #e2e6e4;
  border-radius: 5px;
  background: #fff;
  color: #8b9692;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
}

.teely-preview__shop {
  padding: 16px;
}

.teely-preview__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 13px;
  color: #18201d;
  font-size: 9px;
}

.teely-preview__nav b {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.teely-preview__nav span {
  color: #69736f;
}

.teely-preview__banner {
  display: flex;
  min-height: 145px;
  padding: 24px;
  border-radius: 12px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 50%),
    #14685d;
  color: #fff;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.teely-preview__banner small {
  margin-bottom: 8px;
  color: #aaf0e4;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.teely-preview__banner strong {
  max-width: 16ch;
  font-size: clamp(17px, 2.1vw, 24px);
  line-height: 1.04;
}

.teely-preview__banner span {
  margin-top: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #124e47;
  font-size: 8px;
  font-weight: 800;
}

.teely-preview__products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.teely-preview__product {
  display: flex;
  min-width: 0;
  padding: 6px 6px 8px;
  border: 1px solid #edf0ef;
  border-radius: 8px;
  color: #28312e;
  flex-direction: column;
}

.teely-preview__product > div {
  display: grid;
  margin-bottom: 6px;
  border-radius: 6px;
  background: #f3f5f4;
  aspect-ratio: 1.12;
  place-items: center;
}

.teely-preview__product svg {
  width: 58%;
  height: 58%;
}

.teely-preview__product b {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teely-preview__product span {
  margin-top: 2px;
  color: #89928f;
  font-size: 7px;
}

.teely-preview__order,
.teely-preview__fulfillment {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.teely-preview__order {
  bottom: 0;
  left: -22px;
  display: grid;
  min-width: 160px;
  padding: 13px 16px;
  border-radius: 13px;
}

.teely-preview__order span,
.teely-preview__order small {
  color: #79827f;
  font-size: 9px;
}

.teely-preview__order span {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.teely-preview__order strong {
  margin: 2px 0;
  color: #17201d;
  font-size: 19px;
}

.teely-preview__fulfillment {
  top: 0;
  right: -18px;
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  color: #164d46;
  font-size: 10px;
  font-weight: 800;
  align-items: center;
  gap: 7px;
  transform: rotate(3deg);
}

.teely-preview__check {
  display: grid;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--teely-soft);
  color: var(--teely-deep);
  place-items: center;
}

/* Shared section heading */
.teely-section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.teely-section-head--left {
  margin-inline: 0;
  text-align: left;
}

.teely-section-head h2,
.teely-margin__copy h2 {
  margin: 14px 0 0;
  color: var(--pb-black);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.teely-section-head > p,
.teely-margin__copy > p {
  max-width: 62ch;
  margin: 18px auto 0;
  color: var(--pb-muted);
  font-size: 16px;
  line-height: 1.7;
}

.teely-section-head--left > p {
  margin-inline: 0;
}

/* Relationship */
.teely-relationship {
  padding: clamp(72px, 9vw, 112px) 0;
}

.teely-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.teely-role {
  position: relative;
  min-height: 250px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--pb-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--pb-shadow-sm);
}

.teely-role:nth-child(2) {
  border-color: rgba(18, 181, 165, 0.38);
  background: var(--teely-mist);
}

.teely-role__number {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(8, 122, 112, 0.11);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.teely-role__eyebrow {
  color: var(--teely-deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.teely-role h3 {
  max-width: 13ch;
  margin: 42px 0 12px;
  color: var(--pb-black);
  font-size: 23px;
  line-height: 1.15;
}

.teely-role p {
  margin: 0;
  color: var(--pb-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Audience */
.teely-audience {
  padding: clamp(72px, 9vw, 108px) 0;
  background: #111917;
  color: #fff;
}

.teely-audience .teely-section-head h2 {
  max-width: 18ch;
  color: #fff;
}

.teely-audience .teely-eyebrow {
  background: rgba(18, 181, 165, 0.18);
  color: #76e4d5;
}

.teely-audience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.teely-audience__card {
  min-height: 245px;
  padding: 30px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.teely-audience__card:last-child {
  border-right: 0;
}

.teely-audience__card > span {
  color: #65dacb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.teely-audience__card h3 {
  margin: 62px 0 12px;
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
}

.teely-audience__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.65;
}

/* How it works */
.pb-teely .teely-how {
  padding: clamp(76px, 9vw, 112px) 0;
}

.pb-teely .teely-how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pb-teely .teely-step {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--pb-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.pb-teely .teely-step__num {
  width: 46px;
  height: 46px;
  margin: 0 0 28px;
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(18, 181, 165, 0.26);
}

.pb-teely .teely-step h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.pb-teely .teely-step p {
  max-width: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

/* Benefits */
.pb-teely .teely-why {
  padding: clamp(76px, 9vw, 112px) 0;
  background: var(--pb-cream-2);
}

.pb-teely .teely-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pb-teely .teely-card {
  min-height: 190px;
  padding: 26px;
  border-radius: 16px;
  flex-direction: row;
  gap: 16px;
}

.pb-teely .teely-card h3 {
  margin: 4px 0 10px;
  color: var(--pb-black);
  font-size: 17px;
  line-height: 1.25;
}

.pb-teely .teely-card p {
  color: var(--pb-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

/* Margin explainer */
.teely-margin {
  padding: clamp(76px, 9vw, 112px) 0;
  background: var(--teely-mist);
}

.teely-margin__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
}

.teely-margin__copy > p {
  margin-inline: 0;
}

.teely-margin__card {
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(18, 181, 165, 0.28);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(6, 78, 71, 0.1);
}

.teely-margin__card dl {
  margin: 0;
}

.teely-margin__card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px dashed var(--pb-line);
}

.teely-margin__card dl > div:last-child {
  border-bottom: 0;
  color: var(--teely-dark);
  font-size: 17px;
  font-weight: 900;
}

.teely-margin__card dt,
.teely-margin__card dd {
  margin: 0;
}

.teely-margin__card dt {
  color: var(--pb-muted);
}

.teely-margin__card dd {
  color: var(--pb-black);
  font-weight: 800;
  text-align: right;
}

.teely-margin__card > p {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--pb-line);
  color: var(--pb-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* FAQ */
.teely-faq {
  padding: clamp(76px, 9vw, 112px) 0;
}

.teely-faq__wrap {
  max-width: 950px;
}

.teely-faq__list {
  overflow: hidden;
  border: 1px solid var(--pb-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--pb-shadow-sm);
}

.teely-faq details {
  border-bottom: 1px solid var(--pb-line);
}

.teely-faq details:last-child {
  border-bottom: 0;
}

.teely-faq summary {
  display: flex;
  min-height: 72px;
  padding: 18px 24px;
  color: var(--pb-black);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.teely-faq summary::-webkit-details-marker {
  display: none;
}

.teely-faq details[open] summary {
  color: var(--teely-dark);
}

.teely-faq__plus {
  color: var(--teely-deep);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  transition: transform 160ms ease;
}

.teely-faq details[open] .teely-faq__plus {
  transform: rotate(45deg);
}

.teely-faq details > p {
  max-width: 75ch;
  margin: -4px 0 0;
  padding: 0 64px 24px 24px;
  color: var(--pb-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Final call to action */
.pb-teely .teely-foot {
  padding: clamp(76px, 9vw, 112px) 0;
  background:
    radial-gradient(circle at 50% 0, rgba(18, 181, 165, 0.24), transparent 48%),
    #0b1110;
}

.pb-teely .teely-foot h2 {
  max-width: 22ch;
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.teely-foot > .pb-teely__wrap > p {
  max-width: 54ch;
  margin: 0 auto;
  color: rgba(250, 246, 240, 0.7);
  line-height: 1.65;
}

.teely-foot__actions {
  display: flex;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.teely-foot__secondary {
  color: #74e1d2;
  font-weight: 800;
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  .teely-hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
    gap: 44px;
  }

  .teely-audience__grid,
  .pb-teely .teely-how__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .teely-audience__card:nth-child(2) {
    border-right: 0;
  }

  .teely-audience__card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .pb-teely .teely-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .teely-hero__grid,
  .teely-margin__grid {
    grid-template-columns: 1fr;
  }

  .teely-hero__grid {
    gap: 60px;
  }

  .pb-teely .teely-hero h1 {
    max-width: 15ch;
  }

  .teely-preview {
    width: min(92%, 560px);
  }

  .teely-roles {
    grid-template-columns: 1fr;
  }

  .teely-role {
    min-height: auto;
  }

  .teely-role h3 {
    max-width: none;
    margin-top: 28px;
  }
}

@media (max-width: 600px) {
  .pb-teely__wrap {
    padding-inline: 20px;
  }

  .pb-teely .teely-hero {
    padding-top: 60px;
  }

  .pb-teely .teely-hero__mark {
    font-size: 42px;
  }

  .pb-teely .teely-hero__cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .teely-hero__notes {
    align-items: flex-start;
    flex-direction: column;
  }

  .teely-preview {
    width: 100%;
    padding-inline: 0;
  }

  .teely-preview__order {
    left: -8px;
  }

  .teely-preview__fulfillment {
    right: -8px;
  }

  .teely-preview__nav span {
    display: none;
  }

  .teely-roles,
  .teely-audience__grid,
  .pb-teely .teely-how__steps,
  .pb-teely .teely-why__grid {
    grid-template-columns: 1fr;
  }

  .teely-audience__card,
  .teely-audience__card:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .teely-audience__card:last-child {
    border-bottom: 0;
  }

  .teely-audience__card h3 {
    margin-top: 30px;
  }

  .pb-teely .teely-card {
    min-height: auto;
  }

  .teely-margin__grid {
    gap: 36px;
  }

  .teely-margin__card dl > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .teely-margin__card dd {
    text-align: left;
  }

  .teely-faq summary {
    padding-inline: 18px;
  }

  .teely-faq details > p {
    padding-right: 28px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-teely .button.teely-btn,
  .pb-teely a.teely-btn,
  .teely-faq__plus {
    transition: none;
  }
}
