/* Home page sections */

/* ---------- Hero ---------- */
.hero { padding: 60px 20px; display: flex; justify-content: center; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 960px; }
.hero__ratings {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px;
  border: 1px solid var(--line); margin-bottom: 20px;
}
.rating { display: inline-flex; align-items: center; gap: 12px; }
.rating__score { font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }
.hero__title { max-width: 920px; padding: 0 20px; }
.hero__title .ink { display: block; }
@media (max-width: 809px) { .hero__title .ink { display: inline; } }
.hero__lead { max-width: 745px; margin-top: 16px; padding: 0 20px; }
.hero__cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__note { font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }

/* ---------- Auto-advancing tabs (shared by tour + inside) ---------- */
.autotabs__tab {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 14px; letter-spacing: -0.14px; font-weight: 500; color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.autotabs__tab:hover { color: var(--ink); background: var(--surface); }
.autotabs__tab[aria-selected="true"] { color: var(--ink); }
.autotabs__bar {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
  transform-origin: left center; transform: scaleX(var(--progress, 0)); opacity: 0;
}
.autotabs__tab[aria-selected="true"] .autotabs__bar { opacity: 1; }

/* ---------- Product tour ---------- */
.product-tour { border-top: 1px solid var(--line); }
.product-tour__tabs { display: flex; justify-content: center; border-bottom: 1px solid var(--line); }
.product-tour__tabs .autotabs__tab { height: 38px; padding: 0 33px; border-left: 1px solid var(--line); }
.product-tour__tabs .autotabs__tab:last-child { border-right: 1px solid var(--line); }
.product-tour__panel img { width: 100%; height: auto; aspect-ratio: 1398 / 771; object-fit: cover; }

/* ---------- Logo ticker ---------- */
.logos { display: flex; align-items: center; border-top: 1px solid var(--line); }
.logos__title {
  flex: none; width: 240px; padding: 48px; border-right: 1px solid var(--line);
  font-size: 16px; line-height: 21px; letter-spacing: -0.16px; font-weight: 400; color: var(--ink);
}
.logos__track {
  flex: 1; min-width: 0; overflow: hidden; padding: 48px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logos__marquee { display: flex; align-items: center; gap: 96px; width: calc(100% + 100px); margin-left: -50px; will-change: transform; }
.logos__marquee img { flex: none; height: auto; }
.logos__photo { object-fit: cover; }

/* ---------- Mission (sticky statement) ---------- */
.mission { height: 1800px; border-top: 1px solid var(--line); }
.mission__sticky {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); min-height: 560px; max-height: 900px;
  display: flex; align-items: center; justify-content: center; padding: 64px;
}
.mission__text {
  max-width: 600px; display: flex; flex-direction: column; gap: 38px;
  font-size: 32px; line-height: 38px; letter-spacing: -1px; font-weight: 500; color: var(--ink);
}
.mission__para { display: block; }
.mission.is-scrubbed .mission__text { color: color-mix(in srgb, var(--ink) calc(var(--p, 1) * 100%), #cfcfcf); }

/* ---------- Section heading block on the home page ---------- */
.page > .title-wrapper { border-top: 1px solid var(--line); }

/* ---------- Feature rows (visual left/right) ---------- */
.feature { display: grid; grid-template-columns: 660px 1fr; gap: 40px; min-height: 550px; border-top: 1px solid var(--line); overflow: hidden; }
.feature--visual-left { grid-template-columns: 1fr 660px; }
.feature--visual-left .feature__visual { order: -1; }
.feature__content { padding: 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.feature__intro { max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.feature__intro .t-h3 { margin-top: 0; }
.feature__icon { width: 30px; height: 30px; }
.feature__outro { max-width: 380px; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.feature__visual { position: relative; min-height: 550px; overflow: hidden; }
.feature__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature--visual-left .feature__content { padding-left: 32px; }

/* ---------- Tools ---------- */
.tools { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 40px; border-top: 1px solid var(--line); }
.tools__title { flex: 1 1 0; display: flex; flex-direction: column; gap: 12px; }
.tools__heading { font-size: 22px; line-height: 29px; letter-spacing: -0.5px; font-weight: 500; color: var(--ink); }
.tools__list { flex: 1 1 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; line-height: 17px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.chip img { width: auto; height: 17px; }

/* ---------- Inside Manyreach ---------- */
.inside { border-top: 1px solid var(--line); }
.inside__frame { border-top: 1px solid var(--line-2); }
.inside__tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line-2); }
.inside__tabs .autotabs__tab { height: 43px; padding: 0 12px; border-right: 1px solid var(--line-2); }
.inside__tabs .autotabs__tab:last-child { border-right: 0; }
.inside__panel { display: block; }
.inside__cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.inside__label, .inside__dots { display: none; }
.inside-card { display: flex; flex-direction: column; border-right: 1px solid var(--line-2); }
.inside-card:last-child { border-right: 0; }
.inside-card img { width: 100%; height: auto; aspect-ratio: 466 / 377; object-fit: cover; }
.inside-card__body { padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; border-top: 1px solid var(--line-2); }
.inside-card__body .t-card-title { line-height: 24px; }

/* ---------- Testimonials ---------- */
.testimonials { border-top: 1px solid var(--line); }
.testimonials__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.people-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.people-stack img { width: 102px; height: 30px; object-fit: cover; }
.slider { border-top: 1px solid var(--line-2); }
.slide { display: grid; grid-template-columns: 1fr 629px; }
.slide__content { display: flex; flex-direction: column; border-right: 1px solid var(--line-2); }
.slide__quote-wrap { padding: 34px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.slide__mark { font-size: 48px; line-height: 54px; font-weight: 500; color: var(--ink-60); height: 40px; }
.slide__quote { font-size: 32px; line-height: 43px; letter-spacing: -0.64px; font-weight: 500; color: var(--ink); max-width: 700px; }
.slide__person { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.slide__person img { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; }
.slide__name { font-size: 16px; line-height: 18px; font-weight: 500; color: var(--ink); }
.slide__role { font-size: 14px; line-height: 15px; font-weight: 400; color: var(--muted); }
.slide__stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 34px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.slide__stats li { display: flex; flex-direction: column; gap: 4px; padding-left: 24px; border-left: 1px solid var(--line-2); }
.slide__stats li:first-child { padding-left: 0; border-left: 0; }
.slide__num { font-size: 36px; line-height: 36px; letter-spacing: -0.72px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.slide__label { font-size: 16px; line-height: 18px; font-weight: 400; color: var(--ink-60); }
.slide__link { display: flex; align-items: center; gap: 12px; padding: 28px 34px; font-size: 14px; line-height: 15px; font-weight: 500; color: var(--ink); }
.slide__arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--white); border: 1px solid var(--line-2); transition: background-color 0.2s var(--ease); }
.slide__arrow img { width: 16px; height: 16px; }
.slide__link:hover .slide__arrow { background: var(--surface); }
.slide__visual { position: relative; aspect-ratio: 1 / 1; background: #dde3ea; overflow: hidden; }
.slide__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.slide__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(49, 75, 92, 0.22), rgba(140, 88, 163, 0.12), rgba(217, 138, 84, 0.1)); }
.slider__controls { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-top: 1px solid var(--line-2); }
.slider__dots { display: flex; gap: 6px; align-items: center; }
.slider__dot { width: 4px; height: 4px; border-radius: 999px; background: var(--ink-60); transition: width 0.3s var(--ease), background-color 0.3s var(--ease); }
.slider__dot.is-active { width: 18px; background: var(--ink); }
.slider__buttons { display: flex; gap: 8px; }

/* ---------- Use cases ---------- */
.usecases { border-top: 1px solid var(--line); }
.usecases__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.usecase { padding: 32px; min-height: 284px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-right: 1px solid var(--line); background: var(--white); transition: background-color 0.25s var(--ease); }
.usecase:last-child { border-right: 0; }
.usecase:hover { background: var(--surface); }
.usecase__top { display: flex; justify-content: space-between; align-items: center; }
.usecase__arrow img { width: 28px; height: 28px; }
.usecase__text { display: flex; flex-direction: column; gap: 11px; }
.usecase__text .t-small { display: block; }
.usecase__text a:hover { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 520px 1fr; border-top: 1px solid var(--line); }
.faq__intro { padding: 80px 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.faq__title { max-width: 400px; }
.faq__title .ink { display: block; }
.faq__list { border-left: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__item h5 { font: inherit; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; text-align: left;
  font-size: 18px; line-height: 29px; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.faq__q:hover { background: var(--surface); }
.faq__icon { width: 14px; height: 14px; flex: none; transition: transform 0.3s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 32px 32px; max-width: 760px; font-size: 16px; line-height: 25px; font-weight: 400; color: var(--ink-60); }

/* ---------- Banner ---------- */
.banner { position: relative; overflow: hidden; padding: 120px 60px; display: flex; justify-content: center; border-top: 1px solid var(--line); }
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.banner__inner { position: relative; max-width: 500px; display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.banner__title { font-size: 44px; line-height: 48px; letter-spacing: -1.76px; font-weight: 500; color: var(--ink); }
.banner__text { margin-top: 12px; font-size: 16px; line-height: 21.7px; font-weight: 400; color: var(--ink); }
.banner .btn { margin-top: 32px; }

/* ================= Tablet ================= */
@media (max-width: 1199px) {
  .hero { padding: 50px 20px 60px; flex-direction: column; align-items: center; }
  .hero__lead { max-width: 840px; }
  .tools__heading { font-size: 20px; line-height: 29px; }
  .tools__title, .tools__list { flex: none; }

  .logos__title { width: 194px; padding: 32px; }
  .logos__track { padding: 40px 0; }

  .feature, .feature--visual-left { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .feature--visual-left .feature__visual, .feature__visual { order: -1; min-height: 0; aspect-ratio: 960 / 820; }
  .feature__content, .feature--visual-left .feature__content { padding: 48px 40px; }
  .feature__intro, .feature__outro { max-width: 640px; }

  .tools { flex-direction: column; align-items: flex-start; }
  .tools__list { justify-content: flex-start; }

  .slide { grid-template-columns: 1fr; }
  .slide__visual { order: -1; }
  .slide__content { border-right: 0; }
  .slide__quote { font-size: 18px; line-height: 24px; letter-spacing: -0.2px; }
  .slide__name { font-size: 13px; line-height: 14px; }
  .slide__role { font-size: 11px; line-height: 12px; }
  .slide__label { font-size: 12px; line-height: 13px; }

  .usecases__grid { grid-template-columns: repeat(2, 1fr); }
  .usecase:nth-child(2) { border-right: 0; }
  .usecase:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .faq { grid-template-columns: 1fr; }
  .faq__intro { padding: 40px 20px; }
  .faq__list { border-left: 0; border-top: 1px solid var(--line); }
  .faq__q { padding: 19px 20px; }
  .faq__a { padding: 0 20px 20px; }

  .banner__title { font-size: 36px; line-height: 40px; letter-spacing: -1.4px; }
}

/* ================= Phone ================= */
@media (max-width: 809px) {
  .hero { padding: 48px 16px 56px; }
  .rating__score, .hero__note { font-size: 12px; line-height: 18px; letter-spacing: -0.2px; }
  .hero__ratings { margin-bottom: 28px; gap: 10px; padding: 6px; }
  .rating { gap: 10px; }
  .rating img { width: auto; height: 16px; }
  .hero__title { padding: 0; }
  .hero__lead { padding: 0; margin-top: 20px; font-size: 14px; line-height: 19px; }
  .hero__cta { width: 100%; margin-top: 32px; }
  .hero__btn { width: 100%; max-width: 298px; }

  .product-tour__tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .product-tour__tabs::-webkit-scrollbar { display: none; }
  .product-tour__tabs .autotabs__tab { flex: none; height: 40px; padding: 0 33px; font-size: 14px; line-height: 14px; }
  .product-tour__tabs .autotabs__tab:first-child { border-left: 0; }

  .logos { flex-direction: column; align-items: stretch; }
  .logos__title { width: auto; padding: 32px 20px 0; border-right: 0; text-align: center; font-size: 16px; }
  .logos__track { padding: 24px 0 32px; }
  .logos__marquee { gap: 56px; }

  .mission { height: 1688px; }
  .mission__sticky { padding: 40px 20px; align-items: center; }
  .mission__text { font-size: 28px; line-height: 34px; letter-spacing: -0.8px; gap: 34px; }

  .feature__visual, .feature--visual-left .feature__visual { aspect-ratio: 356 / 282; }
  .feature__content, .feature--visual-left .feature__content { padding: 43px 20px 96px; gap: 32px; }
  .feature__intro { gap: 16px; }
  .feature__icon { margin-bottom: 12px; }
  .feature__intro .t-small, .feature__outro .check-list li { font-size: 14px; }
  .check-list { gap: 7px; }

  .tools { padding: 21px 20px 20px; gap: 16px; align-items: stretch; }
  .tools__heading { font-size: 20px; line-height: 29px; }
  .tools__title { gap: 12px; }
  .tools__list {
    order: -1;
    display: grid; grid-template-columns: repeat(5, max-content); grid-auto-flow: row;
    gap: 10px 12px; overflow-x: auto; width: calc(100% + 40px); margin: 0 -20px; padding: 0 20px; scrollbar-width: none;
  }
  .tools__list::-webkit-scrollbar { display: none; }

  /* Phone: each tab becomes the heading above its own panel */
  .inside__frame { display: flex; flex-direction: column; }
  .inside__tabs { display: contents; }
  .inside__tabs .autotabs__tab {
    display: block; height: auto; padding: 20px; text-align: left; pointer-events: none;
    border-right: 0; border-bottom: 1px solid var(--line-2); background: none;
    font-size: 18px; line-height: 23px; letter-spacing: -0.4px; font-weight: 500; color: var(--ink);
  }
  .inside__tabs .autotabs__bar { display: none; }
  #inside-tab-1 { order: 1; } #inside-panel-1 { order: 2; }
  #inside-tab-2 { order: 3; } #inside-panel-2 { order: 4; }
  #inside-tab-3 { order: 5; } #inside-panel-3 { order: 6; }
  #inside-tab-4 { order: 7; } #inside-panel-4 { order: 8; }
  #inside-tab-5 { order: 9; } #inside-panel-5 { order: 10; }
  .inside .inside__panel, .inside .inside__panel[hidden] { display: block !important; border-bottom: 1px solid var(--line-2); }
  .inside__cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .inside__cards::-webkit-scrollbar { display: none; }
  .inside__dots { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 16px 0 18px; border-top: 1px solid var(--line-2); }
  .inside__dots span { width: 4px; height: 4px; border-radius: 999px; background: #d4d4d4; transition: width 0.3s var(--ease), background-color 0.3s var(--ease); }
  .inside__dots span.is-active { width: 18px; background: var(--ink); }
  .inside-card { flex: 0 0 100%; scroll-snap-align: start; border-right: 0; }
  .inside-card img { aspect-ratio: 356 / 312; }
  .inside-card__body { padding: 24px 20px 32px; }
  .inside-card__body .t-card-title { font-size: 20px; line-height: 22px; }

  .testimonials__top { align-items: flex-end; }
  .slide__quote-wrap { padding: 24px; }
  .slide__stats { grid-template-columns: 1fr; padding: 0; }
  .slide__stats li { padding: 24px; border-left: 0; border-top: 1px solid var(--line-2); }
  .slide__stats li:first-child { padding-left: 24px; border-top: 0; }
  .slide__num { font-size: 36px; }
  .slide__link { padding: 24px; font-size: 16px; }
  .slider__controls { padding: 12px 24px; }

  .usecases__grid { grid-template-columns: 1fr; }
  .usecase { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; padding: 20px 20px 24px; gap: 36px; }
  .usecase:last-child { border-bottom: 0; }

  .faq__intro { padding: 32px 20px 40px; }
  .faq__q { padding: 20px; font-size: 16px; line-height: 19px; }
  .faq__a { padding: 0 20px 20px; font-size: 14px; line-height: 21px; }

  .banner { padding: 36px 20px 40px; }
  .banner__title { font-size: 36px; line-height: 39px; }
  .banner__text { font-size: 16px; line-height: 21.3px; margin-top: 16px; }
  .banner .btn { margin-top: 28px; }
}
