/*
 * TryyCart Global 1.10.74
 * Accessible Home chapter order, measured vertical rhythm and compact close.
 *
 * This final presentation layer does not own wallet geometry, rates, prices,
 * cart state, checkout, invoices or currency conversion.
 */

:root {
  --tc-home-flow-width: 1480px;
  --tc-home-flow-gutter: clamp(20px, 3vw, 48px);
  --tc-home-chapter-half-gap: clamp(18px, 1.8vw, 28px);
  --tc-home-chapter-ink: #13243f;
  --tc-home-chapter-muted: #526681;
  --tc-home-chapter-line: rgba(91, 108, 143, 0.24);
}

/* Keep source, visual and keyboard order identical. The React Home flow uses
   this same sequence; these values supersede the retired layout contract. */
body.tryycart-global-theme #tc-page-home > .hero { order: 10 !important; }
body.tryycart-global-theme #tc-page-home > .tcw-launcher-slot { order: 20 !important; }
body.tryycart-global-theme #tc-page-home > .tc-services-v2 { order: 30 !important; }
body.tryycart-global-theme #tc-page-home > .trending-section { order: 40 !important; }
body.tryycart-global-theme #tc-page-home > .problem-section { order: 50 !important; }
body.tryycart-global-theme #tc-page-home > .faq-section { order: 60 !important; }
body.tryycart-global-theme #tc-page-home > .testimonials { order: 70 !important; }
body.tryycart-global-theme #tc-page-home > .contact-band { order: 80 !important; }
body.tryycart-global-theme #tc-page-home > .brand-marquee { order: 90 !important; }

/* One atmospheric canvas and one content width from Our Services to the
   closing seller chapter. Transparent section edges prevent horizontal bands. */
body.tryycart-global-theme #tc-page-home > :is(
  .tcw-launcher-slot,
  .tc-services-v2,
  .trending-section,
  .problem-section,
  .faq-section,
  .testimonials,
  .contact-band
) {
  border: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.tryycart-global-theme #tc-page-home > :is(
  .tc-services-v2,
  .trending-section,
  .problem-section,
  .faq-section,
  .testimonials,
  .contact-band
) > :is(.shell, .tc-services-v2__shell, .why-layout, .contact-grid) {
  box-sizing: border-box !important;
  width: min(calc(100% - (2 * var(--tc-home-flow-gutter))), var(--tc-home-flow-width)) !important;
  max-width: var(--tc-home-flow-width) !important;
  margin-inline: auto !important;
}

/* Preserve the approved Choose Your Bag → Our Services breathing room, then
   repeat its quieter 36–56px chapter interval down the rest of the page. */
body.tryycart-global-theme #tc-page-home > .tcw-launcher-slot {
  padding: 12px 0 14px !important;
}

body.tryycart-global-theme #tc-page-home > .tc-services-v2 {
  padding: clamp(44px, 5.2vw, 76px) 0 var(--tc-home-chapter-half-gap) !important;
}

body.tryycart-global-theme #tc-page-home > :is(
  .trending-section,
  .problem-section,
  .faq-section,
  .testimonials,
  .contact-band
) {
  padding: var(--tc-home-chapter-half-gap) 0 !important;
}

body.tryycart-global-theme #tc-page-home > .problem-section.problem-section {
  isolation: isolate;
  overflow: hidden !important;
}

/* The Why colour field remains atmospheric, not a rectangular section fill. */
body.tryycart-global-theme #tc-page-home > .problem-section.problem-section::before {
  inset: 0 !important;
  opacity: 0.82 !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%) !important;
}

body.tryycart-global-theme #tc-page-home > .problem-section.problem-section::after {
  opacity: 0.24 !important;
}

/* Compact, readable seller close. This explicitly wins over the retired dark
   band text rule that could turn copy white on the light glass card. */
body.tryycart-global-theme #tc-page-home > .contact-band::before {
  inset: 0 !important;
  opacity: 0.18 !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
}

body.tryycart-global-theme #tc-page-home .contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr) !important;
  gap: clamp(18px, 2.5vw, 36px) !important;
  padding: clamp(17px, 1.8vw, 24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 22px !important;
  color: var(--tc-home-chapter-ink) !important;
  background:
    radial-gradient(ellipse at 5% 0%, rgba(239, 151, 111, 0.20), transparent 34%),
    radial-gradient(ellipse at 95% 100%, rgba(80, 139, 219, 0.20), transparent 38%),
    linear-gradient(132deg, rgba(255, 255, 255, 0.76), rgba(232, 238, 248, 0.61)) !important;
  box-shadow: 0 16px 36px rgba(43, 57, 91, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.tryycart-global-theme #tc-page-home .contact-band .section-title {
  margin-bottom: 9px !important;
}

body.tryycart-global-theme #tc-page-home .contact-band .section-title .eyebrow {
  margin-bottom: 7px !important;
  padding: 5px 10px !important;
  color: #9d3711 !important;
  background: rgba(255, 247, 242, 0.78) !important;
}

