/* Tool feature rows. Each row gets an .accent-* class (see tokens.css). */
.tool-row{ display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center; padding:64px 0; }
.tool-row + .tool-row{border-top:1px solid var(--line)}
.tool-row.rev .tool-copy{order:2}
.tool-row.rev .tool-visual{order:1}
@media (max-width:900px){
  .tool-row{grid-template-columns:1fr;gap:32px;padding:44px 0}
  .tool-row.rev .tool-copy{order:1}
  .tool-row.rev .tool-visual{order:2}
}

.tool-icon{
  width:52px;height:52px;border-radius:15px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:22px;
  background:var(--accent-soft);color:var(--accent);
}
.tool-copy h3{font-size:clamp(24px,2.6vw,32px)}
.tool-copy p.tool-desc{margin-top:16px;font-size:16.5px;color:var(--ink-soft);max-width:460px}
.tool-feats{list-style:none;margin:24px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.tool-feats li{display:flex;gap:11px;align-items:flex-start;font-size:15px;color:var(--ink);font-weight:600}
.tool-feats li svg{flex:none;margin-top:2px}
.tool-feats .check{fill:var(--accent-soft);stroke:var(--accent)} /* inherited into #i-check sprite */
.tool-cta{margin-top:30px}
.btn-tool{background:#F1F2F5;color:var(--accent)}
.btn-tool:hover{background:#E6E8ED}

/* product screenshot */
.tool-visual{
  width:100%;height:auto;
  aspect-ratio:1024/833; /* all shots share the tallest one's frame */
  object-fit:contain;object-position:top;
  background:#fff;
  border-radius:var(--radius-md);
  border:1px solid var(--line);
  box-shadow:var(--shadow-card);
}

/* "all tools" banner after the rows (Figma UVP-2025, node 2682:14251).
   Grid: copy | girl. The girl is its own column sized off the banner width (cqw),
   so the two never overlap, and she sits flush on the bottom edge. */
.all-tools-banner{
  position:relative;isolation:isolate;overflow:hidden;container-type:inline-size;
  margin-top:20px;padding:0 48px 0 64px;
  border-radius:32px;background:#FFB7F0;
  display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:32px;align-items:center;
}
/* soft pink glows: bottom-right and left, geometry taken from the design */
.atb-glow{position:absolute;z-index:-3;max-width:none;pointer-events:none}
.atb-glow--right{width:2407px;height:2393px;right:-1274px;bottom:-1103px}
.atb-glow--left{width:1307px;height:1303px;left:-612px;bottom:-260px}
/* 8 vertical translucent stripes on the right (a a b a a b a a).
   Geometry is in design px (707 wide) times --k; --k is picked so the set spans the
   photo zone only (photo + gap + right padding) and starts where the copy ends. */
.atb-stripes{
  --k:min(1px, calc((40cqw + 80px) / 707));
  position:absolute;z-index:-2;top:0;bottom:0;right:0;width:calc(707 * var(--k));pointer-events:none;
  --a:url(../../img/banner/stripe-a.png);--b:url(../../img/banner/stripe-b.png);
  --wa:calc(88.9 * var(--k));--wb:calc(86.8 * var(--k));
  background:
    var(--a) 0                         0/var(--wa) 100% no-repeat,
    var(--a) calc( 88.9 * var(--k)) 0/var(--wa) 100% no-repeat,
    var(--b) calc(177.8 * var(--k)) 0/var(--wb) 100% no-repeat,
    var(--a) calc(264.6 * var(--k)) 0/var(--wa) 100% no-repeat,
    var(--a) calc(353.5 * var(--k)) 0/var(--wa) 100% no-repeat,
    var(--b) calc(442.4 * var(--k)) 0/var(--wb) 100% no-repeat,
    var(--a) calc(529.2 * var(--k)) 0/var(--wa) 100% no-repeat,
    var(--a) calc(618.1 * var(--k)) 0/var(--wa) 100% no-repeat;
}
.atb-copy{max-width:520px;padding:56px 0}
.all-tools-banner h3{font-size:24px;line-height:1.2;color:#181818}
.all-tools-banner p{margin-top:14px;font-size:16px;line-height:1.55;color:#181818}
.all-tools-banner .btn{margin-top:26px}
.atb-girl{display:block;align-self:end;width:min(460px,40cqw)}
.atb-girl img{width:100%;height:auto}

@media (max-width:900px){
  .tool-copy p.tool-desc{max-width:600px}
  /* tablet (641–900) uses foto.png: portrait 744x880, cropped on its right side,
     so it goes flush to the banner's right edge */
  .all-tools-banner{padding:0 0 0 40px;column-gap:20px}
  .atb-copy{padding:44px 0}
  .atb-girl{width:min(300px,38cqw)}
  .atb-stripes{--k:calc((38cqw + 20px) / 707)}
}
@media (max-width:640px){
  .tool-row{gap:24px;padding:36px 0}
  .section-head + .tool-row{padding-top:0}
  .tool-icon{width:46px;height:46px;border-radius:13px;margin-bottom:18px}
  .tool-copy p.tool-desc{margin-top:12px;font-size:15.5px}
  .tool-feats{margin-top:18px;gap:10px}
  .tool-cta{margin-top:24px}
  .tool-cta .btn{width:100%}
  .tool-visual{border-radius:14px}
  /* banner: copy on top, girl below it, still flush on the bottom edge */
  .all-tools-banner{grid-template-columns:1fr;padding:0 20px;border-radius:24px}
  .atb-copy{max-width:none;padding:32px 0 12px}
  .all-tools-banner .btn{width:100%}
  .all-tools-banner{padding-right:20px}
  .atb-girl{justify-self:center;width:min(300px,84cqw)}
  /* stacked: stripes only behind the photo, full width */
  .atb-stripes{--k:calc((100cqw + 40px) / 707);top:auto;height:calc(min(300px,84cqw) * .962 + 8px);
    -webkit-mask-image:linear-gradient(to bottom,transparent,#000 72px);mask-image:linear-gradient(to bottom,transparent,#000 72px)}
}
/* Tablet 750–900: icon + title in one row, full-width text, features in a row, centered button */
@media (min-width:750px) and (max-width:900px){
  .tool-copy{display:grid;grid-template-columns:auto 1fr;column-gap:18px;align-items:center}
  .tool-icon{margin-bottom:0}
  .tool-copy > :not(.tool-icon):not(h3){grid-column:1 / -1}
  .tool-copy p.tool-desc{max-width:none}
  .tool-feats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
  .tool-feats li{font-size:14.5px;line-height:1.4}
  .tool-cta{text-align:center}
  .tool-visual{max-width:540px;justify-self:center}
}
