/* TELEMO LP: unslop pass. All colors below refer to the existing brand palette. */

/* 1. Spacing: regularize section, heading, and repeated card rhythms. */
.page-home {
  --rf-section-y: 96px;
  --rf-head-gap: 40px;
}

.page-home main > :is(#telemo-listen, #founder, #telemo-how, #telemo-compare, #telemo-core, #telemo-support, #telemo-plan, #news, #company, #policy, #contact) {
  padding-block: var(--rf-section-y);
}

.page-home :is(.telemo-how__intro, .telemo-compare__intro, .telemo-support__intro, .telemo-plan__intro) {
  margin-bottom: 40px;
}

.page-home :is(.telemo-how__grid, .telemo-plan__benefits, .telemo-plan__pricing) {
  gap: 16px;
}

.page-home .telemo-plan__benefits > div {
  padding: 20px;
}

.page-home .telemo-plan__process {
  margin-top: 64px;
}

@media (max-width: 767px) {
  .page-home { --rf-section-y: 64px; --rf-head-gap: 28px; }
  .page-home main > :is(#telemo-listen, #founder, #telemo-how, #telemo-compare, #telemo-core, #telemo-support, #telemo-plan, #news, #company, #policy, #contact) {
    padding-block: var(--rf-section-y);
  }
  .page-home :is(.telemo-how__intro, .telemo-compare__intro, .telemo-support__intro, .telemo-plan__intro) {
    margin-bottom: 28px;
  }
}

/* 2. Color: keep cyan, navy, teal, orange, and the existing white surfaces. */
.page-home main > #telemo-compare {
  background: #fff;
}

.page-home .telemo-compare__card--ai .telemo-compare__card-header {
  background: var(--rf-accent);
}

.page-home .telemo-compare__arrow {
  background: transparent;
  color: var(--rf-accent);
  clip-path: none;
}

.page-home .telemo-plan__banner strong {
  color: #fff;
}

.page-home :is(.telemo-compare__card, .telemo-benefits__card, .telemo-plan__price-card, .telemo-plan__benefits > div) {
  box-shadow: none;
}

/* 3. Icons: remove mixed decorative glyphs; retain the existing functional SVGs. */
.page-home .telemo-compare__features [aria-hidden="true"],
.page-home .telemo-plan__card-symbol,
.page-home .telemo-plan__benefits [aria-hidden="true"] {
  display: none;
}

.page-home .telemo-plan__benefits > div {
  grid-template-columns: minmax(0, 1fr);
}

.page-home .telemo-plan__included li::before {
  content: "";
  top: 14px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rf-accent);
}

.page-home .telemo-plan__included li {
  padding-left: 28px;
}

.page-home .telemo-support-redesign__icon {
  width: 40px;
  height: 40px;
}

.page-home .telemo-support-redesign__icon img {
  width: 24px;
  height: 24px;
}

/* 4. Copy is kept in index.html and telemo-guide-comments.js. */

/* 5. Type: use size and spacing for hierarchy instead of heavy weights. */
.page-home {
  letter-spacing: 0;
}

.page-home #hero.lpsr-campaign-hero .lpsr-campaign-hero__title {
  color: var(--rf-heading);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.18;
}

.page-home #hero .lpsr-campaign-hero__speech p {
  font-weight: 600;
  letter-spacing: 0;
}

.page-home :is(.founder__title, .telemo-how__intro h3, .telemo-compare__intro h2, #telemo-core .telemo-benefits__title, .telemo-support__title, .telemo-plan__intro h3, .telemo-support-redesign__copy) {
  font-weight: 600;
  letter-spacing: 0;
}

.page-home :is(.telemo-benefits__title strong, .telemo-compare__intro h2 strong, .telemo-plan__banner strong) {
  font-weight: 600;
}

