/* Website Leads — tools (light band) + cta (glow band) + faq
   All rules scoped under .tools- / .cta- / .faq- prefixes. */

/* ==================== TOOLS / CAPABILITIES ==================== */

.tools-wrap {
  width: 100%;
  background: var(--light-bg);
  color: var(--light-text);
  border-radius: var(--r-sec);
  padding-block: var(--sec-pad);
}

.tools-inner {
  max-width: 920px;
  margin-inline: auto;
}

/* — heading composition: line / icon row / line — */

.tools-head {
  display: flex;
  flex-direction: column;
}

.tools-title { display: contents; }

.tools-l1 {
  display: block;
  order: 1;
  text-align: left;
}

.tools-icons-viewport {
  order: 2;
  position: relative;
  width: min(100%, 785px);
  height: 71px;
  margin: clamp(1.4rem, 3vw, 2.4rem) auto;
  overflow: visible;
}

.tools-icons {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  gap: 0;
  will-change: transform;
}

.tools-l2 {
  display: block;
  order: 3;
  text-align: right;
}

/* — app icon tiles — */

.tools-tile {
  --tile-delay: 0s;
  position: relative;
  width: 80px;
  height: 80px;
  flex: none;
  display: grid;
  place-items: center;
  transition:
    width 350ms cubic-bezier(0.12, 0.23, 0.5, 1),
    height 350ms cubic-bezier(0.12, 0.23, 0.5, 1);
}

.tools-tile::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  corner-shape: superellipse(1.2);
  background: var(--tile-bg, #fff);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06), 0 6px 18px rgba(10, 10, 10, 0.09);
  transition: box-shadow 350ms cubic-bezier(0.12, 0.23, 0.5, 1);
}

.tools-tile::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: -7px;
  z-index: 3;
  padding: 4px 7px 4px 8px;
  border-radius: 10px;
  corner-shape: superellipse(1.7);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(10, 10, 10, 0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(10px) scale(0.9);
  transform-origin: 50% 0;
  transition:
    opacity 350ms cubic-bezier(0.12, 0.23, 0.5, 1),
    transform 350ms cubic-bezier(0.12, 0.23, 0.5, 1),
    bottom 350ms cubic-bezier(0.12, 0.23, 0.5, 1);
}

.tools-tile svg {
  position: relative;
  z-index: 1;
  width: 42.5%;
  height: 42.5%;
  display: block;
  transition: width 350ms cubic-bezier(0.12, 0.23, 0.5, 1), height 350ms cubic-bezier(0.12, 0.23, 0.5, 1);
}

.tools-tile--google,
.tools-tile--meta,
.tools-tile--gpt,
.tools-tile--maps,
.tools-tile--ga { --tile-bg: #fff; }

.tools-tile--ig {
  --tile-bg: radial-gradient(130% 130% at 15% 100%, #ffd776 0%, #f58529 24%, #dd2a7b 56%, #8134af 82%, #515bd4 100%);
}
.tools-tile--tt { --tile-bg: #010101; }
.tools-tile--yt { --tile-bg: #f00; }
.tools-tile--claude { --tile-bg: var(--cream); }
.tools-tile--call { --tile-bg: linear-gradient(180deg, #63d372, #2aad3f); }

@media (min-width: 1280px) {
  .tools-icons.is-entered .tools-tile { opacity: 1; transform: none; }
  .tools-tile {
    opacity: 0;
    transform: translateY(45px);
    transition:
      width 350ms cubic-bezier(0.12, 0.23, 0.5, 1),
      height 350ms cubic-bezier(0.12, 0.23, 0.5, 1),
      opacity 1s cubic-bezier(0.44, 0, 0.29, 1) var(--tile-delay),
      transform 1s cubic-bezier(0.44, 0, 0.29, 1) var(--tile-delay);
  }
  .tools-tile.is-neighbor { width: 90px; height: 90px; }
  .tools-tile.is-hovered { width: 100px; height: 100px; }
  .tools-tile.is-hovered::before { box-shadow: 0 8px 13px rgba(0, 0, 0, 0.1); }
  .tools-tile.is-hovered::after {
    bottom: -17px;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (max-width: 1279.98px) {
  .tools-icons-viewport {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12.4208%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12.4208%, #000 88%, transparent 100%);
  }
  .tools-icons {
    width: 800px;
    max-width: none;
    justify-content: flex-start;
  }
  .tools-tile { opacity: 1; }
  .tools-tile::after { display: none; }
}

/* — lead paragraph + pill — */

.tools-lead { margin-top: clamp(3rem, 6.5vw, 5.5rem); }

.tools-lead-p {
  max-width: 44ch;
  color: rgba(10, 10, 10, 0.7);
  font-size: 1.06rem;
}

.tools-lead-pill { margin-top: 1.7rem; }

/* — staggered white cards — */

.tools-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  width: min(100%, 785px);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  margin-inline: auto;
}

.tools-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tools-col:first-child { padding-top: 80px; }

.tools-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.tools-card-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 45px 40px;
  border-radius: 32.112px;
  corner-shape: superellipse(1.2);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transform-origin: center;
  transition: transform 350ms cubic-bezier(0.12, 0.23, 0.5, 1);
}

@media (hover: hover) {
  .tools-card:hover .tools-card-surface { transform: scale(0.96); }
  .tools-card:hover .tools-card-arrow svg { transform: rotate(45deg); }
}

.tools-card:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 5px;
  border-radius: 32.112px;
}

@supports (corner-shape: superellipse(1.2)) {
  .tools-card-surface,
  .tools-card:focus-visible { border-radius: 36px; }
}

.tools-card-t {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 33px;
  color: #000;
}

.tools-card-rule {
  display: block;
  width: 100%;
  height: 1px;
  flex: none;
  background: #ececec;
}

.tools-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: clip;
}

.tools-card-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: rgba(0, 0, 0, 0.4);
}

.tools-card-info p {
  width: 95%;
  color: rgba(0, 0, 0, 0.8);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.tools-card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14.272px;
  corner-shape: superellipse(1.2);
  background: #e6e6e6;
  overflow: clip;
}

.tools-card-arrow svg {
  display: block;
  width: 10px;
  height: 10px;
  fill: #000;
  transform-origin: center;
  transition: transform 400ms linear(0, 0.34 12%, 0.68 24%, 0.9 36%, 1.03 52%, 1.04 64%, 1.015 80%, 1);
}

@supports (corner-shape: superellipse(1.2)) {
  .tools-card-arrow { border-radius: 16px; }
}

@media (min-width: 1920px) {
  .tools-cols { width: min(100%, 955px); }
}

/* ==================== CTA / CONSULTATION ==================== */

.cta-wrap {
  position: relative;
}

.cta-wrap.sec {
  padding-bottom: var(--sec-pad-compact);
}

.cta-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -5rem;
  height: min(78%, 760px);
  background: radial-gradient(120% 60% at 50% 0%, rgba(233, 60, 26, 0.55), rgba(233, 60, 26, 0.12) 45%, transparent 70%);
  filter: blur(42px);
  pointer-events: none;
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-inline: auto;
}

.cta-h { max-width: 20ch; }

.cta-label {
  font-size: 1.3rem;
  font-weight: 500;
  margin: clamp(3rem, 6vw, 5rem) 0 1.6rem;
}

.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-card);
  align-items: start;
}