body.tryycart-global-theme #tc-page-home .contact-band .section-title h2 {
  max-width: 720px !important;
  color: var(--tc-home-chapter-ink) !important;
  font-size: clamp(28px, 3.1vw, 44px) !important;
  line-height: 1 !important;
}

body.tryycart-global-theme #tc-page-home .contact-band .section-title .title-bar {
  width: min(132px, 30%) !important;
  margin-top: 10px !important;
}

body.tryycart-global-theme #tc-page-home .contact-grid > div:first-child > p {
  max-width: 720px !important;
  margin: 0 0 10px !important;
  color: #435974 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

body.tryycart-global-theme #tc-page-home .seller-points {
  gap: 5px !important;
  margin: 0 0 11px !important;
}

body.tryycart-global-theme #tc-page-home .seller-points b {
  min-height: 28px !important;
  padding: 4px 9px !important;
  color: #29425f !important;
  background: rgba(255, 255, 255, 0.63) !important;
  font-size: 11px !important;
}

body.tryycart-global-theme #tc-page-home .tc-seller-cta {
  min-height: 40px !important;
  padding-inline: 15px !important;
  color: #fff !important;
  font-size: 12.5px !important;
}

body.tryycart-global-theme #tc-page-home .tc-seller-cta span {
  color: #fff !important;
}

body.tryycart-global-theme #tc-page-home .contact-card {
  padding: 15px 17px !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  border-radius: 16px !important;
  color: var(--tc-home-chapter-ink) !important;
  background: rgba(255, 255, 255, 0.70) !important;
  box-shadow: 0 11px 25px rgba(42, 57, 91, 0.09), inset 0 1px 0 #fff !important;
}

body.tryycart-global-theme #tc-page-home .contact-card h3 {
  margin: 4px 0 8px !important;
  color: #142b49 !important;
  font-size: clamp(18px, 1.7vw, 23px) !important;
}

body.tryycart-global-theme #tc-page-home .contact-card :is(a, a span) {
  color: #245292 !important;
}

body.tryycart-global-theme #tc-page-home .contact-card :is(small, p) {
  color: #536883 !important;
}

body.tryycart-global-theme #tc-page-home .contact-card p {
  margin-top: 7px !important;
  font-size: 11px !important;
}

/* The existing moving proof rail now closes Home immediately before footer. */
body.tryycart-global-theme #tc-page-home > .brand-marquee.tc-proof-marquee {
  min-height: 42px !important;
  margin: 0 !important;
  padding: 3px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-bottom: 0 !important;
  color: #fff !important;
  background: linear-gradient(104deg, #3158d8 0%, #6865df 26%, #765bc3 48%, #4167b5 68%, #b84a1b 86%, #3158d8 100%) !important;
  background-size: 280% 100% !important;
  box-shadow: 0 -7px 20px rgba(54, 62, 130, 0.11) !important;
}

body.tryycart-global-theme #tc-page-home > .brand-marquee.tc-proof-marquee::before {
  background: linear-gradient(90deg, #4b5fcd 8%, rgba(75, 95, 205, 0)) !important;
}

body.tryycart-global-theme #tc-page-home > .brand-marquee.tc-proof-marquee::after {
  background: linear-gradient(270deg, #4f58bd 8%, rgba(79, 88, 189, 0)) !important;
}

body.tryycart-global-theme #tc-page-home > .brand-marquee.tc-proof-marquee :is(
  .tc-marquee-lead,
  .tc-proof-chip,
  .tc-marquee-trust
) {
  min-height: 32px !important;
  border-color: rgba(255, 255, 255, 0.29) !important;
  color: #fff !important;
  background: rgba(15, 27, 67, 0.18) !important;
  box-shadow: none !important;
}

body.tryycart-global-theme #tc-page-home > .brand-marquee.tc-proof-marquee :is(b, strong, p, small, span) {
  color: #fff !important;
}

body.tryycart-global-theme #tc-page-home > .brand-marquee.tc-proof-marquee .tc-marquee-divider {
  height: 22px !important;
}

/* Top-level chapter disclosure. Markup is only emitted at the same compact
   query, so desktop preserves the full editorial flow without duplicate UI. */
body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle {
  display: none !important;
}

body.tryycart-global-theme #tc-page-home .tc-home-disclosure > .tc-home-disclosure__content[hidden] {
  display: none !important;
}