.page-home :is(.telemo-benefits__card h3, .telemo-plan__price-card h4, .telemo-plan__benefits h4, .telemo-plan__step h5) {
  font-weight: 600;
  letter-spacing: 0;
}

.page-home :is(.ggh__primary a, .btn, .telemo-benefits__eyebrow, .telemo-support-redesign__pre, .telemo-plan__included li, .telemo-plan__benefits p, .sec__title) {
  letter-spacing: 0;
}

.page-home .sec__title {
  font-family: var(--rf-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.page-home :is(.telemo-compare__cost strong, .telemo-compare__calls strong, .telemo-plan__price-card > strong, .telemo-plan__unit strong, .telemo-plan__step-price strong, .telemo-plan__carryover-math strong) {
  font-variant-numeric: tabular-nums;
}

/* 6. Layout: keep all sections and controls, but remove decorative staggering. */
.page-home .telemo-how__grid li,
.page-home #telemo-core .telemo-benefits__card,
.page-home .telemo-support__step,
.page-home .telemo-plan__pricing .telemo-plan__price-card,
.page-home .telemo-plan__benefits > div,
.page-home .telemo-plan__step,
.page-home .telemo-compare__card--human {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.page-home #telemo-core .telemo-benefits__card {
  margin-left: 0;
  margin-right: 0;
}

.page-home .telemo-plan__carryover-intro {
  margin: 0;
}

.page-home .telemo-plan__carryover-example {
  padding-left: 24px;
}

@media (min-width: 768px) {
  .page-home #hero .lpsr-campaign-hero__wordmark {
    left: 0;
    width: min(66%, calc(100% - 288px));
  }
}

@media (max-width: 767px) {
  .page-home #hero .lpsr-campaign-hero__wordmark {
    left: 0;
    width: 96%;
  }
  .page-home .telemo-plan__carryover-example {
    padding-left: 20px;
  }
}

/* 7. Details: quiet labels, consistent corners, visible source disclaimer. */
.page-home .reference-logo-band__note {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

.page-home .reference-logo-band h2 {
  font-size: 18px;
  font-weight: 600;
}

.page-home .btn,
.page-home.concept-08 #hero.lpsr-campaign-hero .btn,
.page-home .ggh__contact,
.page-home .telemo-concierge__booking {
  border-radius: 8px;
}

.page-home.concept-08 #hero.lpsr-campaign-hero .btn {
  min-height: 48px;
  padding: 10px 20px;
  font-weight: 600;
}

.page-home :is(.telemo-benefits__speech, .telemo-plan__pricing > div, .telemo-plan__benefits > div, .telemo-plan__carryover-intro, .telemo-plan__carryover-example) {
  border-radius: 12px;
}

.page-home .telemo-benefits__speech {
  box-shadow: none;
}

.page-home :is(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--rf-accent-hover);
  outline-offset: 3px;
}

/* 8. Visuals: keep the TELEMO wordmark and real examples as the page's moments. */
.page-home.concept-08 #hero.lpsr-campaign-hero {
  background-image: none;
}

/* Asymmetric white balloon with its tail pointing toward the president. */
.page-home #hero .lpsr-campaign-hero__speech {
  top: auto;
  right: calc(max(24px, env(safe-area-inset-right)) + clamp(96px, 10vw, 184px) * .5);
  bottom: calc(20px + clamp(96px, 10vw, 184px) * .9);
  width: clamp(260px, 24vw, 340px);
  max-width: calc(100% - 180px);
  padding: 0;
  aspect-ratio: 360 / 210;
  border: 0;
  border-radius: 0;
  background: url('./assets/concierge/speech/soft-white-bubble.svg') center / 100% 100% no-repeat;
}

.page-home #hero .lpsr-campaign-hero__speech::after {
  content: none;
}

.page-home #hero .lpsr-campaign-hero__speech p {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 76%;
  color: var(--rf-heading);
  font-size: clamp(18px, 1.85vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.page-home #hero .lpsr-campaign-hero__speech p::before {
  content: '“';
  position: absolute;
  top: -.4em;
  left: 0;
  font-family: Georgia, serif;
  font-size: 1.6em;
  line-height: 1;
}