.cta-card {
  background: rgba(20, 20, 20, 0.92);
  border-radius: var(--r-card-lg);
  padding: 2.4rem;
}

.cta-card .cta-chip {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cta-big {
  font-size: clamp(1.6rem, 2.23vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: clamp(2.4rem, 4.5vw, 4rem);
}

.cta-sub {
  margin-top: 2.1rem;
  font-weight: 500;
  font-size: 1.02rem;
}

.cta-list { margin-top: 0.5rem; }

.cta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-block: 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-list li + li { border-top: 1px solid var(--hair); }

.cta-check {
  flex: none;
  margin-top: 0.3rem;
  color: #fff;
}

/* ==================== FAQ ==================== */

.faq-wrap.sec {
  padding-top: 0;
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
}

main:has(> .faq-wrap:last-child) + .foot-wrap {
  padding-top: clamp(4.5rem, 7vw, 6rem);
}

.faq-inner {
  max-width: 940px;
  margin-inline: auto;
}

.faq-h {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.faq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #111;
  border-radius: 24px;
  transition: background 0.25s ease;
}
.faq-item:hover { background: #161616; }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.7rem;
  font-weight: 500;
  font-size: 1.125rem; /* midu FAQ q: 18px/500/-0.02em/1.3 */
  letter-spacing: -0.02em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-chev {
  flex: none;
  color: var(--muted);
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-chev { transform: rotate(180deg); }

.faq-body { overflow: hidden; }

.faq-body p {
  padding: 0 1.7rem 1.5rem;
  font-weight: 500; letter-spacing: normal; line-height: 1.3; color: var(--muted);
}

/* ==================== responsive ==================== */

@media (max-width: 900px) {
  .cta-cards { grid-template-columns: 1fr; }

  .faq-cols { grid-template-columns: 1fr; }
}

@media (max-width: 809.98px) {
  .tools-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tools-col { gap: 20px; }
  .tools-col:first-child { padding-top: 0; }
}

@media (max-width: 720px) {
  .tools-wrap { border-radius: calc(var(--r-sec) - 12px); }

  .cta-card { padding: 1.8rem; }

  .faq-item summary { padding: 1.25rem 1.35rem; }
  .faq-body p { padding: 0 1.35rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tools-icons-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }
  .tools-icons-viewport::-webkit-scrollbar { display: none; }
  .tools-icons { transform: none !important; }
  .tools-tile,
  .tools-tile.is-neighbor,
  .tools-tile.is-hovered {
    width: 80px;
    height: 80px;
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  .tools-tile::after,
  .tools-tile svg { transition: none; }
  .tools-card-surface,
  .tools-card-arrow svg { transition: none; }
  .tools-card:hover .tools-card-surface,
  .tools-card:hover .tools-card-arrow svg { transform: none; }
}