@keyframes tc-home-chapter-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px), (hover: none) and (pointer: coarse) {
  body.tryycart-global-theme #tc-page-home > :is(
    .tc-services-v2,
    .trending-section,
    .problem-section,
    .faq-section,
    .testimonials,
    .contact-band
  ) > :is(.shell, .tc-services-v2__shell, .why-layout, .contact-grid),
  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle {
    width: min(calc(100% - 28px), 920px) !important;
    max-width: 920px !important;
  }

  body.tryycart-global-theme #tc-page-home > .tc-services-v2 {
    padding: clamp(34px, 5vw, 50px) 0 18px !important;
  }

  body.tryycart-global-theme #tc-page-home > .trending-section {
    padding: 18px 0 !important;
  }

  body.tryycart-global-theme #tc-page-home > .tc-home-disclosure {
    min-height: 0 !important;
    padding: 7px 0 !important;
  }

  body.tryycart-global-theme #tc-page-home > .tc-home-disclosure:not(.is-section-expanded)::before,
  body.tryycart-global-theme #tc-page-home > .tc-home-disclosure:not(.is-section-expanded)::after {
    opacity: 0 !important;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle {
    position: relative;
    z-index: 3;
    display: flex !important;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto;
    padding: 10px 12px 10px 17px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    color: var(--tc-home-chapter-ink);
    background:
      radial-gradient(circle at 96% 4%, rgba(126, 111, 218, 0.15), transparent 38%),
      linear-gradient(128deg, rgba(255, 255, 255, 0.78), rgba(231, 238, 249, 0.65));
    box-shadow: 0 11px 25px rgba(43, 57, 91, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle > span {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle small {
    color: #a33d16 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle strong {
    color: var(--tc-home-chapter-ink) !important;
    font-family: var(--tc-heading-font) !important;
    font-size: clamp(17px, 2.25vw, 22px) !important;
    font-weight: 650 !important;
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle > i {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(72, 91, 133, 0.20);
    border-radius: 13px;
    color: #fff !important;
    background: linear-gradient(135deg, #c94d17, #5366ce);
    box-shadow: 0 7px 16px rgba(62, 75, 150, 0.18);
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle:hover {
    border-color: rgba(84, 105, 150, 0.34);
    background: linear-gradient(128deg, rgba(255, 255, 255, 0.88), rgba(227, 236, 249, 0.74));
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle:focus-visible {
    outline: 3px solid #ffd166 !important;
    outline-offset: 3px !important;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure > .tc-home-disclosure__content {
    margin-top: 12px !important;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure.is-section-expanded > .tc-home-disclosure__content {
    animation: tc-home-chapter-reveal 220ms ease-out both;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure.is-section-expanded {
    padding-bottom: 18px !important;
  }

  body.tryycart-global-theme #tc-page-home .contact-grid {
    padding: 17px !important;
  }
}

@media (max-width: 820px) {
  body.tryycart-global-theme #tc-page-home .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

@media (max-width: 680px) {
  :root {
    --tc-home-flow-gutter: 11px;
  }

  body.tryycart-global-theme #tc-page-home > .tcw-launcher-slot {
    padding: 10px 0 12px !important;
  }

  body.tryycart-global-theme #tc-page-home > .tc-services-v2 {
    padding: 28px 0 12px !important;
  }

  body.tryycart-global-theme #tc-page-home > .trending-section {
    padding: 12px 0 !important;
  }

  body.tryycart-global-theme #tc-page-home > .tc-home-disclosure {
    padding: 5px 0 !important;
  }

  body.tryycart-global-theme #tc-page-home > :is(
    .tc-services-v2,
    .trending-section,
    .problem-section,
    .faq-section,
    .testimonials,
    .contact-band
  ) > :is(.shell, .tc-services-v2__shell, .why-layout, .contact-grid),
  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle {
    width: calc(100% - 22px) !important;
    max-width: none !important;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle {
    min-height: 58px;
    gap: 10px;
    padding: 8px 9px 8px 13px;
    border-radius: 15px;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle strong {
    font-size: clamp(15px, 4.3vw, 18px) !important;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle > i {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  body.tryycart-global-theme #tc-page-home .contact-band .section-title h2 {
    font-size: clamp(27px, 8.2vw, 36px) !important;
  }

  body.tryycart-global-theme #tc-page-home > .brand-marquee.tc-proof-marquee {
    min-height: 38px !important;
    padding-block: 2px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle,
  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle > i,
  body.tryycart-global-theme #tc-page-home .tc-home-disclosure.is-section-expanded > .tc-home-disclosure__content {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle,
  body.tryycart-global-theme #tc-page-home .contact-grid {
    border: 1px solid CanvasText !important;
    color: CanvasText !important;
    background: Canvas !important;
  }

  body.tryycart-global-theme #tc-page-home .tc-home-disclosure__toggle > i {
    border: 1px solid CanvasText !important;
    color: ButtonText !important;
    background: ButtonFace !important;
  }
}