.page-home #hero .lpsr-campaign-hero__speech-message {
  font-size: 1em;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .page-home #hero .lpsr-campaign-hero__speech {
    right: 24px;
    bottom: calc(44px + clamp(96px, 10vw, 184px) * .9);
    width: clamp(220px, 30vw, 260px);
  }
}

.page-home #hero .lpsr-campaign-hero__president img {
  display: none;
}

.page-home .reference-logo-band__track img {
  filter: grayscale(1);
  opacity: .6;
}

/* 9. Motion: leave interaction motion, remove looping and scroll decoration. */
.page-home .reference-logo-band__logos.has-logos {
  overflow-x: auto;
  mask-image: none;
  scrollbar-width: thin;
}

.page-home .reference-logo-band__track {
  animation: none;
}

.page-home .telemo-how__grid li.reveal:hover {
  transform: none;
}

.page-home #telemo-core .telemo-benefits__card:hover {
  translate: none;
}

.page-home .telemo-concierge__avatar[data-state="idle"] .telemo-concierge__sprite {
  animation: none;
}

#telemo-flow.lpsr-flow-carousel .telemo-plan__step,
#telemo-flow.lpsr-flow-carousel.is-ready .telemo-plan__step:not(.is-current),
#telemo-flow.lpsr-flow-carousel .telemo-plan__step.is-current {
  transform: none;
  transition: opacity 160ms ease, border-color 160ms ease;
}

/* Follow-up audit: keep one navigation pattern at each width. */
@media (min-width: 901px) {
  .page-home header.ggh .ggh__burger,
  .page-home header.ggh .ggh__panel {
    display: none !important;
  }
}

/* Text and figures carry the comparison; the decorative sales portraits do not. */
.page-home .telemo-compare__person,
.page-home .telemo-compare__robot {
  display: none;
}

.page-home .telemo-compare__card-body,
.page-home .telemo-compare__card--ai .telemo-compare__card-body {
  display: flex;
  align-items: center;
  min-height: 220px;
  padding: 24px;
  background: #fff;
}

.page-home .telemo-compare__metrics,
.page-home .telemo-compare__card--ai .telemo-compare__metrics {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* The six strengths read as distinct entries instead of six framed cards. */
.page-home #telemo-core .telemo-benefits__card,
.page-home #telemo-core .telemo-benefits__card:nth-of-type(even) {
  min-height: 0;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid var(--rf-border);
  border-radius: 0;
}

.page-home #telemo-core .telemo-benefits__card h3 {
  margin-bottom: 14px;
  padding-left: 0;
  border-left: 0;
}

/* Unpublished destinations are labels until their real URLs exist. */
.page-home .policy__item--unavailable,
.page-home .policy__item--unavailable:hover {
  color: var(--rf-heading);
  cursor: default;
}

.page-home .footer__social {
  flex-wrap: wrap;
  gap: 8px 16px;
}

