/* =========================================================
   AI Search About Us page
   Design source: Figma "AI Search Present - Final" node 3938:87637
   ========================================================= */

.site-main > .about-hero { width: min(1260px, calc(100% - 48px)); }
.site-main > .about-why { width: min(1126px, calc(100% - 48px)); }
.site-main > .about-methods { width: min(1320px, calc(100% - 48px)); }
.site-main > .about-contact { width: min(1126px, calc(100% - 48px)); }

/* ---------- Hero card ---------- */

.about-hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding: 60px 24px 20px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-card-lg);
  text-align: center;
}

.about-hero__title {
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1e1e1e;
}

.about-hero__desc {
  max-width: 1100px;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.75rem);
  line-height: 1.43;
  color: #000;
  opacity: 0.8;
}

.about-hero__graphic {
  width: min(480px, 100%);
}

.about-hero__img {
  display: block;
  width: min(407px, 90%);
  margin: 15px auto 27px;
  border-radius: 17px;
  box-shadow: 0 5.6px 17.4px #f4f5fc, 0 13.9px 17.4px rgba(244, 245, 252, 0.5);
}

/* ---------- Why section ---------- */

.about-why {
  display: flex;
  gap: 24px;
  align-items: center;
}

.about-why__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.about-why__title {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: transparent;
  background-image: var(--gradient-brand, linear-gradient(147deg, #1c73e9 38.87%, #2ac48b 88.955%));
  background-clip: text;
  -webkit-background-clip: text;
}

.about-why__body {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
  line-height: 1.45;
  color: #000;
}

/* Transparent artwork — no crop, no card frame. */
.about-why__graphic {
  flex: 0 0 min(456px, 42%);
}

.about-why__graphic img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Methods gradient panel ---------- */

.about-methods {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding: 80px 24px;
  border-radius: 40px;
  background-image: linear-gradient(104deg, #1c73e9 38.87%, #2ac48b 88.955%);
  filter: drop-shadow(0 8px 12.5px #f4f5fc) drop-shadow(0 20px 12.5px rgba(244, 245, 252, 0.5));
  color: #fff;
}

.about-methods__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.about-methods__title {
  font-size: clamp(1.875rem, 1.3rem + 2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
}

.about-methods__subtitle {
  max-width: 820px;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.75rem);
  line-height: 1.43;
}

/* Logo constellation: tight pair on top, wide pair below, magnifier centred
   between the rows. Labels sit under their circles (Figma 3938:87683). */
.about-methods__logos {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.about-methods__logo-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.about-methods__logo-row--top { gap: 77px; }
.about-methods__logo-row--bottom { gap: min(382px, 40vw); }

.about-logo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.about-logo__circle {
  display: grid;
  place-items: center;
  width: 103px;
  height: 103px;
  border-radius: 50%;
  background: #fff;
}

.about-logo__circle img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.about-logo figcaption {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.about-methods__connector {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.about-methods__connector img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Method cards ---------- */

.about-methods__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(1180px, 100%);
}

.about-methods__row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.method-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 416px;
  padding: 40px 32px 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  color: #000;
}

.about-methods__row > .method-card--deep {
  flex: 0 0 48%;
}

.method-card__title {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.29;
}

.method-card__desc {
  font-size: 18px;
  line-height: 1.33;
  opacity: 0.8;
}

.method-card__media {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  margin-top: auto;
}

.method-card__media img {
  display: block;
  max-width: min(300px, 90%);
  max-height: 230px;
  object-fit: contain;
}

.method-card--deep .method-card__media img {
  max-width: min(334px, 90%);
  border-radius: 17px;
  box-shadow: 0 5.6px 17.4px #f4f5fc, 0 13.9px 17.4px rgba(244, 245, 252, 0.5);
  margin-bottom: 24px;
}

/* Mini constellation + mock search pill inside the first card. */
.method-card__logo-cluster {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  padding-bottom: 32px;
}

.method-card__logo-row {
  display: flex;
  justify-content: center;
}

.method-card__logo-row--top { gap: 43px; }
.method-card__logo-row--bottom { gap: min(212px, 24vw); }

.method-card__search {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 220px;
  margin-top: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 71px;
  background: #fff;
  filter: drop-shadow(0 5.7px 8.9px #f4f5fc) drop-shadow(0 14.3px 8.9px rgba(244, 245, 252, 0.5));
}

.method-card__search-glass {
  width: 19px;
  height: 19px;
}

.method-card__search-spark {
  width: 31px;
  height: 31px;
}

.method-card__logo {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5.7px 17.9px #f4f5fc, 0 14.3px 17.9px rgba(244, 245, 252, 0.5);
}

.method-card__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ---------- Contact ---------- */

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 52px;
  align-items: center;
}

.about-contact__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  color: #202020;
}

.about-contact__title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.about-contact__subtitle {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.75rem);
  line-height: 1.43;
}

.about-contact__map {
  position: relative;
  width: 100%;
  height: clamp(300px, 33vw, 483px);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #f4f5fc;
}

.about-contact__map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.about-map__radar {
  position: absolute;
  top: 61%;
  left: 29%;
  width: 7%;
  aspect-ratio: 1;
}

.about-map__oval {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-map__oval--2 { inset: 15%; width: 70%; height: 70%; }
.about-map__oval--3 { inset: 30%; width: 40%; height: 40%; }

.about-map__pin {
  position: absolute;
  width: 2.6%;
  height: auto;
  aspect-ratio: 29.7 / 41.4;
}

.about-map__pin--1 { top: 16%; left: 18.5%; }
.about-map__pin--2 { top: 36%; left: 46.5%; }
.about-map__pin--3 { top: 70%; left: 42%; }
.about-map__pin--4 { top: 79%; left: 69.5%; }
.about-map__pin--5 { top: 29%; left: 77.7%; }

.about-map__label {
  position: absolute;
  top: 24.5%;
  left: 37.5%;
  padding: 12px 24px;
  border-radius: 24px;
  background-image: var(--gradient-brand, linear-gradient(147deg, #1c73e9 41.2%, #2ac48b 90.4%));
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

/* ---------- Contact form ---------- */

.about-contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: min(936px, 100%);
}

.about-contact__form-row {
  display: flex;
  gap: 28px;
  width: 100%;
}

/* Gradient border: white paint clipped to padding-box, brand gradient behind. */
.about-contact__form input,
.about-contact__form textarea {
  flex: 1;
  min-width: 0;
  padding: 20px 28px;
  border: 1px solid transparent;
  border-radius: 99px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient-brand, linear-gradient(135deg, #1c73e9 38.87%, #2ac48b 88.955%)) border-box;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text);
}

.about-contact__form input::placeholder,
.about-contact__form textarea::placeholder {
  color: var(--color-text-faint);
}

.about-contact__form input:focus,
.about-contact__form textarea:focus {
  outline: 2px solid var(--color-brand-green);
  outline-offset: 1px;
}

.about-contact__form textarea {
  width: 100%;
  border-radius: 20px;
  resize: vertical;
}

.about-contact__submit {
  padding: 12px 24px 12px 32px;
  border-radius: 100px;
  font-size: 18px;
}

/* ---------- Contact info ---------- */

.about-contact__info {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  width: min(936px, 100%);
}

.about-contact__channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-contact__channel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  line-height: 1.45;
  color: #000;
}

.about-contact__icon {
  width: 24px;
  height: 24px;
  margin-top: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .about-why {
    flex-direction: column;
  }

  .about-why__graphic {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 456 / 460;
    max-height: 460px;
  }

  .about-methods__row {
    flex-direction: column;
  }

  .about-methods__row > .method-card--deep {
    flex: 1;
  }

  .about-logo figcaption {
    font-size: 18px;
  }

  .about-methods__logo-row--bottom { gap: min(200px, 30vw); }
}

@media (max-width: 640px) {
  .about-contact__form-row {
    flex-direction: column;
    gap: 24px;
  }

  .about-contact__info {
    flex-direction: column;
  }

  .about-methods__logo-row--top { gap: 32px; }
  .about-methods__logo-row--bottom { gap: min(120px, 28vw); }

  /* No room between the shrunken circles — hide the connector art. */
  .about-methods__connector {
    display: none;
  }

  .about-logo__circle {
    width: 72px;
    height: 72px;
  }

  .about-logo__circle img {
    width: 40px;
    height: 40px;
  }

  .about-logo figcaption {
    font-size: 14px;
  }

  .about-map__label {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Constellation must fit a <=340px layout: smaller circles, tighter gaps. */
@media (max-width: 400px) {
  .about-methods__logo-row--top { gap: 20px; }
  .about-methods__logo-row--bottom { gap: 80px; }

  .about-logo__circle {
    width: 60px;
    height: 60px;
  }

  .about-logo__circle img {
    width: 34px;
    height: 34px;
  }

  .about-logo figcaption {
    font-size: 12px;
  }
}
