/* Tools landing: same X, typography and calm surfaces as the main site. */
/* Reuse the official homepage engineering scene and its motion. */
body:has(.tools-site-header){background:#f9fcff;isolation:isolate}
body:has(.tools-site-header) .blueprint{display:none}
.tools-official-background{--scene-x:0px;--scene-y:0px;--light-x:64%;--light-y:42%;position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;contain:paint;background:#f9fcff}
.tools-official-background::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fbfdfff7 0%,#fbfdffeb 24%,#fbfdff6b 39%,transparent 59%),linear-gradient(0deg,#e8f1fc56,transparent 36%);z-index:5}
.tools-official-background .scene-blueprint{position:absolute;background:url('/assets/shopdrawing.svg') no-repeat;background-size:cover;pointer-events:none}
.tools-official-background .scene-wall{inset:-24% -6% -35% 24%;opacity:.22;transform:rotate(-8deg);animation:tools-wall-drift 22s ease-in-out infinite alternate}
.tools-official-background .scene-floor{left:-12%;right:-12%;height:720px;bottom:-500px;background-size:100% auto;opacity:.34;transform:perspective(550px) rotateX(54deg);transform-origin:top center;animation:tools-floor-drift 16s ease-in-out infinite alternate}
.tools-official-background .scene-skyline{position:absolute;inset:140px -20px -80px 22%;background:url('/assets/construction-scene.svg') center bottom/cover no-repeat;opacity:.15;mask-image:linear-gradient(0deg,#000,transparent 87%);animation:tools-crane-drift 22s ease-in-out infinite alternate}
.tools-official-background .energy-routes{position:absolute;inset:0;width:100%;height:100%}
.tools-official-background .trace{stroke:#3c9aff;stroke-dasharray:20 700;stroke-linecap:round;animation:tools-route-flow 7.5s linear infinite;opacity:.48}
.tools-official-background .route-two{animation-duration:10s;animation-delay:-3s;stroke:#46c5e5}
.tools-official-background .route-three{animation-duration:9s;animation-delay:-8s;opacity:.23}
.tools-official-background .scene-light{position:absolute;inset:0;background:radial-gradient(ellipse at var(--light-x) var(--light-y),#d7f5ffb0,transparent 36%);mix-blend-mode:screen}
[dir=rtl] .tools-official-background::after{background:linear-gradient(270deg,#fbfdfff7 0%,#fbfdffeb 24%,#fbfdff6b 39%,transparent 59%),linear-gradient(0deg,#e8f1fc56,transparent 36%)}
[dir=rtl] .tools-official-background .scene-wall{inset-inline:24% -6%}
@keyframes tools-wall-drift{from{background-position:0 0}to{background-position:12px 22px}}
@keyframes tools-floor-drift{from{background-position:0 0}to{background-position:22px 32px}}
@keyframes tools-crane-drift{from{background-position:50% 90%}to{background-position:49% 96%}}
@keyframes tools-route-flow{to{stroke-dashoffset:-1440}}
@media(max-width:760px){.tools-official-background .scene-wall{inset:-8% -48% -15%;opacity:.2}.tools-official-background .scene-floor{opacity:.24}.tools-official-background .scene-skyline{opacity:.13}}
@media(prefers-reduced-motion:reduce){.tools-official-background *{animation:none!important}}

body:has(.tools-site-header) .hero{
  display:grid;grid-template-columns:minmax(0,1.12fr) minmax(310px,.88fr);
  align-items:center;gap:28px;padding:48px 6px 33px;min-height:350px;
}
body:has(.tools-site-header) .hero:after{display:none}
body:has(.tools-site-header) .hero h1{
  max-width:710px;font-size:clamp(43px,5.1vw,68px);line-height:1.03;
  letter-spacing:-2.7px;color:#071e3d;
}
body:has(.tools-site-header) .hero h1 span:first-child{color:#0868e9}
body:has(.tools-site-header) .hero h1 span:last-child{color:#071e3d}
body:has(.tools-site-header) .hero p:not(.eyebrow){max-width:570px;margin:18px 0 0;color:#526c88;font-size:15px;line-height:1.6}

.tools-visual{position:relative;display:grid;place-items:center;isolation:isolate;min-height:315px}
.tools-visual:before{
  content:"";position:absolute;width:min(100%,420px);height:205px;bottom:4px;z-index:-1;
  border:1px solid #8ac7e85e;border-radius:50%;
  background:radial-gradient(ellipse,#a5dfff75 0,#dff3ff45 39%,transparent 67%);
  box-shadow:0 0 0 16px #78bfe714,0 0 0 50px #78bfe70c;
  transform:perspective(500px) rotateX(68deg);animation:tools-ground 7s ease-in-out infinite alternate;
}
.visual-plane{position:absolute;inset:10px 14% 20px;z-index:-1;
  border:1px solid #87bde154;
  background:repeating-linear-gradient(0deg,transparent 0 33px,#4b9acb1c 34px 35px),
    repeating-linear-gradient(90deg,transparent 0 33px,#4b9acb1c 34px 35px);
  transform:perspective(680px) rotateX(13deg) rotateZ(-8deg);
  mask-image:radial-gradient(ellipse,#000 32%,transparent 73%);
}
.tools-visual img{
  position:relative;z-index:1;display:block;width:min(112%,600px);max-width:none;height:auto;
  filter:drop-shadow(0 14px 16px #0d477126);
  transform:translateY(-3px);animation:tools-art-float 8s ease-in-out infinite alternate;
}
@keyframes tools-art-float{to{transform:translateY(-11px)}}
@keyframes tools-ground{to{opacity:.65;transform:perspective(500px) rotateX(68deg) scale(1.06)}}

body:has(.tools-site-header) .toolcards{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 24px;
}
body:has(.tools-site-header) .toolcard{
  position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) 24px;
  grid-template-rows:auto auto;align-content:center;align-items:center;gap:2px 11px;
  width:100%;min-height:104px;padding:15px 14px;
  border:1px solid #dce7f0;border-radius:13px;text-align:start;
  background:#fffffff0;box-shadow:0 5px 16px #134f8110;
}
body:has(.tools-site-header) .toolcard:before{display:none}
body:has(.tools-site-header) .toolcard:after{content:"";position:absolute;inset:10px auto 10px 0;width:2px;background:transparent}
body:has(.tools-site-header) .toolcard.active{border-color:#76b4e7;background:#f1f8ff;box-shadow:0 7px 18px #155d9a1c}
body:has(.tools-site-header) .toolcard.active:after{background:#0868e9}
body:has(.tools-site-header) .toolicon{
  grid-column:1;grid-row:1/3;width:38px;height:38px;border-radius:9px;
  background:#eaf5ff;color:#0868e9;font-size:17px;
}
body:has(.tools-site-header) .toolcard h3{grid-column:2;grid-row:1;margin:0;font-size:14px;line-height:1.25;color:#102b50}
body:has(.tools-site-header) .toolcard p{grid-column:2;grid-row:2;margin:0;color:#4e6a87;font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body:has(.tools-site-header) .toolcard .num{position:static;grid-column:3;grid-row:1/3;justify-self:end;font-size:12px;color:#8faeca}
body:has(.tools-site-header) .toolcard .pill{display:none}
body:has(.tools-site-header) .workspace{gap:14px}
body:has(.tools-site-header) .panel{background:#fff;border-radius:16px}
body:has(.tools-site-header) .side{border-radius:16px}
[dir=rtl] body:has(.tools-site-header) .toolcard:after{inset:10px 0 10px auto}
[dir=rtl] body:has(.tools-site-header) .toolcard{text-align:right}

/* One readable scale for inputs, units and results throughout all six tools. */
body:has(.tools-site-header) .toolbody{background:#f5faffec}
body:has(.tools-site-header) .converter-shell{background:#f5faffec}
body:has(.tools-site-header) .field{
  padding:17px;border:1px solid #bdd4e9;border-radius:15px;
  background:#fff;box-shadow:0 5px 18px #123d6812
}
body:has(.tools-site-header) .result-field{background:#f8fcff;border-color:#8cbee6}
body:has(.tools-site-header) .field .label{
  color:#244c75;font-size:13px;font-weight:750;letter-spacing:0
}
body:has(.tools-site-header) .unit-chip{
  min-width:47px;padding:5px 9px;color:#0868cb;font-size:12px
}
body:has(.tools-site-header) .value{min-height:51px;margin:9px 0 12px}
body:has(.tools-site-header) .value input,
body:has(.tools-site-header) .value output{
  width:100%;font-size:clamp(27px,2.5vw,34px);font-weight:760;
  line-height:1.2;color:#092b52;letter-spacing:-.6px
}
body:has(.tools-site-header) .value output{color:#0868d4;overflow-wrap:anywhere}
body:has(.tools-site-header) .value input{appearance:textfield}
body:has(.tools-site-header) .value input::-webkit-inner-spin-button,
body:has(.tools-site-header) .value input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body:has(.tools-site-header) .field select{
  min-height:52px;padding:10px 14px;border-color:#adcbe5;
  background:#f8fbff;color:#12375f;font-size:17px;font-weight:720
}
body:has(.tools-site-header) .under{color:#476d92;font-size:12px;line-height:1.5}
body:has(.tools-site-header) .swap{
  display:grid;place-items:center;width:56px;height:56px;
  border:1px solid #a8c8e5;border-radius:50%;background:#fff;
  color:#1267b9;box-shadow:0 6px 16px #174c751c;
  transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s
}
body:has(.tools-site-header) .swap svg{display:block;width:30px;height:30px;transition:transform .35s ease}
body:has(.tools-site-header) .swap:hover{
  transform:none;border-color:#0b69cb;background:#0b69cb;
  color:#fff;box-shadow:0 8px 20px #0868ff24
}
body:has(.tools-site-header) .swap:hover svg{transform:rotate(90deg)}
body:has(.tools-site-header) .swap:active svg{transform:rotate(180deg)}
body:has(.tools-site-header) .calcgrid{gap:16px}
body:has(.tools-site-header) .calcgrid label,
body:has(.tools-site-header) .currency-control,
body:has(.tools-site-header) .currency-label{
  color:#244c75;font-size:13px;font-weight:750;line-height:1.45
}
body:has(.tools-site-header) .calcgrid input,
body:has(.tools-site-header) .calcgrid select,
body:has(.tools-site-header) .currency-trigger{
  min-height:52px;margin-top:7px;padding:11px 13px;
  border-color:#b5d1e9;background:#fff;color:#092b52;
  font-size:19px;font-weight:700
}
body:has(.tools-site-header) .calcgrid select{font-size:15px}
body:has(.tools-site-header) .currency-trigger{margin-top:0;font-size:14px}
body:has(.tools-site-header) .currency-current b{font-size:14px}
body:has(.tools-site-header) .currency-current small{font-size:12px;color:#506d8c}
body:has(.tools-site-header) .result{
  min-height:90px;padding:19px 21px;gap:14px;flex-wrap:wrap;
  background:#e8f4ff;border-color:#a4cdec
}
body:has(.tools-site-header) .result span{color:#244c75;font-size:14px}
body:has(.tools-site-header) .result b{
  font-size:clamp(26px,2.9vw,36px);line-height:1.15;color:#0868d4;
  overflow-wrap:anywhere;font-variant-numeric:tabular-nums
}
body:has(.tools-site-header) .words{
  padding:19px;min-height:105px;border-style:solid;border-color:#a4cdec;
  color:#0c4d91;font-size:19px;line-height:1.65;overflow-wrap:anywhere
}
body:has(.tools-site-header) .words-heading{
  display:block;margin-top:19px;color:#244c75;font-size:13px;font-weight:750
}
body:has(.tools-site-header) .words-heading+.words{margin-top:7px}
body:has(.tools-site-header) .note{color:#456788;font-size:12px;line-height:1.55}
body:has(.tools-site-header) .fx-metric span,
body:has(.tools-site-header) .fx-detail span{font-size:11px;letter-spacing:.2px;color:#41678b}
body:has(.tools-site-header) .fx-metric small,
body:has(.tools-site-header) .fx-detail b,
body:has(.tools-site-header) .fx-feedbar small{font-size:11px}

@media(max-width:950px){
  body:has(.tools-site-header) .hero{grid-template-columns:minmax(0,1fr) minmax(220px,.7fr);gap:5px;min-height:300px}
  .tools-visual{min-height:260px}.tools-visual img{width:min(100%,420px)}
  body:has(.tools-site-header) .toolcards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:690px){
  body:has(.tools-site-header) .hero{grid-template-columns:1fr;gap:0;padding:25px 3px 12px;min-height:auto}
  body:has(.tools-site-header) .hero h1{font-size:clamp(36px,9vw,46px);letter-spacing:-1.7px}
  body:has(.tools-site-header) .hero p:not(.eyebrow){font-size:13px;margin-top:11px}
  .tools-visual{min-height:158px;overflow:hidden}.tools-visual img{width:min(100%,350px);animation:none;transform:none}
  .tools-visual:before{width:250px;height:95px;bottom:-25px;animation:none}
  .visual-plane{inset:-15px 18% -8px}
  body:has(.tools-site-header) .toolcards{gap:8px;margin-bottom:16px}
  body:has(.tools-site-header) .toolcard{grid-template-columns:1fr 18px;min-height:104px;padding:11px;gap:5px}
  body:has(.tools-site-header) .toolicon{grid-column:1;grid-row:1;width:30px;height:30px;font-size:14px}
  body:has(.tools-site-header) .toolcard h3{grid-column:1/3;grid-row:2;font-size:12px}
  body:has(.tools-site-header) .toolcard p{display:none}
  body:has(.tools-site-header) .toolcard .num{grid-column:2;grid-row:1;font-size:11px}
  body:has(.tools-site-header) .converter{gap:12px}
  body:has(.tools-site-header) .swap{transform:none;width:49px;height:49px}
  body:has(.tools-site-header) .swap:hover{transform:none}
  body:has(.tools-site-header) .calcgrid{gap:11px}
  body:has(.tools-site-header) .calcgrid label{font-size:12px}
  body:has(.tools-site-header) .calcgrid input{font-size:18px}
  body:has(.tools-site-header) .result{min-height:78px}
}
@media(prefers-reduced-motion:reduce){
  body:has(.tools-site-header) .blueprint:before,body:has(.tools-site-header) .blueprint:after,
  .tools-visual img,.tools-visual:before{animation:none}
  body:has(.tools-site-header) .swap svg{transition:none}
}



body:has(.tools-site-header) .visual-plane{display:none}
body:has(.tools-site-header) .tools-visual:before{border:0;box-shadow:none;background:radial-gradient(ellipse,#6d9ec522,transparent 66%)}

/* Country landmarks, cloth flags and tools share one integrated illustration. */
.tools-visual.country-visual{display:block;min-height:0;width:min(100%,540px);aspect-ratio:3/2;justify-self:center;direction:ltr;overflow:visible}
.tools-visual.country-visual:before{display:none}
.tools-visual.country-visual .country-art{display:block;width:100%;max-width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 12px #16497012);animation:none;transform:none;transition:opacity .16s ease}
.country-visual.is-loading .country-art{opacity:.45}
@media(max-width:690px){.tools-visual.country-visual{width:min(100%,380px);margin:4px auto 12px;min-height:0}}
@media(prefers-reduced-motion:reduce){.tools-visual.country-visual .country-art{transition:none}}