.page-home .footer__social-label {
  color: inherit;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  /* A shorter first view reveals the real audio demos below the logo band. */
  .page-home.concept-08 #hero.lpsr-campaign-hero {
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .page-home #hero.lpsr-campaign-hero .lpsr-campaign-hero__visual {
    flex: none;
    width: 100%;
  }

  .page-home #hero.lpsr-campaign-hero .lpsr-campaign-hero__canvas {
    width: 100%;
    height: clamp(365px, 82vw, 440px);
    aspect-ratio: auto;
  }

  .page-home #hero.lpsr-campaign-hero .lpsr-campaign-hero__title {
    top: clamp(20px, 5vw, 30px);
    left: 20px;
    width: calc(100% - 40px);
    white-space: normal;
  }

  .page-home #hero .lpsr-campaign-hero__headline,
  .page-home #hero .lpsr-campaign-hero__ending {
    font-size: clamp(28px, 8vw, 44px);
  }

  .page-home #hero .lpsr-campaign-hero__subheadline {
    font-size: clamp(18px, 5.3vw, 28px);
  }

  .page-home #hero .lpsr-campaign-hero__wordmark {
    display: none;
  }

  .page-home #hero.lpsr-campaign-hero .lpsr-campaign-hero__president {
    right: 20px;
    bottom: 78px;
    width: 80px;
    visibility: visible;
  }

  .page-home #hero .lpsr-campaign-hero__president img {
    display: block;
    width: 100%;
    height: auto;
  }

  .page-home #hero .lpsr-campaign-hero__speech {
    top: auto;
    right: 44px;
    bottom: 146px;
    left: auto;
    width: 210px;
    max-width: calc(100% - 64px);
    padding: 0;
  }

  .page-home #hero .lpsr-campaign-hero__speech p {
    font-size: 15px;
  }

  .page-home #hero.lpsr-campaign-hero .lpsr-campaign-hero__actions {
    display: flex;
    gap: 14px;
    margin: 0 20px 20px;
  }

  .page-home.concept-08 #hero.lpsr-campaign-hero .btn--primary {
    flex: 1 1 auto;
  }

  .page-home.concept-08 #hero.lpsr-campaign-hero .btn--ghost {
    flex: 0 0 auto;
    min-width: 0;
    padding-inline: 6px;
    border: 0;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .page-home main > #telemo-listen {
    padding-top: 36px;
  }

  .page-home #telemo-listen .ref-head h2 {
    font-size: 27px;
  }

  .page-home #telemo-listen .telemo-listen__demos {
    margin-top: 20px;
  }

  .page-home #telemo-listen .telemo-listen__demo {
    padding: 18px;
  }

  /* Keep the mobile guide at the viewport's bottom edge after the hero. */
  .page-home .telemo-concierge.lpsr-campaign-concierge {
    position: fixed;
    --character-width: 64px;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(360px, calc(100vw - max(8px, env(safe-area-inset-right)) - max(8px, env(safe-area-inset-left))));
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .page-home .telemo-concierge .telemo-concierge__scene {
    max-width: 460px;
    margin: 0 auto;
  }

  .page-home.menu-open .telemo-concierge.lpsr-campaign-concierge,
  .page-home.menu-open .telemo-concierge .telemo-concierge__bubble {
    visibility: hidden;
    pointer-events: none;
  }

  /* The seven-stage process is a numbered reading list on narrow screens. */
  .page-home #telemo-how .telemo-how__grid {
    display: block;
    margin-top: 36px;
  }

  .page-home #telemo-how .telemo-how__grid li,
  .page-home #telemo-how .telemo-how__grid li:last-child {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas: "number title" "number body";
    gap: 4px 14px;
    min-height: 0;
    padding: 16px 0;
    border: 0;
    border-top: 1px solid var(--rf-border);
    border-radius: 0;
    background: transparent;
    text-align: left;
  }

  .page-home #telemo-how .telemo-how__grid li:last-child {
    border-bottom: 1px solid var(--rf-border);
  }

  .page-home #telemo-how .telemo-how__number {
    position: static;
    grid-area: number;
    display: block;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--rf-accent) !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    transform: none;
  }

  .page-home #telemo-how .telemo-how__grid h4 {
    grid-area: title;
    min-height: 0;
    font-size: 17px;
    line-height: 1.4;
  }

  .page-home #telemo-how .telemo-how__icon {
    display: none;
  }

  .page-home #telemo-how .telemo-how__grid p {
    grid-area: body;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .page-home #telemo-core .telemo-benefits__card,
  .page-home #telemo-core .telemo-benefits__card:nth-of-type(even) {
    padding: 18px 0;
  }
}

