/* Wild Bear · the pieces the pages share (made for the home with Rui, 2026-11-27/29; since 29/11 every page uses them):
   the free tools' cards, the research cards, the questions, the contact conversation. The footer and the bar are in site.css. */

/* ---------- 5 · free tools ----------
   A row of cards after Rui's reference (2026-11-28), with no title and no arrows above it (Rui removed them). The row
   starts on the page margin and runs off the right edge: three cards and half of the fourth show (from 1024 px; two
   and a half on tablets, one and a bit on phones), so the row clearly goes on.
   Each card IS its photo, edge to edge (Rui's second references), 4:7, the kit's 18 px corners, no line, no shadow.
   On top, the title in white (Bold caps, the section-title size, centred as in the references) and under it a one-line
   description (Medium 15 px, white, on the same soft band, ≥ 4.5:1 measured); in the bottom-right
   corner the one button: only a long arrow on a white key, 8 px from the card's corner (key corner 10 = 18 − 8).
   Where the words sit, the photo goes soft: a blurred band that fades into the sharp photo (the kit's frosted
   glass, as a gradient) with a darkening, so the white title reads on any photo (≥ 4.5:1 measured). The same,
   lighter, at the bottom under the key. The whole card is the link, so it is one big target. At the end of the row,
   on its own and ending on the right margin, the button to the page with all the tools.
   Moving: scrolling down moves the row (below, .anda); without it, swipe or trackpad sideways (native, snapping to a
   card) or, with a mouse, drag (home.js).
   Entrance: as the section comes up the screen, the cards slide in from the right, each a little further than the
   one before, so the row arrives as a row that moves sideways (home.js sets --e 0 → 1; without JS they are in place). */
.ferr{position:relative;padding:var(--s7) 0;container-type:inline-size}
.ferr-trilho{--borda:max(var(--gut),calc((100cqw - var(--max)) / 2));--ver:3.5;--g:var(--s3);display:flex;gap:var(--g);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--borda);padding:8px var(--borda);margin:-8px 0;scrollbar-width:none}
.ferr-trilho::-webkit-scrollbar{display:none}
.ferr-trilho.puxa{scroll-snap-type:none;cursor:grabbing}
.ferr-trilho.puxa a{cursor:grabbing}
.ferr-i{--e:1;flex:none;display:flex;scroll-snap-align:start}
.ferr-i>*{transform:translateX(calc((1 - var(--e)) * (18vw + var(--i) * 6vw)))}   /* moved inside the snap item, so the snapping never follows it */
/* the card's width: what is left of the screen after the left margin, shared so that --ver cards (and the gaps
   between them) fill it: 3 whole cards and half of the 4th */