#telemo-flow.lpsr-flow-carousel.is-ready .telemo-plan__step:not(.is-current) {
  opacity: .7;
}

/* Use more of wide displays while keeping text and cards readable. */
@media (min-width: 1440px) {
  .page-home {
    --ref-content: clamp(1240px, calc(100vw - 160px), 1600px);
  }

  .page-home main > #telemo-cases {
    padding-inline: max(var(--page-padding), calc((100% - var(--ref-content)) / 2));
  }

  .page-home #telemo-cases .lpsr-cases-scroll {
    max-width: min(100%, 1440px);
    grid-auto-columns: clamp(230px, calc((100% - 96px) / 4.25), 300px);
  }

  .page-home #telemo-how .telemo-how__grid p {
    max-width: 20em;
    font-size: clamp(14px, .9vw, 16px);
  }
}

/* Align the flow and case studies with the hero's calm teal palette. */
.page-home #telemo-cases .telemo-cases__card img {
  border-radius: 16px;
  filter: saturate(.86);
}
.page-home #telemo-cases .telemo-cases__card-head,
.page-home #telemo-cases .telemo-cases__card:nth-child(even) .telemo-cases__card-head {
  margin-top: 14px;
  transform: none;
}
.page-home #telemo-cases .telemo-cases__card-head::after { display: none; }
.page-home #telemo-cases .telemo-cases__card p { margin-top: 16px; font-size: 15px; }

/* Keep a readable measure for each of the seven process steps. */
@media (min-width: 768px) {
  .page-home #telemo-how .telemo-how__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 24px;
  }
  .page-home #telemo-how .telemo-how__grid li {
    min-height: 290px;
    padding: 42px 20px 20px;
  }
  .page-home #telemo-how .telemo-how__grid li:nth-child(4)::after { display: none; }
  .page-home #telemo-how .telemo-how__grid h4 {
    min-height: 3.1em;
    font-size: clamp(17px, 1.3vw, 20px);
  }
  .page-home #telemo-how .telemo-how__grid p {
    max-width: 22em;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.8;
  }
}
@media (max-width: 767px) {
  .page-home #telemo-how .telemo-how__grid p { font-size: 15px; line-height: 1.75; }
  .page-home #telemo-cases .telemo-cases__card p { font-size: 14px; }
}

/* Footer navigation follows the actual site sections. */
@media (min-width: 768px) {
  .page-home .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Frequently asked questions */
.page-home .telemo-faq__inner { max-width: 900px; margin-inline: auto; }
.page-home .telemo-faq h2 { margin: 0 0 36px; color: var(--rf-heading); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.35; text-align: center; }
.page-home .telemo-faq__list { border-top: 1px solid var(--rf-border); }
.page-home .telemo-faq details { border-bottom: 1px solid var(--rf-border); }
.page-home .telemo-faq summary { position: relative; display: block; padding: 22px 44px 22px 0; color: var(--rf-heading); font-size: clamp(16px, 1.25vw, 19px); font-weight: 700; line-height: 1.6; cursor: pointer; list-style: none; }
.page-home .telemo-faq summary::-webkit-details-marker { display: none; }
.page-home .telemo-faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; color: var(--rf-accent); font-size: 26px; font-weight: 400; transform: translateY(-50%); }
.page-home .telemo-faq details[open] summary::after { content: "−"; }
.page-home .telemo-faq summary:focus-visible { outline: 3px solid var(--rf-accent); outline-offset: 3px; }
.page-home .telemo-faq details p { max-width: 65ch; margin: 0; padding: 0 44px 24px 0; color: var(--rf-text-sub); font-size: 16px; line-height: 1.85; }
@media (max-width: 767px) {
  .page-home .telemo-faq h2 { margin-bottom: 24px; }
  .page-home .telemo-faq summary { padding-block: 18px; }
  .page-home .telemo-faq details p { padding-right: 0; font-size: 15px; }
}