.ferr-c{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;width:calc((100cqw - var(--borda) - (var(--ver) - .5) * var(--g)) / var(--ver));aspect-ratio:4/7;max-height:calc(100svh - 140px);border-radius:var(--wb-r-card);overflow:hidden;background:#3B3F3D;color:#fff;-webkit-user-drag:none}
.ferr-c:focus-visible{border-radius:var(--wb-r-card);outline-color:var(--wb-black)}
.ferr-c picture{position:absolute;inset:0;z-index:-2}
.ferr-c img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
/* the soft bands: the same photo, blurred, shown only at the top (behind the title) and at the bottom (behind the
   key), fading into the sharp photo; plus a darkening, stronger at the top, so white reads on any photo */
.ferr-veu{-webkit-mask-image:linear-gradient(#000,#000 26%,transparent 54%,transparent 72%,#000);mask-image:linear-gradient(#000,#000 26%,transparent 54%,transparent 72%,#000)}
.ferr-c .ferr-veu img{filter:blur(18px);transform:scale(1.12)}
.ferr-c::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(rgba(25,25,25,.64),rgba(25,25,25,.48) 28%,rgba(25,25,25,0) 54%,rgba(25,25,25,0) 74%,rgba(25,25,25,.22))}
.ferr-txt{padding:var(--s4) var(--s4) 0;text-align:center;color:#fff}
.ferr-d{margin:var(--s2) auto 0;max-width:24em;font-weight:500;font-size:15px;line-height:1.35;text-wrap:balance}   /* the mini description: one line, two at most */
.ferr-btn{align-self:flex-end;display:inline-flex;align-items:center;justify-content:center;width:64px;height:40px;margin:var(--s2);border-radius:var(--wb-r-m);background:var(--wb-paper);color:var(--wb-black);transition:background-color .3s var(--ease),transform .3s var(--ease)}
.ferr-btn svg{transition:transform .3s var(--ease)}
.ferr-c:active .ferr-btn{transform:scale(.97)}
@media (hover:hover){
  .ferr-c:hover .ferr-btn{background:var(--wb-line)}
  .ferr-c:hover .ferr-btn svg{transform:translateX(3px)}   /* the arrow leans the way the card goes */
  .ferr-c:hover img{transform:scale(1.04)}
  .ferr-c:hover .ferr-veu img{transform:scale(1.16)}
}
.ferr-fim{align-items:center;padding-left:var(--s5)}   /* the button ends on the right margin */
@media (max-width:1023px){ .ferr-trilho{--ver:2.5} }
@media (max-width:640px){
  .ferr{padding:var(--s6) 0}
  .ferr-c{width:min(78vw,340px)}   /* phones: one card and the edge of the next */
  .ferr-fim{padding-left:var(--s4)}
}
/* the row moved by the page's scroll (Rui, 28/11): home.js adds .anda (not with reduced motion) and measures how far
   the row has to travel (--viagem). The section is then one screen plus that travel plus a short rest; its screen
   stays (sticky) while scrolling down moves the row left, one pixel of scroll for one pixel of row, until "Ver todas"
   reaches the right margin; it rests there for --repouso, then the page goes on. overflow-x:clip, not hidden: the
   row can never be scrolled sideways by focus or by the browser, only by home.js (--x). */
.ferr.anda{--repouso:20vh;padding:0;height:calc(100vh + var(--viagem,0px) + var(--repouso))}
.ferr.anda .ferr-pin{position:sticky;top:0;height:100vh;display:flex;align-items:center;overflow-x:clip}
.ferr.anda .ferr-trilho{flex:1;min-width:0;overflow:visible;scroll-snap-type:none;transform:translate3d(calc(var(--x,0) * -1px),0,0);will-change:transform}

/* ---------- 7 · research (Rui, 2026-11-28; redone 29/11: smaller, a little text, pictures with an object) ----------
   White cards (pure white, no line, no shadow); the picture runs to the card's edges, so its outer corners are the
   card's own. The picture is the article's object in its colour field. Over it, the kind as the kit's tag on glass
   (top left, 10 px in: corner 8 = 18 − 10) and the long arrow on its white key (bottom right, at the picture's
   square corner). The featured card: picture left (2:1), title at the top and two sentences at the bottom on the
   right. The three under it: picture on top (16:9), title and one sentence under it. Text is black on white: small
   words never sit on a colour. The whole card is the link. */
.pesq{padding:var(--s7) 0 var(--s6)}
.pesq-in{display:flex;flex-direction:column;gap:var(--s3)}
.pesq-c{position:relative;isolation:isolate;display:flex;flex-direction:column;border-radius:var(--wb-r-card);overflow:hidden;background:var(--wb-paper);color:var(--wb-black);-webkit-user-drag:none;transition:transform .3s var(--ease)}
.pesq-img{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:var(--wb-line)}
.pesq-img picture,.pesq-img img{display:block;width:100%;height:100%}
.pesq-img img{object-fit:cover;transition:transform .6s var(--ease)}
.pesq-tag{position:absolute;top:10px;left:10px;display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:var(--wb-r-s);background:rgba(255,255,255,.7);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);color:var(--wb-black);font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.pesq-seta{position:absolute;right:var(--s2);bottom:var(--s2);display:inline-flex;align-items:center;justify-content:center;width:64px;height:40px;border-radius:var(--wb-r-m);background:var(--wb-paper);color:var(--wb-black);transition:background-color .3s var(--ease),transform .3s var(--ease)}
.pesq-seta svg{transition:transform .3s var(--ease)}
.pesq-txt{display:flex;flex-direction:column;gap:var(--s2);padding:var(--s3) var(--s3) var(--s4)}
.pesq-n{font-weight:700;letter-spacing:.05em;text-transform:uppercase;text-wrap:balance;font-size:clamp(17px,1.35vw,20px);line-height:1.12}
.pesq-d{font-weight:500;font-size:15px;line-height:1.4;text-wrap:pretty;max-width:34em}
.pesq-dest{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.pesq-dest .pesq-img{aspect-ratio:2/1}
.pesq-dest .pesq-txt{justify-content:space-between;gap:var(--s4);padding:var(--s5)}
.pesq-dest .pesq-n{font-size:clamp(24px,2.3vw,34px);line-height:1.06;max-width:14em}
.pesq-dest .pesq-d{font-size:clamp(15px,1.2vw,17px)}
.pesq-grelha{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3)}
.pesq-c:active{transform:scale(.99)}
.pesq-c:active .pesq-seta{transform:scale(.97)}
.pesq-c:focus-visible{border-radius:var(--wb-r-card);outline-color:var(--wb-black)}
@media (hover:hover){
  .pesq-c:hover .pesq-seta{background:var(--wb-line)}
  .pesq-c:hover .pesq-seta svg{transform:translateX(3px)}
  .pesq-c:hover .pesq-img img{transform:scale(1.04)}
}
.pesq-todas{align-self:center;margin-top:var(--s4)}
/* tablets: the featured card stacks; the three become rows, picture left */
@media (max-width:900px){
  .pesq-dest{grid-template-columns:minmax(0,1fr)}
  .pesq-dest .pesq-img{aspect-ratio:16/9}
  .pesq-dest .pesq-txt{padding:var(--s3) var(--s3) var(--s4)}
  .pesq-grelha{grid-template-columns:minmax(0,1fr)}
  .pesq-grelha .pesq-c{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:center}
  .pesq-grelha .pesq-txt{padding:var(--s3) var(--s4)}
}
/* phones: the rows keep a small square picture, as tall as the row; the tag and the key stay on the big card */
@media (max-width:640px){
  .pesq{padding:var(--s6) 0 var(--s5)}
  .pesq-grelha .pesq-c{grid-template-columns:104px minmax(0,1fr);align-items:stretch}
  .pesq-grelha .pesq-img{aspect-ratio:auto;height:100%;min-height:104px}
  .pesq-grelha .pesq-tag,.pesq-grelha .pesq-seta{display:none}
  .pesq-grelha .pesq-txt{gap:var(--s1);padding:var(--s3) var(--s3) var(--s3) var(--s3)}
  .pesq-grelha .pesq-n{font-size:15px}
  .pesq-grelha .pesq-d{font-size:14px}
}

/* ---------- 8 · questions (Rui, 2026-11-28, after the PACKS site) ----------
   The title on the left, a few questions on the right, then a box to ask anything else. Questions open in place
   (thin kit lines between them, no boxes); the plus turns into a cross. The box answers at once from the site's own
   words (home.js), or offers to send the question to us. */
.perg{padding:var(--s7) 0}
.perg-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--s5) var(--s6);align-items:start}
.perg-t{font-weight:700;font-size:clamp(30px,4.2vw,60px);line-height:1.04;letter-spacing:.05em;text-transform:uppercase;text-wrap:balance}
.perg-lista{border-bottom:1px solid var(--wb-line)}
.perg-q{border-top:1px solid var(--wb-line)}
.perg-q summary{display:flex;justify-content:space-between;align-items:center;gap:var(--s4);min-height:72px;padding:var(--s3) 0;cursor:pointer;list-style:none;font-weight:500;font-size:clamp(18px,1.6vw,22px);line-height:1.3;border-radius:var(--wb-r-s)}
.perg-q summary::-webkit-details-marker{display:none}
.perg-ic{position:relative;flex:none;width:20px;height:20px;transition:transform .3s var(--ease)}
.perg-ic::before,.perg-ic::after{content:"";position:absolute;left:1px;right:1px;top:9px;height:1.75px;border-radius:2px;background:currentColor}
.perg-ic::after{transform:rotate(90deg)}
.perg-q[open] .perg-ic{transform:rotate(45deg)}
.perg-a{padding:0 var(--s6) var(--s4) 0}
.perg-a p{max-width:60ch;font-size:16px;line-height:1.55;text-wrap:pretty}
.perg-form{position:relative;margin-top:var(--s5)}
.perg-form .field{height:56px;padding:0 84px 0 18px;border-radius:var(--wb-r-l);background:var(--wb-paper);font-size:16px}
.perg-go{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center;justify-content:center;width:64px;height:48px;border-radius:var(--wb-r-s);background:var(--wb-black);color:var(--wb-white);cursor:pointer;transition:background-color .3s var(--ease),transform .3s var(--ease)}
.perg-go:active{transform:scale(.97)}
@media (hover:hover){.perg-go:hover{background:#000}}
.perg-out{margin-top:var(--s4);padding:var(--s4);border-radius:var(--wb-r-card);background:var(--wb-paper)}
.perg-out p{max-width:60ch;font-size:16px;line-height:1.55}
.perg-out .perg-r-q{font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:var(--s2)}
.perg-out .perg-acoes{display:flex;flex-wrap:wrap;gap:var(--s2);margin-top:var(--s3)}
.perg-out form{display:grid;grid-template-columns:1fr 1fr;gap:var(--s2) var(--s3);margin-top:var(--s3)}
.perg-out form .ct-ok,.perg-out form .btn,.perg-out form .perg-msg{grid-column:1/-1}
.perg-out form .btn{justify-self:start}
@media (max-width:900px){ .perg-in{grid-template-columns:minmax(0,1fr)} }
@media (max-width:640px){ .perg{padding:var(--s6) 0} .perg-a{padding-right:0} .perg-out form{grid-template-columns:1fr}
  .perg-t{font-size:clamp(30px,9vw,36px);text-align:center} }   /* phones: the title centred and bigger (Rui, 2026-11-30) */

/* ---------- 9 · contact (Rui, 2026-11-28, after his reference) ----------
   The title, then one big white card (the kit's panel corner) holding a conversation, one question at a time:
   the question in the middle, the answers as the kit's buttons and chips under it, Voltar at the bottom left and
   Continuar at the bottom right. The words of each new question come in one after another (home.js). */
.ct{padding:var(--s7) 0}
.ct-in{display:flex;flex-direction:column;gap:var(--s5)}
.ct-t{font-weight:700;font-size:clamp(30px,4.2vw,60px);line-height:1.04;letter-spacing:.05em;text-transform:uppercase;text-wrap:balance;max-width:14em}
.ct-card{position:relative;display:grid;place-items:center;min-height:clamp(460px,64vh,620px);padding:var(--s5) var(--s5) 104px;border-radius:var(--wb-r-panel);background:var(--wb-paper);text-align:center}
.ct-passo{display:flex;flex-direction:column;align-items:center;gap:var(--s4);width:100%;max-width:720px}
.ct-passo[hidden]{display:none}
.ct-q{font-weight:500;font-size:clamp(24px,2.4vw,36px);line-height:1.2;letter-spacing:-.01em;text-wrap:balance;max-width:20em}
.ct-q .w{display:inline-block;opacity:0;transform:translateY(8px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.ct-q.dito .w{opacity:1;transform:none}
.ct-ops,.ct-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--s2)}
.chip{display:inline-flex;align-items:center;height:40px;padding:0 16px;border-radius:var(--wb-r-m);background:var(--wb-white);box-shadow:inset 0 0 0 1.5px var(--wb-line);font-weight:500;font-size:15px;cursor:pointer;transition:background-color .3s var(--ease),color .3s var(--ease),box-shadow .3s var(--ease),transform .3s var(--ease)}
.chip[aria-pressed="true"]{background:var(--wb-black);color:var(--wb-white);box-shadow:none}
.chip:active{transform:scale(.97)}
@media (hover:hover){.chip[aria-pressed="false"]:hover{box-shadow:inset 0 0 0 1.5px var(--wb-black)}}
.ct-nav{position:absolute;left:var(--s4);right:var(--s4);bottom:var(--s4);display:flex;justify-content:space-between;align-items:center}
.ct-seguir[disabled]{opacity:.3}
.ct-campos{display:grid;grid-template-columns:1fr 1fr;gap:var(--s3);width:min(560px,100%);text-align:left}
.ct-campo{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:13px}
.ct-campo i{font-style:normal;color:var(--wb-mute)}
.ct-area{grid-column:1/-1}
.ct-area textarea{height:auto;min-height:96px;padding:12px 14px;resize:vertical}
.ct-ok{display:flex;align-items:flex-start;gap:8px;max-width:560px;font-size:13px;line-height:1.45;text-align:left}
.ct-ok input{margin-top:2px;width:16px;height:16px;accent-color:var(--wb-black)}
.ct-ok a{text-decoration:underline}
.ct-mel{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.ct-nota{font-size:16px;line-height:1.5}
.ct-erro{position:absolute;left:var(--s4);right:var(--s4);top:var(--s4);font-size:14px}
.ct-erro[hidden]{display:none}
@media (max-width:640px){
  .ct{padding:var(--s6) 0}
  .ct-t{font-size:clamp(30px,9vw,36px);text-align:center;margin:0 auto}   /* phones: centred and bigger (Rui, 2026-11-30) */
  .ct-card{padding:var(--s5) var(--s3) 88px;min-height:520px}
  .ct-campos{grid-template-columns:1fr}
  .ct-nav{left:var(--s3);right:var(--s3);bottom:var(--s3)}
}

